Mockup: Tasks app and Composer #617

Open
opened 2026-10-19 10:31:28 +00:00 by kayg · 6 comments
Owner

Round 9B mockup (kayg's Tasks + Composer decisions). Page: apps/mockup/tasks.html, branch issue/tasks-composer-mockup. Deep-linkable states and sheet paths are commented below at each deploy.

Round 9B mockup (kayg's Tasks + Composer decisions). Page: `apps/mockup/tasks.html`, branch `issue/tasks-composer-mockup`. Deep-linkable states and sheet paths are commented below at each deploy.
Author
Owner

Deploy 1: https://preview.calternal.cloud/tasks.html (branch issue/tasks-composer-mockup, Tasks items 1–4 and the Composer in; chrome.html files untouched, other site files checked unchanged).

Phone: resize under 760 px or open on a phone. Every state is in the address (tasks.html#/…):

State Link
Today (opens here; phone: back goes to the lists) #/tasks/today
Upcoming (by day, then by month) #/tasks/upcoming
Anytime, Someday, a view, a tag #/tasks/anytime, #/tasks/someday, #/tasks/view:important, #/tasks/tag:home
Phone sidebar screen #/tasks/today?lists=1
Layouts (remembered per list) #/tasks/today?layout=board, ?layout=timeline, ?layout=matrix
A task's note, bar at rest = When · Deadline · Repeat · + #/tasks/today/t2
Bar morphs into a picker (sheet paths: `?prop=when deadline
Typing bar: type in the description; it returns about 1.6 s after you stop #/tasks/today/t2
In a note: checkbox + title + due chip; tap the title to expand #/notes/2026-10-13, ?open=t2
Settings → Editor → Tasks (Show all metadata, Show description) #/settings/editor/tasks
Composer: palette (desktop, ⌘K / Ctrl K, or the sidebar search icon); on a phone the bottom bar's search button morphs into the field #/tasks/today?find=1
Task / event (disabled Calendar hint) / search / note by the whole phrase ?find=1&q=call plumber fri 5, ?find=1&q=lunch with Ana tue 1–2 pm, ?find=1&q=how did I fix the perf vm, ?find=1&q=perf vm notes
Settings results jump to the setting ?find=1&q=accent, ?find=1&q=toolbar
+ opens the Composer as a task the + in the middle header (desktop) or the round + (phone)

Enter creates and clears, ⌘Enter creates and opens, Esc closes. A created task lands at the end of today's journal (#/notes/2026-10-13, highlighted once) and in its list.

Perf (Chromium, CDP, CPU x4, software raster so frame times here are not a GPU's; script/style/layout are real): keystroke script median 3.2 ms / p95 10.1 ms at x4 (≈0.8 / 2.5 ms real). Torph was 160 ms of script per phrase with forced layouts, so the intent line now uses an own compositor-only morph (composer/LineMorph.svelte). iPhone simulator numbers follow in the next comment.

**Deploy 1: https://preview.calternal.cloud/tasks.html** (branch `issue/tasks-composer-mockup`, Tasks items 1–4 and the Composer in; chrome.html files untouched, other site files checked unchanged). Phone: resize under 760 px or open on a phone. Every state is in the address (`tasks.html#/…`): | State | Link | | --- | --- | | Today (opens here; phone: back goes to the lists) | `#/tasks/today` | | Upcoming (by day, then by month) | `#/tasks/upcoming` | | Anytime, Someday, a view, a tag | `#/tasks/anytime`, `#/tasks/someday`, `#/tasks/view:important`, `#/tasks/tag:home` | | Phone sidebar screen | `#/tasks/today?lists=1` | | Layouts (remembered per list) | `#/tasks/today?layout=board`, `?layout=timeline`, `?layout=matrix` | | A task's note, bar at rest = When · Deadline · Repeat · + | `#/tasks/today/t2` | | Bar morphs into a picker (sheet paths: `?prop=when|deadline|repeat|more`) | `#/tasks/today/t2?prop=when`, `?prop=deadline`, `?prop=repeat`, `?prop=more` | | Typing bar: type in the description; it returns about 1.6 s after you stop | `#/tasks/today/t2` | | In a note: checkbox + title + due chip; tap the title to expand | `#/notes/2026-10-13`, `?open=t2` | | Settings → Editor → Tasks (Show all metadata, Show description) | `#/settings/editor/tasks` | | Composer: palette (desktop, ⌘K / Ctrl K, or the sidebar search icon); on a phone the bottom bar's search button morphs into the field | `#/tasks/today?find=1` | | Task / event (disabled Calendar hint) / search / note by the whole phrase | `?find=1&q=call plumber fri 5`, `?find=1&q=lunch with Ana tue 1–2 pm`, `?find=1&q=how did I fix the perf vm`, `?find=1&q=perf vm notes` | | Settings results jump to the setting | `?find=1&q=accent`, `?find=1&q=toolbar` | | + opens the Composer as a task | the + in the middle header (desktop) or the round + (phone) | Enter creates and clears, ⌘Enter creates and opens, Esc closes. A created task lands at the end of today's journal (`#/notes/2026-10-13`, highlighted once) and in its list. Perf (Chromium, CDP, CPU x4, software raster so frame times here are not a GPU's; script/style/layout are real): keystroke script median 3.2 ms / p95 10.1 ms at x4 (≈0.8 / 2.5 ms real). Torph was 160 ms of script per phrase with forced layouts, so the intent line now uses an own compositor-only morph (`composer/LineMorph.svelte`). iPhone simulator numbers follow in the next comment.
Author
Owner

Deploy 2: https://preview.calternal.cloud/tasks.html (same state links as the first comment; sheet paths ?prop=when|deadline|repeat|more on #/tasks/today/t2, Composer ?find=1&q=…). Changes: the palette on fixed-clock CSS transitions (Svelte's out transition left it up ~225 ms), task title wraps in a narrow pane, the notes' keyboard guard docks the phone Composer on the keyboard, 44 pt targets on the property pills and checkboxes, README rows. Chrome.html files untouched; every other site file checked unchanged. Focused functional script (35 checks: phrases, kinds, highlights, Enter / ⌘Enter / Esc, ticking, pickers, typing bar, layouts) passes.

Perf (kayg's budget: first motion ≤ 1 frame, no frame > 16.7 ms, ≤ 8 ms script per keystroke)

iPhone simulator (real WebKit, real touches, rAF logger via sim eval; Safari rounds timers to 1 ms so a 60 Hz frame reads 16–17):

Interaction First frame after click Max frame Frames > 20 ms
tick a task 2 ms 17 0
layout List / Board 5 / 5 ms 17 / 17 0
open a task (stack slide) 9 ms 17 0
bar → When picker / → Repeat picker 8 / 4 ms 17 / 17 0
picker → bar (close) 5 / 4 ms 18 / 17 0
back 7 ms 17 0
kind menu opens (pill grows into the menu) 1 ms 17 0
search button → field (bar morph) 13–14 ms 33 (after the first frame) 1
  • Keystroke in the Composer (real WebKit): script median 1 ms, p95 1 ms, max 3 ms (limit 8); every keystroke painted by the second frame (33 ms, i.e. highlights and intent line within the next frame).
  • Found and fixed: torph (the intent line's text morph) read layout on every change: 160 ms of script over one phrase at 4x CPU, up to 95 ms on one keystroke. Replaced by composer/LineMorph.svelte (stacked cells, opacity / translate / blur only): Chromium at 4x, keystroke script median 3.2 ms, p95 10.1, max 15.3 (≈0.8 / 2.5 / 3.8 ms on a normal CPU). Composer open went from 137 ms to 66 ms long task at 4x.
  • Not fixable by me, measured: the first frame after tapping search is ~95 ms in the simulator, and it is the soft keyboard coming up on focus() (the same stall for a bare <input> on a blank page; with focus patched out the morph is 16–17 ms every frame; focus moved out of the tap gesture stops the keyboard appearing at all). A native keyboard animation on a real phone may behave differently; worth a device check.
  • Chromium CDP (headless, software raster, CPU x4, 1440 and 390): style 5–12 ms and layout 1–3 ms per interaction, script 10–50 ms at 4x; frame times there are raster-bound (SwiftShader) and not a GPU's, so the simulator numbers above are the ones to read. Desktop frame times on a GPU were not measured (the simulator only runs the phone viewport).
**Deploy 2: https://preview.calternal.cloud/tasks.html** (same state links as the first comment; sheet paths `?prop=when|deadline|repeat|more` on `#/tasks/today/t2`, Composer `?find=1&q=…`). Changes: the palette on fixed-clock CSS transitions (Svelte's out transition left it up ~225 ms), task title wraps in a narrow pane, the notes' keyboard guard docks the phone Composer on the keyboard, 44 pt targets on the property pills and checkboxes, README rows. Chrome.html files untouched; every other site file checked unchanged. Focused functional script (35 checks: phrases, kinds, highlights, Enter / ⌘Enter / Esc, ticking, pickers, typing bar, layouts) passes. **Perf (kayg's budget: first motion ≤ 1 frame, no frame > 16.7 ms, ≤ 8 ms script per keystroke)** iPhone simulator (real WebKit, real touches, rAF logger via `sim eval`; Safari rounds timers to 1 ms so a 60 Hz frame reads 16–17): | Interaction | First frame after click | Max frame | Frames > 20 ms | | --- | --- | --- | --- | | tick a task | 2 ms | 17 | 0 | | layout List / Board | 5 / 5 ms | 17 / 17 | 0 | | open a task (stack slide) | 9 ms | 17 | 0 | | bar → When picker / → Repeat picker | 8 / 4 ms | 17 / 17 | 0 | | picker → bar (close) | 5 / 4 ms | 18 / 17 | 0 | | back | 7 ms | 17 | 0 | | kind menu opens (pill grows into the menu) | 1 ms | 17 | 0 | | search button → field (bar morph) | 13–14 ms | 33 (after the first frame) | 1 | - **Keystroke in the Composer (real WebKit):** script median 1 ms, p95 1 ms, max 3 ms (limit 8); every keystroke painted by the second frame (33 ms, i.e. highlights and intent line within the next frame). - **Found and fixed:** torph (the intent line's text morph) read layout on every change: 160 ms of script over one phrase at 4x CPU, up to 95 ms on one keystroke. Replaced by `composer/LineMorph.svelte` (stacked cells, opacity / translate / blur only): Chromium at 4x, keystroke script median 3.2 ms, p95 10.1, max 15.3 (≈0.8 / 2.5 / 3.8 ms on a normal CPU). Composer open went from 137 ms to 66 ms long task at 4x. - **Not fixable by me, measured:** the first frame after tapping search is ~95 ms in the simulator, and it is the soft keyboard coming up on `focus()` (the same stall for a bare `<input>` on a blank page; with focus patched out the morph is 16–17 ms every frame; focus moved out of the tap gesture stops the keyboard appearing at all). A native keyboard animation on a real phone may behave differently; worth a device check. - Chromium CDP (headless, software raster, CPU x4, 1440 and 390): style 5–12 ms and layout 1–3 ms per interaction, script 10–50 ms at 4x; frame times there are raster-bound (SwiftShader) and not a GPU's, so the simulator numbers above are the ones to read. Desktop frame times on a GPU were not measured (the simulator only runs the phone viewport).
Author
Owner

kayg review (2026-10-19 18:04 IST, real iPhone):

  • List view pretty okay; Kanban decent; Matrix "meh", needs a redesign; Timeline "atrocious". Drag and drop doesn't work in Kanban or Matrix.
  • Grill Board / Matrix / Timeline design before the next mockup of them.
  • Phone: the app tab bar belongs ONLY on the sidebar screen. List screens (any list view) use the notes-style bottom bar: search + mic.
  • The top-right layout switcher was too cramped (sent: one-icon pill that morphs into a menu on phone).
  • Overflow menu animations: "very nice".
kayg review (2026-10-19 18:04 IST, real iPhone): - List view pretty okay; Kanban decent; Matrix "meh", needs a redesign; Timeline "atrocious". Drag and drop doesn't work in Kanban or Matrix. - Grill Board / Matrix / Timeline design before the next mockup of them. - Phone: the app tab bar belongs ONLY on the sidebar screen. List screens (any list view) use the notes-style bottom bar: search + mic. - The top-right layout switcher was too cramped (sent: one-icon pill that morphs into a menu on phone). - Overflow menu animations: "very nice".
Author
Owner

Deploy 3: https://preview.calternal.cloud/tasks.html. Everything from kayg's device review and the coordinator's notes, with screenshots checked at 390 and 1440, light and dark.

Changes

  • Phone layout switcher: ONE 44 pt icon pill (the current layout). Tap it and the same glass grows into a four-row menu (List, Board, Timeline, Matrix; 216 x 192, 46 pt rows, radius 22 kept), and shrinks back into the pill. LayoutMenu.svelte. Desktop keeps the four-segment control, now with 44 pt segments and the shared icon tokens.
  • Phone bottom bar: the app tabs (avatar, Notes/Tasks/Files, search) show ONLY on the sidebar screen. A list screen has the notes' dock: the search field (the bar's capsule, so it still grows into the Composer), the + and a mic circle, all 44 pt, level, 10 pt apart, 18 pt from both edges. The mic only shows a "Voice comes later" toast (no voice yet; a stub, say if you want it gone).
  • Board: drag and drop between To do, Doing, Done. Mouse: drag after 5 px. Finger: press and hold 260 ms, then the card lifts (spring scale 1.04, a hair of tilt, a soft shadow that fades in); a hollow stays in its place; the hovered column lights in the accent; the page and the board never move under it (the board scrolls at its edges); on drop the card settles into its column on a spring (or springs back if dropped on nothing). A plain tap still opens the task.
  • Matrix and Timeline: untouched, as asked.
  • Reading width: with no task selected the list column is at most 760 px, centred (&align=left keeps it by the sidebar), the pane takes the room; picking a task slides the right pane in and the list goes to 380. The sidebar's tabs are centred on its centre line (measured, |d| <= 0.5 at 1100, 1440, 1920). The Composer palette is denser (paper tint under the blur), legible over a dense note in light and dark.
  • Checkbox: a 44 pt target centred on the title's CAP HEIGHT in both Chromium and WebKit (the title is trimmed to its capitals with text-box, the box sits half a cap below the top): measured offset 0.0 to 0.4 pt.
  • A 320 pt phone: the apps' capsule overflowed the screen (x = -15). The avatar loses its chevron and the tabs close up under 380 pt; now x = 15.

Audit (computed, tests/tasks-tiers.spec.ts, 320 / 390 / 440, light and dark, Chromium and WebKit, plus desktop 1440; all pass). 390 shown; 320 and 440 differ only in x.

Element h w x y radius icon / stroke
list: back pill 44 44 18 11 50% 24 / 2.2 (optical)
list: layout pill (closed) 44 44 328 11 22 22 / 2.1
list: layout menu (open) 192 216 156 11 22 22 / 2.1
list: search field (capsule) 44 246 18 790 22 21 / 2.1 (optical -1, as the notes dock)
list: + 44 44 274 790 50% 24 / 2.2 (optical)
list: mic 44 44 328 790 50% 22 / 2.1
lists: capsule 52 289 19.5 778 26
lists: + 52 52 318.5 778 50% 24 / 2.2
lists: tab / avatar / search 44 52 / 53 / 44 782 pill 22 / 2.1
task: capsule (properties) 52 283 53.5 778 26
task: back pill 44 44 18 11 50% 24 / 2.2
task: property pill 44 129 (When) 782 pill 22 / 2.1

Asserted: top row level (back and layout pill share y = 11), 18 pt from both edges; list dock gaps 10 / 10, margins 18 / 18; sidebar capsule and + one group (+ the capsule's height, level at top and bottom, 10 pt apart, centred: left margin = right margin), both >= 8 pt from the screen edge; every icon the token size and stroke (22 / 2.1 phone, 16 / 1.6 desktop; optical ones by their declared offset); no hit target under 44 pt (capsule buttons, top pills, +, mic, checkbox boxes, property pills); a pill's radius is half its height; checkbox centre vs title cap centre <= 0.6 pt on every row; chips one fixed step (9 pt) under the title's baseline; desktop segments >= 44 wide.

Frame numbers, iPhone simulator (real WebKit, real touches; 60 Hz so 16-17 ms is a frame)

Interaction First frame after input Max frame Frames > 20 ms
layout pill opens / closes 1 / 5-7 ms 17 / 17-18 0
tick, open a task, picker open, picker close, back 2-8 ms 17 0
Board drag (hold, lift, follow over 30 moves, drop, settle; 96 frames) x3 runs n/a 17, 18, 19 0
search field -> Composer (bar morph) 14 ms 52 after the first frame 3
  • The Board lift used to drop one frame (23-33 ms): the copy is now made at pointer-down (invisible), the lifted shadow is its own layer that fades in (a blurred box-shadow animation redraws every frame), and the first hit-test waits one frame. Now no frame over 20 ms in three runs.
  • Still over budget, not fixable from the page: the first frame after tapping the search field is ~95-150 ms. It is the soft keyboard coming up on focus: a bare input on a blank page does the same, the morph alone is 16-17 ms every frame (focus patched out), and focusing later stops the keyboard appearing. Needs a check on the real phone.
  • Keystroke in the Composer (WebKit): script median 1 ms, max 3 ms; every keystroke painted by the next frame. Chromium CDP numbers in the previous comment still hold (style/layout 1-12 ms per interaction); desktop frame times on a GPU were not measured.
**Deploy 3: https://preview.calternal.cloud/tasks.html**. Everything from kayg's device review and the coordinator's notes, with screenshots checked at 390 and 1440, light and dark. **Changes** - Phone layout switcher: ONE 44 pt icon pill (the current layout). Tap it and the same glass grows into a four-row menu (List, Board, Timeline, Matrix; 216 x 192, 46 pt rows, radius 22 kept), and shrinks back into the pill. `LayoutMenu.svelte`. Desktop keeps the four-segment control, now with 44 pt segments and the shared icon tokens. - Phone bottom bar: the app tabs (avatar, Notes/Tasks/Files, search) show ONLY on the sidebar screen. A list screen has the notes' dock: the search field (the bar's capsule, so it still grows into the Composer), the + and a mic circle, all 44 pt, level, 10 pt apart, 18 pt from both edges. The mic only shows a "Voice comes later" toast (no voice yet; a stub, say if you want it gone). - Board: drag and drop between To do, Doing, Done. Mouse: drag after 5 px. Finger: press and hold 260 ms, then the card lifts (spring scale 1.04, a hair of tilt, a soft shadow that fades in); a hollow stays in its place; the hovered column lights in the accent; the page and the board never move under it (the board scrolls at its edges); on drop the card settles into its column on a spring (or springs back if dropped on nothing). A plain tap still opens the task. - Matrix and Timeline: untouched, as asked. - Reading width: with no task selected the list column is at most 760 px, centred (`&align=left` keeps it by the sidebar), the pane takes the room; picking a task slides the right pane in and the list goes to 380. The sidebar's tabs are centred on its centre line (measured, |d| <= 0.5 at 1100, 1440, 1920). The Composer palette is denser (paper tint under the blur), legible over a dense note in light and dark. - Checkbox: a 44 pt target centred on the title's CAP HEIGHT in both Chromium and WebKit (the title is trimmed to its capitals with `text-box`, the box sits half a `cap` below the top): measured offset 0.0 to 0.4 pt. - A 320 pt phone: the apps' capsule overflowed the screen (x = -15). The avatar loses its chevron and the tabs close up under 380 pt; now x = 15. **Audit (computed, tests/tasks-tiers.spec.ts, 320 / 390 / 440, light and dark, Chromium and WebKit, plus desktop 1440; all pass).** 390 shown; 320 and 440 differ only in x. | Element | h | w | x | y | radius | icon / stroke | | --- | --- | --- | --- | --- | --- | --- | | list: back pill | 44 | 44 | 18 | 11 | 50% | 24 / 2.2 (optical) | | list: layout pill (closed) | 44 | 44 | 328 | 11 | 22 | 22 / 2.1 | | list: layout menu (open) | 192 | 216 | 156 | 11 | 22 | 22 / 2.1 | | list: search field (capsule) | 44 | 246 | 18 | 790 | 22 | 21 / 2.1 (optical -1, as the notes dock) | | list: + | 44 | 44 | 274 | 790 | 50% | 24 / 2.2 (optical) | | list: mic | 44 | 44 | 328 | 790 | 50% | 22 / 2.1 | | lists: capsule | 52 | 289 | 19.5 | 778 | 26 | | | lists: + | 52 | 52 | 318.5 | 778 | 50% | 24 / 2.2 | | lists: tab / avatar / search | 44 | 52 / 53 / 44 | | 782 | pill | 22 / 2.1 | | task: capsule (properties) | 52 | 283 | 53.5 | 778 | 26 | | | task: back pill | 44 | 44 | 18 | 11 | 50% | 24 / 2.2 | | task: property pill | 44 | 129 (When) | | 782 | pill | 22 / 2.1 | Asserted: top row level (back and layout pill share y = 11), 18 pt from both edges; list dock gaps 10 / 10, margins 18 / 18; sidebar capsule and + one group (+ the capsule's height, level at top and bottom, 10 pt apart, centred: left margin = right margin), both >= 8 pt from the screen edge; every icon the token size and stroke (22 / 2.1 phone, 16 / 1.6 desktop; optical ones by their declared offset); no hit target under 44 pt (capsule buttons, top pills, +, mic, checkbox boxes, property pills); a pill's radius is half its height; checkbox centre vs title cap centre <= 0.6 pt on every row; chips one fixed step (9 pt) under the title's baseline; desktop segments >= 44 wide. **Frame numbers, iPhone simulator (real WebKit, real touches; 60 Hz so 16-17 ms is a frame)** | Interaction | First frame after input | Max frame | Frames > 20 ms | | --- | --- | --- | --- | | layout pill opens / closes | 1 / 5-7 ms | 17 / 17-18 | 0 | | tick, open a task, picker open, picker close, back | 2-8 ms | 17 | 0 | | Board drag (hold, lift, follow over 30 moves, drop, settle; 96 frames) x3 runs | n/a | 17, 18, 19 | 0 | | search field -> Composer (bar morph) | 14 ms | 52 after the first frame | 3 | - The Board lift used to drop one frame (23-33 ms): the copy is now made at pointer-down (invisible), the lifted shadow is its own layer that fades in (a blurred box-shadow animation redraws every frame), and the first hit-test waits one frame. Now no frame over 20 ms in three runs. - Still over budget, not fixable from the page: the first frame after tapping the search field is ~95-150 ms. It is the soft keyboard coming up on focus: a bare input on a blank page does the same, the morph alone is 16-17 ms every frame (focus patched out), and focusing later stops the keyboard appearing. Needs a check on the real phone. - Keystroke in the Composer (WebKit): script median 1 ms, max 3 ms; every keystroke painted by the next frame. Chromium CDP numbers in the previous comment still hold (style/layout 1-12 ms per interaction); desktop frame times on a GPU were not measured.
Author
Owner

Deploy 4: https://preview.calternal.cloud/tasks.html. kayg's desktop and device notes: ring, resizable panes, nested tint, Matrix, priority colours, and the first low-power pass on the task pane (also for #625).

Fixed

  • No ring after a mouse. The dropped/open Board card had an accent outline; an open task is now only tinted (accent), a ring is for keyboard focus only (:focus-visible).
  • One surface a row/card. The inner title button had its own hover (.press) tint and press scale on top of the row's, which drew the second, square-edged rectangle. The row (List, Matrix) or the card (Board) owns hover, press and selected; the button inside draws nothing. Test tests/tasks-surfaces.spec.ts: in rest, hover, pressed, selected and keyboard focus, for List, Board, Matrix, the sidebar and the notes list, light and dark, at most ONE element with a background under the pointer inside a row/card (chips and the checkbox are marks); keyboard focus is a ring and never a fill; no ring after a mouse. 8 pass.
  • Resizable panes (desktop). Drag the sidebar | middle and middle | right boundaries: 8 pt hit zone, col-resize, a thin hover line, double-click resets (springs; a drag follows 1:1), arrows nudge 16, widths remembered on this device, every layout incl. Board (in Board the edge moves the task pane). Bounds: sidebar 200-360, middle >= 320, right >= 360 (the Notes shell has 180-320 and 260-460; I used your numbers). One width write a frame; the transition is off while dragging and for two frames after (WebKit eased the last step otherwise). Playwright (Chromium + WebKit): clamps, memory, reload, reset, keyboard, Board edge, no ring.
  • Matrix. Four equal quadrants fill the pane (1100/1440/1920 asserted), each scrolls inside. Phone: stacked, equal (default) or &matrix=grid 2 x 2 (stacked reads better at 390: cards keep a line of title). Cards drag like the Board (the same dnd.svelte.ts); a drop sets priority and urgency: Do = High+ and due within 2 days, Plan = High+ and not urgent, Quick = urgent and below High, Later = neither (the date moves to today / +3 days), the changed chips spring, and the card stays in the list for the visit. Test passes (all four quadrants, ghost gone, chips pop).
  • Priority colours. Priorities are now None, Low, Medium, High, Urgent, with our own icons (chevrons up/up/bars/down) and semantic colour on icon and text: Urgent red, High amber, Medium blue, Low grey (Matrix quadrant dots use the same). Contrast measured from the drawn pixels of the chip, light/dark on List glass, Matrix card and phone sky: every one >= 4.8:1 (lowest: light phone sky Urgent 4.81; List light 5.03-5.51; dark 5.3-8.4). tests/tasks-matrix.spec.ts.

Right pane open/close (the cause and the fix)

  • Desktop slide: the middle and right panes animated flex-basis, so the middle pane re-laid out its whole list every frame. The layout now takes its final shape ONCE (opening: at the start; closing: at the end) and the page slides on the compositor (transform + opacity inside the pane, which never changes size mid-motion). Layouts per open: 8 -> 3; per close: 4-6 -> 1. During a resize drag, panes' widths are set inline (not as root custom properties, which restyled everything).
  • Phone push/pop: the task page is now mounted at pointer-down, so a tap only slides it (first frame after the tap 45 -> 7 ms in the simulator, worst frame 28 -> 18 ms on the cold first open); the + and mic leave at once instead of fading (their glass would blur the moving page for a fade). The remaining per-interaction cost is the bar's size spring (one layout a frame, the shared capsule) and style recalcs of running transitions.

Low-power measurement (what could and could not be done)

  • iPhone simulator Low Power Mode: no setting exists for the simulator and WebKit there does not honour it (not testable).
  • Background QoS on this device's WebContent processes only (taskpolicy -b, 76 processes, restored with -B -t 0 -l 0 afterwards; no other process touched): the fixed JS loop barely slows (7 -> 10 ms) but WebKit throttles rAF to ~5 fps (frames 214 ms), so it is not a usable stand-in for LPM's 30 fps and slower CPU. Throughput tiers -t/-l 2,4,5 changed nothing on an idle Mac. Numbers from it are not meaningful; I did not use them.
  • Used instead: Chromium with CDP CPU x6 (main-thread cost of every motion; the headless raster is software so frame times there are not a GPU's), and the simulator normally (60 Hz, 16-17 ms is a frame).

Chromium CPU x6, main thread per interaction (x6 values; divide by 6 for a normal CPU), before = deployed Deploy 3, after = this build:

Interaction layouts before -> after style (ms) script (ms)
desktop open task (slide in) 8 -> 3 32 -> 47 59 -> 89 (mount now at pointer-down)
desktop close 6 -> 1 25 -> 21 4 -> 4
desktop picker open / close 10 / 4 -> 9 / 4 58 / 82 -> 56 / 70 35 / 52 -> 56 / 43
desktop composer palette open / close 1 / 4 -> 1 / 4 17 / 8 -> 8 / 7 70 / 24 -> 83 / 27
desktop Board drag (40 moves + drop) 5 -> 5 146 -> 163 253 -> 213
desktop resize drag (90 moves) n/a -> 160 (116 recalcs) -> 184, 85 layouts (3.4 ms each at x6)
phone push / pop 23-28 -> 28 / 24 163 / 151 -> 165 / 145 118 / 63 -> 124 / 57
phone layout menu open / pick n/a -> 28 / 27 58 / 63 43 / 60
phone picker open / close n/a -> 21 / 24 113 / 149 67 / 47
phone composer open n/a -> 22 168 137

Simulator (real WebKit, 60 Hz, this build), per interaction: first frame after input / worst frame / frames over 16.7 ms. At 60 Hz every frame is 16.7 ms, so "frames over 8.3 ms" cannot be told apart in the simulator (all of them); the 120 Hz question is answered by the main-thread cost above, per frame at normal speed: resize drag ~0.5 ms layout + 0.4 ms style a frame, Board drag ~1 ms a frame between the lift and the drop.

Interaction first frame worst > 16.7 ms
open task / back (push, pop) 7 / 6 ms 18 / 17 0 / 0
layout menu open / pick 1 / 1 ms 17 / 17 0 / 0
picker open / close 9 / 5 ms 17 / 18 0 / 0
tick 6 ms 17 0
composer open (keyboard on focus) 49 ms 33 after the first frame (the first is 150-300 ms: the soft keyboard) 2
Board drag, 4 runs today (hold, lift, 30 moves, drop, settle) n/a 25-35 at the lift frame, 17 elsewhere 1
  • Not within budget: the Board/Matrix lift frame is 21-35 ms in today's simulator runs (the deployed Deploy 3 build measures 19-24 in the same session, and the same code measured 17-19 earlier today, so the simulator's own noise is about +/-10 ms); and the first frame after tapping a text field (keyboard). Not measured: a real iPhone, in or out of Low Power Mode. I could not reproduce the pane lag in any engine here, so the fixes above remove the known main-thread work (relayout per frame, mounting inside the slide, fading glass over a moving page) rather than a measured culprit; it needs a check on the phone, ideally with the Safari Web Inspector timeline, in Low Power Mode.
**Deploy 4: https://preview.calternal.cloud/tasks.html**. kayg's desktop and device notes: ring, resizable panes, nested tint, Matrix, priority colours, and the first low-power pass on the task pane (also for #625). **Fixed** - **No ring after a mouse.** The dropped/open Board card had an accent outline; an open task is now only tinted (accent), a ring is for keyboard focus only (`:focus-visible`). - **One surface a row/card.** The inner title button had its own hover (`.press`) tint and press scale on top of the row's, which drew the second, square-edged rectangle. The row (List, Matrix) or the card (Board) owns hover, press and selected; the button inside draws nothing. Test `tests/tasks-surfaces.spec.ts`: in rest, hover, pressed, selected and keyboard focus, for List, Board, Matrix, the sidebar and the notes list, light and dark, at most ONE element with a background under the pointer inside a row/card (chips and the checkbox are marks); keyboard focus is a ring and never a fill; no ring after a mouse. 8 pass. - **Resizable panes (desktop).** Drag the sidebar | middle and middle | right boundaries: 8 pt hit zone, `col-resize`, a thin hover line, double-click resets (springs; a drag follows 1:1), arrows nudge 16, widths remembered on this device, every layout incl. Board (in Board the edge moves the task pane). Bounds: sidebar 200-360, middle >= 320, right >= 360 (the Notes shell has 180-320 and 260-460; I used your numbers). One width write a frame; the transition is off while dragging and for two frames after (WebKit eased the last step otherwise). Playwright (Chromium + WebKit): clamps, memory, reload, reset, keyboard, Board edge, no ring. - **Matrix.** Four equal quadrants fill the pane (1100/1440/1920 asserted), each scrolls inside. Phone: stacked, equal (default) or `&matrix=grid` 2 x 2 (stacked reads better at 390: cards keep a line of title). Cards drag like the Board (the same `dnd.svelte.ts`); a drop sets priority and urgency: Do = High+ and due within 2 days, Plan = High+ and not urgent, Quick = urgent and below High, Later = neither (the date moves to today / +3 days), the changed chips spring, and the card stays in the list for the visit. Test passes (all four quadrants, ghost gone, chips pop). - **Priority colours.** Priorities are now None, Low, Medium, High, Urgent, with our own icons (chevrons up/up/bars/down) and semantic colour on icon and text: Urgent red, High amber, Medium blue, Low grey (Matrix quadrant dots use the same). Contrast measured from the drawn pixels of the chip, light/dark on List glass, Matrix card and phone sky: every one >= 4.8:1 (lowest: light phone sky Urgent 4.81; List light 5.03-5.51; dark 5.3-8.4). `tests/tasks-matrix.spec.ts`. **Right pane open/close (the cause and the fix)** - Desktop slide: the middle and right panes animated `flex-basis`, so the middle pane re-laid out its whole list every frame. The layout now takes its final shape ONCE (opening: at the start; closing: at the end) and the page slides on the compositor (transform + opacity inside the pane, which never changes size mid-motion). Layouts per open: 8 -> 3; per close: 4-6 -> 1. During a resize drag, panes' widths are set inline (not as root custom properties, which restyled everything). - Phone push/pop: the task page is now mounted at pointer-down, so a tap only slides it (first frame after the tap 45 -> 7 ms in the simulator, worst frame 28 -> 18 ms on the cold first open); the + and mic leave at once instead of fading (their glass would blur the moving page for a fade). The remaining per-interaction cost is the bar's size spring (one layout a frame, the shared capsule) and style recalcs of running transitions. **Low-power measurement (what could and could not be done)** - iPhone simulator Low Power Mode: no setting exists for the simulator and WebKit there does not honour it (not testable). - Background QoS on this device's WebContent processes only (`taskpolicy -b`, 76 processes, restored with `-B -t 0 -l 0` afterwards; no other process touched): the fixed JS loop barely slows (7 -> 10 ms) but WebKit throttles rAF to ~5 fps (frames 214 ms), so it is not a usable stand-in for LPM's 30 fps and slower CPU. Throughput tiers `-t/-l 2,4,5` changed nothing on an idle Mac. Numbers from it are not meaningful; I did not use them. - Used instead: Chromium with CDP CPU x6 (main-thread cost of every motion; the headless raster is software so frame times there are not a GPU's), and the simulator normally (60 Hz, 16-17 ms is a frame). Chromium CPU x6, main thread per interaction (x6 values; divide by 6 for a normal CPU), before = deployed Deploy 3, after = this build: | Interaction | layouts before -> after | style (ms) | script (ms) | | --- | --- | --- | --- | | desktop open task (slide in) | 8 -> 3 | 32 -> 47 | 59 -> 89 (mount now at pointer-down) | | desktop close | 6 -> 1 | 25 -> 21 | 4 -> 4 | | desktop picker open / close | 10 / 4 -> 9 / 4 | 58 / 82 -> 56 / 70 | 35 / 52 -> 56 / 43 | | desktop composer palette open / close | 1 / 4 -> 1 / 4 | 17 / 8 -> 8 / 7 | 70 / 24 -> 83 / 27 | | desktop Board drag (40 moves + drop) | 5 -> 5 | 146 -> 163 | 253 -> 213 | | desktop resize drag (90 moves) | n/a | -> 160 (116 recalcs) | -> 184, 85 layouts (3.4 ms each at x6) | | phone push / pop | 23-28 -> 28 / 24 | 163 / 151 -> 165 / 145 | 118 / 63 -> 124 / 57 | | phone layout menu open / pick | n/a -> 28 / 27 | 58 / 63 | 43 / 60 | | phone picker open / close | n/a -> 21 / 24 | 113 / 149 | 67 / 47 | | phone composer open | n/a -> 22 | 168 | 137 | Simulator (real WebKit, 60 Hz, this build), per interaction: first frame after input / worst frame / frames over 16.7 ms. At 60 Hz every frame is 16.7 ms, so "frames over 8.3 ms" cannot be told apart in the simulator (all of them); the 120 Hz question is answered by the main-thread cost above, per frame at normal speed: resize drag ~0.5 ms layout + 0.4 ms style a frame, Board drag ~1 ms a frame between the lift and the drop. | Interaction | first frame | worst | > 16.7 ms | | --- | --- | --- | --- | | open task / back (push, pop) | 7 / 6 ms | 18 / 17 | 0 / 0 | | layout menu open / pick | 1 / 1 ms | 17 / 17 | 0 / 0 | | picker open / close | 9 / 5 ms | 17 / 18 | 0 / 0 | | tick | 6 ms | 17 | 0 | | composer open (keyboard on focus) | 49 ms | 33 after the first frame (the first is 150-300 ms: the soft keyboard) | 2 | | Board drag, 4 runs today (hold, lift, 30 moves, drop, settle) | n/a | 25-35 at the lift frame, 17 elsewhere | 1 | - Not within budget: the Board/Matrix lift frame is 21-35 ms in today's simulator runs (the deployed Deploy 3 build measures 19-24 in the same session, and the same code measured 17-19 earlier today, so the simulator's own noise is about +/-10 ms); and the first frame after tapping a text field (keyboard). Not measured: a real iPhone, in or out of Low Power Mode. I could not reproduce the pane lag in any engine here, so the fixes above remove the known main-thread work (relayout per frame, mounting inside the slide, fading glass over a moving page) rather than a measured culprit; it needs a check on the phone, ideally with the Safari Web Inspector timeline, in Low Power Mode.
Author
Owner

Deploy 5: https://preview.calternal.cloud/tasks.html (kayg's review: corners, Board drops, List swipe and drag).

  • Corners. Every pane is now its own glass with the same rounded corners on all four sides (the frame token, 22): the sidebar, the middle and the task pane were a joined block with square inner corners next to a rounded neighbour. A 10 pt gap between panes is the resize zone. Test (Chromium + WebKit): four equal corners of the sidebar, middle and task frame on List, Board, Matrix, Timeline, Notes, with the task pane open, and after a resize.
  • Board drops anywhere. The cause: a column's drop target was only as tall as its cards (an empty column was a 52 pt strip), so a drop low in a column, or in an empty one, hit nothing; Upcoming's taller columns hid it. Columns now stretch to the full board height (each scrolls inside). Tests: far below the last card, an empty column, the middle of its empty space, and on a phone (Chromium touch) on Today and on Upcoming, plus real WebKit in the simulator (Today, a drop low in Doing).
  • List rows swipe like the notes' rows (the same RowActions and registry, tasks/rows.ts): left to right Complete (a long swipe runs it; the row stays, struck through) and Copy link; right to left Delete (a long swipe, with Undo), Someday, Tomorrow. The ⋯/right-click menu and shortcuts come from the same list (Open, Complete, Copy link, Tomorrow, Someday, Delete). The hold no longer opens the notes' hold menu on tasks: a hold lifts the row.
  • List drag and drop. Phone: press and hold, the row lifts with the Board's spring (tilt, soft shadow, hollow left behind); dropped under another day's heading in Upcoming it takes that day (the time stays; a month section: the day of its first task); the row glides into its new place. Desktop: a grip shows on hover (a mouse drags from it, so text, taps and selecting are untouched). On a desktop a row can also be dropped on Today, Upcoming, Anytime or Someday in the sidebar (it takes what that list stands for: today / tomorrow / no date / parked); the list lights while a row is over it. Today, Anytime and Someday have no sections, so inside them there is nothing to drop between (nothing designed there, as asked).
  • Tests, both engines: tests/tasks-drag.spec.ts (corners, Board drops, grip drag to a day, drop on the sidebar, plus Chromium touch for swipe delete + Undo, swipe complete, hold-and-drag, Board low drop) with tasks-surfaces, tasks-matrix, tasks-tiers: 34 pass in Chromium; the same drag/surfaces/matrix specs pass in WebKit (the touch ones need CDP, so WebKit runs them in the iPhone simulator below).

Frames, iPhone simulator (real WebKit, 60 Hz; synthetic touch gestures; main-thread cost at 120 Hz is in the earlier tables)

Gesture worst frame frames > 16.7 notes
List drag Upcoming (hold, lift, 30 moves, drop onto Fri 16, settle) 26 ms 2 (22 at the lift, 26 at the drop) lifted, lit, moved to Fri 16, no ghost left
Board drop low in Doing (Today) 30 ms 2 (lift) lands in Doing
Swipe delete, long (row leaves, toast) 37 ms 3 (the row leaving + toast mounting) deleted, "Task deleted" with Undo

All frames are 16.7 ms at 60 Hz otherwise, so frames over 8.3 ms cannot be told from the simulator; not within the 16.7 floor: the lift frame (22-30 ms), the drop frame (26 ms) and the delete frame (37 ms: the toast library mounting). Not measured on a real iPhone. Matrix (and the Board) keep their one lift-frame cost from before.

**Deploy 5: https://preview.calternal.cloud/tasks.html** (kayg's review: corners, Board drops, List swipe and drag). - **Corners.** Every pane is now its own glass with the same rounded corners on all four sides (the frame token, 22): the sidebar, the middle and the task pane were a joined block with square inner corners next to a rounded neighbour. A 10 pt gap between panes is the resize zone. Test (Chromium + WebKit): four equal corners of the sidebar, middle and task frame on List, Board, Matrix, Timeline, Notes, with the task pane open, and after a resize. - **Board drops anywhere.** The cause: a column's drop target was only as tall as its cards (an empty column was a 52 pt strip), so a drop low in a column, or in an empty one, hit nothing; Upcoming's taller columns hid it. Columns now stretch to the full board height (each scrolls inside). Tests: far below the last card, an empty column, the middle of its empty space, and on a phone (Chromium touch) on Today and on Upcoming, plus real WebKit in the simulator (Today, a drop low in Doing). - **List rows swipe like the notes' rows** (the same `RowActions` and registry, `tasks/rows.ts`): left to right Complete (a long swipe runs it; the row stays, struck through) and Copy link; right to left Delete (a long swipe, with Undo), Someday, Tomorrow. The ⋯/right-click menu and shortcuts come from the same list (Open, Complete, Copy link, Tomorrow, Someday, Delete). The hold no longer opens the notes' hold menu on tasks: a hold lifts the row. - **List drag and drop.** Phone: press and hold, the row lifts with the Board's spring (tilt, soft shadow, hollow left behind); dropped under another day's heading in Upcoming it takes that day (the time stays; a month section: the day of its first task); the row glides into its new place. Desktop: a grip shows on hover (a mouse drags from it, so text, taps and selecting are untouched). On a desktop a row can also be dropped on Today, Upcoming, Anytime or Someday in the sidebar (it takes what that list stands for: today / tomorrow / no date / parked); the list lights while a row is over it. Today, Anytime and Someday have no sections, so inside them there is nothing to drop between (nothing designed there, as asked). - **Tests, both engines:** `tests/tasks-drag.spec.ts` (corners, Board drops, grip drag to a day, drop on the sidebar, plus Chromium touch for swipe delete + Undo, swipe complete, hold-and-drag, Board low drop) with `tasks-surfaces`, `tasks-matrix`, `tasks-tiers`: 34 pass in Chromium; the same drag/surfaces/matrix specs pass in WebKit (the touch ones need CDP, so WebKit runs them in the iPhone simulator below). **Frames, iPhone simulator (real WebKit, 60 Hz; synthetic touch gestures; main-thread cost at 120 Hz is in the earlier tables)** | Gesture | worst frame | frames > 16.7 | notes | | --- | --- | --- | --- | | List drag Upcoming (hold, lift, 30 moves, drop onto Fri 16, settle) | 26 ms | 2 (22 at the lift, 26 at the drop) | lifted, lit, moved to Fri 16, no ghost left | | Board drop low in Doing (Today) | 30 ms | 2 (lift) | lands in Doing | | Swipe delete, long (row leaves, toast) | 37 ms | 3 (the row leaving + toast mounting) | deleted, "Task deleted" with Undo | All frames are 16.7 ms at 60 Hz otherwise, so frames over 8.3 ms cannot be told from the simulator; not within the 16.7 floor: the lift frame (22-30 ms), the drop frame (26 ms) and the delete frame (37 ms: the toast library mounting). Not measured on a real iPhone. Matrix (and the Board) keep their one lift-frame cost from before.
Sign in to join this conversation.
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#617
No description provided.