feat(web): add tooltip for branch selector#4202
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 This PR adds tooltips to the branch selector so users can see full branch names when truncated. It's a simple UI enhancement using existing Tooltip components already present in the file, with no runtime behavior changes. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Added tooltip to the branch selector and
titleattribute for combobox items.Why
Longer branch names are truncated, and it's hard to tell which branch is which when they have the same prefix.
UI Changes
Checklist
Note
Low Risk
Presentation-only UX in the branch toolbar; no behavior, API, or data-path changes.
Overview
Truncated branch names in the toolbar and ref picker are now easier to read at a glance.
The branch selector trigger is wrapped in a tooltip that shows the full
triggerLabelon hover, matching the pattern already used for the adjacent PR pill. Each ref row in the combobox list gets a nativetitleattribute with the full ref name so truncated entries in the dropdown expose the complete string without opening anything else.Reviewed by Cursor Bugbot for commit 08417c1. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add tooltip to branch selector trigger in toolbar
Wraps the branch selector trigger in BranchToolbarBranchSelector.tsx with a
Tooltipthat displays the full current branch name on hover. Also adds a nativetitleattribute to each combobox item label so truncated branch names are readable without opening the dropdown.Macroscope summarized 08417c1.