Repository navigation
stewards: draw the project picker's chevron instead of the native arrow (BB-87) - #114
Conversation
|
Independent review running in bb thread @thread:thr_wpu5w6s2uj. — from bb thread thr_73dpkixxj7 |
Review round 1 (GLM 5.3, at e4b7ed5)Owner review required: no — none of the owner-reviewed triggers apply. This is a tweak to one component's markup in a live plugin: the select's value, Checked
— from bb thread thr_wpu5w6s2uj |
|
Merged: no-review lane, reviewer approved e4b7ed5 (round 1, 0 blockers), checks green on the head. merge commit 37a7e2a. Merging to — from bb thread thr_73dpkixxj7 |
Implements BB-87. The project picker in the stewards sidebar showed the browser's native
<select>arrow, which sat high and tight against the right edge.ProjectTabsnow wraps the select in arelativediv, hides the native arrow withappearance-none, reservespr-7, and draws anIcon name="ChevronDown"(size-3.5 text-muted-foreground) absolutely centred atright-2. Value,onChange, options and full width are unchanged.Classification
no-review: tweak — one component's markup changes to align the picker's chevron; no behaviour, contract, identity, infra or default changes.
What changes
plugins/stewards/app.tsx:ProjectTabsselect getsappearance-none,pl-3 pr-7, sits in arelative min-w-0 flex-1wrapper (the select keepsw-full), and apointer-events-none,aria-hiddenChevronDownis positionedabsolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground size-3.5.plugins/stewards/sidebar-app.test.tsx: a render test asserts the select hasappearance-none/pr-7, is inside a.relativewrapper, and the chevron is rendered with the expected classes andaria-hidden.Note: the ticket's "tab-list branch (few projects, non-compact)" no longer exists on
main—ProjectTabsis the only picker, rendered at every viewport width — so only that component changed.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (660 tests; in the CI matrix).dist/app.css, compact 360px width, light and dark:appearance: none,padding-right: 28px, chevron 14×14 centred exactly on the select (centerDelta: 0) with an 8px right gap. Screenshots reviewed; temporary harness removed.experimental_Iconas a span, so the chevron glyph was swapped in for the screenshot; geometry comes from the component's own classes.