Mockup: Collections DB round (DB-G1 A/B, DB-G2, DB-G3, EM11) #1066

Open
opened 2026-11-10 21:45:45 +00:00 by kayg · 21 comments
Owner

Mockup round for kayg's Collections DB asks (2026-11-10), spec: collections-db-mockup-2026-11-10.md.

  • DB-G1 properties on a note: variant A (rows) and B (quiet line) behind ?props=table / ?props=line
  • DB-G2 the ⋯ menu (Filter…, Sort and group…, Fields…, New view…) and the Table's column totals
  • DB-G3 several saved views: tabs (2+ views), tab menu, Views list with swipe actions, New view…
  • EM11 the "Open tasks" collection embedded in two notes: (a) "This note" filter chip, (b) the "this note" pill, (c) a new task links to its host note

Branch feat/collections-db (based on review/calendar-2). Preview slot: https://preview.calternal.cloud/collections/ . Evidence is posted as comments below. Nothing here is merged.

Mockup round for kayg's Collections DB asks (2026-11-10), spec: `collections-db-mockup-2026-11-10.md`. - DB-G1 properties on a note: variant A (rows) and B (quiet line) behind `?props=table` / `?props=line` - DB-G2 the ⋯ menu (Filter…, Sort and group…, Fields…, New view…) and the Table's column totals - DB-G3 several saved views: tabs (2+ views), tab menu, Views list with swipe actions, New view… - EM11 the "Open tasks" collection embedded in two notes: (a) "This note" filter chip, (b) the "this note" pill, (c) a new task links to its host note Branch `feat/collections-db` (based on `review/calendar-2`). Preview slot: https://preview.calternal.cloud/collections/ . Evidence is posted as comments below. Nothing here is merged.
Author
Owner

Collections DB round: evidence (head 7f379f674, branch feat/collections-db)

Preview (slot collections, built from that head): https://preview.calternal.cloud/collections/ — states have their own links (?db= opens a menu/sheet on arrival; mockup-only):

What is built

  • DB-G1: one Value component per property type (text, number, date, checkbox, rating, select/multi, link, URL, person), used by the note's rows (A, built on PropRow), the quiet line (B), Table cells and Board cards. Only filled values show; five rows then "N more"; "+ Property" suggests the collection's missing fields; values edit in place. A note with no properties shows nothing. Movies has 25 films (Status, Rating, Watched on, Genre multi-select, Director as person, URL); Arrival has 8 properties.
  • DB-G2: ⋯ holds Filter… (⌘K with removable chips), Sort and group…, Fields… (a switch per property), New view…. Each Table column has a footer total menu: Count, Sum, Average, Min, Max, Empty (None to clear).
  • DB-G3: tabs only with 2+ views, one scrolling row (phone too, shared ViewTabs); right-click/hold a tab for Rename · Duplicate · Delete; tapping the active tab opens the Views list, whose rows swipe (Duplicate / Rename / Delete). "New view…" adds a tab with its name open for typing; no permanent "+".
  • EM11: one "Open tasks" collection embedded in "Kitchen renovation" (5 tasks) and "Calternal launch" (4); (b) a "this note" pill beside the title; (a) a "This note" chip among the suggested filters in ⌘K (it becomes a chip in the field; Save returns to the note); (c) a task made in the embed links to its host note and shows at once.

Decisions (I made them; say if you want otherwise)

  • Tabs live on a strip that scrolls sideways, so a finger on a tab is the scroll and a tab can't swipe. The swipe actions are on the Views list rows (same actions as the tab's menu).
  • Embed task rows have a tick and the embed's menu but no row swipes: the editor owns horizontal swipes inside a note. Fields switches have no swipe (the switch is the action).
  • Movies' status values are now "To watch" / "Watched" (were lowercase), so the Board's column titles read right.
  • The Table's sticky title column only gets a fill while the table is scrolled sideways (so it looks as before otherwise).
  • The first pass had a state_unsafe_mutation page error: it was mine (the embed's "New task" button was removed while focused); fixed.
  • The ⌘K opened from an embed still shows the usual result list and preview under the suggestion row (busy; say if it should be empty until you type).

Checks

  • Specs on dev-01 (Chromium) at 50b9b865a: collections-db (new, 13 tests: A/B rows, in-place edit, + Property, ⋯ menu, Fields, totals, tabs + Views list, New view…, embeds, This note + Save, new task links to host) + collections-screens + collection-actions = 79 passed. The existing specs were updated for the 25-film fixture and the new menu/tabs (counts asserted, none deleted). The last two commits (d32b9c4d2, 7f379f674) only change the Table's sticky title CSS and were not re-run in Chromium; collections-db also passed in WebKit at 5755b2fae.
  • Every shot below was taken on the final build; the Table shots were retaken after the last CSS change. Playwright WebKit paints no blur, so blur is judged in the real Safari and iPhone simulator sets (full reload per shot, unique ?r= before the hash).

Frames: rAF deltas on the Mac VM (WebKit, 1440), 3 runs each at 7f379f674

Checked kayg/infraternal#260 at ~02:10 IST: no std benchmark window announced; Mac lock held only while my commands ran; free memory > 2 GB, no swap.

motion (Mac VM, WebKit, 1440) frames p50 ms p95 ms (3 runs) max ms (3 runs) frames > 25 ms (3 runs)
idle (nothing happens) 42–42 17 19 / 18 / 19 20 / 20 / 19 0 / 0 / 0
B line opens 48–49 17 19 / 19 / 20 23 / 22 / 22 0 / 0 / 0
B line folds 46–46 17 20 / 18 / 19 25 / 19 / 20 0 / 0 / 0
A '3 more' unfolds 48–48 17 18 / 19 / 19 404 / 20 / 61 2 / 0 / 1
A star tapped 46–46 17 20 / 20 / 19 21 / 22 / 22 0 / 0 / 0
tab switch Board → Table 48–48 17 19 / 20 / 19 52 / 36 / 32 2 / 2 / 1
tab switch Table → Board 46–46 17 18 / 19 / 19 19 / 20 / 19 0 / 0 / 0
tab switch Board → Table (second time) 45–47 17 19 / 22 / 20 22 / 25 / 22 0 / 0 / 0
sheet opens (tap the active tab) 43–44 17 22 / 22 / 22 71 / 62 / 53 2 / 2 / 2
sheet opens (second time) 63–65 17 19 / 20 / 20 23 / 23 / 24 0 / 0 / 0
Total menu opens 47–47 17 20 / 21 / 21 22 / 25 / 23 0 / 0 / 0
Fields sheet opens 48–48 17 20 / 21 / 20 21 / 23 / 21 0 / 0 / 0
embed task springs in 39–42 17 29 / 20 / 19 76 / 21 / 19 2 / 0 / 0

Reading it: nothing new drops a frame except first-use cases: the Views list's first open (53–71 ms; the plain View sheet on calendar-2 measures ~21 ms; before I changed the Table cells' blur and the rows it was 88), the first Board → Table switch (32–52 ms), the "3 more" unfold (once 404 ms and once 61 ms in three runs, otherwise 20 ms) and one 76 ms on the embed's new row. Idle on this VM also shows a 47 ms frame now and then. These ≥ 50 ms ones are not fixed: I traced the Views list's cost to the shared RowActions swipe rows (first row ever on a page), tried warming it and staggering it, and removed both because they broke the card-containment spec and gained little. They need a follow-up before this ships; the mockup motions themselves (B line, fold springs, menus, sheets, stars) sit at the idle floor.

Before/after computed values for existing things I touched (Movies collection, Chromium 1440, calendar-2 build vs head)

Everything unchanged except what is marked: the Table's wrap padding moved into its first/last cells (24 + 12 = the same 36 px from the card edge, so nothing moves; it lets the sticky title column start at the scroll edge), the tab strip is now one scrolling row (DB-G3), and the Table has more columns (By year shows 6 fields).

element property before (calendar-2) after changed
tab (.tab) padding 3px 12px 3px 12px no
tab (.tab) font-size 13px 13px no
tab (.tab) font-weight 600 600 no
tab (.tab) border-radius 999px 999px no
tab (.tab) gap 4px 4px no
tab strip (.tabs) display flex flex no
tab strip (.tabs) flex-wrap wrap nowrap yes
tab strip (.tabs) overflow-x visible auto yes
tab strip (.tabs) gap 4px 4px no
board chip (.card .f .chip) padding 1px 7px 1px 7px no
board chip (.card .f .chip) font-size 11.5px 11.5px no
board chip (.card .f .chip) border-radius 999px 999px no
board chip (.card .f .chip) color rgb(86, 86, 86) rgb(86, 86, 86) no
board chip (.card .f .chip) background-color oklab(0.268617 0.000012286 0.00000536442 / 0.08) oklab(0.268617 0.000012286 0.00000536442 / 0.08) no
collection title (h1) font-size 22px 22px no
collection title (h1) font-weight 650 650 no
collection title (h1) line-height 27.5px 27.5px no
collection title (h1) letter-spacing -0.33px -0.33px no
table wrap (.wrap) padding-left 24px 0px yes
table wrap (.wrap) padding-right 24px 0px yes
table wrap (.wrap) margin-left -24px -24px no
table wrap (.wrap) margin-right -24px -24px no
table head cell (thead th) padding 6px 12px 6px 12px 6px 36px yes
table head cell (thead th) font-size 12px 12px no
table head cell (thead th) font-weight 650 650 no
table title head cell (thead th:first) padding-left 12px 36px yes
table title cell (tbody th) padding 8px 12px 8px 12px 8px 36px yes
table title cell (tbody th) font-size 17px 17px no
table title cell (tbody th) font-weight 600 600 no
table title cell (tbody th) position sticky sticky no
table title cell (tbody th) background-color rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) no
table cell (td) padding 8px 12px 8px 12px no
table cell (td) font-size 17px 17px no
table last cell (td:last) padding-right 12px 36px yes
table status chip padding 1px 8px 1px 8px no
table status chip font-size 12px 12px no
table status chip border-radius 999px 999px no
table status chip background-color oklab(0.268617 0.000012286 0.00000536442 / 0.08) oklab(0.268617 0.000012286 0.00000536442 / 0.08) no
table scroll box scrollWidth 724 1118 yes
table scroll box clientWidth 724 724 no

Also touched, behaviour unchanged by default: PropRow gained an optional value snippet (the default copy/edit row is untouched), ViewSheet gained only="fields" | "views" modes (the whole sheet is as before), the Board's select chips now come from the shared Value with the Board's own metrics (shown equal above), the sticky title cell's background: inherit is kept.

Evidence below (separate comments, because one comment can't carry ~140 images)

Browser 1440 / 800 / 390 (light + dark, Chromium) · iPhone 18 Pro simulator, Safari, on std (light + dark) · real Safari on the Mac VM at 1440 and 800 (light + dark). Each file is <surface>-<width>-<theme>.png; the 15 surfaces are: note with props A, B and B open, plain note, Movies Board (tabs), ⋯ menu, Filter in ⌘K, Fields, Table, Table column total menu, Views list, embed with the "this note" pill, the other note's embed, "This note" among the suggestions, creating a task in the embed.

## Collections DB round: evidence (head `7f379f674`, branch `feat/collections-db`) **Preview (slot `collections`, built from that head):** https://preview.calternal.cloud/collections/ — states have their own links (`?db=` opens a menu/sheet on arrival; mockup-only): - Movies, Board + tabs: https://preview.calternal.cloud/collections/#/note/calternal-rewrite?list=col:movies&view=list&data=collections&ai=0&layout=window (phone: `#/list/col:movies?data=collections&ai=0&layout=window`) - Table + totals: add `&db=table` / `&db=total` · ⋯ menu `&db=menu` · Filter in ⌘K `&db=filter` · Fields `&db=fields` · Views list `&db=views` · New view `&db=newview` - Note with 8 properties, A (rows): https://preview.calternal.cloud/collections/#/note/mv-arrival?list=all&props=table&data=collections&ai=0&layout=window - same, B (quiet line): `…&props=line` (open: `&db=propsopen`) · plain note: `#/note/design-everyday-things?list=all&data=collections&layout=window` - Embed in two notes: https://preview.calternal.cloud/collections/#/note/kitchen-renovation?list=all&data=collections&ai=0&layout=window and `…#/note/calternal-launch…` · "This note" among the suggestions: `kitchen-renovation…&thisnote=off&db=embedfilter` · a task made in the embed: `&db=embednew` ### What is built - **DB-G1:** one `Value` component per property type (text, number, date, checkbox, rating, select/multi, link, URL, person), used by the note's rows (A, built on `PropRow`), the quiet line (B), Table cells and Board cards. Only filled values show; five rows then "N more"; "+ Property" suggests the collection's missing fields; values edit in place. A note with no properties shows nothing. Movies has 25 films (Status, Rating, Watched on, Genre multi-select, Director as person, URL); Arrival has 8 properties. - **DB-G2:** ⋯ holds Filter… (⌘K with removable chips), Sort and group…, Fields… (a switch per property), New view…. Each Table column has a footer total menu: Count, Sum, Average, Min, Max, Empty (None to clear). - **DB-G3:** tabs only with 2+ views, one scrolling row (phone too, shared `ViewTabs`); right-click/hold a tab for Rename · Duplicate · Delete; tapping the active tab opens the Views list, whose rows swipe (Duplicate / Rename / Delete). "New view…" adds a tab with its name open for typing; no permanent "+". - **EM11:** one "Open tasks" collection embedded in "Kitchen renovation" (5 tasks) and "Calternal launch" (4); (b) a "this note" pill beside the title; (a) a "This note" chip among the suggested filters in ⌘K (it becomes a chip in the field; Save returns to the note); (c) a task made in the embed links to its host note and shows at once. ### Decisions (I made them; say if you want otherwise) - Tabs live on a strip that scrolls sideways, so a finger on a tab is the scroll and a tab can't swipe. The swipe actions are on the **Views list** rows (same actions as the tab's menu). - Embed task rows have a tick and the embed's menu but no row swipes: the editor owns horizontal swipes inside a note. Fields switches have no swipe (the switch is the action). - Movies' status values are now "To watch" / "Watched" (were lowercase), so the Board's column titles read right. - The Table's sticky title column only gets a fill while the table is scrolled sideways (so it looks as before otherwise). - The first pass had a `state_unsafe_mutation` page error: it was mine (the embed's "New task" button was removed while focused); fixed. - The ⌘K opened from an embed still shows the usual result list and preview under the suggestion row (busy; say if it should be empty until you type). ### Checks - Specs on dev-01 (Chromium) at `50b9b865a`: `collections-db` (new, 13 tests: A/B rows, in-place edit, + Property, ⋯ menu, Fields, totals, tabs + Views list, New view…, embeds, This note + Save, new task links to host) + `collections-screens` + `collection-actions` = **79 passed**. The existing specs were updated for the 25-film fixture and the new menu/tabs (counts asserted, none deleted). The last two commits (`d32b9c4d2`, `7f379f674`) only change the Table's sticky title CSS and were not re-run in Chromium; `collections-db` also passed in WebKit at `5755b2fae`. - Every shot below was taken on the final build; the Table shots were retaken after the last CSS change. Playwright WebKit paints no blur, so blur is judged in the **real Safari** and **iPhone simulator** sets (full reload per shot, unique `?r=` before the hash). ### Frames: rAF deltas on the Mac VM (WebKit, 1440), 3 runs each at `7f379f674` Checked kayg/infraternal#260 at ~02:10 IST: no std benchmark window announced; Mac lock held only while my commands ran; free memory > 2 GB, no swap. | motion (Mac VM, WebKit, 1440) | frames | p50 ms | p95 ms (3 runs) | max ms (3 runs) | frames > 25 ms (3 runs) | |---|---|---|---|---|---| | idle (nothing happens) | 42–42 | 17 | 19 / 18 / 19 | 20 / 20 / 19 | 0 / 0 / 0 | | B line opens | 48–49 | 17 | 19 / 19 / 20 | 23 / 22 / 22 | 0 / 0 / 0 | | B line folds | 46–46 | 17 | 20 / 18 / 19 | 25 / 19 / 20 | 0 / 0 / 0 | | A '3 more' unfolds | 48–48 | 17 | 18 / 19 / 19 | 404 / 20 / 61 | 2 / 0 / 1 | | A star tapped | 46–46 | 17 | 20 / 20 / 19 | 21 / 22 / 22 | 0 / 0 / 0 | | tab switch Board → Table | 48–48 | 17 | 19 / 20 / 19 | 52 / 36 / 32 | 2 / 2 / 1 | | tab switch Table → Board | 46–46 | 17 | 18 / 19 / 19 | 19 / 20 / 19 | 0 / 0 / 0 | | tab switch Board → Table (second time) | 45–47 | 17 | 19 / 22 / 20 | 22 / 25 / 22 | 0 / 0 / 0 | | sheet opens (tap the active tab) | 43–44 | 17 | 22 / 22 / 22 | 71 / 62 / 53 | 2 / 2 / 2 | | sheet opens (second time) | 63–65 | 17 | 19 / 20 / 20 | 23 / 23 / 24 | 0 / 0 / 0 | | Total menu opens | 47–47 | 17 | 20 / 21 / 21 | 22 / 25 / 23 | 0 / 0 / 0 | | Fields sheet opens | 48–48 | 17 | 20 / 21 / 20 | 21 / 23 / 21 | 0 / 0 / 0 | | embed task springs in | 39–42 | 17 | 29 / 20 / 19 | 76 / 21 / 19 | 2 / 0 / 0 | **Reading it:** nothing new drops a frame except first-use cases: the Views list's first open (53–71 ms; the plain View sheet on calendar-2 measures ~21 ms; before I changed the Table cells' blur and the rows it was 88), the first Board → Table switch (32–52 ms), the "3 more" unfold (once 404 ms and once 61 ms in three runs, otherwise 20 ms) and one 76 ms on the embed's new row. Idle on this VM also shows a 47 ms frame now and then. **These ≥ 50 ms ones are not fixed**: I traced the Views list's cost to the shared `RowActions` swipe rows (first row ever on a page), tried warming it and staggering it, and removed both because they broke the card-containment spec and gained little. They need a follow-up before this ships; the mockup motions themselves (B line, fold springs, menus, sheets, stars) sit at the idle floor. ### Before/after computed values for existing things I touched (Movies collection, Chromium 1440, calendar-2 build vs head) Everything unchanged except what is marked: the Table's wrap padding moved into its first/last cells (24 + 12 = the same 36 px from the card edge, so nothing moves; it lets the sticky title column start at the scroll edge), the tab strip is now one scrolling row (DB-G3), and the Table has more columns (By year shows 6 fields). | element | property | before (calendar-2) | after | changed | |---|---|---|---|---| | tab (.tab) | padding | 3px 12px | 3px 12px | no | | tab (.tab) | font-size | 13px | 13px | no | | tab (.tab) | font-weight | 600 | 600 | no | | tab (.tab) | border-radius | 999px | 999px | no | | tab (.tab) | gap | 4px | 4px | no | | tab strip (.tabs) | display | flex | flex | no | | tab strip (.tabs) | flex-wrap | wrap | nowrap | **yes** | | tab strip (.tabs) | overflow-x | visible | auto | **yes** | | tab strip (.tabs) | gap | 4px | 4px | no | | board chip (.card .f .chip) | padding | 1px 7px | 1px 7px | no | | board chip (.card .f .chip) | font-size | 11.5px | 11.5px | no | | board chip (.card .f .chip) | border-radius | 999px | 999px | no | | board chip (.card .f .chip) | color | rgb(86, 86, 86) | rgb(86, 86, 86) | no | | board chip (.card .f .chip) | background-color | oklab(0.268617 0.000012286 0.00000536442 / 0.08) | oklab(0.268617 0.000012286 0.00000536442 / 0.08) | no | | collection title (h1) | font-size | 22px | 22px | no | | collection title (h1) | font-weight | 650 | 650 | no | | collection title (h1) | line-height | 27.5px | 27.5px | no | | collection title (h1) | letter-spacing | -0.33px | -0.33px | no | | table wrap (.wrap) | padding-left | 24px | 0px | **yes** | | table wrap (.wrap) | padding-right | 24px | 0px | **yes** | | table wrap (.wrap) | margin-left | -24px | -24px | no | | table wrap (.wrap) | margin-right | -24px | -24px | no | | table head cell (thead th) | padding | 6px 12px | 6px 12px 6px 36px | **yes** | | table head cell (thead th) | font-size | 12px | 12px | no | | table head cell (thead th) | font-weight | 650 | 650 | no | | table title head cell (thead th:first) | padding-left | 12px | 36px | **yes** | | table title cell (tbody th) | padding | 8px 12px | 8px 12px 8px 36px | **yes** | | table title cell (tbody th) | font-size | 17px | 17px | no | | table title cell (tbody th) | font-weight | 600 | 600 | no | | table title cell (tbody th) | position | sticky | sticky | no | | table title cell (tbody th) | background-color | rgba(0, 0, 0, 0) | rgba(0, 0, 0, 0) | no | | table cell (td) | padding | 8px 12px | 8px 12px | no | | table cell (td) | font-size | 17px | 17px | no | | table last cell (td:last) | padding-right | 12px | 36px | **yes** | | table status chip | padding | 1px 8px | 1px 8px | no | | table status chip | font-size | 12px | 12px | no | | table status chip | border-radius | 999px | 999px | no | | table status chip | background-color | oklab(0.268617 0.000012286 0.00000536442 / 0.08) | oklab(0.268617 0.000012286 0.00000536442 / 0.08) | no | | table scroll box | scrollWidth | 724 | 1118 | **yes** | | table scroll box | clientWidth | 724 | 724 | no | Also touched, behaviour unchanged by default: `PropRow` gained an optional value snippet (the default copy/edit row is untouched), `ViewSheet` gained `only="fields" | "views"` modes (the whole sheet is as before), the Board's select chips now come from the shared `Value` with the Board's own metrics (shown equal above), the sticky title cell's `background: inherit` is kept. ### Evidence below (separate comments, because one comment can't carry ~140 images) Browser 1440 / 800 / 390 (light + dark, Chromium) · iPhone 18 Pro simulator, Safari, on std (light + dark) · real Safari on the Mac VM at 1440 and 800 (light + dark). Each file is `<surface>-<width>-<theme>.png`; the 15 surfaces are: note with props A, B and B open, plain note, Movies Board (tabs), ⋯ menu, Filter in ⌘K, Fields, Table, Table column total menu, Views list, embed with the "this note" pill, the other note's embed, "This note" among the suggestions, creating a task in the embed.
Author
Owner

iPhone 18 Pro simulator (iOS 27, Safari) on std, light + dark; full reload per shot (28 shots, head 7f379f674)

**iPhone 18 Pro simulator (iOS 27, Safari) on std, light + dark; full reload per shot** (28 shots, head `7f379f674`)
Author
Owner

Real Safari (macOS, Mac VM) 1440 px wide, light + dark (30 shots, head 7f379f674, driven with safaridriver, a full reload per shot). Real Safari renders the glass and blur that Playwright WebKit does not.

**Real Safari (macOS, Mac VM) 1440 px wide, light + dark** (30 shots, head `7f379f674`, driven with safaridriver, a full reload per shot). Real Safari renders the glass and blur that Playwright WebKit does not.
Author
Owner
Author
Owner

Frame-hitch fixes (head 4a0079cbe, slot collections redeployed at that head)

What changed

  1. Shared swipe rows (RowActions) now build their buttons on the row's first touch (the swipe already asks for them in ontouch, now drawn with flushSync) or on mouse enter/press, not when the row is drawn. Before, every visible row got an observer and an idle job that built its tray plus a forced layout (the tile-fit measure) in whatever frame the page was animating; this was the Views list's 53–71 ms first open. Specs that assumed pre-built trays now hover the row first (automations-swipes).
    • Notes, Tasks lists on dev-01 Chromium, first sideways gesture on a row, median of 8 fresh pages (ms), calendar-2 → now: Notes (/list/all, 40 rows) 10.2 → 12.8 with the pointer on the row first (the desktop path; the hover builds the tray), 10.2 → 17.7 with no hover at all (a synthetic wheel; a touch builds it at touchstart, before the swipe claims the row); Tasks (5 rows) 10.7 → 12.1 (hover) / 14.4 (none). Trays built at page load: Notes 10 of 40 → 0, Tasks 5 of 5 → 0 (no observer or idle job per row any more). So: lists draw lighter, the first swipe is within noise on desktop and a few ms later on a cold touch. Mail's list rows weren't reachable by route in this build, so Mail isn't measured.
  2. Table draws its first 12 rows at once and the rest 6 at a time every 45 ms (first Board → Table switch was 32–52 ms).
  3. Folded property rows stay painted at opacity 0 and inert instead of visibility: hidden, so the first "3 more" unfold has nothing to draw (it had a 404 ms and a 61 ms outlier).
  4. Embed new-task row: no code change yet. I have no valid measurement to act on (see below); the 76 ms was one of three runs.
  5. ⌘K from an embed now shows only the suggested filters (This note · Due this week · Pinned), a count ("5 open items in this note") and Save: no result list, no preview, and the panel is only as tall as that.

Specs on dev-01, Chromium, head 4a0079cbe: 101 passed, 2 failed (automations-swipes phone "short swipe" and row-actions-compact leading tray). Both flake on calendar-2 under dev-01's load of 10–36 too: 4 failed of 8 on calendar-2 vs 2 of 8 on the branch (leading tray), 2 of 12 vs 1 of 12 (phone short swipe); app-swipe-overlap fails 5 of 9 on both. Everything else (collections-db 13, collections-screens, collection-actions, tasks-swipe-colour, the rest of automations-swipes and row-actions-compact) passed.

Frames: NOT re-measured, because the Mac VM can't render right now. From about 02:00 IST on 11-11 Playwright WebKit on macos-01 gets almost no requestAnimationFrame ticks: a blank setContent page records 0 frames in 4 s (also with caffeinate -u), and my idle baseline records 0–7 frames in 700 ms (it recorded ~42 earlier). The old head 7f379f674 fails to load there the same way, so it is the VM, not the code. A leaked Safari automation session (safaridriver -p 4977, a Safari process 50+ min old, not mine) is up and I haven't touched it; the other lane's jobs have finished. Dev-01's Chromium has no GPU (about 10 frames/s), so its numbers mean nothing. My frame job and its leftovers are stopped; I hold no lock.

So the table below is still the last valid set (3 runs at 7f379f674, before these fixes); the four rows you named are the ones the fixes target. They need a re-run once the Mac VM renders again (tests/collections-frames.spec.ts, FRAMES_SETTLE and long load timeouts are in the branch).

motion (Mac VM, WebKit, 1440) frames p50 ms p95 ms (3 runs) max ms (3 runs) frames > 25 ms (3 runs)
idle (nothing happens) 42–42 17 19 / 18 / 19 20 / 20 / 19 0 / 0 / 0
B line opens 48–49 17 19 / 19 / 20 23 / 22 / 22 0 / 0 / 0
B line folds 46–46 17 20 / 18 / 19 25 / 19 / 20 0 / 0 / 0
A '3 more' unfolds 48–48 17 18 / 19 / 19 404 / 20 / 61 2 / 0 / 1
A star tapped 46–46 17 20 / 20 / 19 21 / 22 / 22 0 / 0 / 0
tab switch Board → Table 48–48 17 19 / 20 / 19 52 / 36 / 32 2 / 2 / 1
tab switch Table → Board 46–46 17 18 / 19 / 19 19 / 20 / 19 0 / 0 / 0
tab switch Board → Table (second time) 45–47 17 19 / 22 / 20 22 / 25 / 22 0 / 0 / 0
sheet opens (tap the active tab) 43–44 17 22 / 22 / 22 71 / 62 / 53 2 / 2 / 2
sheet opens (second time) 63–65 17 19 / 20 / 20 23 / 23 / 24 0 / 0 / 0
Total menu opens 47–47 17 20 / 21 / 21 22 / 25 / 23 0 / 0 / 0
Fields sheet opens 48–48 17 20 / 21 / 20 21 / 23 / 21 0 / 0 / 0
embed task springs in 39–42 17 29 / 20 / 19 76 / 21 / 19 2 / 0 / 0
## Frame-hitch fixes (head `4a0079cbe`, slot `collections` redeployed at that head) **What changed** 1. **Shared swipe rows (`RowActions`)** now build their buttons on the row's first touch (the swipe already asks for them in `ontouch`, now drawn with `flushSync`) or on mouse enter/press, not when the row is drawn. Before, every visible row got an observer and an idle job that built its tray plus a forced layout (the tile-fit measure) in whatever frame the page was animating; this was the Views list's 53–71 ms first open. Specs that assumed pre-built trays now hover the row first (`automations-swipes`). - Notes, Tasks lists on dev-01 Chromium, first sideways gesture on a row, median of 8 fresh pages (ms), calendar-2 → now: Notes (`/list/all`, 40 rows) **10.2 → 12.8** with the pointer on the row first (the desktop path; the hover builds the tray), 10.2 → 17.7 with no hover at all (a synthetic wheel; a touch builds it at touchstart, before the swipe claims the row); Tasks (5 rows) 10.7 → 12.1 (hover) / 14.4 (none). Trays built at page load: Notes 10 of 40 → 0, Tasks 5 of 5 → 0 (no observer or idle job per row any more). So: lists draw lighter, the first swipe is within noise on desktop and a few ms later on a cold touch. Mail's list rows weren't reachable by route in this build, so Mail isn't measured. 2. **Table** draws its first 12 rows at once and the rest 6 at a time every 45 ms (first Board → Table switch was 32–52 ms). 3. **Folded property rows** stay painted at opacity 0 and `inert` instead of `visibility: hidden`, so the first "3 more" unfold has nothing to draw (it had a 404 ms and a 61 ms outlier). 4. **Embed new-task row:** no code change yet. I have no valid measurement to act on (see below); the 76 ms was one of three runs. 5. **⌘K from an embed** now shows only the suggested filters (This note · Due this week · Pinned), a count ("5 open items in this note") and Save: no result list, no preview, and the panel is only as tall as that. **Specs on dev-01, Chromium, head `4a0079cbe`:** 101 passed, 2 failed (`automations-swipes` phone "short swipe" and `row-actions-compact` leading tray). Both flake on calendar-2 under dev-01's load of 10–36 too: 4 failed of 8 on calendar-2 vs 2 of 8 on the branch (leading tray), 2 of 12 vs 1 of 12 (phone short swipe); `app-swipe-overlap` fails 5 of 9 on both. Everything else (`collections-db` 13, `collections-screens`, `collection-actions`, `tasks-swipe-colour`, the rest of `automations-swipes` and `row-actions-compact`) passed. **Frames: NOT re-measured, because the Mac VM can't render right now.** From about 02:00 IST on 11-11 Playwright WebKit on macos-01 gets almost no `requestAnimationFrame` ticks: a blank `setContent` page records 0 frames in 4 s (also with `caffeinate -u`), and my idle baseline records 0–7 frames in 700 ms (it recorded ~42 earlier). The old head `7f379f674` fails to load there the same way, so it is the VM, not the code. A leaked Safari automation session (`safaridriver -p 4977`, a `Safari` process 50+ min old, not mine) is up and I haven't touched it; the other lane's jobs have finished. Dev-01's Chromium has no GPU (about 10 frames/s), so its numbers mean nothing. My frame job and its leftovers are stopped; I hold no lock. So the table below is still the last valid set (3 runs at `7f379f674`, before these fixes); the four rows you named are the ones the fixes target. They need a re-run once the Mac VM renders again (`tests/collections-frames.spec.ts`, `FRAMES_SETTLE` and long load timeouts are in the branch). | motion (Mac VM, WebKit, 1440) | frames | p50 ms | p95 ms (3 runs) | max ms (3 runs) | frames > 25 ms (3 runs) | |---|---|---|---|---|---| | idle (nothing happens) | 42–42 | 17 | 19 / 18 / 19 | 20 / 20 / 19 | 0 / 0 / 0 | | B line opens | 48–49 | 17 | 19 / 19 / 20 | 23 / 22 / 22 | 0 / 0 / 0 | | B line folds | 46–46 | 17 | 20 / 18 / 19 | 25 / 19 / 20 | 0 / 0 / 0 | | A '3 more' unfolds | 48–48 | 17 | 18 / 19 / 19 | 404 / 20 / 61 | 2 / 0 / 1 | | A star tapped | 46–46 | 17 | 20 / 20 / 19 | 21 / 22 / 22 | 0 / 0 / 0 | | tab switch Board → Table | 48–48 | 17 | 19 / 20 / 19 | 52 / 36 / 32 | 2 / 2 / 1 | | tab switch Table → Board | 46–46 | 17 | 18 / 19 / 19 | 19 / 20 / 19 | 0 / 0 / 0 | | tab switch Board → Table (second time) | 45–47 | 17 | 19 / 22 / 20 | 22 / 25 / 22 | 0 / 0 / 0 | | sheet opens (tap the active tab) | 43–44 | 17 | 22 / 22 / 22 | 71 / 62 / 53 | 2 / 2 / 2 | | sheet opens (second time) | 63–65 | 17 | 19 / 20 / 20 | 23 / 23 / 24 | 0 / 0 / 0 | | Total menu opens | 47–47 | 17 | 20 / 21 / 21 | 22 / 25 / 23 | 0 / 0 / 0 | | Fields sheet opens | 48–48 | 17 | 20 / 21 / 20 | 21 / 23 / 21 | 0 / 0 / 0 | | embed task springs in | 39–42 | 17 | 29 / 20 / 19 | 76 / 21 / 19 | 2 / 0 / 0 |
Author
Owner

Frames re-measured on the healthy Mac VM (head c42180a2a, slot collections redeployed at it)

macos-01 was rebooted; a blank page records 60 frames at 17 ms again. I checked #260 first: no std benchmark window announced. Lock held only while my commands ran; free memory 3.5–4 GB, no swap. The runs use the built site (vite build + vite preview), WebKit, 1440, 3 runs, 700 ms after each gesture.

motion (Mac VM, WebKit 1440, built site) max frame, ms (run 1 / 2 / 3) frames > 33 ms ≤ 33 ms in all 3?
idle (nothing happens) 22 / 19 / 19 0 / 0 / 0 yes
B line opens 25 / 20 / 20 0 / 0 / 0 yes
B line folds 20 / 20 / 24 0 / 0 / 0 yes
A '3 more' unfolds 22 / 45 / 23 0 / 1 / 0 no
A star tapped 21 / 21 / 23 0 / 0 / 0 yes
tab switch Board → Table 77 / 34 / 29 3 / 1 / 0 no
tab switch Table → Board 29 / 20 / 25 0 / 0 / 0 yes
tab switch Board → Table (second time) 22 / 21 / 23 0 / 0 / 0 yes
sheet opens (tap the active tab) 21 / 21 / 20 0 / 0 / 0 yes
sheet opens (second time) 20 / 24 / 24 0 / 0 / 0 yes
Total menu opens 42 / 66 / 39 1 / 1 / 1 no
Fields sheet opens 21 / 23 / 24 0 / 0 / 0 yes
embed task springs in 34 / 32 / 82 1 / 0 / 3 no

What fixed what

  • The Views list's first open (53–93 ms → 20–21 ms, all 3 runs): the cost was the swipe rows' wheel listeners. Even a passive wheel listener on each row makes WebKit rebuild its wheel-event regions for that row (a bisect on the Mac VM: with use:swipeRow removed, or with plain rows, the open is 22–25 ms). The shared swipeRow now attaches the sideways listeners on a row's first touch, first mouse entry, or first wheel; the wake for a wheel is one passive listener on the document (capture), not one per row. Touch needed no help (its per-row passive wake costs nothing measurable). Taps, menus and the swipe itself are unchanged; the swipe specs pass (below).
  • "3 more" unfold 404 / 61 ms → 22 / 45 / 23: better, one run still 45 ms.
  • Embed new-task row 76 ms outlier → 34 / 32 / 82: not fixed. Typical frames are ~20 ms; one frame in 4 of 9 recent runs is 30–35 and one in 82 ms, so I can't tell a real cost from VM noise at three runs. I did not find a cause.
  • First Board → Table switch 52 → 77 / 34 / 29: not fixed; the Table draws 7 rows first and the rest in slices of 6.
  • Total menu 42 / 66 / 39: over 33 ms in all three runs. It is the first menu opened in that test (the shared openMenu); the Fields sheet, built on the same glass, is 21–24 ms. I haven't compared it with another screen's first menu, so I don't know if it is mine.

Not all four rows are ≤ 33 ms. Clean in all 3 runs: B line, folds, star, Views list (both opens), Fields, second Table switch. Over once or more: "3 more" (1 of 3), first Board → Table (2 of 3), embed new-task row (2 of 3), Total menu (3 of 3). I stopped here because each remaining change was inside the noise of a 3-run measurement.

Specs on dev-01, Chromium, head 79840c329 (the later commits only change Table and properties-box CSS): 102 passed, 4 failed, all four known load flakes on calendar-2 as well (app-swipe-overlap ×2, automations-swipes phone short swipe, row-actions-compact leading tray). The wheel-driven specs (automations-swipes desktop, tasks-swipe-colour) pass with the lazy wake.

Notes, Tasks lists: the first swipe on a freshly drawn list (dev-01 Chromium, median of 8): Notes 10.2 → 12.8 ms and Tasks 10.7 → 12.1 ms with the pointer on the row first; trays built at page load 10/40 → 0 and 5/5 → 0. (Measured before the wheel change; the touch path is unchanged since.)

## Frames re-measured on the healthy Mac VM (head `c42180a2a`, slot `collections` redeployed at it) macos-01 was rebooted; a blank page records 60 frames at 17 ms again. I checked #260 first: no std benchmark window announced. Lock held only while my commands ran; free memory 3.5–4 GB, no swap. The runs use the built site (`vite build` + `vite preview`), WebKit, 1440, 3 runs, 700 ms after each gesture. | motion (Mac VM, WebKit 1440, built site) | max frame, ms (run 1 / 2 / 3) | frames > 33 ms | ≤ 33 ms in all 3? | |---|---|---|---| | idle (nothing happens) | 22 / 19 / 19 | 0 / 0 / 0 | yes | | B line opens | 25 / 20 / 20 | 0 / 0 / 0 | yes | | B line folds | 20 / 20 / 24 | 0 / 0 / 0 | yes | | A '3 more' unfolds | 22 / 45 / 23 | 0 / 1 / 0 | **no** | | A star tapped | 21 / 21 / 23 | 0 / 0 / 0 | yes | | tab switch Board → Table | 77 / 34 / 29 | 3 / 1 / 0 | **no** | | tab switch Table → Board | 29 / 20 / 25 | 0 / 0 / 0 | yes | | tab switch Board → Table (second time) | 22 / 21 / 23 | 0 / 0 / 0 | yes | | sheet opens (tap the active tab) | 21 / 21 / 20 | 0 / 0 / 0 | yes | | sheet opens (second time) | 20 / 24 / 24 | 0 / 0 / 0 | yes | | Total menu opens | 42 / 66 / 39 | 1 / 1 / 1 | **no** | | Fields sheet opens | 21 / 23 / 24 | 0 / 0 / 0 | yes | | embed task springs in | 34 / 32 / 82 | 1 / 0 / 3 | **no** | **What fixed what** - **The Views list's first open (53–93 ms → 20–21 ms, all 3 runs):** the cost was the swipe rows' `wheel` listeners. Even a passive wheel listener on each row makes WebKit rebuild its wheel-event regions for that row (a bisect on the Mac VM: with `use:swipeRow` removed, or with plain rows, the open is 22–25 ms). The shared `swipeRow` now attaches the sideways listeners on a row's first touch, first mouse entry, or first wheel; the wake for a wheel is one passive listener on the document (capture), not one per row. Touch needed no help (its per-row passive wake costs nothing measurable). Taps, menus and the swipe itself are unchanged; the swipe specs pass (below). - **"3 more" unfold** 404 / 61 ms → 22 / 45 / 23: better, one run still 45 ms. - **Embed new-task row** 76 ms outlier → 34 / 32 / 82: not fixed. Typical frames are ~20 ms; one frame in 4 of 9 recent runs is 30–35 and one in 82 ms, so I can't tell a real cost from VM noise at three runs. I did not find a cause. - **First Board → Table switch** 52 → 77 / 34 / 29: not fixed; the Table draws 7 rows first and the rest in slices of 6. - **Total menu** 42 / 66 / 39: over 33 ms in all three runs. It is the first menu opened in that test (the shared `openMenu`); the Fields sheet, built on the same glass, is 21–24 ms. I haven't compared it with another screen's first menu, so I don't know if it is mine. **Not all four rows are ≤ 33 ms.** Clean in all 3 runs: B line, folds, star, Views list (both opens), Fields, second Table switch. Over once or more: "3 more" (1 of 3), first Board → Table (2 of 3), embed new-task row (2 of 3), Total menu (3 of 3). I stopped here because each remaining change was inside the noise of a 3-run measurement. **Specs on dev-01, Chromium, head `79840c329` (the later commits only change Table and properties-box CSS):** 102 passed, 4 failed, all four known load flakes on calendar-2 as well (`app-swipe-overlap` ×2, `automations-swipes` phone short swipe, `row-actions-compact` leading tray). The wheel-driven specs (`automations-swipes` desktop, `tasks-swipe-colour`) pass with the lazy wake. **Notes, Tasks lists:** the first swipe on a freshly drawn list (dev-01 Chromium, median of 8): Notes 10.2 → 12.8 ms and Tasks 10.7 → 12.1 ms with the pointer on the row first; trays built at page load 10/40 → 0 and 5/5 → 0. (Measured before the wheel change; the touch path is unchanged since.)
Author
Owner

Last round: 6 runs per row (head e23c4f6a6, slot collections redeployed at it)

Mac VM, WebKit, 1440, built site, max frame per run in ms. Not all rows are ≤ 33 ms in 6 of 6 runs. Two sets are shown. Set A (04:57–05:01 UTC) and set B (05:06–05:10 UTC) were both run clear of infraternal's std windows (#260: w1 and w2 completed 04:44 and 04:48 UTC; I discarded two sets that overlapped them, and one that overlapped my own preview build on dev-02).

motion set A (6 runs): max ms A ≤ 33 set B (6 runs): max ms B ≤ 33
idle (nothing happens) [21, 21, 20, 20, 20, 21] 6/6 [19, 21, 52, 19, 45, 25] 4/6
B line opens [23, 20, 22, 22, 21, 19] 6/6 [20, 21, 21, 20, 19, 58] 5/6
B line folds [19, 19, 21, 21, 20, 20] 6/6 [20, 20, 19, 20, 20, 22] 6/6
A '3 more' unfolds [19, 57, 55, 19, 20, 23] 4/6 [20, 49, 71, 18, 166, 20] 3/6
A star tapped [20, 19, 19, 20, 19, 20] 6/6 [20, 20, 20, 26, 21, 21] 6/6
tab switch Board → Table [28, 28, 28, 29, 28, 25] 6/6 [25, 25, 30, 24, 30, 29] 6/6
tab switch Table → Board [25, 210, 20, 30, 20, 21] 5/6 [20, 19, 19, 22, 19, 19] 6/6
tab switch Board → Table (second time) [24, 26, 24, 21, 22, 21] 6/6 [22, 24, 23, 22, 21, 22] 6/6
sheet opens (tap the active tab) [22, 21, 22, 22, 24, 25] 6/6 [21, 21, 21, 20, 23, 21] 6/6
sheet opens (second time) [21, 23, 22, 23, 25, 21] 6/6 [22, 23, 21, 24, 24, 21] 6/6
Total menu opens [42, 38, 36, 34, 36, 34] 0/6 [21, 22, 19, 24, 21, 20] 6/6
Fields sheet opens [20, 22, 21, 21, 23, 22] 6/6 [19, 19, 23, 22, 21, 21] 6/6
embed task springs in [20, 23, 27, 29, 33, 30] 6/6 [24, 25, 29, 37, 23, 33] 5/6
first menu: Notes ⋯ (Page actions) [23, 18, 25, 20, 517, 24] 5/6 [28, 20, 20, 24, 24, 19] 6/6
first menu: collection ⋯ [19, 435, 19, 22, 20, 51] 4/6 [20, 22, 24, 24, 25, 22] 6/6
first menu: Total (Table footer) [23, 80, 25, 28, 37, 23] 4/6 [19, 20, 20, 24, 19, 21] 6/6
idle on the Movies board [21, 20, 21, 31, 19, 20] 6/6 [21, 20, 21, 19, 20, 20] 6/6

(Set A's "Total menu opens" row predates a spec fix, below; its fresh-page twin and set B are the valid readings.)

What I found and changed

  1. Total menu / first menus. The same first menu on calendar-2: Notes ⋯ 22 / 23 / 37 / 25, collection ⋯ on the Movies board 56 / 58 / 39 / 52 (all over 33 there too). So the first menu over the Movies page was slow before this round, and what dominated was not the menu: the Movies board itself had background frames of 34–47 ms with nothing touched (idle control). Cause: its posters are inline data: images marked loading="lazy", decoded in the middle of whatever came next. They now load eagerly (Board): idle on the board and the collection ⋯ menu went from outliers of 36–56 ms to 19–26 ms in every run of both sets.
    Separately: a hidden, staged menu is now built once at idle from the page's own ⋯ (warmMenu, 500 ms after load, taken down 350 ms later), so the first real menu doesn't build the layer; first menus are 19–28 ms. Whether that adds anything beyond the posters I did not separate (the Total fresh-page row went 36 / 34 / 29 → 19–24).
    The slow "Total menu opens" row was mostly the test's own scroll: Playwright scrolled the footer cell into view inside the timed click, re-filling the sticky title column (a repaint of every row). Scrolling first, then timing the click: 21 / 22 / 19 / 24 / 21 / 20.
    I didn't pre-mount it as opacity 0 + inert the way you suggested because a bisect showed the menu's glass layer is not the cost (with <Glass> removed the first collection ⋯ was just as variable, 21–43 ms).
  2. First Board → Table: the collection screen now draws a small Table of its table view hidden, once, when idle (code and first cells warm), the Table draws 7 rows first, and the posters load eagerly. First switch: 28 / 28 / 28 / 29 / 28 / 25 and 25 / 25 / 30 / 24 / 30 / 29. Not compositor-only: the switch still lays out the real Table.
  3. "3 more" unfold: not fixed. It now changes height once, in the click's frame (no height animation) and reveals the rows by transform and opacity; the folded rows keep their inert guard, set once 320 ms after the change, not in the click's frame. Still 3–4 runs of 6 over 33 ms (49–71, once 166). A bisect earlier showed that removing both the inert and the height transition cut the outliers but dropped the focus guard, so I kept it. I didn't try content-visibility.
  4. Embed new-task row: set A 20 / 23 / 27 / 29 / 33 / 30, set B 24 / 25 / 29 / 37 / 23 / 33: one run over, by 4 ms. I did not profile it: it is the only over-33 frame in 12 runs and idle shows outliers of that size on this VM.

Not mine, not fixable here: single frames of 200–1045 ms show up in about one run in six on unrelated rows (idle, Notes ⋯, collection ⋯, sheet reopen); I've left them in the table.

Specs, dev-01 Chromium, at b2a73621a (everything since is the frames spec and a reverted Total change): 102 passed, 1 failed: the known automations-swipes phone short-swipe flake. The frames spec itself now has the first-menu tests, the idle control and the Total scroll-first fix.

## Last round: 6 runs per row (head `e23c4f6a6`, slot `collections` redeployed at it) Mac VM, WebKit, 1440, built site, max frame per run in ms. **Not all rows are ≤ 33 ms in 6 of 6 runs.** Two sets are shown. Set A (04:57–05:01 UTC) and set B (05:06–05:10 UTC) were both run clear of infraternal's std windows (#260: w1 and w2 completed 04:44 and 04:48 UTC; I discarded two sets that overlapped them, and one that overlapped my own preview build on dev-02). | motion | set A (6 runs): max ms | A ≤ 33 | set B (6 runs): max ms | B ≤ 33 | |---|---|---|---|---| | idle (nothing happens) | [21, 21, 20, 20, 20, 21] | 6/6 | [19, 21, 52, 19, 45, 25] | 4/6 | | B line opens | [23, 20, 22, 22, 21, 19] | 6/6 | [20, 21, 21, 20, 19, 58] | 5/6 | | B line folds | [19, 19, 21, 21, 20, 20] | 6/6 | [20, 20, 19, 20, 20, 22] | 6/6 | | A '3 more' unfolds | [19, 57, 55, 19, 20, 23] | 4/6 | [20, 49, 71, 18, 166, 20] | 3/6 | | A star tapped | [20, 19, 19, 20, 19, 20] | 6/6 | [20, 20, 20, 26, 21, 21] | 6/6 | | tab switch Board → Table | [28, 28, 28, 29, 28, 25] | 6/6 | [25, 25, 30, 24, 30, 29] | 6/6 | | tab switch Table → Board | [25, 210, 20, 30, 20, 21] | 5/6 | [20, 19, 19, 22, 19, 19] | 6/6 | | tab switch Board → Table (second time) | [24, 26, 24, 21, 22, 21] | 6/6 | [22, 24, 23, 22, 21, 22] | 6/6 | | sheet opens (tap the active tab) | [22, 21, 22, 22, 24, 25] | 6/6 | [21, 21, 21, 20, 23, 21] | 6/6 | | sheet opens (second time) | [21, 23, 22, 23, 25, 21] | 6/6 | [22, 23, 21, 24, 24, 21] | 6/6 | | Total menu opens | [42, 38, 36, 34, 36, 34] | 0/6 | [21, 22, 19, 24, 21, 20] | 6/6 | | Fields sheet opens | [20, 22, 21, 21, 23, 22] | 6/6 | [19, 19, 23, 22, 21, 21] | 6/6 | | embed task springs in | [20, 23, 27, 29, 33, 30] | 6/6 | [24, 25, 29, 37, 23, 33] | 5/6 | | first menu: Notes ⋯ (Page actions) | [23, 18, 25, 20, 517, 24] | 5/6 | [28, 20, 20, 24, 24, 19] | 6/6 | | first menu: collection ⋯ | [19, 435, 19, 22, 20, 51] | 4/6 | [20, 22, 24, 24, 25, 22] | 6/6 | | first menu: Total (Table footer) | [23, 80, 25, 28, 37, 23] | 4/6 | [19, 20, 20, 24, 19, 21] | 6/6 | | idle on the Movies board | [21, 20, 21, 31, 19, 20] | 6/6 | [21, 20, 21, 19, 20, 20] | 6/6 | (Set A's "Total menu opens" row predates a spec fix, below; its fresh-page twin and set B are the valid readings.) **What I found and changed** 1. **Total menu / first menus.** The same first menu on calendar-2: Notes ⋯ 22 / 23 / 37 / 25, collection ⋯ on the Movies board 56 / 58 / 39 / 52 (all over 33 there too). So the first menu over the Movies page was slow before this round, and what dominated was not the menu: the Movies board itself had background frames of 34–47 ms with nothing touched (idle control). Cause: its posters are inline `data:` images marked `loading="lazy"`, decoded in the middle of whatever came next. They now load eagerly (`Board`): idle on the board and the collection ⋯ menu went from outliers of 36–56 ms to 19–26 ms in every run of both sets. Separately: a hidden, staged menu is now built once at idle from the page's own ⋯ (`warmMenu`, 500 ms after load, taken down 350 ms later), so the first real menu doesn't build the layer; first menus are 19–28 ms. Whether that adds anything beyond the posters I did not separate (the Total fresh-page row went 36 / 34 / 29 → 19–24). The slow "Total menu opens" row was mostly the test's own scroll: Playwright scrolled the footer cell into view inside the timed click, re-filling the sticky title column (a repaint of every row). Scrolling first, then timing the click: **21 / 22 / 19 / 24 / 21 / 20**. I didn't pre-mount it as opacity 0 + inert the way you suggested because a bisect showed the menu's glass layer is not the cost (with `<Glass>` removed the first collection ⋯ was just as variable, 21–43 ms). 2. **First Board → Table:** the collection screen now draws a small Table of its table view hidden, once, when idle (code and first cells warm), the Table draws 7 rows first, and the posters load eagerly. First switch: 28 / 28 / 28 / 29 / 28 / 25 and 25 / 25 / 30 / 24 / 30 / 29. Not compositor-only: the switch still lays out the real Table. 3. **"3 more" unfold: not fixed.** It now changes height once, in the click's frame (no height animation) and reveals the rows by transform and opacity; the folded rows keep their `inert` guard, set once 320 ms after the change, not in the click's frame. Still 3–4 runs of 6 over 33 ms (49–71, once 166). A bisect earlier showed that removing both the `inert` and the height transition cut the outliers but dropped the focus guard, so I kept it. I didn't try `content-visibility`. 4. **Embed new-task row:** set A 20 / 23 / 27 / 29 / 33 / 30, set B 24 / 25 / 29 / **37** / 23 / 33: one run over, by 4 ms. I did not profile it: it is the only over-33 frame in 12 runs and idle shows outliers of that size on this VM. **Not mine, not fixable here:** single frames of 200–1045 ms show up in about one run in six on unrelated rows (idle, Notes ⋯, collection ⋯, sheet reopen); I've left them in the table. **Specs, dev-01 Chromium, at `b2a73621a`** (everything since is the frames spec and a reverted Total change): 102 passed, 1 failed: the known `automations-swipes` phone short-swipe flake. The frames spec itself now has the first-menu tests, the idle control and the Total scroll-first fix.
Author
Owner

Last frame round: content-visibility: auto on the folded rows: no gain, reverted

One quick attempt as agreed: content-visibility: auto with contain-intrinsic-size: auto 32px on the folded property rows, the keyboard-focus guard (inert) kept. 6 runs of the "3 more" unfold on the Mac VM (clear of infraternal windows; #260 had no new window posted): 51 / 1027 / 59 / 46 / 42 / 42 ms: worse than before (last sets: 19 57 55 19 20 23 and 20 49 71 18 166 20). Reverted; the code is identical to e23c4f6a6.

Known cost, for port time: the first unfold of the properties' "N more" fold has a 40–70 ms frame in roughly half of runs on this VM (the rest ~20 ms). It is a first-unfold cost of drawing the folded rows; height is changed once in the click's frame, the reveal is transform and opacity, and the inert guard is set after the transition, so what is left is the first layout and paint of those rows. Options not tried: drawing the rows on the first hover or focus of "N more" so the unfold finds them ready; or an unfolded-by-default panel for notes with up to 8 properties. The embed new-task row's single 37 ms (1 of 12 runs) is treated as VM noise for the mockup.

Final: head be151c8ca (same code as e23c4f6a6; the revert only), slot collections redeployed at it: https://preview.calternal.cloud/collections/

## Last frame round: `content-visibility: auto` on the folded rows: no gain, reverted One quick attempt as agreed: `content-visibility: auto` with `contain-intrinsic-size: auto 32px` on the folded property rows, the keyboard-focus guard (`inert`) kept. 6 runs of the "3 more" unfold on the Mac VM (clear of infraternal windows; #260 had no new window posted): **51 / 1027 / 59 / 46 / 42 / 42 ms**: worse than before (last sets: 19 57 55 19 20 23 and 20 49 71 18 166 20). Reverted; the code is identical to `e23c4f6a6`. **Known cost, for port time:** the first unfold of the properties' "N more" fold has a 40–70 ms frame in roughly half of runs on this VM (the rest ~20 ms). It is a first-unfold cost of drawing the folded rows; height is changed once in the click's frame, the reveal is transform and opacity, and the `inert` guard is set after the transition, so what is left is the first layout and paint of those rows. Options not tried: drawing the rows on the first hover or focus of "N more" so the unfold finds them ready; or an unfolded-by-default panel for notes with up to 8 properties. The embed new-task row's single 37 ms (1 of 12 runs) is treated as VM noise for the mockup. **Final:** head `be151c8ca` (same code as `e23c4f6a6`; the revert only), slot `collections` redeployed at it: https://preview.calternal.cloud/collections/
Author
Owner

Fixes for kayg's review (13:05 IST): head 3cece7979, slot collections redeployed at it

Branch feat/collections-db (fast-forwarded; also on feat/collections-db-fixes). Item 3 also on fix/timelog-caret off review/calendar-2 (head 4e8d0de26+, see below). Every shot is real Safari on the Mac VM (1440, light then dark, before then after, in that order per theme) or the iPhone 18 Pro simulator; "before" is the old head be151c8ca plus only the mockup-only ?db= open states (slot collections-before).

1. Compact rows tickbox

It was a bare <input type=checkbox> (a native box, drawn huge and thick). Now the shared SpringCheckBox in a label.check row with the same 9 px gap and 32 px height as the Style sheet's Grain / Wide page rows. The other tickbox in the Collections UI, the checkbox property value (props/Value.svelte, a hand-drawn 18 px box), is the shared one now too. Nothing else in Collections draws a checkbox (the Fields sheet uses SquishSwitchs, the field chips are toggles).
Spec that would have caught it: collections-fixes.spec.ts "Compact rows is the shared spring tickbox…" (box is a .sc-box, 14–22 px, square) and "no bare checkbox anywhere…" (no input[type=checkbox]:not(.sc-input) in a collection, its sheet or a note's properties). The old spec only called .check(), which passes on any checkbox.
iPhone sim: Sort and group… on the phone does not show the View sheet in the simulator at all, before and after (tap2-* shots; the same sheet opens in Chromium at 390). I did not find why; so there is no iPhone shot of the tickbox itself. Open risk, below.

## Fixes for kayg's review (13:05 IST): head `3cece7979`, slot `collections` redeployed at it Branch `feat/collections-db` (fast-forwarded; also on `feat/collections-db-fixes`). Item 3 also on `fix/timelog-caret` off `review/calendar-2` (head `4e8d0de26`+, see below). Every shot is real Safari on the Mac VM (1440, light then dark, before then after, in that order per theme) or the iPhone 18 Pro simulator; "before" is the old head `be151c8ca` plus only the mockup-only `?db=` open states (slot `collections-before`). ### 1. Compact rows tickbox It was a bare `<input type=checkbox>` (a native box, drawn huge and thick). Now the shared `SpringCheckBox` in a `label.check` row with the same 9 px gap and 32 px height as the Style sheet's Grain / Wide page rows. The other tickbox in the Collections UI, the checkbox **property value** (`props/Value.svelte`, a hand-drawn 18 px box), is the shared one now too. Nothing else in Collections draws a checkbox (the Fields sheet uses `SquishSwitch`s, the field chips are toggles). Spec that would have caught it: `collections-fixes.spec.ts` "Compact rows is the shared spring tickbox…" (box is a `.sc-box`, 14–22 px, square) and "no bare checkbox anywhere…" (no `input[type=checkbox]:not(.sc-input)` in a collection, its sheet or a note's properties). The old spec only called `.check()`, which passes on any checkbox. iPhone sim: `Sort and group…` on the phone does not show the View sheet in the simulator at all, **before and after** (`tap2-*` shots; the same sheet opens in Chromium at 390). I did not find why; so there is no iPhone shot of the tickbox itself. Open risk, below.
Author
Owner

2. Edit-view palette reads plain English

#project/calternal or linked to Calternal rewrite is now a tag chip, an or chip and a Linked to: Calternal rewrite chip (the note title is matched whole against the Home's titles, so a title of several words is one chip; unknown titles take the words up to "or" and become a chip on Enter). The list is the union (notes tagged #project/calternal or linking to Calternal rewrite) with the live preview beside it; tags that don't fit a link filter are left out. Unfinished "linked to Calternal rew" filters the list as it is typed. The collection rule Calternal (#project/calternal, or linked to …) evaluates the same way.
Code: packages/ui/src/search/words.ts (link and or tokens, groupsOf), lib/links.ts (one place for "who links to whom", lists.ts reuses it), providers/index.ts (runAny).
Specs: words.test.ts (5 new cases, 39 pass) and collections-fixes.spec.ts §2 (types the exact phrase in the Edit-view palette; chips, no raw text, no "Nothing matches", preview visible, Save row quotes the rule).
Before shows kayg's exact state ("Nothing matches 'or linked to Calternal rewrite'" beside a Save row that has the full rule).

### 2. Edit-view palette reads plain English `#project/calternal or linked to Calternal rewrite` is now a tag chip, an **or** chip and a **Linked to: Calternal rewrite** chip (the note title is matched whole against the Home's titles, so a title of several words is one chip; unknown titles take the words up to "or" and become a chip on Enter). The list is the **union** (notes tagged `#project/calternal` or linking to Calternal rewrite) with the live preview beside it; tags that don't fit a link filter are left out. Unfinished "linked to Calternal rew" filters the list as it is typed. The collection rule `Calternal` (`#project/calternal, or linked to …`) evaluates the same way. Code: `packages/ui/src/search/words.ts` (`link` and `or` tokens, `groupsOf`), `lib/links.ts` (one place for "who links to whom", `lists.ts` reuses it), `providers/index.ts` (`runAny`). Specs: `words.test.ts` (5 new cases, 39 pass) and `collections-fixes.spec.ts` §2 (types the exact phrase in the Edit-view palette; chips, no raw text, no "Nothing matches", preview visible, Save row quotes the rule). Before shows kayg's exact state ("Nothing matches 'or linked to Calternal rewrite'" beside a Save row that has the full rule).
Author
Owner

3. /time-log shows two cursors

Reproduced, and it is on review/calendar-2 too. Cause: after the time-log line is inserted the selection is an element + offset (span.text, 5) sitting between the 09:12 span and its space. WebKit gives such a collapsed range no client rects, so SmoothCaret.caretBox fell back to the line's left edge: the drawn caret sat at the start of the line while the browser's own was at the end. (Chromium aarch64 gave the same: drawn caret 56–82 px off; WebKit-on-Linux drew none.) A second cause: the new line arrives with a motion, and the caret was read once, mid-motion, and never again.
Fix (SmoothCaret.svelte): a caret between nodes takes the edge of the nearest neighbour node that has a box (comment nodes skipped); the caret is read again when a block's transition/animation ends.
Real Safari (safaridriver can't open the / picker, so the same DOM state is built by hand: the line's <span class=time>09:12</span>&nbsp; with the selection at the end of span.text), x of the drawn caret in page px, line starts at 596 and the time ends about 650:

  • collections-before (old head): 596 (line start). review/calendar-2: 596.
  • collections (fixed): 652. timelog-caret slot (fix/timelog-caret): 652.
    Spec timelog-caret.spec.ts: inserts the line with the slash menu and requires exactly one visible caret, sitting 0–14 px right of the time, in Chromium and WebKit with the animated cursor on and off. It failed on both engines before the fix; 16/16 (--repeat-each=4) after, on collections-fixes and on fix/timelog-caret.
    Which branch fixed it: both. fix/timelog-caret is a small branch off review/calendar-2 with just SmoothCaret.svelte + the spec (slot timelog-caret); feat/collections-db carries the same file.
### 3. `/time-log` shows two cursors **Reproduced, and it is on `review/calendar-2` too.** Cause: after the time-log line is inserted the selection is an element + offset (`span.text`, 5) sitting between the `09:12` span and its space. WebKit gives such a collapsed range **no client rects**, so `SmoothCaret.caretBox` fell back to the **line's left edge**: the drawn caret sat at the start of the line while the browser's own was at the end. (Chromium aarch64 gave the same: drawn caret 56–82 px off; WebKit-on-Linux drew none.) A second cause: the new line arrives with a motion, and the caret was read once, mid-motion, and never again. Fix (`SmoothCaret.svelte`): a caret between nodes takes the edge of the nearest neighbour node that has a box (comment nodes skipped); the caret is read again when a block's transition/animation ends. Real Safari (safaridriver can't open the `/` picker, so the same DOM state is built by hand: the line's `<span class=time>09:12</span>&nbsp;` with the selection at the end of `span.text`), x of the drawn caret in page px, line starts at 596 and the time ends about 650: - `collections-before` (old head): **596** (line start). `review/calendar-2`: **596**. - `collections` (fixed): **652**. `timelog-caret` slot (`fix/timelog-caret`): **652**. Spec `timelog-caret.spec.ts`: inserts the line with the slash menu and requires exactly one visible caret, sitting 0–14 px right of the time, in Chromium and WebKit with the animated cursor on and off. It failed on both engines before the fix; 16/16 (`--repeat-each=4`) after, on `collections-fixes` and on `fix/timelog-caret`. **Which branch fixed it: both.** `fix/timelog-caret` is a small branch off `review/calendar-2` with just `SmoothCaret.svelte` + the spec (slot `timelog-caret`); `feat/collections-db` carries the same file.
Author
Owner

4. "New property…"

+ Property now ends with New property…. Choosing it morphs, in place, into a glass card (shared Glass + Float + the shared clip morph lib/morph-glass, which grows out of the menu row and goes back into it; on a phone it rises as an inset sheet above the keyboard and scrolls its type list if the screen is short): a name field, and the ten types Text, Number, Date, Checkbox, Rating, Select, Multi-select, Link to note, URL, Person, with the same icons as the existing rows (typeIcon is now the one source, PropsRows uses it). Enter makes the property, adds an empty row for it on this note (its own editor opens) and from then on + Property suggests it for the collection. A name that already means a property ("watched on", "Status") shows Use "Watched on" instead of the types, so there are never two. Esc or a tap outside closes it. No other settings. Select / multi-select made by hand have no option list: the first value is typed, and used values are offered after that.
Specs: collections-fixes.spec.ts §4 (ten types in order with icons, make + suggested on another note, existing-name offer, Escape) — 16/16 in Chromium and WebKit.
The card is built hidden when the menu opens, so the choice only starts the morph. Before that, a morph run on the Mac VM had 2 of 6 runs over 33 ms (34 and 38); building the card inside the click was the cost.

### 4. "New property…" `+ Property` now ends with **New property…**. Choosing it morphs, in place, into a glass card (shared `Glass` + `Float` + the shared clip morph `lib/morph-glass`, which grows out of the menu row and goes back into it; on a phone it rises as an inset sheet above the keyboard and scrolls its type list if the screen is short): a name field, and the ten types Text, Number, Date, Checkbox, Rating, Select, Multi-select, Link to note, URL, Person, with the same icons as the existing rows (`typeIcon` is now the one source, `PropsRows` uses it). Enter makes the property, adds an empty row for it on this note (its own editor opens) and from then on `+ Property` suggests it for the collection. A name that already means a property ("watched on", "Status") shows **Use "Watched on"** instead of the types, so there are never two. Esc or a tap outside closes it. No other settings. Select / multi-select made by hand have no option list: the first value is typed, and used values are offered after that. Specs: `collections-fixes.spec.ts` §4 (ten types in order with icons, make + suggested on another note, existing-name offer, Escape) — 16/16 in Chromium and WebKit. The card is built hidden when the menu opens, so the choice only starts the morph. Before that, a morph run on the Mac VM had 2 of 6 runs over 33 ms (34 and 38); building the card inside the click was the cost.
Author
Owner

Frame check: the "New property…" morph (real Safari, Mac VM, built site, 1440)

Checked first: a blank page records 61 frames in 1000 ms, max 22 ms (60 fps). Idle baseline in the same session, 900 ms, 6 runs. Std network benchmark windows (#260): J461c ran macOS measurements that morning; an earlier set at the previous head had a 377 ms idle hitch in one run (noise on the shared host) and I discarded it and re-ran at the final head.

Final head 3cece7979, max frame in ms per run, 6 runs:

motion max frame per run frames > 33 ms
idle (nothing happens) 24, 20, 20, 23, 25, 22 0 / 6
menu row → card morph 24, 22, 21, 22, 29, 26 0 / 6 (≤ 33 ms in all)
type a name + Enter (row appears, card goes back) 22, 21, 23, 20, 22, 24 0 / 6

Frames in each run: 54–55 of ~54 expected at 60 fps.

Checks run

  • bunx vitest run src/search/words.test.ts (packages/ui): 39 pass.
  • Playwright on collections-fixes.spec.ts + timelog-caret.spec.ts: Chromium (dev-01 and dev-02) and WebKit (dev-02), all pass.
  • Regression: search-preview, palette-app-words, palette-apps, collection-actions, collections-db, collections-screens, notes-approve on Chromium (dev-01): all pass. glass-portal.spec.ts six photo/aurora cases hit the 90 s default timeout (the host was at load 33); the same spec at 240 s timeout passes ("1440x900 light photo" 2.8 min), and that case fails on the older base I tried too (a different assertion), so it is not caused by this change; I did not re-run all six at a longer timeout.
  • node scripts/no-handmade-pills.mjs: my new code adds none (NewProperty uses the shared bounce); the 23 it lists are the earlier ones.

Open risks

  • The phone View sheet (Sort and group…) doesn't show in the iPhone simulator, before or after, so the Compact rows tickbox has no iPhone shot. It opens in Chromium at 390 (?db=sheet). Needs a look on the device.
  • Real Safari can't type / through safaridriver, so item 3's Safari numbers use the same DOM state built by hand; Playwright (the real insert path) covers the insert.
  • The + Property row only appears on a note that already has a property (unchanged): a note with none shows nothing, so there's still no way to add its first one.
### Frame check: the "New property…" morph (real Safari, Mac VM, built site, 1440) Checked first: a blank page records **61 frames in 1000 ms, max 22 ms** (60 fps). Idle baseline in the same session, 900 ms, 6 runs. Std network benchmark windows (#260): J461c ran macOS measurements that morning; an earlier set at the previous head had a 377 ms idle hitch in one run (noise on the shared host) and I discarded it and re-ran at the final head. Final head `3cece7979`, max frame in ms per run, 6 runs: | motion | max frame per run | frames > 33 ms | |---|---|---| | idle (nothing happens) | 24, 20, 20, 23, 25, 22 | 0 / 6 | | **menu row → card morph** | **24, 22, 21, 22, 29, 26** | **0 / 6 (≤ 33 ms in all)** | | type a name + Enter (row appears, card goes back) | 22, 21, 23, 20, 22, 24 | 0 / 6 | Frames in each run: 54–55 of ~54 expected at 60 fps. ### Checks run - `bunx vitest run src/search/words.test.ts` (packages/ui): 39 pass. - Playwright on `collections-fixes.spec.ts` + `timelog-caret.spec.ts`: Chromium (dev-01 and dev-02) and WebKit (dev-02), all pass. - Regression: `search-preview`, `palette-app-words`, `palette-apps`, `collection-actions`, `collections-db`, `collections-screens`, `notes-approve` on Chromium (dev-01): all pass. `glass-portal.spec.ts` six `photo`/`aurora` cases hit the 90 s default timeout (the host was at load 33); the same spec at 240 s timeout passes ("1440x900 light photo" 2.8 min), and that case fails on the older base I tried too (a different assertion), so it is not caused by this change; I did not re-run all six at a longer timeout. - `node scripts/no-handmade-pills.mjs`: my new code adds none (NewProperty uses the shared `bounce`); the 23 it lists are the earlier ones. ### Open risks - The phone **View sheet** (Sort and group…) doesn't show in the iPhone simulator, before or after, so the Compact rows tickbox has no iPhone shot. It opens in Chromium at 390 (`?db=sheet`). Needs a look on the device. - Real Safari can't type `/` through safaridriver, so item 3's Safari numbers use the same DOM state built by hand; Playwright (the real insert path) covers the insert. - The `+ Property` row only appears on a note that already has a property (unchanged): a note with none shows nothing, so there's still no way to add its first one.
Author
Owner

Round 2 + property discovery (head 7f4c2dd3c, slot collections redeployed at it)

5. Embed header: Expand and ⋯ only

A note or collection embed shows two buttons: Expand (new single diagonal arrow, grow/shrink in the shared Icon set, at the bar-icon size) and ⋯ (layout row, Open as page, Filter…, the rest). The header's reserved room is now 84 px (96 touch) instead of 150: the old figure crushed a phone title to a letter a line; title and "this note" pill are nowrap and the pill wraps as a row. Spec: collections-embed-props.spec.ts §5 (exactly two buttons, glyph is the diagonal one and not the four-arrow path, ⋯ has the menu, phone title on one line).
iPhone sim shots below (before = old header with five buttons, after = two).

6. Properties: one design

The quiet line expands into the table; the line is inert and zero-height while the table shows; Hide folds back. Line shows 5 values (3 on a phone) then +N. ?props= is gone (both values now give the same design; a spec asserts it). Specs: collections-db.spec.ts (line counts, never-both, phone 3, plain note nothing), collections-embed-props.spec.ts §6.
Frames, real Safari (Mac VM, built site, 1440), 6 runs: line expands into the table ≤ 24 ms, collapses ≤ 23 ms in 6/6 (idle baseline 20–25). Note-embed Expand/Collapse is the existing card growth: collapse hit 33–40 ms in 5 of 6 runs and Expand 58 / 262 ms once each; not changed here, flagging it.

## Round 2 + property discovery (head `7f4c2dd3c`, slot `collections` redeployed at it) ### 5. Embed header: Expand and ⋯ only A note or collection embed shows two buttons: **Expand** (new single diagonal arrow, `grow`/`shrink` in the shared Icon set, at the bar-icon size) and **⋯** (layout row, Open as page, Filter…, the rest). The header's reserved room is now 84 px (96 touch) instead of 150: the old figure crushed a phone title to a letter a line; title and "this note" pill are nowrap and the pill wraps as a row. Spec: `collections-embed-props.spec.ts` §5 (exactly two buttons, glyph is the diagonal one and not the four-arrow path, ⋯ has the menu, phone title on one line). iPhone sim shots below (before = old header with five buttons, after = two). ### 6. Properties: one design The quiet line expands into the table; the line is inert and zero-height while the table shows; Hide folds back. Line shows 5 values (3 on a phone) then `+N`. `?props=` is gone (both values now give the same design; a spec asserts it). Specs: `collections-db.spec.ts` (line counts, never-both, phone 3, plain note nothing), `collections-embed-props.spec.ts` §6. Frames, real Safari (Mac VM, built site, 1440), 6 runs: **line expands into the table ≤ 24 ms, collapses ≤ 23 ms in 6/6** (idle baseline 20–25). Note-embed Expand/Collapse is the existing card growth: collapse hit 33–40 ms in 5 of 6 runs and Expand 58 / 262 ms once each; not changed here, flagging it.
Author
Owner

7. Property discovery (agreed by kayg)

Three doors, one menu (props/discovery.svelte.ts → the note's own "+ Property" menu: the collection's fields, then New property…):

  • Hover: on a plain note a faint "+ Property" appears just under the title when the title is hovered (phone: while the caret is in the title). The strip takes its own 26 px when shown, so it never sits on the first paragraph (first version did; caught in the iPhone shot and fixed).
  • Slash: a Property item in the / menu (new run kind of block action; also works from the Insert sheet).
  • ⌘K: Add property, a contextual action on a note.
    A property made on a plain note keeps its empty row and editor when the note gets its first value (one PropsRows for both states). On a note with properties the / and ⌘K doors first open the folded table.
    Specs collections-embed-props.spec.ts §7 (hover reveal + menu + Status row, /propert+Enter, ⌘K add property+Enter, a note with properties, phone caret-in-title). Found by the spec: the faint button was covered by the paragraph's text (hit-test returned the text): fixed with a z-index and the strip height.
    Frames, real Safari, hover reveal / leave (pointer moved by safaridriver, 6 runs, blank page 60 frames max 25 ms): reveal max 20–23 ms, leave 21–25 ms, idle 20–24 ms; 0 frames > 33 ms in all 18 runs.
    Shots: Safari 1440 (before = plain note, after = faint button, then the menu opened) and iPhone sim (before/after).

Checks

collections-embed-props, collections-db, collections-fixes specs: 66 passed on Chromium and WebKit at 4c3806ca0+ (last run before the strip-height commit was 66/66 at 4c3806ca0; the final commit only adds the 26 px strip height and a ?db=discover mockup hook, shot-checked above). blocks.spec.ts "Show as embed" times out on Chromium and WebKit, also on the old head (collections-before): not from this change. One EM11 WebKit run never reached ready (host load 32), passed on Chromium and on re-run.
Open: the specs were not re-run on the very last commit 7f4c2dd3c beyond the shots; the note-embed collapse frames above.

### 7. Property discovery (agreed by kayg) Three doors, one menu (`props/discovery.svelte.ts` → the note's own "+ Property" menu: the collection's fields, then **New property…**): - **Hover:** on a plain note a faint "+ Property" appears just under the title when the title is hovered (phone: while the caret is in the title). The strip takes its own 26 px when shown, so it never sits on the first paragraph (first version did; caught in the iPhone shot and fixed). - **Slash:** a **Property** item in the `/` menu (new `run` kind of block action; also works from the Insert sheet). - **⌘K:** **Add property**, a contextual action on a note. A property made on a plain note keeps its empty row and editor when the note gets its first value (one PropsRows for both states). On a note with properties the `/` and ⌘K doors first open the folded table. Specs `collections-embed-props.spec.ts` §7 (hover reveal + menu + Status row, `/propert`+Enter, ⌘K `add property`+Enter, a note with properties, phone caret-in-title). Found by the spec: the faint button was covered by the paragraph's text (hit-test returned the text): fixed with a z-index and the strip height. Frames, real Safari, hover reveal / leave (pointer moved by safaridriver, 6 runs, blank page 60 frames max 25 ms): reveal max 20–23 ms, leave 21–25 ms, idle 20–24 ms; **0 frames > 33 ms in all 18 runs**. Shots: Safari 1440 (before = plain note, after = faint button, then the menu opened) and iPhone sim (before/after). ### Checks `collections-embed-props`, `collections-db`, `collections-fixes` specs: **66 passed on Chromium and WebKit** at `4c3806ca0`+ (last run before the strip-height commit was 66/66 at `4c3806ca0`; the final commit only adds the 26 px strip height and a `?db=discover` mockup hook, shot-checked above). `blocks.spec.ts` "Show as embed" times out on Chromium and WebKit, also on the old head (`collections-before`): not from this change. One EM11 WebKit run never reached ready (host load 32), passed on Chromium and on re-run. Open: the specs were not re-run on the very last commit `7f4c2dd3c` beyond the shots; the note-embed collapse frames above.
Author
Owner

Item 6 final (kayg's change): the table by default in a note, the compact line on rows — head 301544e80, slot collections redeployed at it

  • Inside a note: the expanded table shows at once whenever the note has any filled property; no line above it, no Hide. A note without properties shows nothing (hover "+ Property", / Property and ⌘K Add property unchanged). The table now shows up to 8 rows before an "N more" fold (the Movies fixtures have 8), so nothing needs unfolding; the fold remains for more than 8.
  • Compact line on rows (props/PropLine.svelte): list rows of a collection, the notes list rows (desktop and phone) and, when a view has no card fields chosen, cards and board rows. 5 values wide, 3 on a phone, then "+N". Movies' own Board/Cards views choose card fields (year, rating…), so those show the chips rather than the line (the line would repeat them).
  • ?props= is gone (spec asserts both values give the table and no line).
  • Specs (Chromium dev-01 + dev-02 and WebKit dev-02, all pass at the final spec set): collections-db.spec.ts (table by default with 8 rows and no line/Hide; list rows show 5 values + "+3"; notes-list rows; plain rows none; phone rows 3 values + "+5"), collections-embed-props.spec.ts §6/§7.
  • Frames: the expand/collapse morph no longer exists (the line is not in the note), so what is left to measure is the table's own motion. Real Safari (Mac VM, built site, 1440; blank page 61 frames max 21–26 ms), 6 runs ×2 sets, max frame per run: star tap in the table 29, 22, 22, 25, 23, 31 | 36, 24, 29, 28, 35, 23; "+ Property" menu opens 30, 21, 25, 24, 25, 28 | 27, 32, 33, 21, 24, 21; idle 21–25. Not all ≤ 33 ms: the star tap went over in 2 of 12 runs (36, 35 ms; +1 frame each). I haven't chased it.
  • Shots: Safari 1440 (before = previous design: the line over the folded table; after) and iPhone sim (before/after), light and dark. The iPhone "list rows" shot is the #movie list showing "Watched · ★5 · 12 Oct · +5" under each title.
  • Unrelated and unchanged: blocks.spec.ts "Show as embed" (fails on the old head too); note-embed Expand/Collapse frames from the previous round.
## Item 6 final (kayg's change): the table by default in a note, the compact line on rows — head `301544e80`, slot `collections` redeployed at it - **Inside a note:** the expanded table shows at once whenever the note has any filled property; no line above it, no Hide. A note without properties shows nothing (hover "+ Property", `/` Property and ⌘K Add property unchanged). The table now shows up to **8 rows** before an "N more" fold (the Movies fixtures have 8), so nothing needs unfolding; the fold remains for more than 8. - **Compact line on rows** (`props/PropLine.svelte`): list rows of a collection, the notes list rows (desktop and phone) and, when a view has no card fields chosen, cards and board rows. 5 values wide, 3 on a phone, then "+N". Movies' own Board/Cards views choose card fields (year, rating…), so those show the chips rather than the line (the line would repeat them). - `?props=` is gone (spec asserts both values give the table and no line). - **Specs** (Chromium dev-01 + dev-02 and WebKit dev-02, all pass at the final spec set): `collections-db.spec.ts` (table by default with 8 rows and no line/Hide; list rows show 5 values + "+3"; notes-list rows; plain rows none; phone rows 3 values + "+5"), `collections-embed-props.spec.ts` §6/§7. - **Frames:** the expand/collapse morph no longer exists (the line is not in the note), so what is left to measure is the table's own motion. Real Safari (Mac VM, built site, 1440; blank page 61 frames max 21–26 ms), 6 runs ×2 sets, max frame per run: star tap in the table 29, 22, 22, 25, 23, 31 | 36, 24, 29, 28, 35, 23; "+ Property" menu opens 30, 21, 25, 24, 25, 28 | 27, 32, 33, 21, 24, 21; idle 21–25. **Not all ≤ 33 ms: the star tap went over in 2 of 12 runs (36, 35 ms; +1 frame each).** I haven't chased it. - Shots: Safari 1440 (before = previous design: the line over the folded table; after) and iPhone sim (before/after), light and dark. The iPhone "list rows" shot is the `#movie` list showing "Watched · ★5 · 12 Oct · +5" under each title. - Unrelated and unchanged: `blocks.spec.ts` "Show as embed" (fails on the old head too); note-embed Expand/Collapse frames from the previous round.
Author
Owner

Layout pill + Board fades (kayg 17:48 IST) — head b573a783c, slot collections redeployed (25257fb2, the same source)

1. All layouts visible, in one shared pill

The single cycling button is gone. LayoutMenu now draws the shared Selector (icon-only, the bar-icon size) with ALL the collection's layouts: List, Cards, Table, Board, Calendar (what exists for the collection). The current one is tinted by the Selector's own capsule (tint radius = the pill's). Tooltips name each icon; no labels, so nothing clips. On a phone it sits next to the title (iPhone sim shot: fits beside "Movies" at 390).
The squish: Board used the row glyph (a flat rectangle, 18×8 of 24). New board glyph (a rounded square with three columns) and a cards glyph (four tiles) in the shared Icon set, drawn Lucide-style on the 24 grid. Aspect checked on the pixels (spec reads each tab's svg paths' bounding box): every glyph 0.7–1.4, the Board glyph 0.9–1.1; svg box square.
Specs: collections-layouts.spec.ts (5 tabs visible, no data-layout-button, no text, each tab inside the pill and the screen, glyph ratios, selected tab follows a click) at 1440 / 800 / 390; the older specs that used the button were updated (collections-screens, notes-approve, images-load, layout-helpers, collections-db).

2. Board edge fades

28 px soft fade at an end of the sideways scroll, only toward more content (none at the start when at the start, none at the end when at the end). Not a mask: I built it as a mask first and measured in real Safari (Mac VM, 6 runs, same page, variants injected in one session): sideways scroll with the mask = 55–56 fps and 28–80 ms frames (one 697 ms first-run outlier) vs 60 fps / 21–24 ms with no mask; contain: paint didn't help (54–59 fps, 28–39 ms). Two see-through gradient overlays on a wrapper (opacity only, one passive scroll listener that writes only when an end is crossed) measure like no-mask (60 fps, 21–27 ms), so that is what ships. Spec: overlays' opacity 0/1 at the start, middle and end, and mask-image: none on the scroller.
Frames at the shipped build, real Safari 1440, 6 runs (#260: no benchmark window active when I ran; the sim run and the Safari run overlapped once on the Studio, so I discarded that set and re-ran alone): board scroll max frame 22, 1160, 21, 21, 21, 73 ms; 4 of 6 clean at 60 fps, 2 of 6 outliers (1160 and 73 ms). An A/B in one session (6 runs each): with fades 22, 25, 24, 23, 26, 20 ms; with the fades removed 36, 23, 34, 25, 34, 24 ms: the outliers also happen without the fades, so this host is noisy (others share the Studio); I could not get a fully clean 6 of 6, so treat the hitch gate as not met on this VM.
Shots: Safari 1440 / 800 / 390, light and dark (before = old head; after; scrolled to the middle and the end) and iPhone sim 390.

Checks

collections-layouts, collections-screens, notes-approve, collections-db, collections-embed-props specs: 100 passed on Chromium (dev-01) and 100 on WebKit (dev-02). Not done: the sibling lane's list-on-the-sidebar experiment (left alone, as asked).

## Layout pill + Board fades (kayg 17:48 IST) — head `b573a783c`, slot `collections` redeployed (`25257fb2`, the same source) ### 1. All layouts visible, in one shared pill The single cycling button is gone. `LayoutMenu` now draws the shared `Selector` (icon-only, the bar-icon size) with ALL the collection's layouts: List, Cards, Table, Board, Calendar (what exists for the collection). The current one is tinted by the Selector's own capsule (tint radius = the pill's). Tooltips name each icon; no labels, so nothing clips. On a phone it sits next to the title (iPhone sim shot: fits beside "Movies" at 390). **The squish:** Board used the `row` glyph (a flat rectangle, 18×8 of 24). New `board` glyph (a rounded square with three columns) and a `cards` glyph (four tiles) in the shared Icon set, drawn Lucide-style on the 24 grid. **Aspect checked on the pixels** (spec reads each tab's svg paths' bounding box): every glyph 0.7–1.4, the Board glyph 0.9–1.1; svg box square. Specs: `collections-layouts.spec.ts` (5 tabs visible, no `data-layout-button`, no text, each tab inside the pill and the screen, glyph ratios, selected tab follows a click) at 1440 / 800 / 390; the older specs that used the button were updated (`collections-screens`, `notes-approve`, `images-load`, `layout-helpers`, `collections-db`). ### 2. Board edge fades 28 px soft fade at an end of the sideways scroll, **only toward more content** (none at the start when at the start, none at the end when at the end). **Not a mask:** I built it as a mask first and measured in real Safari (Mac VM, 6 runs, same page, variants injected in one session): sideways scroll with the mask = 55–56 fps and 28–80 ms frames (one 697 ms first-run outlier) vs **60 fps / 21–24 ms with no mask**; `contain: paint` didn't help (54–59 fps, 28–39 ms). Two see-through gradient overlays on a wrapper (opacity only, one passive scroll listener that writes only when an end is crossed) measure like no-mask (60 fps, 21–27 ms), so that is what ships. Spec: overlays' opacity 0/1 at the start, middle and end, and `mask-image: none` on the scroller. Frames at the shipped build, real Safari 1440, 6 runs (#260: no benchmark window active when I ran; the sim run and the Safari run overlapped once on the Studio, so I discarded that set and re-ran alone): board scroll max frame 22, 1160, 21, 21, 21, 73 ms; **4 of 6 clean at 60 fps, 2 of 6 outliers (1160 and 73 ms)**. An A/B in one session (6 runs each): with fades 22, 25, 24, 23, 26, 20 ms; with the fades removed 36, 23, 34, 25, 34, 24 ms: the outliers also happen without the fades, so this host is noisy (others share the Studio); I could not get a fully clean 6 of 6, so treat the hitch gate as not met on this VM. Shots: Safari 1440 / 800 / 390, light and dark (before = old head; after; scrolled to the middle and the end) and iPhone sim 390. ### Checks `collections-layouts`, `collections-screens`, `notes-approve`, `collections-db`, `collections-embed-props` specs: **100 passed on Chromium (dev-01) and 100 on WebKit (dev-02)**. Not done: the sibling lane's list-on-the-sidebar experiment (left alone, as asked).
Author
Owner

Review fixes: fades, phone header — head 37bd693b7, slot collections redeployed at it

1. Board fades over a glass card

The hard cut was my overlay: a flat colour over a card that is glass over a photo. Tried in real Safari (Mac VM, same page, variants injected in one session, scroll 0→60 %):

  • (a) mask on a wrapper that is not the scroller: 53.9 / 47 / 56.8 / 57.6 / 55.7 / 53.2 / 57.2 / 54.1 / 42.2 / 54.4 fps over 10 runs (max frame 27–203 ms), vs 59.6–60.9 fps (19–33 ms) with no fade. will-change: transform / translateZ / isolation on the wrapper didn't help reliably (one 5-variant set: 58.5–60.8 fps with a few 37–42 ms frames, noisy). The mask re-renders the content, even on a still wrapper.
  • (b) strips of the card's own glass: two 32 px strips over the ends of the wrapper with the card's frosted blur (backdrop-filter: blur(14px)) and page tint, masked to a gradient (the mask covers only 32 px), opacity toggled when an end is crossed. 8-run A/B: 60 fps and 21–27 ms in 6 of 8 runs (outliers 186 and 60 ms); the no-fade control had 28–31 ms frames in 2 of 8. Shipped (b). The edge now melts into the frosted card instead of being cut ("atch", "ftersun" are softened; the first letters under the strip are blurred, not sliced).
  • Final build, real Safari, 6 runs: board scroll max frame 464 (first run), 21, 22, 23, 52, 24 ms → 4 of 6 at 60 fps / 21–24 ms, 2 of 6 hitch (464 and 52 ms; the A/B control also hitches on this shared host). I couldn't get a fully clean 6/6; treat the frame gate as not met on this VM.

2. Phone header

"Movies 25": the count is just the number, right after the title (like the desktop). The view tabs and the rule's chip ("#movie this year") are ONE row that scrolls sideways, never wrapping, with 8 px above and below (data-sub-row). A long title shortens instead of running under the layout pill. Spec: collections-layouts.spec.ts §3 (count on the title's line and a number only, 8 px+ of air, tabs and chip on one row, chip one line, no sideways page scroll).

3. Light right fade on phone

Same strips: the Arrival card now melts into the frosted card tint rather than a white wash (iPhone shot, light: the strip is the card's own glass; it reads bluish over the poster, not white).

Checks

collections-layouts (10 tests, Chromium + WebKit) pass; WebKit full set (collections-layouts, collections-screens, notes-approve, collections-db, collections-embed-props): 101 passed. The Chromium full set was still running when I posted. A mid-way commit broke the build (a stray </div> in Board.svelte); fixed in 37bd693b7, which is what is deployed.
Shots: Safari 1440/800/390 and iPhone sim 390, light and dark (the sim run is 390 only).

## Review fixes: fades, phone header — head `37bd693b7`, slot `collections` redeployed at it ### 1. Board fades over a glass card The hard cut was my overlay: a flat colour over a card that is glass over a photo. Tried in real Safari (Mac VM, same page, variants injected in one session, scroll 0→60 %): - **(a) mask on a wrapper that is not the scroller:** 53.9 / 47 / 56.8 / 57.6 / 55.7 / 53.2 / 57.2 / 54.1 / 42.2 / 54.4 fps over 10 runs (max frame 27–203 ms), vs 59.6–60.9 fps (19–33 ms) with no fade. `will-change: transform` / `translateZ` / `isolation` on the wrapper didn't help reliably (one 5-variant set: 58.5–60.8 fps with a few 37–42 ms frames, noisy). The mask re-renders the content, even on a still wrapper. - **(b) strips of the card's own glass:** two 32 px strips over the ends of the wrapper with the card's frosted blur (`backdrop-filter: blur(14px)`) and page tint, masked to a gradient (the mask covers only 32 px), opacity toggled when an end is crossed. 8-run A/B: 60 fps and 21–27 ms in 6 of 8 runs (outliers 186 and 60 ms); the no-fade control had 28–31 ms frames in 2 of 8. **Shipped (b).** The edge now melts into the frosted card instead of being cut ("atch", "ftersun" are softened; the first letters under the strip are blurred, not sliced). - Final build, real Safari, 6 runs: board scroll max frame 464 (first run), 21, 22, 23, 52, 24 ms → 4 of 6 at 60 fps / 21–24 ms, **2 of 6 hitch** (464 and 52 ms; the A/B control also hitches on this shared host). I couldn't get a fully clean 6/6; treat the frame gate as not met on this VM. ### 2. Phone header "Movies 25": the count is just the number, right after the title (like the desktop). The view tabs and the rule's chip ("#movie this year") are ONE row that scrolls sideways, never wrapping, with 8 px above and below (`data-sub-row`). A long title shortens instead of running under the layout pill. Spec: `collections-layouts.spec.ts` §3 (count on the title's line and a number only, 8 px+ of air, tabs and chip on one row, chip one line, no sideways page scroll). ### 3. Light right fade on phone Same strips: the Arrival card now melts into the frosted card tint rather than a white wash (iPhone shot, light: the strip is the card's own glass; it reads bluish over the poster, not white). ### Checks `collections-layouts` (10 tests, Chromium + WebKit) pass; WebKit full set (`collections-layouts`, `collections-screens`, `notes-approve`, `collections-db`, `collections-embed-props`): 101 passed. The Chromium full set was still running when I posted. A mid-way commit broke the build (a stray `</div>` in Board.svelte); fixed in `37bd693b7`, which is what is deployed. Shots: Safari 1440/800/390 and iPhone sim 390, light and dark (the sim run is 390 only).
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#1066
No description provided.