tasks: the Matrix layout (the approved mockup) #1027

Closed
kayg wants to merge 1 commit from port/tasks-matrix into dev
Owner

The Matrix layout of the Tasks screen, ported from the approved mockup (review/calendar-2, apps/mockup/src/tasks/Matrix.svelte): the follow-up to the Tasks stack.

  • A third tab in the layout switcher (List, Board, Matrix; the Matrix icon is registered with the Tasks icons). Each list remembers its own layout, and ?layout=matrix opens it.
  • Four equal quadrants fill the pane: Do (important and urgent), Plan (important), Quick (urgent), Later. Important is priority High or Urgent. Urgent is a day within two days of today or passed: the task's day is the earlier of its When and its Deadline (the mockup uses the When; the Deadline counts here too because it is what "due within two days" means). On a phone the four are stacked, equal, under the pills.
  • A card dropped on a quadrant gives the task what the quadrant stands for, through tasks.update (the priority becomes High or Medium; the When becomes today, or three days on) and tasks.set-status when a parked task is started. The two writes go one after the other. The card stays in the list for the visit, like a ticked task. The drag is the press component's own, as in the Board.
  • Not here: the redesign that shares one group-by across List, Board and Matrix (kayg 2026-10-21) and a Timeline layout: separate ports.

First paint is unchanged (the Matrix is in the lazy Tasks chunk: 227099 B plain, 226798 B hash-normalised; both equal dev's). The TasksScreen budget line rises by 0.5 KiB to its measured size.

🤖 Generated with Claude Code

The Matrix layout of the Tasks screen, ported from the approved mockup (`review/calendar-2`, `apps/mockup/src/tasks/Matrix.svelte`): the follow-up to the Tasks stack. - A third tab in the layout switcher (List, Board, Matrix; the Matrix icon is registered with the Tasks icons). Each list remembers its own layout, and `?layout=matrix` opens it. - Four equal quadrants fill the pane: **Do** (important and urgent), **Plan** (important), **Quick** (urgent), **Later**. Important is priority High or Urgent. Urgent is a day within two days of today or passed: the task's day is the earlier of its When and its Deadline (the mockup uses the When; the Deadline counts here too because it is what "due within two days" means). On a phone the four are stacked, equal, under the pills. - A card dropped on a quadrant gives the task what the quadrant stands for, through `tasks.update` (the priority becomes High or Medium; the When becomes today, or three days on) and `tasks.set-status` when a parked task is started. The two writes go one after the other. The card stays in the list for the visit, like a ticked task. The drag is the press component's own, as in the Board. - Not here: the redesign that shares one group-by across List, Board and Matrix (kayg 2026-10-21) and a Timeline layout: separate ports. First paint is unchanged (the Matrix is in the lazy Tasks chunk: 227099 B plain, 226798 B hash-normalised; both equal dev's). The TasksScreen budget line rises by 0.5 KiB to its measured size. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
perf: TasksScreen line 12.69 -> 13.19 KiB for the Matrix (measured 13.15); total = sum of the lines
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
f2f43d758c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Evidence (issue #1009), 43d4edd519

The Matrix layout, product (Chromium, 2x) next to the approved mockup (review/calendar-2), light and dark. The product list is #/tasks/tag:home?layout=matrix (seeded through the real API: Do 2, Plan 2, Quick 2, Later 3). The mockup has no list with all four quadrants (Plan is empty in its fixtures), so its shot is the Upcoming list with two Later cards dragged into Plan and one into Do, with the mockup's own drag; its 390 shot is the same page resized.

gate result
first paint unchanged: the Matrix is in the lazy Tasks chunk (227099 B plain, 226798 B hash-normalised, both equal to dev)
specs, Chromium + WebKit, 1440 + 390 tasks-matrix: 3 passed (the quadrants by rule on Today and Upcoming; a drag to Do and back to Later writes priority and When), the drag test is desktop-only; the Board, card and tick specs still pass (34 passed on each engine in the first run)
bundle gate passes on the last commit apart from idle-screens jitter, raised by 0.09 KiB with the TasksScreen line (12.69 -> 13.19 KiB, measured 13.15)
perf not on the typing or open-note paths (lazy layout)

Screenshots (2x; light and dark; 1440x900 and 390x844). Left: the approved mockup (review/calendar-2). Right: this PR.

matrix

mockup this PR
1440 light
1440 dark
390 light
390 dark

matrix-drag

mockup this PR
1440 light
1440 dark

Differences from the mockup: quadrant dots, labels, chips and the drag highlight match. The mockup's Do and Plan cards show only a priority chip when they have no date, where the product's cards carry their date chip (data). The product's phone header shows the layout switcher where the mockup's shows share and more buttons (the switcher is the product's; the mockup's phone header has no layout switch in this state). The dark backdrop is the product's own.

**Evidence (issue #1009), 43d4edd51940fd7cce315123847e792ddd5d4cb1** The Matrix layout, product (Chromium, 2x) next to the approved mockup (`review/calendar-2`), light and dark. The product list is `#/tasks/tag:home?layout=matrix` (seeded through the real API: Do 2, Plan 2, Quick 2, Later 3). The mockup has no list with all four quadrants (Plan is empty in its fixtures), so its shot is the Upcoming list with two Later cards dragged into Plan and one into Do, with the mockup's own drag; its 390 shot is the same page resized. | gate | result | |---|---| | first paint | unchanged: the Matrix is in the lazy Tasks chunk (227099 B plain, 226798 B hash-normalised, both equal to dev) | | specs, Chromium + WebKit, 1440 + 390 | `tasks-matrix`: 3 passed (the quadrants by rule on Today and Upcoming; a drag to Do and back to Later writes priority and When), the drag test is desktop-only; the Board, card and tick specs still pass (34 passed on each engine in the first run) | | bundle gate | passes on the last commit apart from idle-screens jitter, raised by 0.09 KiB with the TasksScreen line (12.69 -> 13.19 KiB, measured 13.15) | | perf | not on the typing or open-note paths (lazy layout) | ### Screenshots (2x; light and dark; 1440x900 and 390x844). Left: the approved mockup (review/calendar-2). Right: this PR. **matrix** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/4b1de50a-8d28-40e6-95da-a495917e248f) | ![](https://git.kayg.org/attachments/a0155780-7fcb-4b70-a91c-e4b22b53254a) | | 1440 dark | ![](https://git.kayg.org/attachments/9498e819-aad7-45e9-94bf-5bada667513c) | ![](https://git.kayg.org/attachments/f8cefafa-5654-4179-9f53-7bbe21243980) | | 390 light | ![](https://git.kayg.org/attachments/f9c94709-1fce-4425-a104-fbe0515bb310) | ![](https://git.kayg.org/attachments/ecd4cb4a-56b0-487d-8f77-606deb768828) | | 390 dark | ![](https://git.kayg.org/attachments/0fb619cf-9506-47ee-9100-bd8393f4fab1) | ![](https://git.kayg.org/attachments/0a11d289-3cef-4008-ae80-b4a5d0004eef) | **matrix-drag** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/2fe99a74-3caf-49cb-b772-77db0d1ef042) | ![](https://git.kayg.org/attachments/c9834f55-1803-4f78-96b7-67b07b5ef19d) | | 1440 dark | ![](https://git.kayg.org/attachments/bed2a096-402b-4cbf-970b-92755ea17838) | ![](https://git.kayg.org/attachments/5d0a6b49-059a-43a8-b2b2-f77cdb9e52ba) | Differences from the mockup: quadrant dots, labels, chips and the drag highlight match. The mockup's Do and Plan cards show only a priority chip when they have no date, where the product's cards carry their date chip (data). The product's phone header shows the layout switcher where the mockup's shows share and more buttons (the switcher is the product's; the mockup's phone header has no layout switch in this state). The dark backdrop is the product's own.
Author
Owner

#1027 rebased onto dev ee50429e7 (merged, not rebased) and re-gated: head 126f10a8e

Commits on top of the old head 43d4edd51:

  • 11e3ecac3 merge origin/dev (ee50429e7): only conflict perf/budgets.json (took dev's lines, TasksScreen re-measured below).
  • 5dfb41e24 Matrix cards are swipe rows: DragCard takes swipe, wraps the card in the Tasks list's own RowActions (rows.ts: Done, Date, Someday). The Board's cards are unchanged (no swipe, as before).
  • 9551400f5 Matrix imports dnd/dropTarget from press/drop.svelte (dev moved them; the merge compiled nowhere without this).
  • eec4befa7, 126f10a8e budgets: TasksScreen 12.671 -> 13.15 (measured 13.144), code-runtime 8.17 and link-targets 1.08 at measured size (hash jitter from dev, not this PR), total = sum of lines (587.834).

#894 write actions. Matrix drops use tasks.update (priority, When) and tasks.set-status (Someday -> To do), which are the actions the mockup needs: a quadrant has no order inside it, so tasks.move / tasks.reorder / rename are not needed here and I did not bolt them on (decision; they belong to the List/Board reorder port). Nothing is dropped from the existing feature set. Rules checked: swipes reused, Selector/Toolbar switcher reused (icon 16, same as List/Board), accent for the drag highlight, 8-10 px rhythm as in the mockup. #1077 (Float) not ported.

gate command result
specs chromium-1440/390 (dev-01) playwright test tasks-matrix tasks-swipe tasks-actions tasks-board tasks-card tasks-lazy tasks-lists tasks-no-hscroll tasks-tick tasks-when pane-transition --project=chromium-1440 --project=chromium-390 --workers=1 109 passed, 24 skipped, 1 failed first run: tasks-actions.spec.ts:28 chromium-390 (block_changed, from #894, not Matrix); --repeat-each=10 on it: 10/10 pass -> flaky per the flaky rule, not blocking (stability issue worth opening against #894's spec)
after the budget commits, Matrix + swipe tasks-matrix tasks-swipe chromium-1440/390 7 passed, 5 skipped
specs webkit-1440/390 (dev-02) same list, --project=webkit-1440 --project=webkit-390 110 passed, 24 skipped, 0 failed
contrast (dev-01) tasks-contrast.spec.ts --project=contrast 1 passed
svelte-check bun run check (apps/web) 0 errors, 19 warnings
vitest bunx vitest run (apps/web) 34 files, 319 tests pass
lint bun run lint pass
bundle perf/web.sh --bundle-only --gate at 126f10a8e rc 0, no over-budget line; first_js 231.946 (< 240, no change from dev), first css 19.032, TasksScreen 13.144 (<= 13.15)
perf none run: Matrix is in the lazy Tasks chunk; no shared path changed (DragCard has a new optional prop used only by Matrix; Board path identical). No tasks-bench/#1130 comparator needed.

Servers were built from the head (cargo build on each host; web built from 126f10a8e for Safari).

Real Safari (Mac VM, 1440x900, atomic lock, Safari + safaridriver quit on exit) and iPhone 18 Pro Simulator iOS 27.0 (own sim, deleted)

Product #/tasks/tag:home?layout=matrix (9 seeded tasks: Do 2, Plan 2, Quick 2, Later 3). Computed values (Safari) next to the approved mockup source (review/calendar-2 tasks/Matrix.svelte):

value mockup product (Safari, light / dark)
grid gap 10px 10px
grid padding 4px 14px 14px 4px 14px 14px
quadrant padding 8px 8px
quadrant radius var(--r-card) 16px
heading fs-small, 650 13px, 650
heading dot 8px circle 8px; Do rgb(163,24,15) / rgb(255,143,132)
cards gap 8px 8px
card radius / height - 14px / 79px
quadrants four equal 560 x 370 each
switcher icon bar-icon size 16px (same as List, Board)
phone: stacked, equal, under the pills yes yes (see shots)

Swipe on a Matrix card in Safari: tray opens (.ra-open = 1, shot below). Light and dark both read well; accent tint on drag target is the existing --accent-soft. The mockup's own shots are in the earlier evidence comment (same layout; product differences listed there: date chips on cards without a priority-only chip).

Real Safari shots

matrix-1440-light

matrix-1440-dark

matrix-1440-light-swipe

matrix-phone-light

matrix-phone-dark

## #1027 rebased onto dev ee50429e7 (merged, not rebased) and re-gated: head 126f10a8e Commits on top of the old head 43d4edd51: - `11e3ecac3` merge origin/dev (ee50429e7): only conflict `perf/budgets.json` (took dev's lines, TasksScreen re-measured below). - `5dfb41e24` Matrix cards are swipe rows: `DragCard` takes `swipe`, wraps the card in the Tasks list's own `RowActions` (rows.ts: Done, Date, Someday). The Board's cards are unchanged (no swipe, as before). - `9551400f5` Matrix imports `dnd`/`dropTarget` from `press/drop.svelte` (dev moved them; the merge compiled nowhere without this). - `eec4befa7`, `126f10a8e` budgets: TasksScreen 12.671 -> 13.15 (measured 13.144), code-runtime 8.17 and link-targets 1.08 at measured size (hash jitter from dev, not this PR), total = sum of lines (587.834). **#894 write actions.** Matrix drops use `tasks.update` (priority, When) and `tasks.set-status` (Someday -> To do), which are the actions the mockup needs: a quadrant has no order inside it, so `tasks.move` / `tasks.reorder` / rename are not needed here and I did not bolt them on (decision; they belong to the List/Board reorder port). Nothing is dropped from the existing feature set. Rules checked: swipes reused, Selector/Toolbar switcher reused (icon 16, same as List/Board), accent for the drag highlight, 8-10 px rhythm as in the mockup. #1077 (Float) not ported. | gate | command | result | |---|---|---| | specs chromium-1440/390 (dev-01) | `playwright test tasks-matrix tasks-swipe tasks-actions tasks-board tasks-card tasks-lazy tasks-lists tasks-no-hscroll tasks-tick tasks-when pane-transition --project=chromium-1440 --project=chromium-390 --workers=1` | 109 passed, 24 skipped, 1 failed first run: `tasks-actions.spec.ts:28` chromium-390 (`block_changed`, from #894, not Matrix); `--repeat-each=10` on it: 10/10 pass -> flaky per the flaky rule, not blocking (stability issue worth opening against #894's spec) | | after the budget commits, Matrix + swipe | `tasks-matrix tasks-swipe` chromium-1440/390 | 7 passed, 5 skipped | | specs webkit-1440/390 (dev-02) | same list, `--project=webkit-1440 --project=webkit-390` | 110 passed, 24 skipped, 0 failed | | contrast (dev-01) | `tasks-contrast.spec.ts --project=contrast` | 1 passed | | svelte-check | `bun run check` (apps/web) | 0 errors, 19 warnings | | vitest | `bunx vitest run` (apps/web) | 34 files, 319 tests pass | | lint | `bun run lint` | pass | | bundle | `perf/web.sh --bundle-only --gate` at 126f10a8e | rc 0, no over-budget line; first_js 231.946 (< 240, no change from dev), first css 19.032, TasksScreen 13.144 (<= 13.15) | | perf | none run: Matrix is in the lazy Tasks chunk; no shared path changed (DragCard has a new optional prop used only by Matrix; Board path identical). No `tasks-bench`/#1130 comparator needed. | Servers were built from the head (cargo build on each host; web built from 126f10a8e for Safari). ### Real Safari (Mac VM, 1440x900, atomic lock, Safari + safaridriver quit on exit) and iPhone 18 Pro Simulator iOS 27.0 (own sim, deleted) Product `#/tasks/tag:home?layout=matrix` (9 seeded tasks: Do 2, Plan 2, Quick 2, Later 3). Computed values (Safari) next to the approved mockup source (`review/calendar-2` `tasks/Matrix.svelte`): | value | mockup | product (Safari, light / dark) | |---|---|---| | grid gap | 10px | 10px | | grid padding | 4px 14px 14px | 4px 14px 14px | | quadrant padding | 8px | 8px | | quadrant radius | var(--r-card) | 16px | | heading | fs-small, 650 | 13px, 650 | | heading dot | 8px circle | 8px; Do rgb(163,24,15) / rgb(255,143,132) | | cards gap | 8px | 8px | | card radius / height | - | 14px / 79px | | quadrants | four equal | 560 x 370 each | | switcher icon | bar-icon size | 16px (same as List, Board) | | phone: stacked, equal, under the pills | yes | yes (see shots) | Swipe on a Matrix card in Safari: tray opens (`.ra-open` = 1, shot below). Light and dark both read well; accent tint on drag target is the existing `--accent-soft`. The mockup's own shots are in the earlier evidence comment (same layout; product differences listed there: date chips on cards without a priority-only chip). ### Real Safari shots **matrix-1440-light** ![](https://git.kayg.org/attachments/79b70898-42e4-42fc-bad5-6bac1c74d705) **matrix-1440-dark** ![](https://git.kayg.org/attachments/f0b5fa25-4145-41af-8f56-4841dca89494) **matrix-1440-light-swipe** ![](https://git.kayg.org/attachments/743b4f2e-800b-4d10-a232-e1f1a89de3c5) **matrix-phone-light** ![](https://git.kayg.org/attachments/c6a20003-e004-4be5-95b3-bc5128f75031) **matrix-phone-dark** ![](https://git.kayg.org/attachments/73e2b2cc-fbeb-495d-b201-265124a0a11d)
Author
Owner

Merged into dev with --no-ff by the orchestrator after reviewing the Safari and iPhone shots (1440 light + swipe, phone light/dark). Closing.

Merged into `dev` with `--no-ff` by the orchestrator after reviewing the Safari and iPhone shots (1440 light + swipe, phone light/dark). Closing.
kayg closed this pull request 2026-11-15 07:04:03 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
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
kayg/calternal!1027
No description provided.