Skip to content

stewards: draw the project picker's chevron instead of the native arrow (BB-87) - #114

Merged
trotterdylan merged 1 commit into
mainfrom
bb/bb-87-custom-chevron-on-stewards-project-select-thr_73dpkixxj7
Oct 27, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/bb-87-custom-chevron-on-stewards-project-select-thr_73dpkixxj7

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

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. ProjectTabs now wraps the select in a relative div, hides the native arrow with appearance-none, reserves pr-7, and draws an Icon name="ChevronDown" (size-3.5 text-muted-foreground) absolutely centred at right-2. Value, onChange, options and full width are unchanged.

Merging to bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server (Restart now, or the 03:00–05:00 ET quiet window).

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: ProjectTabs select gets appearance-none, pl-3 pr-7, sits in a relative min-w-0 flex-1 wrapper (the select keeps w-full), and a pointer-events-none, aria-hidden ChevronDown is positioned absolute 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 has appearance-none/pr-7, is inside a .relative wrapper, and the chevron is rendered with the expected classes and aria-hidden.

Note: the ticket's "tab-list branch (few projects, non-compact)" no longer exists on main — ProjectTabs is the only picker, rendered at every viewport width — so only that component changed.

Testing

  • npm run typecheck in plugins/stewards: pass.
  • npm test in plugins/stewards: pass (660 tests; in the CI matrix).
  • Headless (Playwright, chromium) on the rendered sidebar markup with the plugin's compiled 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.
  • Not tested: the live bb host. The SDK test harness renders experimental_Icon as a span, so the chevron glyph was swapped in for the screenshot; geometry comes from the component's own classes.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_wpu5w6s2uj.

— from bb thread thr_73dpkixxj7

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

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, onChange, options and full-width layout are unchanged, no contract, setting, default, identity or infra surface is touched, and source-contract.ts and the three plugin-list lines in the bb-server Dockerfile are untouched.

Checked

  • Verified against ticket:
    1. <select aria-label="Project"> has appearance-none, pl-3 pr-7 (native arrow hidden, text can't run under the chevron), and sits in a relative min-w-0 flex-1 wrapper — met (plugins/stewards/app.tsx:1401-1411).
    2. Icon name="ChevronDown" with size-3.5 text-muted-foreground, absolutely positioned right-2 top-1/2 -translate-y-1/2, pointer-events-none, aria-hidden — met (app.tsx:1417-1421).
    3. Select behaviour unchanged: same value={activeId ?? ""}, onChange, options; w-full inside the flex-1 wrapper preserves the old flex-1 min-w-0 footprint; the native select keeps keyboard use — met.
    4. The author's note is correct: there is no tab-list branch on this head. ProjectTabs (app.tsx:1398) is the only project picker and is rendered unconditionally at app.tsx:1480; the only other ChevronDown uses are the section-disclosure chevrons. Criterion is moot, nothing else changed — met.
    5. Typecheck and the full suite pass; a render test asserts the chevron. Note: this plugin (and the repo) has no lint script, so there is nothing to run for "lint". The Playwright light/dark/compact check is the author's harness, since removed; I could not reproduce it, but the geometry follows from the component's own classes and the render test pins them.
  • Ran: npm install --include=dev --legacy-peer-deps --no-audit --no-fund, npm run typecheck, npm test in plugins/stewards — typecheck pass, 660/660 tests pass (21 files). The plugin is in the CI matrix (plugins.yaml line 20) and both quality_checks (stewards) runs are green; I ran the suite locally anyway.
  • Diff scope: exactly the two files named, nothing the ticket didn't ask for.

— from bb thread thr_wpu5w6s2uj

@trotterdylan
trotterdylan merged commit 37a7e2a into main Oct 27, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-87-custom-chevron-on-stewards-project-select-thr_73dpkixxj7 branch October 27, 2026 16:04
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved e4b7ed5 (round 1, 0 blockers), checks green on the head. merge commit 37a7e2a.

Merging to bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server (Restart now, or the 03:00–05:00 ET quiet window).

— from bb thread thr_73dpkixxj7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant