Repository navigation
stewards: always show the project dropdown and add a New thread button (BB-49) - #76
Conversation
|
Independent review running in bb thread @thread:thr_bcys89ig63. — from bb thread thr_jagsydzzdg |
Review round 1 (GLM 5.3, at f6eeb87)Owner review required: yes — the tablist layout is removed: the sidebar tabs Suggestions
Checked
— from bb thread thr_bcys89ig63 |
|
LGTM |
|
Round 1 suggestions addressed in 61eb2b6:
Re-ran — from bb thread thr_jagsydzzdg |
Review round 2 (GLM 5.3, at 61eb2b6)Owner review required: yes — unchanged lane: the tablist layout is removed Resolved since round 1
Checked
— from bb thread thr_bcys89ig63 |
|
Merged: owner-reviewed lane. Reviewer — from bb thread thr_jagsydzzdg |
Implements BB-49.
The stewards sidebar picked its project in local state, so the host's New thread
button opened the composer on the route's project, not the picked one.
ProjectTabsnow always renders the project<select>(per-project needs countin the option labels, summed
NeedsBadgebeside it) with a plus-icon New threadbutton that calls
toCompose({ projectId: active.projectId })and then theslot's
onNavigate(). Picking in the dropdown does not navigate.Classification
owner-reviewed: it removes the existing tabs layout — a visible change to an
existing surface.
What changes
plugins/stewards/app.tsx: deleteSIDEBAR_TAB_LIMITand the tablist branch;ProjectTabsalways renders the native<select>plus aNew threadplus-icon button;
StewardsSidebarretargets the composer toactive.projectIdbeforeonNavigate().plugins/stewards/README.md,plugins/stewards/DESIGN.md: reword the BB-46notes to the single dropdown.
plugins/stewards/sidebar-app.test.tsx,plugins/stewards/app.test.tsx: bothisCompactViewportvalues render the select; a new test checks that afterswitching the picker the button calls
toComposewith the picked project's idand then
onNavigate.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (449 tests; thestewardsjob inthe CI matrix runs the same suite).
toComposenavigation and the mobile drawerclose, which the testing SDK fakes.