feat: refine dark theme, sidebar styling, and simplify agent selector#809
Conversation
Update dark mode palette to a blue-tinted scheme for better visual depth. Add dedicated sidebar color variable and apply bg-sidebar to navigation components. Simplify agent selector by removing configure button and radio indicators. Fix dev script to re-read CONVEX_DEPLOYMENT after Convex starts.
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.
📝 WalkthroughWalkthroughThis PR updates navigation theming and removes agent configuration UI functionality. It changes background styling from Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can use your project's `biome` configuration to improve the quality of JS/TS/CSS/JSON code reviews.Add a configuration file to your project to customize how CodeRabbit runs |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@services/platform/app/features/chat/components/agent-selector.tsx`:
- Line 87: The dropdown in agent-selector.tsx currently hardcodes
contentClassName="w-[16.25rem]"; replace this literal width with a design token
or CSS variable (e.g., use a Tailwind custom utility class or a CSS var like
var(--dropdown-width)) so the size is centralized and reusable; update the
component to reference that token/class (where contentClassName is assigned) and
ensure any corresponding CSS/Tailwind config defines the token (or utility) to
match the previous 16.25rem value.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 72d3c6b8-a1af-4e73-9966-f83b8ceeacdb
⛔ Files ignored due to path filters (2)
services/platform/convex/_generated/api.d.tsis excluded by!**/_generated/**services/platform/convex/betterAuth/_generated/component.tsis excluded by!**/_generated/**
📒 Files selected for processing (10)
services/platform/app/components/ui/navigation/mobile-navigation.stories.tsxservices/platform/app/components/ui/navigation/mobile-navigation.tsxservices/platform/app/components/ui/navigation/navigation.stories.tsxservices/platform/app/components/ui/navigation/navigation.tsxservices/platform/app/features/chat/components/__tests__/agent-selector.test.tsxservices/platform/app/features/chat/components/agent-selector.tsxservices/platform/app/features/conversations/components/activate-conversations-empty-state.tsxservices/platform/app/globals.cssservices/platform/app/routes/dashboard/$id.tsxservices/platform/scripts/dev.ts
💤 Files with no reviewable changes (1)
- services/platform/app/features/chat/components/tests/agent-selector.test.tsx
| side="top" | ||
| sideOffset={8} | ||
| contentClassName="w-[20rem]" | ||
| contentClassName="w-[16.25rem]" |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
Consider using a design token for the dropdown width.
The specific width 16.25rem (260px) works, but if this value is used elsewhere or needs to stay consistent with other UI elements, consider extracting it to a CSS variable or design token for maintainability.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@services/platform/app/features/chat/components/agent-selector.tsx` at line
87, The dropdown in agent-selector.tsx currently hardcodes
contentClassName="w-[16.25rem]"; replace this literal width with a design token
or CSS variable (e.g., use a Tailwind custom utility class or a CSS var like
var(--dropdown-width)) so the size is centralized and reusable; update the
component to reference that token/class (where contentClassName is assigned) and
ensure any corresponding CSS/Tailwind config defines the token (or utility) to
match the previous 16.25rem value.
Summary
--sidebarcolor variable and appliedbg-sidebarto navigation components (desktop + mobile)CONVEX_DEPLOYMENTfrom.env.localafter Convex backend starts (handles fresh DB scenario)selectfield)Test plan
CONVEX_DEPLOYMENTSummary by CodeRabbit
Style
Chores