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
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mockup round for kayg's Collections DB asks (2026-11-10), spec:
collections-db-mockup-2026-11-10.md.?props=table/?props=lineBranch
feat/collections-db(based onreview/calendar-2). Preview slot: https://preview.calternal.cloud/collections/ . Evidence is posted as comments below. Nothing here is merged.Collections DB round: evidence (head
7f379f674, branchfeat/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):#/list/col:movies?data=collections&ai=0&layout=window)&db=table/&db=total· ⋯ menu&db=menu· Filter in ⌘K&db=filter· Fields&db=fields· Views list&db=views· New view&db=newview…&props=line(open:&db=propsopen) · plain note:#/note/design-everyday-things?list=all&data=collections&layout=window…#/note/calternal-launch…· "This note" among the suggestions:kitchen-renovation…&thisnote=off&db=embedfilter· a task made in the embed:&db=embednewWhat is built
Valuecomponent per property type (text, number, date, checkbox, rating, select/multi, link, URL, person), used by the note's rows (A, built onPropRow), 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.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 "+".Decisions (I made them; say if you want otherwise)
state_unsafe_mutationpage error: it was mine (the embed's "New task" button was removed while focused); fixed.Checks
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-dbalso passed in WebKit at5755b2fae.?r=before the hash).Frames: rAF deltas on the Mac VM (WebKit, 1440), 3 runs each at
7f379f674Checked 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.
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
RowActionsswipe 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).
Also touched, behaviour unchanged by default:
PropRowgained an optional value snippet (the default copy/edit row is untouched),ViewSheetgainedonly="fields" | "views"modes (the whole sheet is as before), the Board's select chips now come from the sharedValuewith the Board's own metrics (shown equal above), the sticky title cell'sbackground: inheritis 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.Browser (Chromium) 1440 px, light + dark (30 shots, head
7f379f674)Browser (Chromium) 800 px, light + dark (30 shots, head
7f379f674)Browser (Chromium) 390 px, light + dark (30 shots, head
7f379f674)iPhone 18 Pro simulator (iOS 27, Safari) on std, light + dark; full reload per shot (28 shots, head
7f379f674)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) 800 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.Frame-hitch fixes (head
4a0079cbe, slotcollectionsredeployed at that head)What changed
RowActions) now build their buttons on the row's first touch (the swipe already asks for them inontouch, now drawn withflushSync) 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)./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.inertinstead ofvisibility: hidden, so the first "3 more" unfold has nothing to draw (it had a 404 ms and a 61 ms outlier).Specs on dev-01, Chromium, head
4a0079cbe: 101 passed, 2 failed (automations-swipesphone "short swipe" androw-actions-compactleading 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-overlapfails 5 of 9 on both. Everything else (collections-db13,collections-screens,collection-actions,tasks-swipe-colour, the rest ofautomations-swipesandrow-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
requestAnimationFrameticks: a blanksetContentpage records 0 frames in 4 s (also withcaffeinate -u), and my idle baseline records 0–7 frames in 700 ms (it recorded ~42 earlier). The old head7f379f674fails to load there the same way, so it is the VM, not the code. A leaked Safari automation session (safaridriver -p 4977, aSafariprocess 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_SETTLEand long load timeouts are in the branch).Frames re-measured on the healthy Mac VM (head
c42180a2a, slotcollectionsredeployed 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.What fixed what
wheellisteners. Even a passive wheel listener on each row makes WebKit rebuild its wheel-event regions for that row (a bisect on the Mac VM: withuse:swipeRowremoved, or with plain rows, the open is 22–25 ms). The sharedswipeRownow 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).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-swipesphone short swipe,row-actions-compactleading tray). The wheel-driven specs (automations-swipesdesktop,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.)
Last round: 6 runs per row (head
e23c4f6a6, slotcollectionsredeployed 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).
(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
data:images markedloading="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).inertguard, 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 theinertand the height transition cut the outliers but dropped the focus guard, so I kept it. I didn't trycontent-visibility.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 knownautomations-swipesphone short-swipe flake. The frames spec itself now has the first-menu tests, the idle control and the Total scroll-first fix.Last frame round:
content-visibility: autoon the folded rows: no gain, revertedOne quick attempt as agreed:
content-visibility: autowithcontain-intrinsic-size: auto 32pxon 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 toe23c4f6a6.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
inertguard 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 ase23c4f6a6; the revert only), slotcollectionsredeployed at it: https://preview.calternal.cloud/collections/Fixes for kayg's review (13:05 IST): head
3cece7979, slotcollectionsredeployed at itBranch
feat/collections-db(fast-forwarded; also onfeat/collections-db-fixes). Item 3 also onfix/timelog-caretoffreview/calendar-2(head4e8d0de26+, 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 headbe151c8caplus only the mockup-only?db=open states (slotcollections-before).1. Compact rows tickbox
It was a bare
<input type=checkbox>(a native box, drawn huge and thick). Now the sharedSpringCheckBoxin alabel.checkrow 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 usesSquishSwitchs, 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…" (noinput[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.2. Edit-view palette reads plain English
#project/calternal or linked to Calternal rewriteis 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/calternalor 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 ruleCalternal(#project/calternal, or linked to …) evaluates the same way.Code:
packages/ui/src/search/words.ts(linkandortokens,groupsOf),lib/links.ts(one place for "who links to whom",lists.tsreuses it),providers/index.ts(runAny).Specs:
words.test.ts(5 new cases, 39 pass) andcollections-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).
3.
/time-logshows two cursorsReproduced, and it is on
review/calendar-2too. Cause: after the time-log line is inserted the selection is an element + offset (span.text, 5) sitting between the09:12span and its space. WebKit gives such a collapsed range no client rects, soSmoothCaret.caretBoxfell 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> with the selection at the end ofspan.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-caretslot (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, oncollections-fixesand onfix/timelog-caret.Which branch fixed it: both.
fix/timelog-caretis a small branch offreview/calendar-2with justSmoothCaret.svelte+ the spec (slottimelog-caret);feat/collections-dbcarries the same file.4. "New property…"
+ Propertynow ends with New property…. Choosing it morphs, in place, into a glass card (sharedGlass+Float+ the shared clip morphlib/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 (typeIconis now the one source,PropsRowsuses it). Enter makes the property, adds an empty row for it on this note (its own editor opens) and from then on+ Propertysuggests 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.
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: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.collections-fixes.spec.ts+timelog-caret.spec.ts: Chromium (dev-01 and dev-02) and WebKit (dev-02), all pass.search-preview,palette-app-words,palette-apps,collection-actions,collections-db,collections-screens,notes-approveon Chromium (dev-01): all pass.glass-portal.spec.tssixphoto/auroracases 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 sharedbounce); the 23 it lists are the earlier ones.Open risks
?db=sheet). Needs a look on the device./through safaridriver, so item 3's Safari numbers use the same DOM state built by hand; Playwright (the real insert path) covers the insert.+ Propertyrow 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.Round 2 + property discovery (head
7f4c2dd3c, slotcollectionsredeployed at it)5. Embed header: Expand and ⋯ only
A note or collection embed shows two buttons: Expand (new single diagonal arrow,
grow/shrinkin 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.
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…):/menu (newrunkind of block action; also works from the Insert sheet).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, ⌘Kadd 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-fixesspecs: 66 passed on Chromium and WebKit at4c3806ca0+ (last run before the strip-height commit was 66/66 at4c3806ca0; the final commit only adds the 26 px strip height and a?db=discovermockup 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
7f4c2dd3cbeyond the shots; the note-embed collapse frames above.Item 6 final (kayg's change): the table by default in a note, the compact line on rows — head
301544e80, slotcollectionsredeployed at it/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.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).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.#movielist showing "Watched · ★5 · 12 Oct · +5" under each title.blocks.spec.ts"Show as embed" (fails on the old head too); note-embed Expand/Collapse frames from the previous round.Layout pill + Board fades (kayg 17:48 IST) — head
b573a783c, slotcollectionsredeployed (25257fb2, the same source)1. All layouts visible, in one shared pill
The single cycling button is gone.
LayoutMenunow draws the sharedSelector(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
rowglyph (a flat rectangle, 18×8 of 24). Newboardglyph (a rounded square with three columns) and acardsglyph (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, nodata-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: paintdidn'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, andmask-image: noneon 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-propsspecs: 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).Review fixes: fades, phone header — head
37bd693b7, slotcollectionsredeployed at it1. 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 %):
will-change: transform/translateZ/isolationon 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.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).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 in37bd693b7, which is what is deployed.Shots: Safari 1440/800/390 and iPhone sim 390, light and dark (the sim run is 390 only).