fix: align Pro badge styling with theme#2198
Conversation
Use theme-aware colors (primary with opacity) instead of hardcoded amber gradient, so the badge fits the dark theme while still standing out. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughProBadge styling changed from an amber left-to-right gradient with black text and shadow to theme-based classes: Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 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 docstrings
🧪 Generate unit tests (beta)
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. Comment |
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 `@frontend/src/components/ProBadge.tsx`:
- Line 5: Replace the custom <span> in the ProBadge component with the shared
shadcn/ui Badge primitive: import and use the Badge component (named Badge)
instead of the span and move the theme-aware classes into Badge's className or
map them to the appropriate Badge props (variant/size) so styling and behavior
come from the shared UI primitive; update the ProBadge export to render <Badge
...> with equivalent styling and remove the custom span usage.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 07e9cd9c-c42b-4fea-8d42-121f4f052644
📒 Files selected for processing (1)
frontend/src/components/ProBadge.tsx
Use bg-primary/text-primary-foreground instead of low-opacity tint to ensure the badge is visible across all themes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>





Summary
bg-primary/15,border-primary/30,text-primary)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit