2
0
Fork 0

feat: collapse sessions in the session list #41

Merged
aleksei merged 3 commits from feat/collapsible-sessions into main 2026-11-17 21:55:29 +00:00
Owner

Summary

  • Clicking a session name now collapses or expands its window cards.
  • An 11 px chevron next to the name indicates the collapsed state and uses the emphasized border color (border.emphasized, #5c6370). The name is a plain left-aligned click target without a button background, so the header keeps its previous look.
  • Collapsed session ids are persisted in localStorage under mux-portal:collapsed-sessions. The stored set contains collapsed sessions only, so an empty list starts with every session open.
  • A leading NN: prefix in a session name is rendered in the dimmed fg.subtle color, matching the dimmed prefix in the tmux side status.
  • Update the README and adr/ui.md.

Test plan

  • npm run typecheck
  • npm run build
  • Desktop Playwright check: the header has no background (rgba(0, 0, 0, 0)), text is left-aligned, the chevron is 11×11 and renders rgb(92, 99, 112), clicking 01:eve hides its window cards, writes ["$0"] to localStorage and survives a reload; expanding it restores the cards and clears the stored entry.
  • Verified the rendered name colors: name rgb(171, 178, 191), prefix rgb(92, 99, 112).
## Summary - Clicking a session name now collapses or expands its window cards. - An 11 px chevron next to the name indicates the collapsed state and uses the emphasized border color (`border.emphasized`, `#5c6370`). The name is a plain left-aligned click target without a button background, so the header keeps its previous look. - Collapsed session ids are persisted in `localStorage` under `mux-portal:collapsed-sessions`. The stored set contains collapsed sessions only, so an empty list starts with every session open. - A leading `NN:` prefix in a session name is rendered in the dimmed `fg.subtle` color, matching the dimmed prefix in the tmux side status. - Update the README and `adr/ui.md`. ## Test plan - `npm run typecheck` - `npm run build` - Desktop Playwright check: the header has no background (`rgba(0, 0, 0, 0)`), text is left-aligned, the chevron is 11×11 and renders `rgb(92, 99, 112)`, clicking `01:eve` hides its window cards, writes `["$0"]` to localStorage and survives a reload; expanding it restores the cards and clears the stored entry. - Verified the rendered name colors: name `rgb(171, 178, 191)`, prefix `rgb(92, 99, 112)`.
Clicking a session name toggles its window cards. A chevron shows the state and collapsed session ids are persisted in localStorage. A leading NN: prefix is rendered in the dimmed fg.subtle color, matching the tmux side status.
The session name is a plain left-aligned click target without the ghost button background, and the chevron is reduced to 10px. The collapsed-id storage already defaults to an empty set, so every session starts open.
The indicator grows from 10px to 11px and uses the emphasized border color (#5c6370) instead of the foreground color.
aleksei deleted branch feat/collapsible-sessions 2026-11-17 21:55:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/mux-portal!41
No description provided.