Repository navigation
stewards: a needs-you block, tab badge and realtime in the sidebar (BB-46) - #72
Conversation
|
Independent review running in bb thread @thread:thr_s72e2h336u. — from bb thread thr_27hrkbche8 |
Review round 1 (GLM 5.3, at aafa26c)Owner review required: no — none of the owner-reviewed triggers apply. Strictly additive: a new BlockersNone. Suggestions
Checked
_— from bb thread thr_s72e2h336u |
- publish on a route-me escalation filed directly (escalate) - skip the reroute event when the route did not change - publish when a binding ends or reopens and its items leave the set - tests for the escalate and binding-end events
|
Round 1 response — pushed
— from bb thread thr_27hrkbche8 |
Review round 2 (GLM 5.3, at b143258)Owner review required: no — none of the owner-reviewed triggers apply. The delta from round 1 is exactly the three suggestions I raised, each small and additive; the lane is unchanged. Resolved since round 1
Checked
No open suggestions. The verdict from round 1 outlives aafa26c for author fixes of what the review asked for; this marker repeats it on the current head, which is what the merge gate reads. _— from bb thread thr_s72e2h336u |
|
Merged: no-review lane, reviewer approved b143258 (round 2), checks green. — from bb thread thr_27hrkbche8 |
Implements BB-46. The stewards sidebar now shows a count badge on each project tab and a "Needs you" block above In flight: one row per open question, with-user escalation and actionable need, with fixed choices as buttons and the entity key opening the entity. A choice makes the same write the page does; a row without choices opens the Stewards page. The store publishes
needs-you-changed { projectId }on a plugin realtime channel whenever the set changes, so every open sidebar and the board page refresh in seconds instead of waiting for the half-minute poll.Classification
no-review: strictly additive. A new
stewardsSidebarfield, a new UI block and badge, a new realtime channel and a new optional store callback; no existing behaviour changes, no cross-repo contract (source-contract.tsuntouched), no schema change or migration.What changes
server.ts: oneneedsYou(projectId, { actionableOnly })builds the board'squestions/withUser/needs; the board calls it unfiltered, the sidebar filters non-actionable needs out of both count and items.stewardsSidebarcarries per projectneeds: { count, items }, each item taggedquestion/withUser/need.store.ts: an optionalonNeedsYouChange(projectId)callback, wired inserver.tsto the channel, fired from the mutation points (ask,answer,answerQuestionOnly,answerEscalation,approve/decline,reroute,resolve,fileNeed,closeNeed/closeNeeds/closeNeedByKey). A synchronous coalescing guard makes one question filed or answered publish exactly one event even whenanswerresolves its escalation.channels.ts: theNEEDS_YOU_CHANGEDconstant, shared by server and app.app.tsx: the tab count pill (none at zero), the compact picker's summed count and per-project option counts, the Needs you block, anduseRealtimeon the sidebar and the board page.README.md,DESIGN.mdupdated.Testing
npm run typecheckin plugins/stewards: pass.npm testin plugins/stewards: pass (419 tests; the plugin is in the CI matrix).server.test.ts(exactly one event per question filed and per question answered, carrying the project id) andapp.test.tsx(a sidebar and board refetch on a matching project, no refetch for an unknown one).