[fix/feat:ui] Show default option badge#3232
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
ApprovabilityVerdict: Approved Purely cosmetic UI change replacing plain text "(default)" with a styled Badge component. No runtime behavior changes - just visual presentation. You can customize Macroscope's approvability policy. Learn more. |
What changed
Default picker options now show a compact
Defaultbadge instead of appending(default)to the option label.Why
The badge keeps the option label clean and makes the default state easier to scan in dense menus.
UI changes
Before:
After:
Checklist
Testing
vp check apps/web/src/components/chat/TraitsPicker.tsxNote
Show a styled 'Default' badge for default options in
TraitsPickerReplaces the plain text
(default)suffix on trait options with a styledBadgecomponent. A newDefaultBadgecomponent in TraitsPicker.tsx renders an outlined badge labeled 'Default' next to the option label whenoption.isDefaultis true.Macroscope summarized bdd58b1.
Note
Low Risk
Presentation-only change in TraitsPicker menu labels with no logic or persistence impact.
Overview
In the chat TraitsPicker select menus, default trait options no longer append
(default)to the option label. Whenoption.isDefaultis true, a compact outlined Default badge appears beside the label instead.A small
DefaultBadgehelper wraps the sharedBadgecomponent with muted styling sized for dense menu rows.Reviewed by Cursor Bugbot for commit bdd58b1. Bugbot is set up for automated code reviews on this repo. Configure here.