Conversation
WalkthroughThe Discord invite URL was updated from "https://discord.gg/0email" to "https://discord.gg/mail0" in both the documentation and the NavUser component's dropdown menus. No other changes to logic, structure, or public entities were made. Changes
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
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.
Actionable comments posted: 0
🔭 Outside diff range comments (2)
apps/mail/components/ui/nav-user.tsx (2)
311-319: Addrel="noopener noreferrer"for safe external navigation
target="_blank"withoutrel="noopener noreferrer"lets the opened page accesswindow.openerand potentially redirect the parent tab (tab-nabbing).
Patch:-<a href="https://discord.gg/mail0" target="_blank" className="w-full"> +<a + href="https://discord.gg/mail0" + target="_blank" + rel="noopener noreferrer" + className="w-full" +>
529-537: Repeat therelhardening hereSame security concern as above – please add
rel="noopener noreferrer".-<a href="https://discord.gg/mail0" target="_blank" className="w-full"> +<a + href="https://discord.gg/mail0" + target="_blank" + rel="noopener noreferrer" + className="w-full" +>
🧹 Nitpick comments (2)
.github/TRANSLATION.md (1)
103-106: Consider centralising shared external linksThe Discord invite URL is now hard-coded here and in at least two places in
NavUser.tsx. When the link changes again you’ll need another sweep-of-the-repo patch like this PR. A single source of truth (e.g. aconstants.tsexported asDISCORD_INVITE_URL) keeps docs, UI and tests in sync automatically.apps/mail/components/ui/nav-user.tsx (1)
311-319: DRY up the Discord URLThe identical literal appears twice in this component (and in docs). Moving it to a constant (
const DISCORD_INVITE = 'https://discord.gg/mail0';) avoids future copy-paste edits and prevents accidental divergence.Also applies to: 529-537
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/TRANSLATION.md(1 hunks)apps/mail/components/ui/nav-user.tsx(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
apps/mail/components/ui/nav-user.tsx (2)
Learnt from: danteissaias
PR: Mail-0/Zero#902
File: apps/mail/components/connection/add.tsx:77-77
Timestamp: 2025-05-07T16:55:46.513Z
Learning: For the "Upgrade" link in AddConnectionDialog, using a proper <button> element instead of a <span> with onClick is recognized as an accessibility improvement but was deferred as out of scope in PR #902 (CSS variables PR).
Learnt from: retrogtx
PR: Mail-0/Zero#1328
File: apps/mail/lib/hotkeys/mail-list-hotkeys.tsx:202-209
Timestamp: 2025-06-18T17:26:50.918Z
Learning: In apps/mail/lib/hotkeys/mail-list-hotkeys.tsx, the switchCategoryByIndex function using hardcoded indices for category hotkeys does not break when users reorder categories, contrary to the theoretical index-shifting issue. The actual implementation has constraints or mechanisms that prevent hotkey targeting issues.
Summary by CodeRabbit