Skip to content

Comments

Fix/duplicate privacy option in navigation menu in mobile view and inconsistent vertical spacing in the navigation links#2004

Merged
ahmetskilinc merged 2 commits intoMail-0:stagingfrom
FurquanAnwer:fix/duplicate-privacy-option-in-navigation-menu-in-mobile-view
Aug 25, 2025
Merged

Fix/duplicate privacy option in navigation menu in mobile view and inconsistent vertical spacing in the navigation links#2004
ahmetskilinc merged 2 commits intoMail-0:stagingfrom
FurquanAnwer:fix/duplicate-privacy-option-in-navigation-menu-in-mobile-view

Conversation

@FurquanAnwer
Copy link
Contributor

@FurquanAnwer FurquanAnwer commented Aug 24, 2025

Description

This PR fixes the inconsistent vertical spacing in the navigation links in the mobile view by removing the extra margin (mt-2) and relying only on space-y-3. Also, there was one duplicate Privacy option which was removed.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🎨 UI/UX improvement

Areas Affected

UI/UX

Please check all that apply:

  • User Interface/Experience

Testing Done

Describe the tests you've done:

  • Manual testing performed
  • Mobile responsiveness verified (if UI changes)

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in complex areas
  • I have updated the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix/feature works
  • All tests pass locally
  • Any dependent changes are merged and published

Screenshots/Recordings

Current behaviour
Screenshot from 2025-08-24 17-21-49

Expected behaviour
Screenshot from 2025-08-24 17-21-10

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.


Summary by cubic

Fixes mobile navigation by removing a duplicate Privacy link and normalizing vertical spacing between links. Dropped per-link mt-2 in favor of space-y-3 for consistent spacing.

Summary by CodeRabbit

  • New Features
    • None
  • Bug Fixes
    • Removed duplicate Privacy link from the mobile navigation sheet; it remains accessible via About links.
  • Style
    • Reduced vertical spacing for Home and Pricing in the mobile navigation by removing extra top margin, improving visual compactness.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 24, 2025

Walkthrough

Mobile navigation sheet styling adjusted: removed mt-2 from Home and Pricing links, and removed the standalone Privacy item. No changes to handlers, routes, or exported interfaces.

Changes

Cohort / File(s) Summary
Mobile navigation sheet spacing & items
apps/mail/components/navigation.tsx
Removed mt-2 from Home/Pricing links to tighten spacing; removed direct Privacy item from mobile sheet (still available via aboutLinks); no behavioral or export changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

design

Suggested reviewers

  • MrgSub

Poem

Links align, the margins slim, 🚀
Privacy takes a subtle trim—
The sheet is sleek, the taps the same,
Code whispers, “optimize the frame.”
Minimal moves, maximum vim.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai bot requested a review from MrgSub August 24, 2025 12:05
@coderabbitai coderabbitai bot added the design Improvements & changes to design & UX label Aug 24, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (4)
apps/mail/components/navigation.tsx (4)

252-256: Use SPA navigation for internal About links and close the sheet on tap.

Right now these are hard navigations, which reload the app. Use Link for snappier UX and explicitly close the sheet, like you did for Home/Pricing.

-                {aboutLinks.map((link) => (
-                  <a key={link.title} href={link.href} className="block font-medium">
-                    {link.title}
-                  </a>
-                ))}
+                {aboutLinks.map((link) => (
+                  <Link
+                    key={link.title}
+                    to={link.href}
+                    onClick={() => setOpen(false)}
+                    className="block font-medium"
+                  >
+                    {link.title}
+                  </Link>
+                ))}

269-279: Don’t use react-router Link for external URLs; add a11y for icon-only links.

External destinations should be plain anchors. Also, icon-only links need an accessible name (aria-label or sr-only text). Let’s match the desktop pattern and avoid accidental client-side routing assumptions.

-                  <Link
-                    key={resource.title}
-                    to={resource.href}
-                    className="flex items-center gap-2 font-medium"
-                  >
-                    {resource.platform && <Icon className="dark:fill-muted-foreground h-5 w-5" />}
-                  </Link>
+                  <a
+                    key={resource.title}
+                    href={resource.href}
+                    target="_blank"
+                    rel="noopener noreferrer"
+                    aria-label={resource.title}
+                    className="flex items-center gap-2 font-medium"
+                  >
+                    {resource.platform && (
+                      <Icon className="dark:fill-muted-foreground h-5 w-5" aria-hidden="true" />
+                    )}
+                  </a>

162-168: Desktop nav still duplicates “Privacy” (top-level + Company > Privacy). Intentional?

Mobile duplication is fixed — good. But desktop keeps two entry points to the same page. If that’s not a deliberate product choice, remove the standalone Privacy button to keep IA clean.

-                <NavigationMenuItem className="bg-transparent text-white cursor-pointer">
-                  <a href="/privacy">
-                    <Button variant="ghost" className="ml-1 h-9 bg-transparent">
-                      Privacy
-                    </Button>
-                  </a>
-                </NavigationMenuItem>

Also applies to: 129-136


219-221: Add an accessible name to the menu icon button.

Tiny change, big usability for screen readers. Humans plus robots = better together.

-            <Button variant="ghost" size="icon" className="fixed left-4 top-6 z-50">
+            <Button variant="ghost" size="icon" aria-label="Open menu" className="fixed left-4 top-6 z-50">
               <Menu className="h-6 w-6" />
             </Button>
📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d918210 and 5ca5c9b.

📒 Files selected for processing (1)
  • apps/mail/components/navigation.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{css,js,ts,jsx,tsx,mdx}

📄 CodeRabbit inference engine (.cursor/rules/tailwind-css-v4.mdc)

**/*.{css,js,ts,jsx,tsx,mdx}: Chain variants together for composable variants (e.g., group-has-data-potato:opacity-100).
Use new variants such as starting, not-*, inert, nth-*, in-*, open (for :popover-open), and ** for all descendants.
Do not use deprecated utilities like bg-opacity-*, text-opacity-*, border-opacity-*, and divide-opacity-*; use the new syntax (e.g., bg-black/50).
Use renamed utilities: shadow-sm is now shadow-xs, shadow is now shadow-sm, drop-shadow-sm is now drop-shadow-xs, drop-shadow is now drop-shadow-sm, blur-sm is now blur-xs, blur is now blur-sm, rounded-sm is now rounded-xs, rounded is now rounded-sm, outline-none is now outline-hidden.
Use bg-(--brand-color) syntax for CSS variables in arbitrary values instead of bg-[--brand-color].
Stacked variants now apply left-to-right instead of right-to-left.

Files:

  • apps/mail/components/navigation.tsx
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (AGENT.md)

**/*.{js,jsx,ts,tsx}: Use 2-space indentation
Use single quotes
Limit lines to 100 characters
Semicolons are required

Files:

  • apps/mail/components/navigation.tsx
**/*.{js,jsx,ts,tsx,css}

📄 CodeRabbit inference engine (AGENT.md)

Use Prettier with sort-imports and Tailwind plugins

Files:

  • apps/mail/components/navigation.tsx
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENT.md)

Enable TypeScript strict mode

Files:

  • apps/mail/components/navigation.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: cubic · AI code reviewer

@ahmetskilinc ahmetskilinc merged commit 1e35eba into Mail-0:staging Aug 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design Improvements & changes to design & UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants