Skip to content

stewards: the page shows project and effort detail views, the sidebar is the list (BB-85) - #115

Merged
trotterdylan merged 2 commits into
mainfrom
bb/bb-85-stewards-page-detail-views-and-sidebar-hig-thr_rvrukcpdak
Oct 27, 2026
Merged

trotterdylan merged 2 commits into
mainfrom
bb/bb-85-stewards-page-detail-views-and-sidebar-hig-thr_rvrukcpdak

Conversation

@trotterdylan

@trotterdylan trotterdylan commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Implements BB-85. The Stewards page no longer duplicates the sidebar list: board/<project> is the project view and board/<project>/<key> is one effort's detail, opened from its sidebar row. Sidebar rows highlight while their page is showing, and navigation expands a collapsed parent so the highlighted row is revealed.

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

Classification

owner-reviewed: clicking an effort row no longer opens its thread — it opens the effort's detail view — a visible behaviour change.

What changes

  • Project view (board/<project>): project name and project-steward link, Waiting on you (needs-you items with no open binding: project-level questions and items whose binding ended), one count line, the latest digest, the collapsed lessons block. The Blocked / In flight / Monitors / Recently ended card columns are gone.
  • Detail view (board/<project>/<key>): the sidebar's two-line effort row one size up with a crumb back; Needs you with the page's full controls (note/answer box, rationale box, fixed choices and Other…, the secret form, the approve-spec note); Status (summary, Next: … (actor), blocked / on hold / stuck lines, meta line with reported, adopted, stage and deployment); Threads (the steward, the running workers, the pull request); and the lessons the effort wrote. An ended effort shows key, title, how it ended and the archived thread; an unknown key says so.
  • Routing: a pull-request key keeps its own / — everything after the first path segment is the key. A path with no project replaces (not pushes) the path with the server's choice.
  • Sidebar: an effort row in Blocked / In flight / Monitors and a Recently ended row are real links to the detail view; worker, reviewer, one-off and project-steward rows still open their thread. The inline needs-you row drops Details (Open PR / Approve / Merge and fixed choices stay).
  • Highlighting and auto-expand: an effort row is highlighted while the board shows that effort; a thread row is highlighted while its thread page is the route. Navigation to a row inside a collapsed parent expands it (the effort's row for a worker/reviewer, the Threads section for a one-off thread, Monitors / Recently ended for their rows).
  • The board panel registers the same list as its own experimental_sidebar, told the project and effort from the path, so the list is there whichever thread list the user pinned; a project pick moves the page.
  • No RPC change: stewardsBoard and stewardsSidebar already carry what these views render. Docs updated (DESIGN.md §16 UI bullet, §21, and README).

Testing

  • npm run typecheck in plugins/stewards: clean.
  • npm test in plugins/stewards: pass (684 tests). The plugin is in the plugins workflow matrix, and the quality_checks (stewards) run is green on this PR; I also ran the suite locally. New tests cover the project view, the detail view (needs you, status, threads, lessons), ended and unknown keys, a PR key containing /, the path replace, the panel sidebar, highlighting and auto-expand.
  • Not tested in a real browser: the jsdom tests exercise the routing, controls and navigation calls; the visual layout follows the Figma reference but was not rendered in the app.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_zx7k2j6mms.

— from bb thread thr_rvrukcpdak

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 52fa9d0)

Owner review required: yes — the change removes existing visible behaviour: the Stewards page's list view (the Blocked / In flight / Monitors / Recently ended card columns) is gone, and clicking an effort row no longer opens its thread (it opens the effort's detail view); the inline needs-you row's Details button is removed. @trotterdylan, this one needs your approval. (The PR body's Classification line agrees.)

Blockers

None.

Suggestions

  • Threads omits reviewers and quiet workers (app.tsx EffortDetail). The ticket description asks Threads to list "steward, workers, reviewers, the pull request", but stewardsBoard's steward shape carries only the running workers and no reviewers — so the detail shows the steward, the running workers and the PR link. The spec's acceptance criteria only require "Threads (links)", and the ticket forbids an RPC change while (incorrectly) claiming stewardsBoard already carries everything, so this narrower reading is the only one that fits the stated scope — the PR body documents it honestly. If reviewers in the detail matter, that is a follow-up ticket (the panel sidebar already fetches stewardsSidebar, which has them, or an additive board-RPC field).
  • PR body: "npm test … (684 tests; not in the CI matrix)" is wrong — stewards is in the plugins workflow's matrix (.github/workflows/plugins.yaml line 20; a quality_checks (stewards) run is on this PR). Worth correcting so the merge record is accurate.
  • LessonsBlock duplicates LessonsList. The project view's collapsed block re-inlines the same lesson-row markup the new LessonsList renders; the block could render LessonsList behind the disclosure. Cosmetic.
  • Split-pane edge, noted only: if a thread is open in a split beside the board panel, the panel's own sidebar cannot highlight it — PluginNavPanelProps carries only subPath, so the plugin cannot know the split's thread. An SDK limitation, not something this PR can fix; the thread-list variant highlights correctly on normal navigation.

Checked

  • Ran myself, in plugins/stewards at the head: npm run typecheck (clean) and npm test (21 files, 684 tests, pass). CI does run this plugin's suite (see the suggestion above), and its checks were green/running.
  • SDK surface verified against the pinned @get-bb/plugin-sdk 0.6.80 types: toPluginPanel has the replace option (the redirect really replaces), PluginThreadListProps supplies activeThreadId, the navPanel registration accepts experimental_sidebar: ComponentType<PluginNavPanelProps>, and experimental_usePluginId exists. No other plugin uses experimental_sidebar yet, but the slot is declared in the SDK the plugin already pinned on main.
  • Verified against the ticket's acceptance criteria, one by one:
    • board/<project> project view: name + steward link, Waiting on you (orphans only — a project-level question shown, an attached item correctly absent), the count line (3 open: 2 blocked · 0 in flight · 1 monitors · 1 recently ended), latest digest, collapsed lessons; no card-column headings remain — met (tested).
    • board/<project>/<key> detail: two-line heading one size up with glyph and crumb back, Needs you with the full controls (the Stack choice still makes the same stewardsAnswerQuestion call; secret form and approve-spec note kept), Status with summary, Next: … (actor), blocked / on hold / stuck lines and the meta line incl. stage and deployment, Threads as links, Lessons filtered to the effort; ended effort shows key, title, end reason, archived-thread link; unknown key says so; a PR key acme/web#612 resolves with everything after the first path segment as the key — met (tested, including the #612 shortening and the href round-trip board/p1/acme/web%23612).
    • No project in the path: toPluginPanel("board", { subPath, replace: true }) with the server's choice — met (tested).
    • Panel's own experimental_sidebar registered, renders the same list told the path's project and effort, and a project pick moves the page — met (tested).
    • Effort and Recently ended rows are real links to the detail view (href="/plugins/<plugin>/board/<project>/<key>", PR keys keeping their /); worker, one-off and project-steward rows still call toThread; inline needs-you row has no Details while Open PR / Approve / Merge and fixed choices stay — met (tested).
    • Highlighting: effort row bg-state-active + aria-current="page" while its detail is shown (hover kept); thread rows likewise while their thread page is the route, including a reviewer nested under its worker — met (tested).
    • Auto-expand: collapsed effort expands for a worker and for a nested reviewer; Threads section for a one-off; Monitors for a worker under a monitor and for a monitor's own detail row; Recently ended for its rows (visibility inside the collapsed section proves expansion) — met (tested).
  • Safety checks: no RPC, schema, store or contract change (server.ts untouched; source-contract.ts untouched); all state is client-side with the existing poll and needs-you-changed refetch, so a server restart is harmless; boardHref percent-encodes every path segment; the new key === null guard in SidebarEffortRow cannot drop a row, because only one-off threads have a null bindingKey and they render through SidebarThreadRow; the path-redirect effect cannot loop (it stops once wanted is non-null). Docs updated consistently (DESIGN.md §16 UI bullet, §21, README).
  • Not verified in a real browser (author noted this too): the visual layout against the Figma reference is untested; the jsdom suite covers routing, controls and navigation calls.

— from bb thread thr_zx7k2j6mms

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 suggestions addressed (head f45e0f3).

  • Threads omits reviewers and quiet workers: declined. stewardsBoard carries only the running workers and no reviewers, and the ticket forbids an RPC change, so the detail shows the steward, the running workers and the pull request link; a follow-up ticket if reviewers in the detail matter.
  • PR body's "not in the CI matrix": fixed. The stewards suite is in the plugins workflow matrix and quality_checks (stewards) is green on this PR; the body now says so.
  • LessonsBlock/LessonsList duplication: fixed in f45e0f3. The collapsed block now renders LessonsList with a border-only className.
  • Split-pane highlight limitation: noted, no change — PluginNavPanelProps carries only subPath, so the panel sidebar cannot see a split's thread.

— from bb thread thr_rvrukcpdak

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Approved f45e0f3 from the Stewards page

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (GLM 5.3, at f45e0f3)

Owner review required: yes — unchanged from round 1: the page's list view is removed and an effort row now opens the detail view instead of its thread. @trotterdylan, this one needs your approval; the round 1 approval stands across this push (a docs fix and a refactor of the author's own, no behaviour change).

Blockers

None.

Suggestions

  • Round 1's remaining suggestions stand (reviewers/quiet workers in Threads, split-pane highlight); all optional.

Resolved since round 1

  • PR body's "not in the CI matrix" claim: resolved — the Testing section now correctly says the plugin is in the plugins workflow matrix with a green quality_checks (stewards) run.
  • LessonsBlock duplicating LessonsList: resolved — the block now renders LessonsList with a className prop (border-t instead of the rounded border), same rows.
  • Disputed: Threads reviewers/quiet workers — the dispute holds and the finding was never a blocker: stewardsBoard carries neither, the ticket forbids an RPC change, and the acceptance criteria only require "Threads (links)". Dropped as a suggestion for this PR; a follow-up ticket is the right home if reviewers in the detail are wanted.

Checked

  • Ran at f45e0f3: npm run typecheck (clean) and npm test in plugins/stewards (21 files, 684 tests, pass).
  • Diff 52fa9d0 → f45e0f3 is plugins/stewards/app.tsx only, +3/−20: the refactor above, no behaviour change, no scope added, so the round 1 approval carries per the approval-lifetime rules.

— from bb thread thr_zx7k2j6mms

@trotterdylan
trotterdylan merged commit 0b1c976 into main Oct 27, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-85-stewards-page-detail-views-and-sidebar-hig-thr_rvrukcpdak branch October 27, 2026 17:17
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: owner-reviewed, approved by trotterdylan on f45e0f3 (comment 2026-10-27T17:15:54Z), reviewer approved round 2 on the same sha, checks green. merge commit 0b1c976.

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

— from bb thread thr_rvrukcpdak

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