fix(webui): an organization's bare address opens its page and the dashboard keeps the system theme (#1873) #1966

Merged
jason.woltje merged 1 commits from sp2-polish into refactor 2026-11-15 06:52:59 +00:00
Owner

Dashboard and organization page polish after single pane slice 1 (#1873, lane sp2).

  • A slashless #/orgs/<id> opens that organization's page. It used to draw the system dashboard.
  • The system dashboard keeps its own theme and no longer follows the last organization opened.
  • A stopped organization's page shows one banner, with the restart action and what can't be read. It showed two.
  • The dashboard row for a stopped organization gives the reason once.
  • "4 agents (0 working)" and "none waiting" stay on one line in the Organizations table.
  • The Active agents status cell no longer prints a stray "?" (its class matched a global glyph rule).

WebUI only: app.js, display.js, workspace.js, shell.css. No server, role, contract or schema change.

Tests: six new tests in tests/single-pane-browser.test.mjs, five red on the base. The sixth (a read in flight at a switch keeps nothing) covers slice 1's guard and fails with the guard removed. One org-switch test updated for one banner. Lane gate 125 files, 988/0. Lead check at d1b01329b: 10 WebUI files run one at a time, 132/0.

Review (fresh Opus 5.5 delegate): approve, no P1 or P2.

Follow-ups:

  • A stopped organization's page has two restart controls, each with its own status line.
  • If the organization page itself fails to load while its bus is down, no bus warning shows.
  • "a restart started on one organization finishes on that organization after a switch" runs close to its 6 s wait limit, on the base too.
Dashboard and organization page polish after single pane slice 1 (#1873, lane sp2). - A slashless `#/orgs/<id>` opens that organization's page. It used to draw the system dashboard. - The system dashboard keeps its own theme and no longer follows the last organization opened. - A stopped organization's page shows one banner, with the restart action and what can't be read. It showed two. - The dashboard row for a stopped organization gives the reason once. - "4 agents (0 working)" and "none waiting" stay on one line in the Organizations table. - The Active agents status cell no longer prints a stray "?" (its class matched a global glyph rule). WebUI only: `app.js`, `display.js`, `workspace.js`, `shell.css`. No server, role, contract or schema change. Tests: six new tests in `tests/single-pane-browser.test.mjs`, five red on the base. The sixth (a read in flight at a switch keeps nothing) covers slice 1's guard and fails with the guard removed. One org-switch test updated for one banner. Lane gate 125 files, 988/0. Lead check at d1b01329b: 10 WebUI files run one at a time, 132/0. Review (fresh Opus 5.5 delegate): approve, no P1 or P2. Follow-ups: - A stopped organization's page has two restart controls, each with its own status line. - If the organization page itself fails to load while its bus is down, no bus warning shows. - "a restart started on one organization finishes on that organization after a switch" runs close to its 6 s wait limit, on the base too.
jason.woltje added 1 commit 2026-11-15 06:52:56 +00:00
- #/orgs/<id> with no page and no trailing slash now opens #/orgs/<id>/organization instead of the
  system dashboard.
- The system dashboard resolves its own appearance (this browser's choice made
  there, else the default) under mosaic-console-appearance-system; it no
  longer shows the theme of the organization opened last.
- A stopped organization's page shows one bus banner: the page's own down
  banner now carries the restart action, and the shell's "Bus unavailable"
  banner hides on that page (display.js paintBus and app.js busDown).
- The dashboard row for a stopped organization no longer repeats "the bus is
  not running" under "bus stopped"; the last start time still shows.
- Organizations table figures keep to one line (white-space, no font change).
- The Active agents status cell was class "st", which picked up the global
  .st::before "?" glyph; it is now ws-st.
- Tests: red-first browser tests for each item, plus the test sp1 lacked: a
  read still in flight at an organization switch keeps nothing.
- org-switch-browser: a stopped organization's page asserts one banner; the
  shell's "Bus unavailable" is checked on its tasks page instead.
jason.woltje merged commit d1b01329bc into refactor 2026-11-15 06:52:59 +00:00
Sign in to join this conversation.