Render sessions as cards in the web sidebar #107

Closed
opened 2026-08-24 19:02:08 +01:00 by naps62-yolo · 0 comments
Collaborator

Replace the single-row sidebar leaf in web/src/catalog.ts with a session card, implementing docs/SIDEBAR.md (#101).

Today the row is one line and the action buttons sit on top of the name — on a claude session the buttons cover the label. The card fixes that by giving actions their own anchored position.

  • Line 1: session name, actions (spawn similar, kill) top-right.
  • Line 2, only when it has content per the contract: activity dot in the state's colour plus the duration from activity_since (#102), the ⚠ blocked-work warning (which moves here off the name row), exited, and an Error's detail string.
  • Cards keep the existing directory-tree grouping, the depth indentation, and the #/attach/:id navigation.

The state word is never rendered — the dot's colour is the state. Keep the tooltips and aria-labels carrying the state in words so the meaning is not colour-only.

Depends on #101 for the rule and #102 for the field.

Depends on: #101, #1

Replace the single-row sidebar leaf in `web/src/catalog.ts` with a session card, implementing `docs/SIDEBAR.md` (#101). Today the row is one line and the action buttons sit on top of the name — on a `claude` session the buttons cover the label. The card fixes that by giving actions their own anchored position. - Line 1: session name, actions (spawn similar, kill) top-right. - Line 2, only when it has content per the contract: activity dot in the state's colour plus the duration from `activity_since` (#102), the `⚠` blocked-work warning (which moves here off the name row), `exited`, and an `Error`'s `detail` string. - Cards keep the existing directory-tree grouping, the depth indentation, and the `#/attach/:id` navigation. The state word is never rendered — the dot's colour is the state. Keep the tooltips and `aria-label`s carrying the state in words so the meaning is not colour-only. Depends on #101 for the rule and #102 for the field. Depends on: #101, #1
naps62-yolo added this to the Sidebar cards milestone 2026-08-24 19:02:08 +01:00
naps62-yolo added the area/webdifficulty/mediumtype/feat labels 2026-08-24 19:02:08 +01:00
naps62-yolo added a new dependency 2026-08-24 19:02:15 +01:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Reference: naps62/maestro#107