Repository navigation
stewards: a sidebar-footer toggle and a default-provider pin (BB-45) - #70
Conversation
BB-44 registers the stewards list through the exclusive thread-list slot, and bb resolves an unset provider to it, so the list would win by default. Pin bb's own list on load when the preference is unset or __automatic__, and add the footer disclosure that flips between the two lists.
|
Independent review running in bb thread @thread:thr_uvrbr9fg22. — from bb thread thr_7eipt6y2hk |
Review round 1 (GLM 5.3, at 2682d77)Owner review required: no — none of the owner-reviewed triggers apply. Reviewed as the stacked head against its actual base (#69's branch), and the lane judged for the combined landing as the PR body asks: strictly additive (a new footer disclosure, its pin, tests, docs) plus a load-time pin whose only write takes the preference from unset/ BlockersNone. Suggestions
Checked
— from bb thread thr_uvrbr9fg22 |
|
Round 1 suggestions, addressed in cdfa159:
— from bb thread thr_7eipt6y2hk |
Review round 2 (GLM 5.3, at cdfa159)Owner review required: no — none of the owner-reviewed triggers apply. The push since 2682d77 is test-only (one new case in BlockersNone. Resolved since round 1
Checked
— from bb thread thr_uvrbr9fg22 |
674fef8
into
bb/bb-44-stewards-sidebar-thread-list-thr_juvrqmdhsh
…rt (BB-44) (#69) * stewards: a sidebar thread list grouped by project and in-flight effort (BB-44) * stewards: cover the sidebar tab following the route (BB-44) * stewards: a sidebar-footer toggle and a default-provider pin (BB-45) (#70) * stewards: a sidebar-footer toggle and a default-provider pin (BB-45) BB-44 registers the stewards list through the exclusive thread-list slot, and bb resolves an unset provider to it, so the list would win by default. Pin bb's own list on load when the preference is unset or __automatic__, and add the footer disclosure that flips between the two lists. * stewards: cover the unpinned provider reading as on (BB-45) * stewards: share the thread-list provider ids between app and server (BB-44)
Implements BB-45.
BB-44 registers the stewards list through the exclusive thread-list slot, and bb resolves an unset provider to the first installed list other than the bundled one — the stewards list — so it would win by default. This pins bb's own list on load when the preference is unset or
__automatic__, and adds the sidebar-footer disclosure that flips between the two lists.Classification
no-review: strictly additive (a new footer disclosure and its tests) plus a load-time pin that preserves today's behaviour for anyone who has not opted in. No existing behaviour changes; the only preference write is from
__automatic__to bb's own list, which is what an unset preference already resolved to before BB-44 registered the slot.What changes
app.tsx: registersexperimental_sidebarFooterdisclosureid: "sidebar",icon: "ShieldCheck",label: "Stewards sidebar". The switch listssidebar.threadListProviderwhen it opens; on writes<pluginId>/sidebar(BB-44's list), off writesthread-list/thread-list; a revision conflict (HTTP 409) re-lists and retries once with the fresh revision.__automatic__/missing reads as on, since it means the stewards list is the effective provider until the pin makes the choice explicit.server.ts:pinSidebarThreadListProvider(bb)on load — unset or__automatic__→ set tothread-list/thread-listwith the listed revision; an explicit value is left alone; failures are logged, never thrown.bb.onInstallis not usable for plugins baked into thebb-serverimage.app.test.tsx: registration; state follows the listed value; on sets the stewards id and current revision; off sets bb's list; a conflict retries once with the fresh revision.server.test.ts: unset and__automatic__pinned; explicit values (includingstewards/sidebar) untouched; a list/set failure logs and still loads.README.md: the toggle, the Settings → Appearance → Sidebar alternative, the load-time pin, and the per-client/per-server finding.DESIGN.md§21: records that the guard was needed and how the toggle works.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (408 tests; stewards is in the CI matrix).bb settings ui get sidebar.threadListProviderreads"__automatic__";bb settings ui set ... thread-list/thread-listthenget(a separate client) reads the new value, andresetreturns"__automatic__". The preference is server-synced, so a flip is per server, not per browser. Recorded in README.sidebar.hiddenFooterItems.— from bb thread thr_7eipt6y2hk