Skip to content

Conversation

@ameer2468
Copy link
Contributor

@ameer2468 ameer2468 commented Oct 14, 2025

Summary by CodeRabbit

  • New Features

    • Extra text in the navbar now displays when its value is 0 (when the sidebar is expanded).
  • Bug Fixes

    • User caps count consistently initializes to 0, ensuring a visible “0” instead of a blank state, including on errors.
  • Style

    • Download page visual refinements: updated subheading text color, improved SEO links block with new border/text colors and centered alignment for a cleaner look.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 14, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updates adjust a navbar item's extraText render condition, initialize userCapsCount to 0 in dashboard layout (including error path), and tweak styling classes on the DownloadPage. No new exports, control flow, or structural changes are introduced.

Changes

Cohort / File(s) Summary
Navbar item render condition
apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx
Change extraText rendering check from truthy to extraText !== null (still gated by !sidebarCollapsed), allowing values like 0 to render.
Dashboard layout count initialization
apps/web/app/(org)/dashboard/layout.tsx
Initialize userCapsCount to 0 instead of null; error path also sets it to 0, removing null state.
Download page styling adjustments
apps/web/components/pages/DownloadPage.tsx
Update Tailwind classes: add text-gray-11 to subheading; adjust SEO links block colors (border to border-gray-5, text to text-gray-12), and align items with items-center.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

A nibble of numbers, a sprinkle of hue,
The navbar now shows a tidy “0,” too.
Counts start at zero—no nulls to chase,
Download page gleams with a polished face.
Thump-thump! says the rabbit, shipping with glee,
Tiny tweaks hopping to production, whee! 🐇✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch minor-ui-fixes

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2054742 and b3cae76.

📒 Files selected for processing (3)
  • apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx (1 hunks)
  • apps/web/app/(org)/dashboard/layout.tsx (2 hunks)
  • apps/web/components/pages/DownloadPage.tsx (2 hunks)

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@ameer2468 ameer2468 merged commit 618dcaf into main Oct 14, 2025
13 of 15 checks passed
@ameer2468 ameer2468 deleted the minor-ui-fixes branch October 14, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants