Notes Float port (ship the new Notes layout) #1088
Open
opened 2026-11-12 05:34:54 +00:00 by kayg
·
15 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#1088
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?
kayg 11-12 ~11:00 IST: "let's just focus on shipping the new notes layout now."
Source of truth: the mockup on
review/calendar-2(apps/mockup) and its checklistdocs/plans/float-port-checklist.md. Target: apps/web, packages/ui, packages/editor, by stacked PRs into dev.Plan (decided items only):
docs/plans/notes-float-port.mdon branchport/notes-float-shell.Slices: 1a window shell for Notes, 1b dock + wrapping switcher + persistent window, 2 top-right toolbar, 3 flat lists (+3b Notes sidebar tree), 4 Style sheet and themes, 5 split cards, 6 ⌘K preview, 7 adaptive contrast, 8 phone parity.
Evidence (shots, frames, bundle numbers, gate tables) is posted below as comments.
Plan pushed:
docs/plans/notes-float-port.mdonport/notes-float-shell(commit0875656, then slice 0 added). Finding: 41 of 165 e2e files and ~20 source files are bound to the old Shell's class names and--cl, so a new slice 0 (stabledata-*hooks, no visual change) goes first, then 1a window shell, 1b dock/switcher/persistent window. No product code is changed yet; no gates have been run.App-switch and open-note costs: findings for the port (from #1085, mockup, real Safari on the Mac VM)
For the port captain building Notes into
apps/web: what a switch into Notes costs, what I measured, what did and did not help. Numbers are the median worst frame after a switch, 1440, same-session A/B (noise ±5 ms). Mockup head2405dd402on calendar-2.Where the time goes
NotesSide13 ms (tree sections 9, rows 7, note thumbs 3),Editor6,Composer3.4, window dock / app switcher ≈ 4, the old app's teardown ≈ 2 of 50 (so deferring teardown is not worth it; I did not build it).What helped (in this order of size)
--edge-base,data-win,--toast-x, which cost four whole-document restyles per switch. A holder that clears only when the last owner goes (one microtask late) removed them.What did NOT help (do not spend time on it)
offsetLeft/scrollHeight/getBoundingClientRectinto one read pass, replacingbind:clientHeightwith a ResizeObserver, hoisting agetComputedStyletoken read, limitingstandClear's hit tests): each was measured and showed 0 ± noise. The first reader pays for the layout that the next reader would have paid, so a read only costs extra when it follows a write and repeats. None of the mockup's did.What will help: build these in from the start
requestIdleCallback(Safari has none: use a ≈ 90 ms timer). Never an empty state: the list simply continues. Home's bento did this (−7 ms on Home); expected −8…−12 ms on Notes.tests/app-switch-shell.spec.ts, is the gate).Editoris 6 ms for a short note and grows with length.Selector(its first placing is a forced layout ≈ 12 ms in Chrome when it mounts with the rest): keep the strip mounted across switches so only its selected value changes, and measure its options in one batch (dev already hasselector/measure-batch).Per-step results (mockup, same protocol)
standClearband-firstbind:clientHeight(+ dead bindings removed), pane-gap token cachedTarget was < 33 ms; the mockup ended at ≈ 60 ms median (Notes ≈ 76). The remaining cost is each app's own content, which is where the port should save it.
Port finding:
inerton switched cards loses keys (from #1085)If the port keeps two forms of a card (or any card a route change turns on and off), do NOT mark the unused one
inert/aria-hidden: usedisplay: none(orvisibility: hidden), which already removes it from focus order and the accessibility tree. In the mockup,inertflipped on such cards plus the glass map build's lift/restore of every[inert]node left the live card inert for a moment and keys typed right after a switch were lost or reordered in WebKit (≈ 10 % of runs). Keepinertonly for panels that stay visible but must not take input (a sliding inspector, the AI area), and make anything that lifts and restoresinertrestore what the owner last asked (liftInertinbehind-glass.tsdoes sincef76538528). Root cause and evidence: #1085 (comment on 11-12). Gate:tests/app-switch-shell.spec.ts:49(typing right after a switch) ×20 on WebKit and Chromium.Style sheet, product (PR #1100) vs mockup (calendar-2), Chromium, light/dark, 1440 and 390
Product: Nord theme, Dots separator, narrow, split cards. Mockup: the same choices on its own sample note. Real Safari / iPhone simulator shots follow in a separate comment.
page light 1440: product | mockup
page light 390: product | mockup
page dark 1440: product | mockup
page dark 390: product | mockup
background light 1440: product | mockup
background light 390: product | mockup
background dark 1440: product | mockup
background dark 390: product | mockup
gradient light 1440: product | mockup
gradient light 390: product | mockup
gradient dark 1440: product | mockup
gradient dark 390: product | mockup
Notes Float slices 6 (⌘K preview, PR #1096) and 7 (adaptive contrast, PR #1097): evidence pairs
Real Safari (macOS 26.5, Mac VM), 1440x900, the palette open over a long note with "slow travel" typed; product served from dev-01 through a forward. Build under test for these shots: base =
port/notes-float-1ab9a319721; slice 6 = #1096 atcc57d1b9e; slice 7 = #1097 ated7e190c3(then dense/float alpha ceilings were 0.82/0.74; the branch now uses the mockup's 0.66/0.55, so today's palette is a little lighter than shown). A re-shoot on the final heads was attempted, but in that session Safari booted none of the apps (every build, old ones too: blank page, JS not run, while Chromium and WebKit boot them fine), so these are the shots I can stand behind. Mockup = calendar-2 preview slot. The two layouts differ (Notes sidebar tree etc. land in other slices); what is compared is the palette's glass and its pane.Glass of the palette (computed in Safari)
--glass-busyiPhone 18 Pro simulator (iOS 27, own sim on std, under the std lock), light and dark
Opened the app's phone screens for base / slice 6 / slice 7: the note screen's glass pills, bar and keyboard accessory are pixel-for-pixel the same between base and slice 7 (calm glass is unchanged); the palette on a phone has no preview pane (spec asserts it). I did not drive the phone palette itself (no tap automation set up for the product's phone search button): a gap.
Not done / open
--ink-2table: no target in the product (no root Warm/Cool paper).product-base-light-palette.png
product-s6-light-palette.png
product-s7-light-palette.png
mockup-light-palette.png
product-base-dark-palette.png
product-s6-dark-palette.png
product-s7-dark-palette.png
mockup-dark-palette.png
sim-base-light-list-all.png
sim-s7-light-notes-frames-long.png
sim-base-dark-list-all.png
sim-s7-dark-list-all.png
Slice 4 Style sheet in the iPhone Simulator (real iOS 27 Safari on std), 390 wide, light and dark
Opened with
sheet=style, then the Page and Background tabs TAPPED (the sheet's own sizing: about 45% of the screen, content scrolls). Dist built from PR #1100 head (2bccd20b2code).page-light
page-dark
background-light
background-dark
Finding (pre-existing, not from this slice): in iOS Safari, opening the Style sheet by address (
?sheet=style&tab=page) shows the Text page's content under the Page tab (the pager's first scroll position does not hold); the same on the 1a base build. Tapping the tabs works, as above.Notes Float ports: last two gates (test lane, 11-13 ~00:30 IST)
PR #1100 (slice 4, Style sheet), head
9dcdcabb4, unchanged: real-Safari frames NOT taken.about:blankin a fresh safaridriver session on macos-01 gives 0.53 / 0.40 / 0.46 rAF/s (expected about 60) even with the orphan Safari gone, so I stopped as instructed (details in comment 94436 on #1100). Needs a Mac session that renders; scripts are ready. Everything else on #1100 was already in 94358.PR #1101 (slice 5, split cards and dividers): the earlier +0.2 to +0.4 ms/key was real in the steadier metric, so I fixed it: new head
bd7b63a5a(one commit,breaks.tsonly: each break carries its line number and end, so no per-breaklineAtper key;cm-caret-gapis set by the breaks plugin's own draw instead of a StateField). Typing CPU from Chromium's counters, perf-01, 16 rounds ABAB, 3 arms (baseeb9d0552b, oldc1600c887, newbd7b63a5a), 32 pairs: script+style+layout -0.55% ±0.46, all main-thread work -0.57% ±0.37, tight-loop edit path -0.40% ±0.70 (old head was +1.07% there); no aggregate's 95% upper bound above +0.4% (loop +1.0%). Layout alone is +1.1% ±0.65 (+0.016 ms/key), paid for by style -1.8%. Full tables and raw JSON on #1101 (comment 94472). Re-run on the new head: unit 575, svelte-check 0 errors, targeted e2e 0 failed in chromium/webkit at 1440 and 390 (same counts as before).Not claimed: a statistically significant improvement. I can say nothing above the base is detectable at about ±0.5% resolution on the aggregates.
Heads are on
eb9d0552b;port/notes-floathas since moved tob6f2452bf, so the captain may need to update the branches before merging. Nothing merged by me.Zen (Focus) per frame: what dev does and what the window does, and what is measured (note before trying more variants)
What zen-out costs in real Safari (Mac VM, before it lost its display; ABAB in one session, 8 per build): dev worst frame about 30-45 ms, the window about 63-84 ms (zen-in reached dev's level in the best variant, zen-out never did). Six variants did not move zen-out: the list card hidden by fade, by opacity, by translate, by visibility; a 60 ms delayed return; the page's pills kept mounted, off the page, or inert.
What each implementation animates in the frames of the gesture (read from the code):
Shell.sveltebefore the port)WindowLayout).focus .pane:opacity0 andtranslate -12px(compositor properties), thenvisibilityhidden; they keep their boxes; the grid does not changetranslate(compositor), but the WINDOW's left edge moves with it:.wwinand.wshadowanimateleft, the sidebar's strip and the two left corner pieces of the global layer animateleftandwidth--clip(a registered property) springs on the frame's fill, rim, viewport and note layer--clipspring, plus the page area is a fixed-size sibling (unchanged)0 18px 40px) is on a box that MOVES (.wshadow left), the corner pieces and the sidebar strip are painted with a screen-sizedbackground-attachment: fixedimage and a tint, and they change box each frameleft/widthchanges on abs-positioned boxes: small, but every frameSo the structural difference is: in dev's zen nothing with an expensive paint changes geometry; in ours the shadow box and the pieces that paint the screen-sized picture do. The sidebar toggle (which also moves the window's edge) is at parity with dev because dev's toggle animates
grid-template-columnsand re-lays out the panes too, so both pay; zen is the one gesture where dev pays nothing and we pay for the edge.Measured in Chromium (headless, no throttle; main-thread trace over the 1.4 s after the key, 8 runs per build, dev vs integration head
e3bc2040c), ms of main-thread work:Reading: on the main thread zen is the same on both (within a few ms), so the Safari gap is NOT style, layout or paint recording. It has to be what WebKit rasterises and composites (GPU work, off the main thread): a moving shadow box and pieces painting a screen-sized
fixedimage force re-raster of large areas each frame, where dev moves nothing heavy. I cannot see that from Linux; it needs the Mac (Web Inspector timeline / layer borders and repaint counts).Ideas to test when the Mac renders again (not tried yet, in this order): (1) in zen only, do not animate the window's edge: fade the sidebar and the list as dev does and let the window grow in one step after (or before) the fade, so no heavy box changes geometry during the animation; (2) give the shadow and the pieces their own composited layers while the edge moves (
will-change: transformfor the gesture only) and move them bytransforminstead ofleft/width; (3) paint the pieces withoutbackground-attachment: fixed(an inner full-size picture clipped by the piece) so a moving piece does not repaint the screen-sized image.Notes Float port captain, perf + Safari evidence (11-13, IST ~11:45–12:00). Integration
port/notes-floate70cb2c0a(includesport/notes-float-promote9d97fb0ce).Cause of the shell's typing cost (Chromium, per typed key, stage split, 216 keys, 4× throttle): Layerize dev 2265 µs → window 3302 µs, layer+layout work +21 %. Removing
.wsidereturns Layerize to dev; removing the list card recovers half. The two were squashed/re-checked against the page every key. Fix:will-change: transformon.wsideand.wc-listwhile the editor has focus (class from focusin/focusout;:has()was tried and made list recalc +60 %). Layer+layout work after: +2.5 % over dev.Three pooled ABAB sessions on
9d97fb0ce(perf-01, both locks, 8 per arm each, dev2 control in each, ratios per session), pooled vs dev, mean (95 % CI upper): typing CPU +0.81 % (+1.13 %; control +0.25 %), typing script +2.81 % (control +0.15 %), list CPU −2.69 % (−1.60 %), list script +4.35 % (+6.12 %; control −0.91 %), list layout +0.88 %, list recalc −1.34 %. Per session typing +0.7 / +0.6 / +1.1 %. Gate not met (typing, list script). Remaining typing cost is JS in CodeMirror'svisiblePixelRangewalking two extra clipping ancestors (.wl,.wc-main); list script is behind-glass + a few effects.Real Safari (macos-01, 60 rAF/s blank, ABAB, several sessions): list scroll and idle at or below dev; zen with focus-only promotion 44.5 in / 46 out vs dev 43.5 / 54.5 (median worst frame, ms); sidebar hide/show at dev within the Mac's own session-to-session swing (dev show 42–54, hide 56–79). Outliers of 200–800 ms occur in every arm including dev; not attributable to promotion.
Notes Float port captain: script-only residuals (11-13), for a later pass. Not blocking; kayg decides.
Integration head
0e0e19d19, three pooled sessions (perf-01, 8/arm, dev2 control), vs dev: typing CPU +0.72 % (control +0.66 %, so at dev), list CPU −3.08 %. Script-only: typing script +2.31 % (control +0.22 %), list script +4.38 % (control +1.00 %).Findings for whoever picks it up:
visiblePixelRangeandgetClientRectsper key (+60 / +125 µs at 4× throttle). The editor sits 14 elements deep against dev's 13 (.wlonly; the page wrapper is gone). More ancestors = moregetComputedStyle+ scroll-size reads per measure.set_attributeroughly doubled per scroll (23.7 → 46.7 µs) and the list's own template effect (set_class+aria-label+data-chrome-scroll) accounts for about +100 µs per run-equivalent. Idea: guard those attribute writes with equality checks so unchanged values are not written; check why the effect re-runs on scroll in the window layout.Notes Float port captain: HANDOVER (11-13, orchestration moving host)
1. Integration head
port/notes-float=0e0e19d19(--no-ffmerges, in order): 1a shell (#1093, closed, merged by me) · slice 6 preview · slice 7 contrast/adaptive glass + #1102 (no-motion) · #1104 behind-glass scroll fix (closed, merged) · promote (9d97fb0ce:will-change: transformon.wside/.wc-listonly while the editor has focus, a.typingclass from focusin/focusout; NOT:has(), which made list recalc +60 %; plus behind-glass scroller-box cache) · flat (9f4fdfec5: page wrapper.wc-mainremoved from the DOM, the page root is the window's child; editor chain is 14 deep vs dev's 13,.wlonly). Not merged into it: #1100 (slice 4), 1b.2. Branches and PRs
port/notes-float(integration)0e0e19d19port/notes-float-shell00aa99e78port/notes-float-s4-style9dcdcabb4port/notes-float; waits for its Safari frames (theme switch, Style sheet open)port/notes-float-1b3d9fc2272c09ee1312,ee22cc673port/notes-float-promote,-flat9d97fb0ce,9f4fdfec5port/notes-float-shell-only,port/nf-bis-m7/m6/m67,-1a,-perf,-bg-fix3. Gate status (kayg: no regression of any size)
Chromium CPU, pooled ×3 sessions (perf-01, both perf locks, 8 per arm per session, dev2 = same-build control in each, ratios per session), head
0e0e19d19equivalent (flat9f4fdfec5), vs dev, mean (95 % CI upper):typing CPU +0.72 % (+0.98 %) while the dev2 control reads +0.66 % → new − control ≈ +0.06 %, i.e. at dev · typing script +2.31 % (control +0.22 %) · list CPU −3.08 % (−1.49 %) · list script +4.38 % (+5.44 %; control +1.00 %) · list layout −0.87 % · list recalc −0.89 %.
Earlier shell-only head had typing +1.3–1.8 %; cause was the sidebar and list card not promoted (Layerize 2265 → 3302 µs per key on dev vs window; removing
.wsidereturned it to dev);will-changewhile typing = layer+layout +2.5 % (was +21 %).Real Safari (macos-01, blank 60 rAF/s, ABAB one session, median worst frame ms, dev | ours): idle 24 | 24; list scroll 30.5 | 24–25; zen-in 43.5 | 44.5, zen-out 54.5 | 46 (focus-only promotion; always-on promotion was worse); sidebar hide 56|79 (dev) vs 56|67.5 (ours), show 42|54 vs 53|53.5 → at dev within the Mac's session swing (dev show 42–54, hide 56–79); 200–800 ms outliers occur in EVERY arm including dev (not attributable). 1b switch frames (10 cycles): to-Contacts median worst 95.5 dev | 90.5 ours (over-50: 11 | 12), back to Notes 22.5 | 24.
Crisp text, Chromium: sidebar+list region promoted vs not: 0 px differ by >8/255 at 1x and 2x.
Verdict: typing CPU and list CPU gates MET; script-only residuals open (kayg to decide: typing script +2 %, list script +3.4 % net of control).
4. Open
visiblePixelRange/getClientRectsper key over the.wlancestor; list script = spread across Svelte reactions (set_attribute~2×, the list's template effect writesset_class/aria-label/data-chrome-scrollon scroll). Idea: guard attribute writes with equality; find why the effect re-runs on scroll in the window layout. Not rows (22 mounted in both), not behind-glass (~7 µs).window-layout.spec.ts:124(list handle drag) and:165(pieces follow window) and:73/:93;tasks-tick×3,swipe-rows:226,journal-trash:25fail on the integration head too (baseline run on0e0e19d19: 6 failed / 83 passed on those files, chromium-1440).notes-floatslot).5. 1b WIP (
port/notes-float-1b3d9fc2272, on top of port/notes-float0e0e19d19)Done:
window/WindowDock.svelte(account · switcher · search) replaces the Notes sidebar footer (.me: avatar, Contacts, Settings),window/AppSwitch.svelte(3-icon scroll-snap loop, scroll browses, click switches, hover list button, All Apps menu),lib/app-list.ts(built apps from lib/apps),lib/all-apps.ts,App.svelteeffect: a pointer switch to/from Tasks or Contacts fades the new screen in (swapTabs), keyboard instant; sidebar width range now 220–400 (SIDEin Shell, dock needs 220); specsapp-switch.spec.ts(5 tests); five old specs that clicked the sidebar Settings button now go through Account → Settings,contacts-listuses the switcher icon,list-searchscoped to the list; dock/hover usedata-instant(keys-no-motion).Not done:
app-swipe(sidebar swipe between apps), progressive blur under the dock, the 390 phone check,notes-float-switch.spec.ts(frame-by-frame), Mac switch gate beyond the frames above, typing-right-after-switch spec.Last full chromium runs on
63d320c66(before the final 3 fixes): chromium-1440 607 passed / 19 failed, chromium-390 1037 passed / 16 failed; baseline on0e0e19d19for the same files: 1440 6 failed (pre-existing), 390 8 failed (pre-existing). Of the 1b-specific failures I fixedkeys-no-motion×4 (data-instant) andlist-search:19; still failing on3d9fc2272, to look at:app-switch.spec.ts:102(root attributedata-readyis removed and rewritten during a Notes→Contacts switch: check whether dev does this too, then use the plan's holder pattern or relax the spec to the attributes 1b owns),tasks-card.spec.ts:93(.tbstrict mode: the kept-mounted Notes window's.tbplus the task card; probably timing of the Notes layer being built, baseline passes),vim.spec.ts:387(extratitle: Vimfront matter; unverified if related),window-layout:124/165(flaky, see above), 390: swipe-guard ×2, search-palette:47, opacity:126, missing-links:336, tint:313, tasks-tick:72, swipe-rows:627 (not in the 390 baseline list: re-run on3d9fc2272alone, then compare with baseline).6. Exact next steps
3d9fc2272alone (not under load), fix or baseline each; do thedata-readyquestion; then PRport/notes-float-1b→port/notes-floatand run its gates (pooled ×3 typing/list unchanged expected; Mac switch frames done above: at dev).port/notes-float(--no-ff) when they pass.port/notes-float→ dev.7. Harness (copies in
~/Developer/Worktrees/nfa-harness/on the control host:control-host/,dev-01/,perf-01/,mac/; /tmp originals vanish)Hosts: build host
claude@calternal-dev-01-compute02(worktrees~/Developer/Worktrees/nf-integ(detached, currently3d9fc2272),nf-bis-m7,notes-float-1a; fixtures/dists in~/nfa-perf); perfclaude@calternal-perf-01-backup01(~/nfa-perf:dist-*,fixture,calternalbinary,run3.sh,typing-list-cpu.mjs) and-perf-02-(second lock only); Maclume@calternal-macos-01-std(~/nfa-frames:dist-dev,dist-1a,nfa-frames7.sh/.py,seed.py,calternal-fix= Mac binary re-pointed at openssl-3.5.9 because nix GC removed 3.5.8). dev-02 (~/nfa-prof) was not reachable at the end under the names I know.Run a pooled session: on control host
ship3f.sh <name>(edit the branch in it): builds the branch on dev-01 into~/nfa-perf/dist-<name>, relays (control-host relay dir, see/tmp/nfa-relay-dir) to perf-01, queues~/bin/perf-turnwithrun3.sh(arms dev, dev2, new, 8 each, rotating), a watcher (nfa-second-lock.sh) takes perf-02's lock only when the driver asks, copies<name>1..3.jsonback;pool3.py <name>gives the pooled ratios with CI. Function profile:typing-profile5.mjs(dev-01, unminified distsdist-*-nm,SCROLL=1for list), stage split:typing-trace-variants.mjs/toggle-trace.mjs/zen-trace.mjs, layers:layer-count.mjs. Mac frames: stage dist as~/nfa-frames/dist-1a(+dist-dev), runCYCLES=10 ./nfa-frames7.sh > run.log(takes/tmp/mac-bench.lock, aborts if the blank page gives <100 frames), summary inout/frames.json. Playwright on dev-01:CALTERNAL_BIN=$HOME/nfa-perf/calternal ~/bin/slot bunx playwright test --project=<p> --output=$HOME/pw-<x>insidenix developof the worktree.8. Cleaned up
No perf lock, Mac lock, slot, server, systemd unit, safaridriver or Safari of mine is left running (checked on dev-01, perf-01, perf-02, the Mac); a stale
/tmp/nfa-second-releaseon perf-02 removed. Worktrees left in place.Early full Playwright suite on
port/notes-float@4f0b58327(vs dev796d80cba)Result: 2 real failures on the branch. Both reproduce (10/10 and 20/20) and dev passes the same tests. Everything else is flaky, or the same on dev. Times are IST (the run went from about 04:00 to 07:00 IST, 14 Nov).
Setup
~/Developer/Worktrees/nf-full-4f0(4f0b58327) andnf-full-dev(796d80cba) on dev-01 (x86) and dev-02 (aarch64). Both built through~/bin/slot(cargo build -j4 --locked -p calternal+bun install --frozen-lockfile).~/bin/slotin its own systemd-run unit:CI=1 --retries=0 --workers=1, own--output. dev-01 ran chromium-, contrast and the others; dev-02 ran webkit-, admin, prefs, look, sidebar-band. Throttled ran last, alone.dependencies: []. The first attempt failed on an ESM import error (0 tests); those projects were re-run after the fix.--repeat-each=10 --retries=0 --workers=1, through~/bin/slot, branch then dev.Per-project counts, first full run (JSON
stats)Failure table
4f0b58327796d80cbasheet-geometry.spec.ts:202"the sheet surface is the shared glass, with no paper laid over it"rgba(24, 22, 20, 0.66), expected0.48(line 217)backdrop-page.spec.ts:79"the backdrop is frosted and dimmed by its rows".surface .backdropmatches 2 elements (abakedcopy and the live one)backdrop-page.spec.ts:79and:145"a drawn backdrop is the real backdrop…".surface .backdropsearch-palette.spec.ts:47"the list never shows an empty frame between two keys"tint.spec.ts:292"a swipe tints each block exactly" and:313"swiping neighbours…" (light and dark)toHaveCountmismatchnote-bars-motion.spec.ts:71@throttled "rest to Attach menu, and back"The two REAL failures are the only ones that reproduce on the branch alone. They are not stability issues, so no stability issue is opened for them, and they need a fix before the final PR. My guess at the cause: the window layer keeps a second
.backdropin.surfaceduring the baked frost swap, and the phone glass fill alpha changed. I did not dig further, because the brief said no code changes.Commands
~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile'in each worktree.CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>, wrapped in~/bin/slot. Nodeps adds-c ~/nf-full/nodeps-<wt>.mjs.--repeat-each=10 e2e/<spec>:<line>.Cleanup
Worktrees (with
target/), mynf-*units and the~/nf-fullscratch dir are removed on both VMs. I did not delete shared/tmp/nix-shell.*dirs, because other lanes' shells use them and I cannot tell mine apart safely.Full Playwright suite on
port/notes-float@6a3ef2e83(vs origin/dev6c50dd99c)Result: 4 branch-only failures reproduce on the branch and pass on dev (blockers). Two more failures are on dev as well, so they are pre-existing and go to #1087. The rest of the matrix is green.
Setup
6a3ef2e83(merge #1122, slices 3/3b; contains dev44fc0b7c4). Dev:origin/dev=6c50dd99c.~/Developer/Worktrees/nfull-6a3andnfull-devon dev-01 (x86) and dev-02 (aarch64). Both built through~/bin/slot(cargo build -j4 --locked -p calternal && bun install --frozen-lockfile), rc 0 on both VMs.~/bin/slotin its own systemd-run unit:CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal,--retries=0 --workers=1 --reporter=line,json --output=<dir>. dev-01 ran chromium-, contrast, chrome-contrast, flow, passkeys, prefs-chromium, look-chromium-, sidebar-band-chromium, throttled-* (throttled last, alone). dev-02 ran webkit-, admin-webkit-, prefs-webkit, look-webkit-*, sidebar-band-webkit.<scratch>/nodeps.config.mjs,dependencies: []). Admin-* ran with the normal config, so admin-setup ran as its dependency.--repeat-each=10 --retries=0 --workers=1, through~/bin/slot, on the branch and on origin/dev.Per-project counts (first full run, Playwright totals)
Two harness notes. (a)
prefs-webkitfirst failed withhttp://127.0.0.1:36675/ is already usedbefore any test ran, and passed on rerun. (b) I briefly launched dev-02's chromium lanes by mistake and stopped them at once. Their partial logs are not counted.Failure table
6a3ef2e836c50dd99cadmin-sharing.spec.ts:117"sharing a note shows it to the other person, with a dot, as View only"getByRole('img', { name: 'New shares' })not found (line 135)vim-block.spec.ts:23"the block covers the letter, light" and "…, dark""normal", gotundefinedc5147c1c3,2e326b222) firstcontacts-list.spec.ts:83"the Contacts tab opens the screen from Notes, and the Notes tab goes back"tab 'Contacts'on the Notes phone screenae7e670c3)contrast.spec.ts:66"text and icons on the glass keep their contrast at every sky hour"getByRole('navigation', { name: 'Places' }).locator('[aria-current="page"]')has 2 matches, expected 1contrast.spec.ts:268"the bar's sheets keep their contrast over a photo and over a page of huge words, 1440 wide"pane-transition.spec.ts:431"pop: the list's bar arrives after the card has mostly left…"Nothing else failed: no first-run failure that was not repeated. The earlier
4f0b58327failures (sheet-geometry:202,backdrop-page:79/:145,search-palette,tint,note-bars-motion) did not show up in this run.Commands
~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile'cd <wt>/apps/web && ~/bin/slot nix develop -c bash -c 'CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>'. Projects with dependencies add-c <scratch>/nodeps.config.mjs.--repeat-each=10 e2e/<spec>:<line>, run onnfull-6a3and onnfull-dev.Blockers to look at first
vim-block(chromium-1440, 20/20): mode attribute missing on the editor.contacts-list83 (chromium-390 and webkit-390, 10/10): Contacts tab not on the phone Notes screen. Slice 8 appears to remove the tabs there.admin-sharing117 (both browsers, 10/10): the "New shares" dot is missing. Slice 3b.contrast66 (10/10): twoaria-currentitems in the Places nav. Slice 3b.contrast268 (10/10): Insert sheet "Link to a note" fails contrast over a photo and at dawn/night.No code was changed.
Cleanup
Worktrees (with
target/) and mynfull-*units and scratch dirs are removed on both VMs. I did not delete any/tmp/nix-shell.*dirs: the VMs hold many other lanes' shells (fsio, test, dist) and I could not attribute them to my runs without guessing (same call as the earlier run). Left for the orchestrator to sweep.Notes Float merged into dev at
02be2b2db(15 Nov). Release checks: full suite with the 5 blockers fixed (#1143, #1144); perf vs dev: typing CPU −3.5%, list CPU −17%, list script −2.95% over 4 sessions (#1150); phone first paint faster than before the trim (#1148); first-paint JS 231.96/240 KB. Next: the daily train on dev (after the guard/size fixes for #1152), then backup + prod deploy. Follow-ups: slice 3c (main-area list view), 1c (editor first paint).Deployed
ee50429e7to prod (calternal.cloud) on 15 Nov, 11:51:39–11:52:01 IST: Notes Float, Tables, Attachments, Tasks write actions, CardDAV crates. Backupbackup-pre-ee50429e7-20261115T062142517624889Z.tgz; HTTP 200, version 0.1.0, podman healthy. Tests + perf comparator passed in train #1155; #1156 (module splits + budget lines) re-gated statically.