Skip to content

feat(task-board): collapse a lane to a narrow strip - #7881

Merged
viktormarinho merged 3 commits into
mainfrom
feat/task-board-collapsible-lanes
Oct 13, 2026
Merged

viktormarinho merged 3 commits into
mainfrom
feat/task-board-collapsible-lanes

Conversation

@viktormarinho

@viktormarinho viktormarinho commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What is this contribution about?

A lane can be collapsed to a narrow strip, so a long board fits on screen.

  • Collapse. Hovering a lane header shows a collapse button (diagonal arrows pointing in) next to the rules sparkle, with a "Collapse" tooltip.
  • Collapsed lane. It becomes a 44px strip showing the lane icon, its name written vertically and its card count. Hovering it shows an expand button (diagonal arrows pointing out, "Expand").
  • Drops. The strip is still a drop target, so a card dragged onto it moves into the lane.
  • Persistence. Collapsed lanes are kept per person in collapsedTaskBoardLanes (preferences, localStorage), the same way as shownTaskBoardLanes, so they survive a reload.
  • Layout. Grid tracks now come from boardGridColumns: open lanes keep minmax(280px, 1fr), a collapsed lane gets a fixed 44px track, and the hidden-lanes drawer keeps its 280px track. Statuses saved in localStorage that the board no longer has are ignored.
  • Copy. New strings in en and pt-br: Collapse/Recolher and Expand/Expandir, plus aria labels with the lane name.

Independent of #7880 (the new default lanes). It works with either set of lanes.

How did you verify your code works?

  • Unit: config.test.ts covers boardGridColumns with open lanes, a collapsed lane in place, the hidden-lanes track, and a stale collapsed status.
  • E2E (new): task-board-collapse-lane.spec.ts collapses a lane from its header, checks the strip is under 60px wide, reloads and finds it still collapsed, drags a card onto the strip and sees its status change, then expands the lane and finds the card in it. Ran locally twice (--repeat-each=2), both passed.
  • Repo checks: bun run verify (10561 pass, 0 fail) and bun run check are clean.

Screenshots/Demonstration

Hovering a lane shows the collapse button:

Collapse button on hover

Backlog and In Review collapsed; hovering In Review shows Expand:

Collapsed lanes

How to Test

  1. Open the task board and hover a lane header. Click the collapse button (arrows pointing in): the lane becomes a vertical strip with its name and count.
  2. Reload the page. The lane is still collapsed.
  3. Drag a card onto the strip. The card moves into that lane.
  4. Hover the strip and click the expand button (arrows pointing out) to expand it again.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes

Hovering a lane header shows a collapse button. A collapsed lane becomes a
strip with its icon, vertical label and card count, plus an expand button on
hover, and still takes a dropped card. The choice is kept per person in
preferences, like the lanes shown from the hidden drawer.
@viktormarinho
viktormarinho merged commit 75a54c1 into main Oct 13, 2026
33 checks passed
@viktormarinho
viktormarinho deleted the feat/task-board-collapsible-lanes branch October 13, 2026 14:53
decocms Bot pushed a commit that referenced this pull request Oct 13, 2026
PR: #7881 feat(task-board): collapse a lane to a narrow strip
Bump type: minor

- decocms (apps/api/package.json): 4.465.0 -> 4.466.0
- @decocms/native (apps/native/package.json): 4.465.0 -> 4.466.0
- @decocms/e2e (packages/e2e/package.json): 1.102.0 -> 1.103.0

Deploy-Scope: web
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