Skip to content

fix(web): sidebar session count + minimal auto-hiding scrollbars - #19

Merged
PouyanJay merged 1 commit into
mainfrom
fix/sidebar-session-count-and-scrollbars
Jun 30, 2026
Merged

fix(web): sidebar session count + minimal auto-hiding scrollbars#19
PouyanJay merged 1 commit into
mainfrom
fix/sidebar-session-count-and-scrollbars

Conversation

@PouyanJay

Copy link
Copy Markdown
Owner

Two small UI fixes from the command-center dashboard.

1. "Sessions" badge showed 0 with sessions present

The sidebar badge was wired to the live active tally (running + awaiting) sourced only from the channel map, but DONE sessions live in the persisted registry (data.sessions) — which only the dashboard page loaded, not the shell. So the sidebar always saw 0.

  • Move listSessions into the (app) layout load so the shell sees the registry (one fetch; the dashboard page now reads data.sessions from merged layout data).
  • Badge the union of registry + live session IDs — exactly the set the dashboard lists, so the count matches the page.
  • The system bar keeps its live active-agent tally (that signal is correct as-is).

2. Inner scrollbar too heavy / always visible

App-wide minimal, auto-hiding scrollbars: the thumb is transparent at rest and resolves only while the pointer is over (or focus is within) the scroll region (~4px visible inside a 10px track). Driven by new --scrollbar-thumb / --scrollbar-thumb-hover tokens that re-theme under the light theme; covers WebKit/Chromium and Firefox.

Gates

  • pnpm --filter web check — 0 errors
  • pnpm --filter web lint — clean
  • pnpm --filter web test — 217 passing
  • Prettier — clean

Note

The registry list now refreshes on full navigation rather than every client-side return to the dashboard, but the live WS overlay keeps statuses current and newly-launched sessions appear immediately via the live map.

The sidebar "Sessions" badge was wired to the live active tally
(running + awaiting) sourced only from the channel map, so a user with
only DONE sessions in the persisted registry saw 0. Move the session
registry load into the (app) layout so the shell sees it, and badge the
union of registry + live session IDs — the exact set the dashboard
lists, so the count matches the page. The dashboard page now reads
data.sessions from merged layout data (one fetch); the system bar keeps
its live active-agent tally.

Also replace the default heavy/always-on scrollbars with an app-wide
minimal, auto-hiding treatment: the thumb is transparent at rest and
resolves only while the pointer is over (or focus is within) the scroll
region, ~4px inside a 10px track. Driven by new --scrollbar-thumb
tokens that re-theme under the light theme; covers WebKit and Firefox.
@PouyanJay
PouyanJay merged commit 7a6cf5c into main Jun 30, 2026
2 checks passed
@PouyanJay
PouyanJay deleted the fix/sidebar-session-count-and-scrollbars branch June 30, 2026 08:30
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