feat: add starred mail section to sidebar navigation#1836
feat: add starred mail section to sidebar navigation#1836gravit09 wants to merge 1 commit intoMail-0:stagingfrom
Conversation
Bug Report
Comments? Email us. Your free trial ends in 4 days. |
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
WalkthroughThis update introduces the "starred" mail folder throughout the mail app. The folder is added to allowed folders, navigation configuration, and English localization. Additionally, the logic for retrieving Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Sidebar
participant MailPage
User->>Sidebar: Clicks "Starred" navigation item
Sidebar->>MailPage: Loads /mail/starred route
MailPage->>MailPage: Validates "starred" as allowed folder
MailPage-->>User: Displays "Starred" folder contents
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related issues
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (3)**/*.{js,jsx,ts,tsx}📄 CodeRabbit Inference Engine (AGENT.md)
Files:
**/*.{js,jsx,ts,tsx,css}📄 CodeRabbit Inference Engine (AGENT.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit Inference Engine (AGENT.md)
Files:
🧠 Learnings (3)apps/mail/messages/en.json (1)Learnt from: retrogtx apps/mail/app/(routes)/mail/[folder]/page.tsx (3)Learnt from: retrogtx Learnt from: retrogtx Learnt from: retrogtx apps/mail/config/navigation.ts (2)Learnt from: retrogtx Learnt from: retrogtx 🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files. Review in cubic
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files. Review in cubic
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files. Review in cubic
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files. Review in cubic
|
I am aware of the filter by starred in categories, but I think starred deserves a dedicated section like the Gmail app; it's better UX. |

This PR introduces a dedicated "Starred" section to the main sidebar navigation, making it much easier for users to access their most important emails. And I am aware of the filter by starred in categories, but as a Mail0 user, I think starred deserves a dedicated section.
The "Starred" link is located directly under "Archive" for easy discovery.
Key Changes:
Adds the "Starred" item to the sidebar UI and navigation logic.
Wires it up to the /mail/starred route, which uses the existing STARRED label filter.
Includes translations for the new section.
Fixes a minor bug in the root loader to ensure stability.
Updates the allowed folders list to include starred.
I've confirmed the following works as expected:
✅ The "Starred" section appears in the sidebar.
✅ Clicking it correctly navigates to /mail/starred.
✅ The view displays only starred emails.
✅ The keyboard shortcut g + s navigates to the starred view.
This is a non-breaking change and integrates seamlessly with the existing star/unstar functionality.
Summary by cubic
Added a "Starred" section to the sidebar navigation so users can quickly access their starred emails.
New Features
Bug Fixes
Summary by CodeRabbit