Skip to content

feat(ui): promote archive to an envelope primary action#13295

Open
mrx8086 wants to merge 1 commit into
nextcloud:mainfrom
mrx8086:feat/ui/archive-primary-action
Open

feat(ui): promote archive to an envelope primary action#13295
mrx8086 wants to merge 1 commit into
nextcloud:mainfrom
mrx8086:feat/ui/archive-primary-action

Conversation

@mrx8086

@mrx8086 mrx8086 commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Favorite, read and important are available as one-click primary action
buttons at the top of the envelope actions menu, but archiving — a core
step of inbox-zero style workflows — sits further down the entry list.

This PR promotes the existing archive entry to a fourth primary action
button:

  • Reuses the existing onArchive() handler, showArchiveButton /
    disableArchiveButton computed properties and the hasArchiveAcl
    check — no behavioral changes.
  • The button only appears when an archive mailbox is configured for the
    account and the ACLs allow it, exactly like the previous menu entry.
  • The entry is moved (not duplicated): the old list entry is removed so
    the same action does not appear twice in one open menu.
  • No new translatable strings — the existing "Archive thread" /
    "Archive message" strings are reused.

If the design team prefers to keep the primary row at three buttons, I
am happy to adjust (e.g. make the fourth button conditional or move it
behind a setting) — feedback welcome.

Screenshots

Screenshots of the envelope actions menu before/after will follow.

Checklist

  • Code is properly formatted (npx eslint src/components/Envelope.vue — no new warnings)
  • Frontend builds (npm run build)
  • Sign-off message and AI-assisted trailer are added

@welcome

welcome Bot commented Jul 14, 2026

Copy link
Copy Markdown

Thanks for opening your first pull request in this repository! ✌️

@ChristophWurst

Copy link
Copy Markdown
Member

Thank you for the contribution

@nimishavijay fine by you?

@mrx8086 please describe the changes in your words next time and don't use AI for the PR description: https://github.com/nextcloud/.github/blob/master/CONTRIBUTING.md#ai-assisted-contributions
The commit trailer format for AI is also slightly outdated. https://github.com/nextcloud/.github/blob/master/AI_POLICY.md#disclosure is the format we use now.

Favorite, read and important are available as one-click primary actions
on the envelope menu, but archiving - a core step of inbox-zero style
workflows - is buried further down the list. Promote the existing
archive entry to a fourth primary action button so it is reachable
with a single click, reusing the existing onArchive() handler,
showArchiveButton/disableArchiveButton logic and ACL checks.

The button only shows when an archive mailbox is configured and the
account has the required ACLs, mirroring the previous menu entry.
No new translatable strings are introduced.

Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: Mathias Riechsteiner <mathias@riechsteiner.online>
@mrx8086 mrx8086 force-pushed the feat/ui/archive-primary-action branch from e4f8583 to d9092b5 Compare July 15, 2026 15:35
@mrx8086

mrx8086 commented Jul 15, 2026

Copy link
Copy Markdown
Author

Thank you, and sorry about that — I'll write the descriptions and replies personally going forward. The commit trailer is updated to the current Assisted-by: format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants