Skip to content

fix: Remove actions on draft#2916

Open
Elouan1411 wants to merge 11 commits into
mainfrom
remove-actions-on-draft
Open

fix: Remove actions on draft#2916
Elouan1411 wants to merge 11 commits into
mainfrom
remove-actions-on-draft

Conversation

@Elouan1411
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 14:46
@Elouan1411 Elouan1411 marked this pull request as draft May 27, 2026 14:47
Copy link
Copy Markdown

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.

Pull request overview

This PR updates the mail action menus and swipe behaviors to remove/disable unsupported actions when the current item/folder is a Draft, ensuring users don’t see actions that don’t apply to drafts.

Changes:

  • Hide thread/message bottom-sheet actions (archive, favorite, spam, move, main actions, etc.) when the item is in Draft.
  • Hide multi-select main actions/favorite/phishing and ensure spam action is hidden for Draft.
  • Override swipe actions in Draft context (fixed actions: delete / quick-actions menu) and disable archive quick-action in multi-selection for drafts.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/ThreadActionsBottomSheetDialog.kt Detect Draft role and hide spam + several action groups for draft threads.
app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/MultiSelectBottomSheetDialog.kt Hide main actions/favorite/phishing for Draft multi-select; reuse shared spam hiding.
app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/MessageActionsBottomSheetDialog.kt Detect Draft role and hide multiple actions for draft messages.
app/src/main/java/com/infomaniak/mail/ui/main/thread/actions/MailActionsBottomSheetDialog.kt Add helpers to hide specific action rows when in Draft; adjust archive/favorite APIs.
app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListMultiSelection.kt Disable archive quick-action when selection is from Draft (or Archive).
app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Force Draft swipe actions to Delete / Quick-actions menu and show appropriate disabled/enabled UI.
app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListAdapter.kt Attempt to set Draft swipe UI visuals during dynamic swipe icon updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListAdapter.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListMultiSelection.kt Outdated
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch from ae5104d to 154bdad Compare May 28, 2026 07:22
@Elouan1411 Elouan1411 marked this pull request as ready for review May 28, 2026 07:34
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch 2 times, most recently from b0b2a19 to 65d696b Compare June 1, 2026 13:50
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Copy link
Copy Markdown

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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch 3 times, most recently from 62e1bc6 to 4922fd5 Compare June 2, 2026 13:27
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch from 4922fd5 to 04c3667 Compare June 2, 2026 13:43
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListMultiSelection.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListFragment.kt Outdated
Comment thread app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadListMultiSelection.kt Outdated
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch from 2374c3f to a106b9c Compare June 3, 2026 13:11
@Elouan1411 Elouan1411 force-pushed the remove-actions-on-draft branch from a106b9c to e087d5e Compare June 3, 2026 13:13
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 3, 2026

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.

4 participants