Skip to content

stewards: drop the sidebar needs badge and enlarge the project controls (BB-57) - #83

Merged
trotterdylan merged 1 commit into
mainfrom
bb/bb-57-drop-sidebar-needs-badge-enlarge-project-s-thr_zgbmd4s2ap
Oct 25, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/bb-57-drop-sidebar-needs-badge-enlarge-project-s-thr_zgbmd4s2ap

Conversation

@trotterdylan

@trotterdylan trotterdylan commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Implements BB-57. The stewards sidebar's top row dropped its redundant summed needs badge — the "Needs you" section already shows the count and each <option> carries its project's count — and the project <select> and New thread button grew into 32px controls with real padding.

Merging this moves the bb-server pin and stages a restart for every developer. Every server, including the one running this thread, restarts when its owner presses Restart now or in the quiet window.

Classification

no-review: removes a redundant badge and resizes two controls; no cross-repo contract, identity, Dockerfile plugin list, or production infrastructure is touched.

What changes

  • plugins/stewards/app.tsx: ProjectTabs drops the summed NeedsBadge element and the total sum, and NeedsBadge is deleted (no other user). The doc comment no longer mentions it. Option labels keep Name (n) when n > 0 and Name when 0.
  • The <select> is h-8 px-3 (still min-w-0 flex-1); the New thread button is a size-8 square with a centred size-4 icon (the host's sidebar New thread button uses a 16px icon), keeping aria-label="New thread", shrink-0, onClick={onNewThread} and the same hover/border classes. Row padding px-1 py-1 → px-2 py-1.5.
  • plugins/stewards/app.test.tsx: the badge assertions become "no badge renders", the per-project count assertions stay, and a new test checks the h-8 / size-8 sizing.

Testing

  • npm test in plugins/stewards: pass (505 tests; also quality_checks (stewards) in the CI matrix).
  • npm run typecheck in plugins/stewards: pass.
  • Not tested: the visual balance in a real sidebar; jsdom checks the classes only.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_4mta87k5pb.

— from bb thread thr_zgbmd4s2ap

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 2b3c1c4)

Owner review required: no — none of the owner-reviewed triggers apply. The change deletes a redundant display element (the summed badge, whose information survives in each option's count and the "Needs you" section) and resizes two sidebar controls; that is a tweak, not a removed feature. No cross-repo contract (source-contract.ts untouched), no identity or access code, no Dockerfile plugin-list edit, no production infrastructure, migration, secret or dependency. That merging moves the bb-server pin and stages a restart is not itself a trigger.

Suggestions

  • The PR body's Testing section says the suite is "not in the CI matrix" — it is: plugins/stewards is in the matrix in .github/workflows/plugins.yaml, and quality_checks (stewards) ran and passed on this head. Harmless, but worth correcting before merge so the record is right.

Checked

  • Ran: npm test in plugins/stewards — 505 tests, 18 files, pass (also ran npm run typecheck — pass). Confirming CI: quality_checks (stewards) green on the head.
  • Verified against ticket:
    • Criterion 1 (no summed badge beside the dropdown): met — NeedsBadge and the total sum are gone from ProjectTabs; the updated tests assert no "N waiting on you" label renders for both compact and non-compact viewports.
    • Criterion 2 (labels Name (n) when n > 0, Name when 0): met — option rendering unchanged, covered by "Acme (2)", "Beta (1)" and bare "Beta" assertions.
    • Criterion 3 (select h-8, button 32×32): met — select is h-8 ... px-3, button is size-8 square with a centred size-4 icon; new test asserts both class sets.
    • Criterion 4 (aria-label="New thread", onClick={onNewThread} kept): met, both unchanged.
    • Criterion 5 (NeedsBadge removed if unused, tests updated, app.test.tsx + typecheck pass): met — no reference to NeedsBadge remains anywhere in the plugin; tests updated; both pass above.
  • Out-of-scope check: the diff touches only plugins/stewards/app.tsx and app.test.tsx — the "Needs you" block, board page and host button are untouched.
    _— from bb thread

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1, addressed:

  • Suggestion (Testing section claimed the stewards suite is not in the CI matrix): fixed — corrected the PR body; plugins/stewards is in .github/workflows/plugins.yaml and quality_checks (stewards) ran green. No code change, head still 2b3c1c4.

— from bb thread thr_zgbmd4s2ap

@trotterdylan
trotterdylan merged commit d39ebd9 into main Oct 25, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-57-drop-sidebar-needs-badge-enlarge-project-s-thr_zgbmd4s2ap branch October 25, 2026 21:04
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved 2b3c1c4 (round 1), checks green.

— from bb thread thr_zgbmd4s2ap

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