Skip to content

feat(ui): collapse a list on the board to a narrow strip - #4

Open
bchbib wants to merge 1 commit into
eigenpair:mainfrom
bchbib:feat/collapse-lists
Open

bchbib wants to merge 1 commit into
eigenpair:mainfrom
bchbib:feat/collapse-lists

Conversation

@bchbib

@bchbib bchbib commented Dec 1, 2026

Copy link
Copy Markdown

Description

Problem. On a board with several finished lists (I have more than one "Done" list), those columns take a large share of the width while I rarely need to read them. The lists I actually work in end up off-screen and I scroll sideways a lot.

Change. Each list header gets a collapse button. A collapsed list shrinks to a narrow strip (44px, as tall as the board) that shows only

  • the list name, written top to bottom,
  • the number of tickets in it (with the shown/total form while a search is active),
  • an expand button - a click anywhere on the strip expands the list again.

Same idea as "collapse list" in Trello, and the UI counterpart of wipe status folding the done list to a count.

Details

  • Dropping onto a collapsed list works. The strip stays a drop zone: a card dragged over it glows it like any target list, and on release the card goes to the top of that list - there are no cards to aim between, and the top is where you see it when you expand the list. Happy to change this to the end of the list if you prefer.
  • Per user, not shared. Which lists are collapsed is a view preference, stored per board and per browser in localStorage (wipe:collapsed:<project>), the same way watches are. Nothing is written to .wipe/, so no board commits and no change for teammates or agents.
  • A collapsed list renders no cards (one empty element per ticket keeps the drag library's children in step with its items), so collapsing a long list also makes the board lighter.
  • Works in read-only mode (history rewind) and at phone width.

Files: Column.svelte (strip, button, drop handling), Board.svelte (passes the state), new stores/collapsed.ts, one line in stores/board.ts to load the preference with the board.

How I tested (Vite dev UI against wipe serve 1.1.4 on a throwaway board, Windows 11, Chromium):

  • collapse / expand several lists, including an empty one and one with a long name;
  • reload: collapsed lists stay collapsed;
  • drag a card from an open list onto a collapsed one: strip glows, count goes up, the card is first in the list after expanding;
  • drag between open lists still behaves as before;
  • phone width (375px): strips keep their 44px width;
  • svelte-check: 0 errors, 0 warnings; vite build passes.

Not tested: the Tauri desktop shell, touch dragging on a real phone, Safari / Firefox.

Checklist

  • I've described the change and the motivation above
  • Tests were added or updated to cover this change (or N/A, with reason) - N/A: frontend only, and apps/desktop has no test suite; tested by hand as listed above
  • cargo fmt passes with no diff - not run: no Rust files changed
  • cargo clippy --workspace --all-targets -- -D warnings passes - not run: no Rust files changed
  • cargo test --workspace passes - not run: no Rust files changed
  • All .wipe writes still go through wipe-core's deterministic
    serializer (no ad-hoc JSON serialization added) - the preference is browser-local and never touches .wipe/
  • The PR title follows Conventional Commits
    (e.g. feat(cli): add wipe ticket archive command)

🤖 Generated with Claude Code

A board with several finished lists gives them a large share of its width,
although they are rarely read; the lists in use end up off-screen.

Each list header gets a collapse button. A collapsed list is a 44px strip
as tall as the board with its name (written top to bottom), its ticket
count and an expand button; a click anywhere on the strip expands it.

- The strip stays a drop zone: a card dragged onto it glows it like any
  target list and lands at the top of that list (there is no position to
  aim for). The card keeps its shape over the strip and no cards are
  rendered inside a collapsed list.
- Which lists are collapsed is a view preference, kept per board and per
  browser in localStorage like watches. Nothing is written to .wipe/ and
  nothing changes for teammates or agents.
- Works while rewinding history (read-only) and on phones.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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