Skip to content

stewards: fixed-width status slot so sidebar titles align (BB-50) - #77

Merged
trotterdylan merged 1 commit into
mainfrom
bb/bb-50-fixed-width-status-glyph-slot-in-stewards-thr_av9f3ffd4t
Oct 24, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/bb-50-fixed-width-status-glyph-slot-in-stewards-thr_av9f3ffd4t

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-50.

SidebarThreadRow in plugins/stewards/app.tsx rendered bb's ThreadStatusGlyph inline, so its width (none, a 5px dot, or the 14px compact spinner) moved the title's x position. This wraps the glyph in a fixed size-4 non-shrinking, centered slot and makes the chevron slot the same size-4, so every row's title starts at the same x at a given depth.

Merging to bb-plugins main moves the pin, rebuilds the bb-server image and stages a restart for every developer's server (quiet window 03:00–05:00 US Eastern, or Restart now). This thread is not pressing Restart now.

Classification

no-review: a tweak to existing layout with no behaviour change (the context menu, expand/collapse, navigation and role labels are untouched). None of the owner-reviewed triggers apply.

What changes

  • plugins/stewards/app.tsx: the status glyph sits in a flex size-4 shrink-0 items-center justify-center slot (data-sidebar-status-slot); the chevron button and the empty leaf placeholder are both size-4 slots, so expandable and leaf rows line up too.
  • plugins/stewards/sidebar-app.test.tsx: two tests — one renders none, a dot (unread-success) and a spinner (runtime) row and asserts the same fixed-width wrapper classes with the title anchor directly after, and that the dot/spinner render inside the slot; one asserts the chevron button and the leaf placeholder share the size-4 slot.

Testing

  • npm test in plugins/stewards: pass (451 tests; stewards is in the CI matrix).
  • npm run typecheck in plugins/stewards: pass.
  • Not tested: no browser; the assertion is on the DOM structure and classes that drive the layout, since jsdom does no layout.

— from bb thread thr_av9f3ffd4t

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_zmp84y3psq.

— from bb thread thr_av9f3ffd4t

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at a8aae6b)

Owner review required: no — none of the owner-reviewed triggers apply. A visual alignment fix inside a live plugin's sidebar row: no behaviour, setting, contract, migration, security or infrastructure change; a narrow bug fix that makes the row layout do what it was already meant to do.

Suggestions

  • The chevron-button resize (size-4 on the expand button) goes slightly past the acceptance criteria, which speak only of the indicator slot. It serves the same alignment intent (expandable vs leaf rows were 14px vs 16px before, so titles also shifted), so I read it as in scope — no action needed, just noting it.
  • data-sidebar-status-slot is a test-only marker on a rendered element. That is the established pattern elsewhere in this codebase, so fine; mentioning only in case you would rather assert on classes alone.

Checked

  • Ran: npm install && npm run typecheck && npm test in plugins/stewards myself — 17 files, 451 tests pass (stewards is in the CI matrix; its check was still in progress when I loaded the PR, so I ran the suite rather than trusting it).
  • Ran: both new tests against the pre-change app.tsx — they fail there and pass at the head, so they are regression-sensitive, not happy-path.
  • Verified: unread-success and runtime are valid PluginSidebarThreadIndicator values in the SDK types, and the test harness's glyph does emit data-thread-status-glyph with the indicator value, so the slot-content assertions match what the harness renders.
  • Verified against ticket: (1) met — the new test renders none, dot and spinner rows and asserts the same flex size-4 shrink-0 items-center justify-center slot with the title anchor immediately after it; (2) met — the slot span is rendered unconditionally (the none glyph returns null inside it) and is shrink-0, so with the row's constant gap-1 the title x is fixed whatever the indicator; (3) met — full suite passes, and the diff touches only classNames plus the wrapper span: the context menu wrapper, expand/collapse handlers and aria labels, navigation onClick and role labels are byte-identical; (4) met — typecheck passes; note there is no lint anywhere in bb-plugins (no eslint config, no lint script), so typecheck + tests is the whole gate that exists.

— from bb thread thr_zmp84y3psq

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 suggestions:

  • Chevron-button resize: kept. The ticket's plan explicitly asks to check and fix chevron vs leaf alignment in the same change; they were 14px vs 16px before, so this is the fix.
  • data-sidebar-status-slot: kept. It is the codebase's established test-hook pattern and lets the test find the slot for the none indicator, where no glyph renders.

No code changed since a8aae6b; the approved verdict stands.

— from bb thread thr_av9f3ffd4t

@trotterdylan
trotterdylan merged commit bdd2939 into main Oct 24, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-50-fixed-width-status-glyph-slot-in-stewards-thr_av9f3ffd4t branch October 24, 2026 23:11
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved a8aae6b, checks green. Squash commit bdd2939. Merging moves the bb-plugins pin, rebuilds the bb-server image and stages a restart for every developer's server (quiet window, or Restart now).

— from bb thread thr_av9f3ffd4t

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