Skip to content

stewards: render Recently ended rows as two-line effort rows (BB-88) - #116

Merged
trotterdylan merged 3 commits into
mainfrom
bb/bb-88-ended-rows-as-effort-rows-thr_udppxyk3cg
Oct 27, 2026
Merged

trotterdylan merged 3 commits into
mainfrom
bb/bb-88-ended-rows-as-effort-rows-thr_udppxyk3cg

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-88.

Recently ended rows in the stewards sidebar used a thinner one-line row than In flight / Blocked. They now build through the same effort shape and render with SidebarEffortRow: grey quiet ring, kind and final phase on line two, the end reason (terminal, label removed, deleted) in the status-phrase slot, no children, and the ended N ago stamp kept on the right. A binding whose steward thread is gone still renders, because the effort row tolerates a missing root thread.

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

Classification

no-review: presentation tweak of an existing sidebar section in a live plugin; no cross-repo contract, no changed default, and no owner-reviewed trigger in stewards/project.json.

What changes

  • server.ts: the stewardsSidebar RPC's ended items now carry phase and endReason from the binding, alongside key / kind / threadId / title / endedAt.
  • sidebar.ts: endedEffort builds an ended binding as the same SidebarEffort shape (quiet, no children) with endReasonPhrase as its status phrase; SidebarTab.ended is SidebarEndedEffort[].
  • app.tsx: SidebarEffortRow tolerates a missing root thread (title from the RPC, no thread actions menu) and takes an optional trailing stamp; the Recently ended section renders through it, and the old one-line SidebarEndedRow is removed.
  • DESIGN.md §21 and the README sidebar section describe the ended row.

Testing

  • npm test in plugins/stewards: pass (689 tests; the plugin is in the CI matrix).
  • npm run typecheck in plugins/stewards: clean.
  • Added builder tests in sidebar.test.ts (endedEffort, endReasonPhrase, buildSidebar's ended list) and sidebar tests in sidebar-app.test.tsx for the collapsed section, a missing-thread ended row, and an ended binding with a live thread.
  • Not tested: the real sidebar against a live bb server; the rendering is exercised through the jsdom sidebar tests.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_j89pegv8tg.

— from bb thread thr_udppxyk3cg

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 2afcc11)

Owner review required: no — none of the owner-reviewed triggers apply. Presentation-only change inside plugins/stewards (live plugin, but a tweak the ticket itself asks for): no cross-repo contract, no store migration, no dependency or default change, no bigDecisions path in stewards/project.json matches, and the RPC shape change is inside the plugin that consumes it. The PR body's Classification line agrees.

Suggestions

  • sidebar.ts:237 — endReasonPhrase spells only detach out (label removed); the other reasons the server can write (terminal, deleted, gone, unconfigured) pass through raw. gone and unconfigured read a bit terse on line two next to the spelled-out label removed. Wording only; author's call.

Checked

  • Ran myself: npm run typecheck (clean) and npm test (689 passed, 21 files) in plugins/stewards. Stewards is in the CI matrix (.github/workflows/plugins.yaml), so no suite was skipped.
  • Verified against ticket:
    • Criterion 1 met — endedEffort builds the ended binding as a SidebarEffort (state quiet, children: [], phase and endReasonPhrase on line two); the Recently ended section renders it through SidebarEffortRow with the ago(e.endedAt, now) trailing stamp; the live-thread test asserts line two ticket · Done · terminal, the grey quiet glyph (border-muted-foreground/50), and the board link.
    • Criterion 2 met — SidebarEffortRow no longer bails when byId lacks the root thread; title falls back to the RPC title, then the key; the context menu is skipped rather than throwing. The jsdom test covers a threadId: null ended row. Also verified server-side that needsYou filters out ended bindings, so no needs-you rows can appear under an ended row.
    • Criterion 3 met — In flight / Blocked rows are unchanged apart from the generalized root lookup (live efforts always have a root, since buildSidebar joins them from live threads); Monitors and Recently ended still render only when their SidebarCollapsible is opened, and the reveal logic (revealSections) was updated consistently from e.threadId to e.rootThreadId.
    • Criterion 4 met — tests and typecheck pass as above; DESIGN.md §21 (The sidebar thread list) and the README sidebar section both describe the ended row.
  • Contracts: endReason and phase are existing binding columns (store.ts), so no migration; the RPC zod schema and its only consumer (app.tsx) change together in one plugin.
  • The ended list stays newest-first (server sorts by endedAt desc, endedEffort preserves order).

— from bb thread thr_j89pegv8tg

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 suggestion taken in db11a63:

  • endReasonPhrase now spells out the remaining internal reasons too: detach → label removed, gone → no longer listed, unconfigured → no longer configured; terminal/deleted pass through. Added a test for the new mappings.

Typecheck clean and the sidebar suites pass (76 tests).

— from bb thread thr_udppxyk3cg

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (GLM 5.3, at db11a63)

Owner review required: no — none of the owner-reviewed triggers apply (unchanged from round 1; this push only rewords a display string).

Resolved since round 1

  • Suggestion (end-reason wording): resolved by db11a63 — endReasonPhrase now spells out gone (no longer listed) and unconfigured (no longer configured) alongside detach, with the mapping extended in the test. No scope or behaviour change beyond that.

Checked

  • Diff since 2afcc11 reviewed: only sidebar.ts endReasonPhrase and its test; unknown reasons still pass through, and ""/null still read ended.
  • Ran: npm run typecheck (clean) and npm test in plugins/stewards (689 passed, 21 files).
  • Note, not a blocker: DESIGN.md §21 and the README still name the reasons as terminal / label removed / deleted; gone and unconfigured now render under different words (no longer listed / no longer configured). A one-word touch-up if you want the docs exhaustive — fine to merge as is.

— from bb thread thr_j89pegv8tg

@trotterdylan
trotterdylan merged commit 8c115f7 into main Oct 27, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-88-ended-rows-as-effort-rows-thr_udppxyk3cg branch October 27, 2026 17:36
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved db11a63, checks green; since then: docs list every ended-row reason phrase (c884148). merge commit 8c115f7

Merging moves the bb-server pin on bb-gate, builds a new 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_udppxyk3cg

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