Repository navigation
feat(ui): let users hide the priority inbox - #14334
Open
dillardblom wants to merge 2 commits into
Open
dillardblom wants to merge 2 commits into
dillardblom wants to merge 2 commits into
Conversation
Some users want their mail in date order and see no use in the priority inbox, which is always listed first and is where the app opens. Add a "Show priority inbox" switch to the appearance settings. When it is off, the priority inbox is left out of the unified mailboxes, so the navigation no longer shows it and the app opens the unified inbox instead; a start folder that still points to it is ignored. Importance classification keeps running: it is a per-account setting and also drives the important tag. Hiding the mailbox does not change it. Closes nextcloud#7630 Signed-off-by: Dillard Blom <dillard.blom@ensembia.com>
dillardblom
requested review from
ChristophWurst,
DerDreschner,
GretaD and
kesselb
as code owners
November 26, 2026 14:04
ChristophWurst
requested changes
Nov 26, 2026
ChristophWurst
left a comment
Member
There was a problem hiding this comment.
Thanks for the patch
- PR template is incomplete
- AI disclosure is missing
ChristophWurst
marked this pull request as draft
November 26, 2026 15:54
feat(ui): let users hide the priority inbox Some users want their mail in date order and see no use in the priority inbox, which is always listed first and is where the app opens. Add a "Show priority inbox" switch to the appearance settings. When it is off, the priority inbox is left out of the unified mailboxes, so the navigation no longer shows it and the app opens the unified inbox instead; a start folder that still points to it is ignored. Importance classification keeps running: it is a per-account setting and also drives the important tag. Hiding the mailbox does not change it. Closes nextcloud#7630 Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Dillard Blom <dillard.blom@ensembia.com>
dillardblom
marked this pull request as ready for review
November 26, 2026 22:49
Contributor
Author
|
Thanks for the review. I filled in the pull request template and added the AI disclosure, to the description and as an Assisted by ClaudeCode:claude-opus-5-5 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Closes #7630
Some users want their mail in date order and have no use for the priority inbox, which is always listed first and is where Mail opens. Turning off importance classification for an account does not remove it. This adds a Show priority inbox switch to Mail settings › Appearance, on by default.
When the switch is off:
Approach
The preference is stored like the other user preferences (
priority-inbox, defaulttrue).getMailboxes()leaves the priority inbox out of the unified account when it is off, so the navigation and the start folder logic follow without changes of their own. As a side effect, Mail no longer prefetches the priority inbox while it is hidden.Considered and discarded: turning off importance classification together with the switch. Classification is a per-account setting and also drives the important tag, so hiding a mailbox should not change it.
Intentionally left out: the mailbox itself still exists, so a direct link to it keeps working.
Screenshots
Testing
AI assistance
Assisted by ClaudeCode:claude-opus-5-5 (implementation, tests and description). Reviewed locally with Codex CLI and CodeRabbit CLI before opening.