Notes Float slices 3 + 3b: flat list views and the Notes sidebar tree #1122

Closed
kayg wants to merge 0 commits from port/notes-float-3-lists into port/notes-float
Owner

Notes Float slices 3 (flat list views) and 3b (the Notes sidebar tree), stacked on port/notes-float (2656c3d08, with #1116). Separate commits for each.

Slice 3: flat lists

  • The list column has no card, glass or shadow: it sits on the global layer beside the sidebar (.wlist, same top line as the sidebar title). The window (sharp backdrop, page card) starts after it. A document keeps its card.
  • The list and its resize handle slide with the sidebar by translate (compositor only); the sidebar handle stays on the sidebar's edge.
  • Rows tint as the sidebar's rows do (ink 8.5 % open, 4 % hover); the list reads the glass inks (on-glass).
  • Decision: the list stays a column beside the page (as the product has it). The mockup opens a list view in the main area with a back pill; that needs the toolbar (slice 2), so it is not ported here.

Slice 3b: sidebar tree

  • window/NotesSide replaces Sidebar in the Notes window and its drawer (Sidebar.svelte stays for the phone places screen until slice 8). ONE persistent tab strip (SideTabs on the shared Selector; options are measured in one batch by selector/measure-batch at mount); tab state is module state, not the address.
  • Library: places as tree rows, tags as a tree (lib/tag-tree, chevron folds, label opens) in the person's own order, drag to arrange / drag a tag onto another to merge (window/tree/arrange-drag, lib/tree-arrange), rename in place, note-drop on a tag, hide / "N hidden", Empty Trash: all kept. Outline (headings from the editor's syntax tree) and Links (backlinks) are lazy chunks.
  • Idle rows: 12 tag rows in the first frame, the rest at requestIdleCallback (250 ms timer fallback, 90 ms on Safari), growing by max(2, rest/40); never an empty state.
  • New: tokens --st-*, lib/idle-rows.svelte.ts, lib/side-tabs.svelte.ts, lib/tag-tree.ts (+ unit test), notes-sidebar-tree.spec.ts.

Decisions / known gaps (kayg to look)

  1. Tag drag-to-arrange and tag-onto-tag merge by drag are kept (kayg 14 Nov 21:50 IST: the port drops no feature). The tag tree shows the person's saved sidebar order (siblings sort by the earliest-ranked tag in each branch; a flat tag list is exactly dev's order), not name order. Dragging moves a row among its siblings with its open branch (a tag's parent comes from its name); held right over another tag it merges through dev's askMergeTag bar, job and Undo. Places arrange too; ⌥↑/⌥↓ and the menu's Move up / Move down are back. dev's three merge-by-drag specs run again; e2e/sidebar-arrange.spec.ts covers arranging.
  2. No Collections / Folders sections (out of the release), no live thumbnails (the tree lists no notes under rows; Links rows use an icon). Journal / Pinned / Archived / Shared keep their product labels.
  3. The foot is still the old account row; after #1107 (dock) merges it becomes WindowDock and the nav takes appSwipe (as Sidebar.svelte does there). Expect a small conflict in Shell.svelte / NotesSide.svelte.
  4. Phone is untouched (slice 8).

Evidence follows in comments.

Notes Float slices **3** (flat list views) and **3b** (the Notes sidebar tree), stacked on `port/notes-float` (2656c3d08, with #1116). Separate commits for each. ## Slice 3: flat lists - The list column has no card, glass or shadow: it sits on the global layer beside the sidebar (`.wlist`, same top line as the sidebar title). The window (sharp backdrop, page card) starts after it. A document keeps its card. - The list and its resize handle slide with the sidebar by `translate` (compositor only); the sidebar handle stays on the sidebar's edge. - Rows tint as the sidebar's rows do (ink 8.5 % open, 4 % hover); the list reads the glass inks (`on-glass`). - Decision: the list stays a column beside the page (as the product has it). The mockup opens a list view in the main area with a back pill; that needs the toolbar (slice 2), so it is not ported here. ## Slice 3b: sidebar tree - `window/NotesSide` replaces `Sidebar` in the Notes window and its drawer (`Sidebar.svelte` stays for the phone places screen until slice 8). ONE persistent tab strip (`SideTabs` on the shared `Selector`; options are measured in one batch by `selector/measure-batch` at mount); tab state is module state, not the address. - Library: places as tree rows, tags as a tree (`lib/tag-tree`, chevron folds, label opens) in the person's own order, drag to arrange / drag a tag onto another to merge (`window/tree/arrange-drag`, `lib/tree-arrange`), rename in place, note-drop on a tag, hide / "N hidden", Empty Trash: all kept. Outline (headings from the editor's syntax tree) and Links (backlinks) are lazy chunks. - Idle rows: 12 tag rows in the first frame, the rest at `requestIdleCallback` (250 ms timer fallback, 90 ms on Safari), growing by max(2, rest/40); never an empty state. - New: tokens `--st-*`, `lib/idle-rows.svelte.ts`, `lib/side-tabs.svelte.ts`, `lib/tag-tree.ts` (+ unit test), `notes-sidebar-tree.spec.ts`. ## Decisions / known gaps (kayg to look) 1. **Tag drag-to-arrange and tag-onto-tag merge by drag are kept** (kayg 14 Nov 21:50 IST: the port drops no feature). The tag tree shows the person's saved sidebar order (siblings sort by the earliest-ranked tag in each branch; a flat tag list is exactly dev's order), not name order. Dragging moves a row among its siblings with its open branch (a tag's parent comes from its name); held right over another tag it merges through dev's `askMergeTag` bar, job and Undo. Places arrange too; ⌥↑/⌥↓ and the menu's Move up / Move down are back. dev's three merge-by-drag specs run again; `e2e/sidebar-arrange.spec.ts` covers arranging. 2. No Collections / Folders sections (out of the release), no live thumbnails (the tree lists no notes under rows; Links rows use an icon). Journal / Pinned / Archived / Shared keep their product labels. 3. The foot is still the old account row; after #1107 (dock) merges it becomes `WindowDock` and the nav takes `appSwipe` (as `Sidebar.svelte` does there). Expect a small conflict in `Shell.svelte` / `NotesSide.svelte`. 4. Phone is untouched (slice 8). Evidence follows in comments.
kayg added 10 commits 2026-11-14 04:40:58 +00:00
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
web: the flat list and its handle slide by translate with the sidebar (a transition on left laid out every frame)
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
89dc71c3f9
Author
Owner

Real Safari 1440 (macos-01, Safari 26, loopback servers), product vs approved mockup, light and dark

Product = 89dc71c3f build (slice 3 + 3b), 40 seeded notes, tags topicNN + area/partN. Mockup = https://preview.calternal.cloud/calendar-2/chrome.html (#/note/calternal-rewrite?list=all). Note: the mockup page came up in its dark scheme even for the "light" pair (the Mac's appearance), so mockup colours are dark in both rows; only geometry/type compare directly. The mockup has Collections/Folders/thumbnails (out of this release) and its list view opens in the main area (see decision 1 in the description).

Computed values (product | mockup), sidebar tree, Safari 1440:

element height font / line-height weight radius note
tab strip 34 | 34 14/19.6 | 14/20.3 440 | 440 same
tree row .tr 30 | 30 14/19.6 | 14/20.3 440 | 440 12 | 12 same
row text .tx 20 | 18 14/20.3 | 13/18.85 400 | 400 product keeps desktop UI text 14 px (plan: product tokens)
selected row tint 30 | 30 12 | 12 ink at 8.5 % both
section head 17 | 17 12/17.4 | 12/17.4 650 | 650 same, 12 px left pad both
count 16 | 17 12/16.8 | 12/17.4 440 | 440 line-height 0.6 px off
brand (title) 52 | 52 15/21 | 14/20.3 650 | 440 product's existing title style kept

Line-heights are ≥ 1.4 throughout. Images below: product library (light, dark), Outline, Links, and the mockup pair.

product-1440-light-library.png

product-1440-light-library.png

mockup-1440-light-library.png

mockup-1440-light-library.png

dark-new.png

dark-new.png

mockup-1440-dark-library.png

mockup-1440-dark-library.png

product-1440-light-outline.png

product-1440-light-outline.png

product-1440-dark-links.png

product-1440-dark-links.png

mockup-1440-light-listview.png

mockup-1440-light-listview.png

## Real Safari 1440 (macos-01, Safari 26, loopback servers), product vs approved mockup, light and dark Product = `89dc71c3f` build (slice 3 + 3b), 40 seeded notes, tags `topicNN` + `area/partN`. Mockup = https://preview.calternal.cloud/calendar-2/chrome.html (`#/note/calternal-rewrite?list=all`). **Note:** the mockup page came up in its dark scheme even for the "light" pair (the Mac's appearance), so mockup colours are dark in both rows; only geometry/type compare directly. The mockup has Collections/Folders/thumbnails (out of this release) and its list view opens in the main area (see decision 1 in the description). Computed values (product | mockup), sidebar tree, Safari 1440: | element | height | font / line-height | weight | radius | note | |---|---|---|---|---|---| | tab strip | 34 \| 34 | 14/19.6 \| 14/20.3 | 440 \| 440 | | same | | tree row `.tr` | 30 \| 30 | 14/19.6 \| 14/20.3 | 440 \| 440 | 12 \| 12 | same | | row text `.tx` | 20 \| 18 | **14**/20.3 \| 13/18.85 | 400 \| 400 | | product keeps desktop UI text 14 px (plan: product tokens) | | selected row tint | 30 \| 30 | | | 12 \| 12 | ink at 8.5 % both | | section head | 17 \| 17 | 12/17.4 \| 12/17.4 | 650 \| 650 | | same, 12 px left pad both | | count | 16 \| 17 | 12/16.8 \| 12/17.4 | 440 \| 440 | | line-height 0.6 px off | | brand (title) | 52 \| 52 | 15/21 \| 14/20.3 | 650 \| 440 | | product's existing title style kept | Line-heights are ≥ 1.4 throughout. Images below: product library (light, dark), Outline, Links, and the mockup pair. **product-1440-light-library.png** ![product-1440-light-library.png](https://git.kayg.org/attachments/4729b724-1bb8-4b5d-bb80-87e34c7e25ed) **mockup-1440-light-library.png** ![mockup-1440-light-library.png](https://git.kayg.org/attachments/508b891a-021b-4fd8-9526-822677c6b472) **dark-new.png** ![dark-new.png](https://git.kayg.org/attachments/5d46670f-a4ab-4c34-950c-42b4b7ff0b3b) **mockup-1440-dark-library.png** ![mockup-1440-dark-library.png](https://git.kayg.org/attachments/051da6df-8692-477d-8926-41b8be3e1af6) **product-1440-light-outline.png** ![product-1440-light-outline.png](https://git.kayg.org/attachments/1bd19700-f315-419c-9363-12410ffb0f44) **product-1440-dark-links.png** ![product-1440-dark-links.png](https://git.kayg.org/attachments/1e78a676-6f8d-4777-b00f-e944aed1f7b1) **mockup-1440-light-listview.png** ![mockup-1440-light-listview.png](https://git.kayg.org/attachments/371de12b-e9ba-4918-b404-1a267aac17c3)
Author
Owner

Final head 89dc71c3f: Safari 1440 (macos-01) and iPhone Simulator (std)

The first comment's shots were an earlier head (a stale service worker served an older build; runs now use fresh ports). These are the final head: Library heading, ink-tinted rows. The dark library shot was taken before the editor's text had painted (3 s wait on a busy VM); the text paints (see the earlier dark shot).

Phone (iPhone 18 Pro, iOS 27.0 Simulator, own sim, deleted after): this slice does not touch the phone (PhoneStack keeps Sidebar.svelte; phone parity is slice 8). Shots of the product's phone list in dark are attached for the record; the "places" URL landed on today's note (first run, no state), the list and note screens are the product's unchanged ones. Mockup phone pairs were taken too but compare against slice 8, not this PR.

final-product-1440-light-library.png

final-product-1440-light-library.png

final-product-1440-dark-library.png

final-product-1440-dark-library.png

final-product-1440-light-outline.png

final-product-1440-light-outline.png

final-product-1440-dark-links.png

final-product-1440-dark-links.png

product-390-dark-list.png

product-390-dark-list.png

product-390-light-note.png

product-390-light-note.png

mockup-390-light-places.png

mockup-390-light-places.png

## Final head `89dc71c3f`: Safari 1440 (macos-01) and iPhone Simulator (std) The first comment's shots were an earlier head (a stale service worker served an older build; runs now use fresh ports). These are the final head: Library heading, ink-tinted rows. The dark library shot was taken before the editor's text had painted (3 s wait on a busy VM); the text paints (see the earlier dark shot). **Phone (iPhone 18 Pro, iOS 27.0 Simulator, own sim, deleted after):** this slice does not touch the phone (PhoneStack keeps `Sidebar.svelte`; phone parity is slice 8). Shots of the product's phone list in dark are attached for the record; the "places" URL landed on today's note (first run, no state), the list and note screens are the product's unchanged ones. Mockup phone pairs were taken too but compare against slice 8, not this PR. **final-product-1440-light-library.png** ![final-product-1440-light-library.png](https://git.kayg.org/attachments/ef89083c-8c4b-4713-b6a4-28d110f29717) **final-product-1440-dark-library.png** ![final-product-1440-dark-library.png](https://git.kayg.org/attachments/b1821b39-c942-4224-9e23-2bf81dbb1e48) **final-product-1440-light-outline.png** ![final-product-1440-light-outline.png](https://git.kayg.org/attachments/25c0ef50-93f1-4512-ae9d-4758c1ba7245) **final-product-1440-dark-links.png** ![final-product-1440-dark-links.png](https://git.kayg.org/attachments/ce677996-379b-440f-9088-a3474ed7a20e) **product-390-dark-list.png** ![product-390-dark-list.png](https://git.kayg.org/attachments/743fd1b1-6ad8-43e4-b349-99bb96c67442) **product-390-light-note.png** ![product-390-light-note.png](https://git.kayg.org/attachments/2f60b4ce-2655-40cf-94ae-9df16a64f9a1) **mockup-390-light-places.png** ![mockup-390-light-places.png](https://git.kayg.org/attachments/a3569ee1-7d66-4c18-ab67-d104817f412c)
Author
Owner

Safari frames (real Safari, macos-01), head 89dc71c3f, fresh ports, 6 cycles x 3 arms, ABAB rotating, one session

Arms: dev 796d80cba, base 2656c3d08 (port/notes-float, #1116 in), new = this PR. rAF deltas (ms): median of per-run worst frame / total frames >= 50 ms over 6 runs. Caveat: the VM was noisy (blank page: mean 17.5, worst 142 ms; infraternal J601 benchmarks were running on std), so only same-session comparisons are meaningful.

gesture dev base new
idle 23.5 / 0 23.5 / 0 23.5 / 0
list scroll 24.0 / 0 24.5 / 0 27.5 / 0 (max 34)
open note 33.5 / 1 42.0 / 2 40.0 / 4
sidebar hide 60.0 / 13 72.0 / 33 86.0 / 24
sidebar show 69.0 / 37 72.5 / 40 80.0 / 24

Read: list scroll and idle are flat (no frame over 50). Open note is at base. Sidebar hide/show: new is 8 to 14 ms above base in the median worst frame (total frames >= 50 ms are fewer for show, 24 vs 40); the earlier run of an earlier head (list moving by left) was worse, so the list now slides by translate. Hide/show was already slower than dev at base (window layout, slice 1a). I could not separate the remaining difference from noise in one session; worth a second look on a quiet VM.

## Safari frames (real Safari, macos-01), head `89dc71c3f`, fresh ports, 6 cycles x 3 arms, ABAB rotating, one session Arms: dev `796d80cba`, base `2656c3d08` (port/notes-float, #1116 in), new = this PR. rAF deltas (ms): median of per-run worst frame / total frames >= 50 ms over 6 runs. **Caveat:** the VM was noisy (blank page: mean 17.5, worst 142 ms; infraternal J601 benchmarks were running on std), so only same-session comparisons are meaningful. | gesture | dev | base | new | |---|---|---|---| | idle | 23.5 / 0 | 23.5 / 0 | 23.5 / 0 | | list scroll | 24.0 / 0 | 24.5 / 0 | 27.5 / 0 (max 34) | | open note | 33.5 / 1 | 42.0 / 2 | 40.0 / 4 | | sidebar hide | 60.0 / 13 | 72.0 / 33 | 86.0 / 24 | | sidebar show | 69.0 / 37 | 72.5 / 40 | 80.0 / 24 | Read: list scroll and idle are flat (no frame over 50). Open note is at base. Sidebar hide/show: new is 8 to 14 ms above base in the median worst frame (total frames >= 50 ms are fewer for show, 24 vs 40); the earlier run of an earlier head (list moving by `left`) was worse, so the list now slides by `translate`. Hide/show was already slower than dev at base (window layout, slice 1a). I could not separate the remaining difference from noise in one session; worth a second look on a quiet VM.
Author
Owner

Gates so far (head 873919779)

All Playwright on a server binary built from the base's crates (eaf4d0488, same tree as dev), dev-01 x86 (chromium) and dev-02 aarch64 (webkit), --workers=1 --retries=0.

  • bunx svelte-check --threshold error in apps/web: 0 errors. bunx vitest run (apps/web): 30 files, 299 tests (+ tag-tree.test.ts, 4 tests) pass.
  • Targeted specs (window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, keys-no-motion, switching) on chromium-1440/390 and webkit-1440/390: green (the 3 merge-by-drag tests are test.fixme).
  • Full suite split per project on the pre-final head ce5bfe2a5 (chromium-1440 622 passed / 7 failed; chromium-390 1048 / 9; webkit-1440 619 / 4; webkit-390 1043 / 6). Triage:
    • keys-no-motion x4 (chromium + webkit): mine (tree row tints, the global layer's --fade). Fixed in c3b9af01c; passes.
    • switching:135 (mouse-open fade): the test matched the animated element by class; with glass in the page fadeable splits the fade into the text's parts (opacity, 140 ms, unchanged). Test now checks the parts. Passes.
    • vim-block x2 (chromium-1440): fail identically on the base 2656c3d08 (not mine).
    • the phone failures (chromium-390 glass-roots/phone-edges/pill-room/tint/tree; webkit-390 glass/hidden-blocks/tags/tint): all 28 of those pass on both base and this head when run alone (they failed under four concurrent suites on one VM).
    • window-layout 77/97/169 failed once in a combined run under load; 80/80 pass at --repeat-each=10 (flaky rule).
  • Not yet run on the final head: a fresh full suite. Perf (pooled ABAB x3) is queued on perf-01 (see next comment).
## Gates so far (head `873919779`) All Playwright on a server binary built from the base's crates (`eaf4d0488`, same tree as dev), dev-01 x86 (chromium) and dev-02 aarch64 (webkit), `--workers=1 --retries=0`. - `bunx svelte-check --threshold error` in `apps/web`: 0 errors. `bunx vitest run` (apps/web): 30 files, 299 tests (+ `tag-tree.test.ts`, 4 tests) pass. - Targeted specs (window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, keys-no-motion, switching) on chromium-1440/390 and webkit-1440/390: green (the 3 merge-by-drag tests are `test.fixme`). - Full suite split per project on the pre-final head `ce5bfe2a5` (chromium-1440 622 passed / 7 failed; chromium-390 1048 / 9; webkit-1440 619 / 4; webkit-390 1043 / 6). Triage: - `keys-no-motion` x4 (chromium + webkit): mine (tree row tints, the global layer's `--fade`). Fixed in `c3b9af01c`; passes. - `switching:135` (mouse-open fade): the test matched the animated element by class; with glass in the page `fadeable` splits the fade into the text's parts (opacity, 140 ms, unchanged). Test now checks the parts. Passes. - `vim-block` x2 (chromium-1440): fail identically on the base `2656c3d08` (not mine). - the phone failures (chromium-390 glass-roots/phone-edges/pill-room/tint/tree; webkit-390 glass/hidden-blocks/tags/tint): all 28 of those pass on both base and this head when run alone (they failed under four concurrent suites on one VM). - `window-layout` 77/97/169 failed once in a combined run under load; 80/80 pass at `--repeat-each=10` (flaky rule). - Not yet run on the final head: a fresh full suite. Perf (pooled ABAB x3) is queued on perf-01 (see next comment).
Author
Owner

Perf: pooled ABAB x3, perf-01 + perf-02 (typing and list scroll CPU, CDP ThreadTime at 4x throttle), via ~/bin/perf-turn (FRONT, authorised)

Arms per session (8 samples each, rotating order, one session): dev (796d80cba), dev2 (the control: dev again), base (2656c3d08, port/notes-float with #1116), new (this PR at 89dc71c3f; later commits are CSS-only transition rules, tests and budgets). Server binary ~/nfa-perf/calternal (sha256 d62dfd28..., crates eaf4d0488), dists built on dev-01 with the fonts step, relayed and sha256-verified (dev 6278ef14..., base 2150dfa5..., new f9d616d9...). Harness: ops/orchestrator/harness/notes-float/perf-01/typing-list-cpu.mjs, 24 samples per arm over 3 sessions; each sample normalised to its own session's dev mean; +-CI = 1.96 se.

metric new vs dev base vs dev control (dev2) vs dev
typing CPU / key -3.24 % (+-0.2) -3.07 % +4.40 % (+-8.5)
typing script / key -13.88 % (+-0.9) -13.63 % +28.4 % (+-55; one noisy session)
list scroll CPU -15.66 % (+-0.5) -19.13 % -1.66 % (+-2.0)
list scroll script +0.02 % (+-1.5) +1.28 % (+-1.2) -0.97 %
list layout -1.73 % (+-1.6) -0.35 % +0.11 %
list recalc style +1.89 % (+-2.0) -0.59 % -2.09 %

Read: list script is at dev (the residuals fix holds, the flat list adds no per-scroll work) and below base by 1.3 points; typing is below dev and equal to base. List CPU is 15.7 % below dev but 3.5 points above base (the flat list repaints without the card's own layer; recalc +1.9 % is inside the CI). No hot path is above dev. Per-session numbers (new/base/ctl vs dev) are consistent in sign across the 3 sessions (list script: -0.3/-0.8/+1.1 %).

Fixture note (orchestrator watch): the shared ~/nfa-perf/fixture was contaminated (admin.sock, invite.key, auth.db-shm/-wal in system/, also in the copy my first session used; that session was stopped before its numbers counted). These numbers are from a private copy fixture-n3 = the shared fixture minus those four runtime files (kept .calternal-install-id, auth.db: the server refuses a Home without its pairing; a copy without system/ or without the install id failed to start, two sessions lost to that). I did not touch the shared fixture. Earlier aborted attempts: one session stopped because run7.sh was not staged, one because of the fixture; I removed want-second/second-ready in ~/nfa-perf once while stopping my own first session (another lane's ticket might have been waiting on them: nf1bp-1107 was alive at the time).

Bundle (brotli KB, first paint): index.js 223.7 (dev) / 229.2 (base) / 232.9 (new, +3.70 over base), index.css 18.5 / 19.8 / 21.0, idle-screens -1.3; Outline and Links are lazy chunks (0.65 and 0.57 KB). perf/budgets.json updated (kayg 11-11: small growth OK); node perf/web-report.mjs --gate on the new dist: no budget over.

## Perf: pooled ABAB x3, perf-01 + perf-02 (typing and list scroll CPU, CDP ThreadTime at 4x throttle), via `~/bin/perf-turn` (FRONT, authorised) Arms per session (8 samples each, rotating order, one session): `dev` (`796d80cba`), `dev2` (the control: dev again), `base` (`2656c3d08`, port/notes-float with #1116), `new` (this PR at `89dc71c3f`; later commits are CSS-only transition rules, tests and budgets). Server binary `~/nfa-perf/calternal` (sha256 `d62dfd28...`, crates `eaf4d0488`), dists built on dev-01 with the fonts step, relayed and sha256-verified (dev `6278ef14...`, base `2150dfa5...`, new `f9d616d9...`). Harness: `ops/orchestrator/harness/notes-float/perf-01/typing-list-cpu.mjs`, 24 samples per arm over 3 sessions; each sample normalised to its own session's dev mean; +-CI = 1.96 se. | metric | new vs dev | base vs dev | control (dev2) vs dev | |---|---|---|---| | typing CPU / key | **-3.24 %** (+-0.2) | -3.07 % | +4.40 % (+-8.5) | | typing script / key | **-13.88 %** (+-0.9) | -13.63 % | +28.4 % (+-55; one noisy session) | | list scroll CPU | **-15.66 %** (+-0.5) | -19.13 % | -1.66 % (+-2.0) | | list scroll script | **+0.02 %** (+-1.5) | +1.28 % (+-1.2) | -0.97 % | | list layout | -1.73 % (+-1.6) | -0.35 % | +0.11 % | | list recalc style | +1.89 % (+-2.0) | -0.59 % | -2.09 % | Read: list script is at dev (the residuals fix holds, the flat list adds no per-scroll work) and below base by 1.3 points; typing is below dev and equal to base. List CPU is 15.7 % below dev but 3.5 points above base (the flat list repaints without the card's own layer; recalc +1.9 % is inside the CI). No hot path is above dev. Per-session numbers (new/base/ctl vs dev) are consistent in sign across the 3 sessions (list script: -0.3/-0.8/+1.1 %). **Fixture note (orchestrator watch):** the shared `~/nfa-perf/fixture` was contaminated (`admin.sock`, `invite.key`, `auth.db-shm/-wal` in `system/`, also in the copy my first session used; that session was stopped before its numbers counted). These numbers are from a private copy `fixture-n3` = the shared fixture minus those four runtime files (kept `.calternal-install-id`, `auth.db`: the server refuses a Home without its pairing; a copy without `system/` or without the install id failed to start, two sessions lost to that). I did not touch the shared fixture. Earlier aborted attempts: one session stopped because `run7.sh` was not staged, one because of the fixture; I removed `want-second`/`second-ready` in `~/nfa-perf` once while stopping my own first session (another lane's ticket might have been waiting on them: nf1bp-1107 was alive at the time). **Bundle (brotli KB, first paint):** index.js 223.7 (dev) / 229.2 (base) / 232.9 (new, +3.70 over base), index.css 18.5 / 19.8 / 21.0, idle-screens -1.3; Outline and Links are lazy chunks (0.65 and 0.57 KB). `perf/budgets.json` updated (kayg 11-11: small growth OK); `node perf/web-report.mjs --gate` on the new dist: no budget over.
Author
Owner

Merged port/notes-float ff3b43cfc (1b dock/appSwipe, slice 2, #1121, #1123, #1126): head f21bc5a0c

  • Conflicts: switching.spec.ts (took base's fade check; it covers the split fade, my version is dropped) and perf/budgets.json. NotesSide now ends in WindowDock and the nav takes appSwipe (same as Sidebar.svelte); Sidebar.svelte is untouched (phone).
  • dev-01 chromium-1440/390 (server binary from crates eaf4d0488, unchanged): my targeted specs + app-switch, app-swipe, toolbar-slot, switching, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, glass, contrast etc.: 94 passed, 4 failed, all keys-no-motion (i.hl (opacity), from slice 2's PageToolbar). The same 4 fail on base ff3b43cfc, so not from this PR.
  • svelte-check (apps/web): 0 errors. vitest: 31 files, 301 tests pass.
  • Bundle: index 235.034 KB brotli (base line 231.5: +3.5 for the tree), first_js 235.0 (cap 240), first_css 21.57 (cap 22.1); OutlineTab 0.646 / LinksTab 0.535. Budget lines set to measured (index 235.04), total = sum of lines (561.932); gate clean.
  • Tag drag-to-arrange / merge-by-drag unchanged in this PR; the fixme'd specs are kept.
  • Still waiting on std (dev-02, macos-01, sim down): webkit specs, Safari hide/show ABAB, light-vs-dark mockup pairs, cleanup there.
## Merged `port/notes-float` ff3b43cfc (1b dock/appSwipe, slice 2, #1121, #1123, #1126): head `f21bc5a0c` - Conflicts: `switching.spec.ts` (took base's fade check; it covers the split fade, my version is dropped) and `perf/budgets.json`. `NotesSide` now ends in `WindowDock` and the nav takes `appSwipe` (same as `Sidebar.svelte`); `Sidebar.svelte` is untouched (phone). - dev-01 chromium-1440/390 (server binary from crates `eaf4d0488`, unchanged): my targeted specs + app-switch, app-swipe, toolbar-slot, switching, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, glass, contrast etc.: 94 passed, 4 failed, all `keys-no-motion` (`i.hl (opacity)`, from slice 2's `PageToolbar`). **The same 4 fail on base ff3b43cfc**, so not from this PR. - svelte-check (apps/web): 0 errors. vitest: 31 files, 301 tests pass. - Bundle: index 235.034 KB brotli (base line 231.5: +3.5 for the tree), first_js 235.0 (cap 240), first_css 21.57 (cap 22.1); OutlineTab 0.646 / LinksTab 0.535. Budget lines set to measured (index 235.04), total = sum of lines (561.932); gate clean. - Tag drag-to-arrange / merge-by-drag unchanged in this PR; the fixme'd specs are kept. - Still waiting on std (dev-02, macos-01, sim down): webkit specs, Safari hide/show ABAB, light-vs-dark mockup pairs, cleanup there.
Author
Owner

Merged port/notes-float 8e7611ad7 (dev's attachments + #1131): head b5cf1c87c

  • Conflict only in perf/budgets.json; resolved (index line 235.70 measured, Outline/Links lines kept, PictureViewer +0.01 build artefact, total = sum of lines: 572.892). Bundle gate on the merged build: clean.
  • Server binaries rebuilt for the new crates (1531900c): dev-01 x86 and dev-02 aarch64 (cargo build -p calternal), macOS copy from a matching worktree on macos-01.
  • chromium-1440/390 (dev-01): window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching: 83 passed, 0 failed (69 skipped by project).
  • webkit-1440/390 (dev-02), same list: 82 passed, 0 failed.

Real Safari 1440, product vs mockup, LIGHT and dark (this time the mockup really is light: theme=light in its URL)

Computed values (product | mockup), Safari 1440. Differences that are intended: product text is 14 px (product tokens; mockup rows are 13 px), the product keeps its existing 15/650 title, and the product has no Collections/Folders.

element scheme height font / line-height weight radius text colour background
tab strip light 34px | 34px 14px/19.6px | 14px/20.299999px 440 | 440 0px | 0px rgb(31, 27, 23) | rgb(38, 38, 38) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
tree row light 30px | 30px 14px/19.6px | 14px/20.299999px 440 | 440 12px | 12px rgb(64, 58, 52) | rgb(56, 56, 56) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
row text light 20px | 18px 14px/20.299999px | 13px/18.85px 400 | 400 0px | 0px rgb(64, 58, 52) | rgb(56, 56, 56) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
selected row light 30px | 30px 14px/19.6px | 14px/20.299999px 440 | 440 12px | 12px rgb(31, 27, 23) | rgb(38, 38, 38) oklab(0.225276 0.003792 0.009062 / 0.085) | oklab(0.268618 0 0 / 0.085)
section head light 17px | 17px 12px/17.4px | 12px/17.4px 650 | 650 0px | 0px rgb(64, 58, 52) | rgb(56, 56, 56) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
count light 16px | 17px 12px/16.799999px | 12px/17.4px 440 | 440 0px | 0px rgb(64, 58, 52) | rgb(66, 66, 66) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
brand light 52px | 52px 15px/21px | 14px/20.299999px 650 | 440 0px | 0px rgb(31, 27, 23) | rgb(38, 38, 38) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
tab strip dark 34px | 34px 14px/19.6px | 14px/20.299999px 450 | 440 0px | 0px rgb(244, 239, 233) | rgb(235, 235, 235) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
tree row dark 30px | 30px 14px/19.6px | 14px/20.299999px 450 | 440 12px | 12px rgb(226, 218, 208) | rgb(216, 216, 216) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
row text dark 20px | 18px 14px/20.299999px | 13px/18.85px 400 | 400 0px | 0px rgb(226, 218, 208) | rgb(216, 216, 216) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
selected row dark 30px | 30px 14px/19.6px | 14px/20.299999px 450 | 440 12px | 12px rgb(244, 239, 233) | rgb(235, 235, 235) oklab(0.954348 0.002878 0.009219 / 0.085) | oklab(0.94007 0 0 / 0.085)
section head dark 17px | 17px 12px/17.4px | 12px/17.4px 650 | 650 0px | 0px rgb(226, 218, 208) | rgb(216, 216, 216) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
count dark 16px | 17px 12px/16.799999px | 12px/17.4px 450 | 440 0px | 0px rgb(207, 198, 187) | rgb(157, 157, 157) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)
brand dark 52px | 52px 15px/21px | 14px/20.299999px 650 | 440 0px | 0px rgb(244, 239, 233) | rgb(235, 235, 235) rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0)

s4-product-1440-light-library.png

s4-product-1440-light-library.png

s4-mockup-1440-light-library.png

s4-mockup-1440-light-library.png

s4-product-1440-dark-library.png

s4-product-1440-dark-library.png

s4-mockup-1440-dark-library.png

s4-mockup-1440-dark-library.png

s4-product-1440-light-outline.png

s4-product-1440-light-outline.png

s4-mockup-1440-light-listview.png

s4-mockup-1440-light-listview.png

## Merged `port/notes-float` 8e7611ad7 (dev's attachments + #1131): head `b5cf1c87c` - Conflict only in `perf/budgets.json`; resolved (index line 235.70 measured, Outline/Links lines kept, PictureViewer +0.01 build artefact, total = sum of lines: 572.892). Bundle gate on the merged build: clean. - Server binaries rebuilt for the new crates (`1531900c`): dev-01 x86 and dev-02 aarch64 (`cargo build -p calternal`), macOS copy from a matching worktree on macos-01. - chromium-1440/390 (dev-01): window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching: **83 passed, 0 failed** (69 skipped by project). - webkit-1440/390 (dev-02), same list: **82 passed, 0 failed**. ## Real Safari 1440, product vs mockup, LIGHT and dark (this time the mockup really is light: `theme=light` in its URL) Computed values (product \| mockup), Safari 1440. Differences that are intended: product text is 14 px (product tokens; mockup rows are 13 px), the product keeps its existing 15/650 title, and the product has no Collections/Folders. | element | scheme | height | font / line-height | weight | radius | text colour | background | |---|---|---|---|---|---|---|---| | tab strip | light | 34px \| 34px | 14px/19.6px \| 14px/20.299999px | 440 \| 440 | 0px \| 0px | rgb(31, 27, 23) \| rgb(38, 38, 38) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | tree row | light | 30px \| 30px | 14px/19.6px \| 14px/20.299999px | 440 \| 440 | 12px \| 12px | rgb(64, 58, 52) \| rgb(56, 56, 56) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | row text | light | 20px \| 18px | 14px/20.299999px \| 13px/18.85px | 400 \| 400 | 0px \| 0px | rgb(64, 58, 52) \| rgb(56, 56, 56) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | selected row | light | 30px \| 30px | 14px/19.6px \| 14px/20.299999px | 440 \| 440 | 12px \| 12px | rgb(31, 27, 23) \| rgb(38, 38, 38) | oklab(0.225276 0.003792 0.009062 / 0.085) \| oklab(0.268618 0 0 / 0.085) | | section head | light | 17px \| 17px | 12px/17.4px \| 12px/17.4px | 650 \| 650 | 0px \| 0px | rgb(64, 58, 52) \| rgb(56, 56, 56) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | count | light | 16px \| 17px | 12px/16.799999px \| 12px/17.4px | 440 \| 440 | 0px \| 0px | rgb(64, 58, 52) \| rgb(66, 66, 66) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | brand | light | 52px \| 52px | 15px/21px \| 14px/20.299999px | 650 \| 440 | 0px \| 0px | rgb(31, 27, 23) \| rgb(38, 38, 38) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | tab strip | dark | 34px \| 34px | 14px/19.6px \| 14px/20.299999px | 450 \| 440 | 0px \| 0px | rgb(244, 239, 233) \| rgb(235, 235, 235) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | tree row | dark | 30px \| 30px | 14px/19.6px \| 14px/20.299999px | 450 \| 440 | 12px \| 12px | rgb(226, 218, 208) \| rgb(216, 216, 216) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | row text | dark | 20px \| 18px | 14px/20.299999px \| 13px/18.85px | 400 \| 400 | 0px \| 0px | rgb(226, 218, 208) \| rgb(216, 216, 216) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | selected row | dark | 30px \| 30px | 14px/19.6px \| 14px/20.299999px | 450 \| 440 | 12px \| 12px | rgb(244, 239, 233) \| rgb(235, 235, 235) | oklab(0.954348 0.002878 0.009219 / 0.085) \| oklab(0.94007 0 0 / 0.085) | | section head | dark | 17px \| 17px | 12px/17.4px \| 12px/17.4px | 650 \| 650 | 0px \| 0px | rgb(226, 218, 208) \| rgb(216, 216, 216) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | count | dark | 16px \| 17px | 12px/16.799999px \| 12px/17.4px | 450 \| 440 | 0px \| 0px | rgb(207, 198, 187) \| rgb(157, 157, 157) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | | brand | dark | 52px \| 52px | 15px/21px \| 14px/20.299999px | 650 \| 440 | 0px \| 0px | rgb(244, 239, 233) \| rgb(235, 235, 235) | rgba(0, 0, 0, 0) \| rgba(0, 0, 0, 0) | **s4-product-1440-light-library.png** ![s4-product-1440-light-library.png](https://git.kayg.org/attachments/ec373cec-67d0-42e1-aad7-a583148f8612) **s4-mockup-1440-light-library.png** ![s4-mockup-1440-light-library.png](https://git.kayg.org/attachments/88d95a18-9d1a-4bf8-b6c4-3405e85299ed) **s4-product-1440-dark-library.png** ![s4-product-1440-dark-library.png](https://git.kayg.org/attachments/26f02ad9-417b-4203-ab6a-a0c504ba7b81) **s4-mockup-1440-dark-library.png** ![s4-mockup-1440-dark-library.png](https://git.kayg.org/attachments/be765124-7b16-4a04-82fd-81dc25d8e16d) **s4-product-1440-light-outline.png** ![s4-product-1440-light-outline.png](https://git.kayg.org/attachments/6258e318-9489-4ef0-aeb4-57b2dd7cd9ec) **s4-mockup-1440-light-listview.png** ![s4-mockup-1440-light-listview.png](https://git.kayg.org/attachments/0884ed08-6fb9-4cdd-8d2f-837bd42238f6)
Author
Owner

Safari frames, quiet VM (macos-01, nothing else on std: infraternal#260 had no window, J629 released 12:47 UTC; webkit specs finished before this run), head b5cf1c87c

base 8e7611ad7 vs new, 8 cycles ABAB rotating, one session, fresh ports (no stale service worker). Blank page: mean 17.1 ms, n 137 (one 103 ms outlier at start). rAF deltas, median of per-run worst frame (ms) / total frames >= 50 ms over 8 runs:

gesture base new
idle 24.0 / 0 24.0 / 0
list scroll 24.0 / 0 25.5 / 0
sidebar hide 61.5 / 19 62.5 / 13
sidebar show 58.0 / 20 57.5 / 13
open note 37.0 / 2 47.0 / 5 (max 123)

Hide/show: equal to base (the list sliding by translate fixed the earlier excess), with fewer long frames. List scroll and idle flat. Open note is about 10 ms worse in the median worst frame (5 frames >= 50 ms against 2, over 8 runs). I have not found why; candidates are the list row's click now running with the flat list (no card layer) and the sidebar's Outline/idle-row work landing in the same frame. Not measured on perf VMs; worth one more look before merge.

## Safari frames, quiet VM (macos-01, nothing else on std: infraternal#260 had no window, J629 released 12:47 UTC; webkit specs finished before this run), head `b5cf1c87c` base `8e7611ad7` vs new, 8 cycles ABAB rotating, one session, fresh ports (no stale service worker). Blank page: mean 17.1 ms, n 137 (one 103 ms outlier at start). rAF deltas, median of per-run worst frame (ms) / total frames >= 50 ms over 8 runs: | gesture | base | new | |---|---|---| | idle | 24.0 / 0 | 24.0 / 0 | | list scroll | 24.0 / 0 | 25.5 / 0 | | sidebar hide | 61.5 / 19 | 62.5 / 13 | | sidebar show | 58.0 / 20 | 57.5 / 13 | | open note | 37.0 / 2 | **47.0 / 5** (max 123) | Hide/show: equal to base (the list sliding by `translate` fixed the earlier excess), with fewer long frames. List scroll and idle flat. **Open note is about 10 ms worse in the median worst frame** (5 frames >= 50 ms against 2, over 8 runs). I have not found why; candidates are the list row's click now running with the flat list (no card layer) and the sidebar's Outline/idle-row work landing in the same frame. Not measured on perf VMs; worth one more look before merge.
Author
Owner

Open-note Safari gap: not a regression (harness artefact) · tag arrange/merge restored · head 2b655fc6a (merged port/notes-float 3cb2fd31e)

1. Open note in real Safari: the "47 vs 37 ms" was the harness clicking the already-open note on one arm

I instrumented the first open click in Safari (macos-01): MutationObserver counts per region plus rAF and task gaps. On base (and in that session on a layer-fix build too), the click on list row #1 changed one attribute and opened nothing: row #1 was the note already open. On the branch, the same click opened a different note (~190 mutations). The 40 seeded notes are created within about a second, and their tie order (newest-first by second, then by id) depends on whether a second boundary falls mid-seed. So per run one arm compared a no-op click and the other a real open. Opens #2 and #3, always real, were ~60 ms on every arm, base included.

The harness now clicks the k-th row that is not the open note and checks the open happened (opened = aria-current moved). With every open verified:

Safari 1440, 8 cycles ABAB, one session base head
open note (3 per load, 24 opens, all real) median worst / frames ≥50 57.5 / 24 55.0 / 19
first open only 56.5 / 8 50.5 / 5

(Pre-merge tree b5cf1c87c vs 8e7611ad7.) I tried giving the flat list an always-on layer (will-change); it didn't help (55.0 / 21), so I reverted it (c4cf959c8 → 3b3bbd262). The Chromium trace of opens (dev-01, 8 loads ABAB × 6 opens) found no extra work on the branch: RunTask 53.8 ms vs base 59.1, Paint 1.87 vs 2.06.

Final head vs base 3cb2fd31e (dist b216ce3e8; later commits are the merge-hover slot rule and budget lines only), Safari 1440, 8 cycles, every open verified, median worst ms / frames ≥50:

gesture base head
idle 23.5 / 0 23.5 / 0
list scroll 23.0 / 0 23.5 / 0
open note (24) 51.5 / 14 49.0 / 11
sidebar hide 69.0 / 23 64.0 / 19
sidebar show 82.0 / 30 68.5 / 20
zen in 68.5 / 6 47.5 / 3
zen out 77.0 / 8 63.0 / 6

Note: this evening the VM had about 1.1 GB free and occasional 200 to 1300 ms stalls on every arm. A 4-arm session (old base, old head, new base, new head) showed stalls over 200 ms on hide/show of 3+4 / 3+2 / 1+2 / 3+0. They are environmental, not this PR's. The earlier quiet session (conf2) had none on either arm.

2. kayg 14 Nov 21:50 IST: tag arrange and drag-merge restored (no feature dropped)

  • Order source: the tag tree shows the person's saved sidebar order, not name order. Siblings sort by the earliest-ranked tag in each branch, and a parent nobody writes takes its first child's place (lib/tag-tree rank). A flat tag list is exactly dev's order.
  • Drag to arrange: dev's Sidebar drag is kept as window/tree/arrange-drag (5 px mouse lift, 320 ms touch press, rows held still while dragging (#410), rows step aside, FLIP on drop, click swallowed after a drag). A tag moves among its siblings with its open branch, since its parent comes from its name; that is the tree's form of dev's "stays in its section". Places arrange too.
  • Drag to merge: held right over another tag row (within 0.3 of a row, as on dev), it merges through dev's askMergeTag: same bar, same confirm, same job, same Undo. Over a sibling the rows between part and the target stays put (dev's look).
  • ⌥↑ / ⌥↓ and the menu's Move up / Move down are back (for a tag they move it among its siblings).
  • The 3b look is unchanged at rest; rows only get a translate while a drag runs. Lifted and merge states are dev's styles. Checked in real Safari, light and dark (shots below).
  • Specs: dev's three merge-by-drag tests in tag-rename.spec.ts run again (selectors adapted to the tree rows). The new sidebar-arrange.spec.ts covers: drag between two tags then reload, ⌥↑/⌥↓ with focus kept, menu Move up, and places with ⌥↑. Unit tests are in lib/tree-arrange.test.ts.
  • dev had no separate "arrange" e2e specs to un-fixme; the PR had only parked the three merge specs.

3. Spec fix: window-layout:77/:97/:169 (this PR's spec)

Since slice 3 the list slides by translate. The test read the boxes right after Hide places, so under load it read them mid-slide (h1 159 < toggle 178). A failure then left the sidebar hidden, which is a saved preference of the shared test person, and the next two tests timed out on "Hide places". The tests now wait until no transition in the window runs, and restore the sidebar in finally. --repeat-each=5: 40/40 passed on chromium and webkit.

Gates (head 44df6edfa/2b655fc6a; server binary from the base crates, sha256 fd197ff8…, crates unchanged since 8e7611ad7)

  • chromium-1440/390 (dev-01), gates.sh list (sidebar-arrange, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching, list-chrome), --workers=1: 100 passed, 0 failed
  • webkit-1440/390 (dev-02), same list: 99 passed, 0 failed
  • restore specs after the last code commit 44df6edfa (sidebar-arrange, tag-rename, notes-sidebar-tree, sidebar-drop @1440): chromium 20/20, webkit 20/20
  • bun run check (action types + svelte-check): exit 0 · vitest run: 319 passed
  • bundle gate PERF_DIST=… perf/web.sh --bundle-only --gate: exit 0. index 237.229 KB br. The restored drag adds +1.54 KB (line 237.31; first-paint 240 untouched; kayg 11-11 small growth OK). OutlineTab 0.66 and press 7.88 are build jitter (neither chunk changed). Total = sum of the lines.

Perf: pooled ABAB ×3, perf-01 + perf-02 lock, FRONT (authorised), own fixture copy

Arms: dev = base 3cb2fd31e, dev2 = base again (control), new = head dist b216ce3e8, 8 each per session, 24 per arm. Own fixture ~/nf3oh-perf/fixture-oh = the shared fixture minus admin.sock, invite.key, auth.db-shm/-wal. Binary sha256 fd197ff8….

metric new vs base control vs base
typing CPU / key −0.21 % ±0.22 −0.19 %
typing script / key −1.46 % ±0.94 −1.01 %
list scroll CPU +2.98 % ±0.79 −0.32 % ±0.91
list script +1.46 % ±1.68 −0.05 %
list layout +0.44 % ±1.68 −0.48 %
list recalc +2.92 % ±2.32 +0.49 %

Per session, list CPU was +4.9 / +2.0 / +2.0 %. Typing is at base. List scroll CPU is about 3 % over base, consistent in sign, outside the CI. This is the slice-3 flat-list cost comment 96250 already measured before my work (+3.5 points over base, still below dev); my changes don't touch the list. One extra session tested an always-on list layer: +3.65 % (±0.72) vs +4.19 % (±0.74) without it, so the cost does not come from the list losing its layer. Open: under the zero-regression rule this is a blocker against base, and its cause needs its own look: a Chromium trace of list scroll, base vs head, layer tree plus paint invalidation of the flat list over the global layer's background-attachment: fixed strip. Safari list scroll frames are at base.

Not merged. Harness scripts and shots stay out of the repo.

Real Safari shots (macos-01, head dist, sample data): the restored drag

at rest (3b look unchanged)

rest-light

a tag lifted between two others (light)

lifted-light

held over a tag to merge (dark; the target is under the lifted row, as on dev)

merge-over-dark

## Open-note Safari gap: not a regression (harness artefact) · tag arrange/merge restored · head `2b655fc6a` (merged `port/notes-float` 3cb2fd31e) ### 1. Open note in real Safari: the "47 vs 37 ms" was the harness clicking the already-open note on one arm I instrumented the first open click in Safari (macos-01): MutationObserver counts per region plus rAF and task gaps. On **base** (and in that session on a layer-fix build too), the click on list row #1 changed **one attribute and opened nothing**: row #1 was the note already open. On the **branch**, the same click opened a different note (~190 mutations). The 40 seeded notes are created within about a second, and their tie order (newest-first by second, then by id) depends on whether a second boundary falls mid-seed. So per run one arm compared a no-op click and the other a real open. Opens #2 and #3, always real, were ~60 ms on **every** arm, base included. The harness now clicks the k-th row that is not the open note and checks the open happened (`opened` = aria-current moved). With every open verified: | Safari 1440, 8 cycles ABAB, one session | base | head | |---|---|---| | open note (3 per load, 24 opens, all real) median worst / frames ≥50 | 57.5 / 24 | 55.0 / 19 | | first open only | 56.5 / 8 | 50.5 / 5 | (Pre-merge tree `b5cf1c87c` vs `8e7611ad7`.) I tried giving the flat list an always-on layer (`will-change`); it didn't help (55.0 / 21), so I reverted it (`c4cf959c8` → `3b3bbd262`). The Chromium trace of opens (dev-01, 8 loads ABAB × 6 opens) found no extra work on the branch: RunTask 53.8 ms vs base 59.1, Paint 1.87 vs 2.06. **Final head vs base `3cb2fd31e`** (dist `b216ce3e8`; later commits are the merge-hover slot rule and budget lines only), Safari 1440, 8 cycles, every open verified, median worst ms / frames ≥50: | gesture | base | head | |---|---|---| | idle | 23.5 / 0 | 23.5 / 0 | | list scroll | 23.0 / 0 | 23.5 / 0 | | open note (24) | 51.5 / 14 | 49.0 / 11 | | sidebar hide | 69.0 / 23 | 64.0 / 19 | | sidebar show | 82.0 / 30 | 68.5 / 20 | | zen in | 68.5 / 6 | 47.5 / 3 | | zen out | 77.0 / 8 | 63.0 / 6 | Note: this evening the VM had about 1.1 GB free and occasional 200 to 1300 ms stalls on **every** arm. A 4-arm session (old base, old head, new base, new head) showed stalls over 200 ms on hide/show of 3+4 / 3+2 / 1+2 / 3+0. They are environmental, not this PR's. The earlier quiet session (conf2) had none on either arm. ### 2. kayg 14 Nov 21:50 IST: tag arrange and drag-merge restored (no feature dropped) - **Order source:** the tag tree shows the person's saved sidebar order, not name order. Siblings sort by the earliest-ranked tag in each branch, and a parent nobody writes takes its first child's place (`lib/tag-tree` `rank`). A flat tag list is exactly dev's order. - **Drag to arrange:** dev's Sidebar drag is kept as `window/tree/arrange-drag` (5 px mouse lift, 320 ms touch press, rows held still while dragging (#410), rows step aside, FLIP on drop, click swallowed after a drag). A tag moves among its **siblings** with its open branch, since its parent comes from its name; that is the tree's form of dev's "stays in its section". Places arrange too. - **Drag to merge:** held right over another tag row (within 0.3 of a row, as on dev), it merges through dev's `askMergeTag`: same bar, same confirm, same job, same Undo. Over a sibling the rows between part and the target stays put (dev's look). - **⌥↑ / ⌥↓** and the menu's **Move up / Move down** are back (for a tag they move it among its siblings). - The 3b look is unchanged at rest; rows only get a `translate` while a drag runs. Lifted and merge states are dev's styles. Checked in real Safari, light and dark (shots below). - Specs: dev's three merge-by-drag tests in `tag-rename.spec.ts` run again (selectors adapted to the tree rows). The new `sidebar-arrange.spec.ts` covers: drag between two tags then reload, ⌥↑/⌥↓ with focus kept, menu Move up, and places with ⌥↑. Unit tests are in `lib/tree-arrange.test.ts`. - dev had no separate "arrange" e2e specs to un-fixme; the PR had only parked the three merge specs. ### 3. Spec fix: window-layout:77/:97/:169 (this PR's spec) Since slice 3 the list slides by `translate`. The test read the boxes right after Hide places, so under load it read them mid-slide (h1 159 < toggle 178). A failure then left the sidebar hidden, which is a saved preference of the shared test person, and the next two tests timed out on "Hide places". The tests now wait until no transition in the window runs, and restore the sidebar in `finally`. `--repeat-each=5`: 40/40 passed on chromium and webkit. ### Gates (head `44df6edfa`/`2b655fc6a`; server binary from the base crates, sha256 `fd197ff8…`, crates unchanged since `8e7611ad7`) - chromium-1440/390 (dev-01), `gates.sh` list (sidebar-arrange, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching, list-chrome), `--workers=1`: **100 passed, 0 failed** - webkit-1440/390 (dev-02), same list: **99 passed, 0 failed** - restore specs after the last code commit `44df6edfa` (sidebar-arrange, tag-rename, notes-sidebar-tree, sidebar-drop @1440): chromium **20/20**, webkit **20/20** - `bun run check` (action types + svelte-check): exit 0 · `vitest run`: **319 passed** - bundle gate `PERF_DIST=… perf/web.sh --bundle-only --gate`: exit 0. index 237.229 KB br. The restored drag adds +1.54 KB (line 237.31; first-paint 240 untouched; kayg 11-11 small growth OK). OutlineTab 0.66 and press 7.88 are build jitter (neither chunk changed). Total = sum of the lines. ### Perf: pooled ABAB ×3, perf-01 + perf-02 lock, FRONT (authorised), own fixture copy Arms: dev = base `3cb2fd31e`, dev2 = base again (control), new = head dist `b216ce3e8`, 8 each per session, 24 per arm. Own fixture `~/nf3oh-perf/fixture-oh` = the shared fixture minus `admin.sock`, `invite.key`, `auth.db-shm/-wal`. Binary sha256 `fd197ff8…`. | metric | new vs base | control vs base | |---|---|---| | typing CPU / key | −0.21 % ±0.22 | −0.19 % | | typing script / key | −1.46 % ±0.94 | −1.01 % | | **list scroll CPU** | **+2.98 % ±0.79** | −0.32 % ±0.91 | | list script | +1.46 % ±1.68 | −0.05 % | | list layout | +0.44 % ±1.68 | −0.48 % | | list recalc | +2.92 % ±2.32 | +0.49 % | Per session, list CPU was +4.9 / +2.0 / +2.0 %. Typing is at base. **List scroll CPU is about 3 % over base**, consistent in sign, outside the CI. This is the slice-3 flat-list cost comment 96250 already measured before my work (+3.5 points over base, still below dev); my changes don't touch the list. One extra session tested an always-on list layer: +3.65 % (±0.72) vs +4.19 % (±0.74) without it, so the cost does not come from the list losing its layer. **Open: under the zero-regression rule this is a blocker against base**, and its cause needs its own look: a Chromium trace of list scroll, base vs head, layer tree plus paint invalidation of the flat list over the global layer's `background-attachment: fixed` strip. Safari list scroll frames are at base. Not merged. Harness scripts and shots stay out of the repo. ### Real Safari shots (macos-01, head dist, sample data): the restored drag **at rest (3b look unchanged)** ![rest-light](https://git.kayg.org/attachments/5196c1de-af82-4d95-8d77-19a2b5df5d83) **a tag lifted between two others (light)** ![lifted-light](https://git.kayg.org/attachments/f1afdcb4-cc41-4000-a897-4863b249cec6) **held over a tag to merge (dark; the target is under the lifted row, as on dev)** ![merge-over-dark](https://git.kayg.org/attachments/2adf767b-1e67-4d2a-8f03-3346fec9e943)
Author
Owner

Merged port/notes-float 376a06ec5 (#1139 per-pill switcher, #1140 tables): head 72deb8257

  • Only perf/budgets.json conflicted. I resolved it to the base's lines plus this PR's Outline/Links lines, then built the merged head on dev-01 (aea300655, one builder) and set every over-budget chunk line to its measured size:
    • index 238.33 (measured 238.327): Float's 233.37 plus slice 3b and the restored tag drag.
    • Hashed-import jitter of a few bytes, in chunks this PR doesn't change: code-python 12.74, code-runtime 8.16, ContactsScreen 14.13, DeskPills 0.44, fix 2.21, follow 0.91, lazy 0.53, MergeSheet 2.15, open-menu 0.26, Palette 20.11, share-controls 1.38, sharing-sync 1.03, table-bar 2.24, tables 12.27, TasksScreen 12.64.
    • Total = sum of the lines = 583.406.
  • Bundle gate (PERF_DIST=… perf/web.sh --bundle-only --gate): exit 0. first_js_brotli 238.327 ≤ 240. That leaves 1.67 KB of first-paint headroom before kayg's 240 line, worth a trim round soon.
  • chromium-1440 + chromium-390 on dev-01, --workers=1, server binary fd197ff8… (crates unchanged since 3cb2fd31e). 23 spec files: the targeted list (sidebar-arrange, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching, list-chrome) plus tables, tables-parity: 154 passed, 0 failed (78 skipped by project).
## Merged `port/notes-float` 376a06ec5 (#1139 per-pill switcher, #1140 tables): head `72deb8257` - Only `perf/budgets.json` conflicted. I resolved it to the base's lines plus this PR's Outline/Links lines, then built the merged head on dev-01 (`aea300655`, one builder) and set every over-budget chunk line to its measured size: - **index 238.33** (measured 238.327): Float's 233.37 plus slice 3b and the restored tag drag. - Hashed-import jitter of a few bytes, in chunks this PR doesn't change: code-python 12.74, code-runtime 8.16, ContactsScreen 14.13, DeskPills 0.44, fix 2.21, follow 0.91, lazy 0.53, MergeSheet 2.15, open-menu 0.26, Palette 20.11, share-controls 1.38, sharing-sync 1.03, table-bar 2.24, tables 12.27, TasksScreen 12.64. - Total = sum of the lines = **583.406**. - Bundle gate (`PERF_DIST=… perf/web.sh --bundle-only --gate`): **exit 0**. first_js_brotli 238.327 ≤ 240. That leaves **1.67 KB of first-paint headroom** before kayg's 240 line, worth a trim round soon. - chromium-1440 + chromium-390 on dev-01, `--workers=1`, server binary `fd197ff8…` (crates unchanged since `3cb2fd31e`). 23 spec files: the targeted list (sidebar-arrange, window-layout, notes-sidebar-tree, sidebar-drop, tag-rename, keys-tab, list-fit, visibility, tabs, sidebar-band, sidebar-edge, flow, glass, contrast, shortcuts, adaptive-glass, app-switch, app-swipe, toolbar-slot, switching, list-chrome) plus **tables, tables-parity**: **154 passed, 0 failed** (78 skipped by project).
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator. Tag drag-to-order and drag-to-merge restored as on dev (Safari shots in 96994). List-scroll +3% vs base goes to a follow-up lane; first-paint 238.3/240 KB goes to a trim lane before the release. Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator. Tag drag-to-order and drag-to-merge restored as on dev (Safari shots in 96994). List-scroll +3% vs base goes to a follow-up lane; first-paint 238.3/240 KB goes to a trim lane before the release. Closing.
kayg closed this pull request 2026-11-14 19:49:08 +00:00
Author
Owner

List-scroll follow-up: #1147 (into port/notes-float). Pooled ×3 at the merged head: +1.60 % ±1.23 list CPU vs 376a06ec5 (+1.47 % ±1.16 in a second pooled run); no single cause found (fixed strip, tint, layer, composited scroller, idle rows all ruled out by measurement). .wlist{contain:strict} cuts list layout 9.8 % but leaves CPU flat. List script vs dev 44fc0b7c4: +2.31 % ±1.32, already +2.17 % on the base, so it comes before slice 3. Details in #1147.

List-scroll follow-up: #1147 (into port/notes-float). Pooled ×3 at the merged head: +1.60 % ±1.23 list CPU vs `376a06ec5` (+1.47 % ±1.16 in a second pooled run); no single cause found (fixed strip, tint, layer, composited scroller, idle rows all ruled out by measurement). `.wlist{contain:strict}` cuts list layout 9.8 % but leaves CPU flat. List script vs dev `44fc0b7c4`: +2.31 % ±1.32, already +2.17 % on the base, so it comes before slice 3. Details in #1147.
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!1122
No description provided.