Skip to content

fix: New actions lists #1756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open

fix: New actions lists #1756

wants to merge 48 commits into from

Conversation

lebojo
Copy link
Contributor

@lebojo lebojo commented Apr 10, 2025

This pull request includes significant changes and consolidating the action handling and view modifiers. The most important changes include the introduction of a new ActionAlertsViewModifier and a refactorization of the selections of actions process, consolidation of action lists, and updates to various view modifiers to use the new structures.

These changes aim to streamline the action handling process, reduce code duplication, and improve maintainability.

Copy link

github-actions bot commented Apr 10, 2025

Found 2 unused code occurences

Expand
Mail/Views/New Message/ComposeEditor/EditorDesktopToolbarView.swift:29:8: warning: Struct 'EditorDesktopToolbarView' is unused
Mail/Views/Thread List/DraggedEnvelopeView.swift:22:8: warning: Struct 'DraggedEnvelopeView' is unused

@lebojo lebojo requested a review from Copilot April 10, 2025 14:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

MailCore/Cache/Actions/Action+List.swift:447

  • Renaming from 'activeMultiselect' to 'activeMultiSelect' improves consistency; please verify that all references have been updated accordingly.
static let activeMultiSelect = Action(

Mail/Views/Thread List/ThreadListCellContextMenu.swift:156

  • [nitpick] Consider renaming 'controlGroupStyleCompactStyle' to a more concise name like 'controlGroupCompactStyle' for improved clarity.
struct controlGroupStyleCompactStyle: ViewModifier {

@lebojo lebojo force-pushed the fix/context-menu-action-list branch from b5e7b7e to 3eb27e7 Compare April 10, 2025 14:16
@lebojo lebojo marked this pull request as draft April 14, 2025 06:44
@lebojo lebojo force-pushed the fix/context-menu-action-list branch 2 times, most recently from d8c94e7 to 3b53c5a Compare May 5, 2025 15:00
@lebojo lebojo marked this pull request as ready for review May 6, 2025 07:34
@lebojo lebojo requested a review from valentinperignon May 6, 2025 07:36
@lebojo lebojo force-pushed the fix/context-menu-action-list branch 2 times, most recently from 4e6a36b to 97b161a Compare May 6, 2025 11:21
@lebojo lebojo force-pushed the fix/context-menu-action-list branch 2 times, most recently from cd8440a to eee6a7e Compare May 19, 2025 12:31
@valentinperignon valentinperignon force-pushed the fix/context-menu-action-list branch from eee6a7e to 237dc66 Compare May 21, 2025 11:05
@lebojo lebojo force-pushed the fix/context-menu-action-list branch 4 times, most recently from affe3e8 to ab42e4e Compare May 27, 2025 08:56
Copy link
Member

@valentinperignon valentinperignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice 👍

In the ThreadList, I don't have the same actions whether i am doing in on a single message thread or multiple messages thread

Simulator Screenshot - iPhone 16 Pro - 2025-06-02 at 09 53 07
Simulator Screenshot - iPhone 16 Pro - 2025-06-02 at 09 53 11
Simulator Screenshot - iPhone 16 Pro - 2025-06-02 at 09 53 39
Simulator Screenshot - iPhone 16 Pro - 2025-06-02 at 09 53 43

@lebojo lebojo force-pushed the fix/context-menu-action-list branch 3 times, most recently from 45cb24d to 1be724c Compare June 4, 2025 14:26
@valentinperignon valentinperignon requested a review from Lnamw June 5, 2025 06:52
Copy link
Member

@valentinperignon valentinperignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your changes @lebojo 😊
I'll take one last look to make sure everything is okay.

I asked @Lnamw to test it as it is a critical area

@github-actions github-actions bot removed the rebase label Jun 17, 2025
@github-actions github-actions bot force-pushed the fix/context-menu-action-list branch from 8bcf223 to 71ccb21 Compare June 17, 2025 07:35
@valentinperignon valentinperignon force-pushed the fix/context-menu-action-list branch from dd8b520 to 71ccb21 Compare June 17, 2025 07:53
@lebojo lebojo force-pushed the fix/context-menu-action-list branch from feb6811 to 2136128 Compare June 25, 2025 11:19
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants