Skip to content

fix(dashboard): stabilize scope-banner height across overseer states#1805

Open
jonathanpberger wants to merge 1 commit intogastownhall:mainfrom
jonathanpberger:fix/scope-banner-height-jiggle
Open

fix(dashboard): stabilize scope-banner height across overseer states#1805
jonathanpberger wants to merge 1 commit intogastownhall:mainfrom
jonathanpberger:fix/scope-banner-height-jiggle

Conversation

@jonathanpberger
Copy link
Copy Markdown

@jonathanpberger jonathanpberger commented May 7, 2026

Summary

  • Always render all 5 scope stats in renderCityScopeBanner (was 2 when no overseer, 5 when present)
  • Use "—" placeholder values for unavailable fields when no overseer session exists
  • Add white-space: nowrap to .scope-stat-value to prevent Activity timestamps wrapping to a second line

Closes #1804.

Test plan

  • Existing status panel tests pass (npm run test)
  • New test: renders all five scope stats when no overseer session exists confirms consistent stat count
  • Smoke: dashboard scope banner stays same height with and without overseer session

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Two causes of height jiggle:
1. renderCityScopeBanner rendered 2 stats (no overseer) vs 5 stats
   (overseer present), making the right side change visual width.
2. The Activity stat timestamp could wrap at narrower viewports, making
   that stat taller and the banner grow.

Fix: always render all 5 stats; use "—" placeholders when no overseer is
active. Add white-space: nowrap to .scope-stat-value to prevent wrapping.

Closes gastownhall#1804.

Co-Authored-By: RubyBear (<synthetic>) <noreply@anthropic.com>
@github-actions github-actions Bot added the status/needs-triage Inbox — we haven't looked at it yet label May 7, 2026
@randy-release-manager randy-release-manager Bot added kind/bug Broken behavior priority/p2 Medium — real problem, workaround exists and removed status/needs-triage Inbox — we haven't looked at it yet labels May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Broken behavior priority/p2 Medium — real problem, workaround exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(dashboard): city scope banner jiggles height when overseer session appears/disappears

1 participant