port: Notes Float slice 6 — ⌘K preview #1096

Closed
kayg wants to merge 1 commit from port/notes-float-6-preview into port/notes-float
Owner

Slice 6 of the Notes Float port (plan: docs/plans/notes-float-port.md).

The product's ⌘K preview is the CodeMirror read-only editor, which already draws only the viewport, so the mockup's HTML chunking has no equivalent here. What ports from calendar-2 (#1054, b78f50dd6):

  • the preview pane (the editor made, laid out and painted) mounts two animation frames after the palette opens and fades in over 110 ms (ease-out);
  • no second blur inside the palette's glass (the pane keeps the same tint, shade and edge);
  • while nothing is typed, the hit-marking field no longer copies the whole note into one string on every document change;
  • phone: still no preview pane.

The palette is one shared component (composer/ComposerBody), so this applies wherever it opens; that is the "unless the palette is shared" case.

Spec: e2e/search-preview-cheap.spec.ts.

Based on port/notes-float-1a (#1093) until it merges; rebase when it moves. Tracking: #1088. Gate results are posted as comments below.

🤖 Generated with Claude Code

Slice 6 of the Notes Float port (plan: docs/plans/notes-float-port.md). The product's ⌘K preview is the CodeMirror read-only editor, which already draws only the viewport, so the mockup's HTML chunking has no equivalent here. What ports from calendar-2 (#1054, b78f50dd6): - the preview pane (the editor made, laid out and painted) mounts two animation frames after the palette opens and fades in over 110 ms (ease-out); - no second blur inside the palette's glass (the pane keeps the same tint, shade and edge); - while nothing is typed, the hit-marking field no longer copies the whole note into one string on every document change; - phone: still no preview pane. The palette is one shared component (`composer/ComposerBody`), so this applies wherever it opens; that is the "unless the palette is shared" case. Spec: `e2e/search-preview-cheap.spec.ts`. Based on `port/notes-float-1a` (#1093) until it merges; rebase when it moves. Tracking: #1088. Gate results are posted as comments below. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kayg added 22 commits 2026-11-12 14:47:13 +00:00
Replaces Shell's grid and glass panes with components/window/WindowLayout; Backdrop gets a follower
mode for the second picture; tokens for the window; sidebar title row is the one title line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A spring on the page card's own width re-laid the editor out every frame: zen cost 76 ms in
real Safari against 37 on dev. --f-l is a registered property so the window edge, the list card
and the clip spring as one value.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
--f-l as a registered, inherited property re-styled the whole document every spring frame.
The window edge, its shadow and the handle move by left; the page's clip by --cl; one spring.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
web: the phone's places screen keeps the padding its own rules set (my .sidebar.phone padding outranked them)
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
b9a319721a
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
web: the palette's preview pane mounts two frames after the open, fades in over 110 ms, has no second blur, and copies no text while nothing is typed (#1054, port slice 6)
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
36bf177c63
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Slice 6 gates (head 9a144fb04, on port/notes-float-1a b76a037a2)

Server binary: cargo build --bin calternal from origin/port/notes-float (be968d9df) on dev-01 through ~/bin/slot; the same binary for every run below. Each Playwright project has its own --output dir. CI=1 --retries=0 --workers=1. Specs: search-preview-cheap, search-palette, composer-open, composer.

gate result
svelte-check 0 errors (19 warnings, all pre-existing)
unit tests (bun run test) pass
chromium-1440 (dev-01, x86) 22 passed, 8 skipped
chromium-390 21 passed, 9 skipped
webkit-1440 (Linux WebKit on dev-01) 22 passed, 8 skipped
webkit-390 20 passed, 10 skipped

Deviation: WebKit ran on dev-01, not dev-02 (dev-02 had 48 GB free, under the 50 GB floor, and no aarch64 server binary). Findings on the way, both fixed in the specs: the one-glass assertion in search-palette had to allow the pane's own glass (no blur of its own), and Svelte scopes the keyframe name (svelte-…-pv-in).

Real Safari, Mac VM (macOS 26.5, safaridriver), ABAB inside one session

Base = port/notes-float-1a (older head b9a319721, same for both sides), candidate = this branch. Safari quit before each run, lock held only while measuring, apps served from dev-01 through a port forward (localhost, secure context). 1440x900, a 120-paragraph note, ⌘K pressed; rAF deltas for 1.8 s. 4 alternations x 3 reps (12-15 samples a side). Idle = 5 s with nothing happening.

metric (ms) base slice 6
⌘K worst frame, cold (first open after load), median 101 99
⌘K worst frame, warm (second open), median 74 71
first frame after the key, cold, median 53 50.5
first frame after the key, warm, median 43 34.5
worst of the next 15 frames, warm, median 20 19
idle worst frame, median 25 24.5

Read: no regression, a small gain on the key frame (about 9 ms warm). The plan's gate "no frame at or above 65 ms" is NOT met by either side on this VM: the warm worst frame is about 70 ms with or without this slice. The mockup's 45-52 ms medians came from its HTML preview; the product's preview is the CodeMirror editor, whose pane was already cheap (it draws only the viewport), so the remaining cost is in the open itself (palette mount, glass layers), not the pane. Not fixed here; worth its own pass.

Not run: iPhone simulator pass for the palette (the phone has no preview pane; a spec asserts it). Phone list/note screens on the simulator are in the slice 7 comment (identical to base).

## Slice 6 gates (head `9a144fb04`, on `port/notes-float-1a` b76a037a2) Server binary: `cargo build --bin calternal` from `origin/port/notes-float` (be968d9df) on dev-01 through `~/bin/slot`; the same binary for every run below. Each Playwright project has its own `--output` dir. `CI=1 --retries=0 --workers=1`. Specs: `search-preview-cheap`, `search-palette`, `composer-open`, `composer`. | gate | result | |---|---| | svelte-check | 0 errors (19 warnings, all pre-existing) | | unit tests (`bun run test`) | pass | | chromium-1440 (dev-01, x86) | 22 passed, 8 skipped | | chromium-390 | 21 passed, 9 skipped | | webkit-1440 (Linux WebKit on dev-01) | 22 passed, 8 skipped | | webkit-390 | 20 passed, 10 skipped | Deviation: WebKit ran on dev-01, not dev-02 (dev-02 had 48 GB free, under the 50 GB floor, and no aarch64 server binary). Findings on the way, both fixed in the specs: the one-glass assertion in `search-palette` had to allow the pane's own glass (no blur of its own), and Svelte scopes the keyframe name (`svelte-…-pv-in`). ### Real Safari, Mac VM (macOS 26.5, safaridriver), ABAB inside one session Base = `port/notes-float-1a` (older head b9a319721, same for both sides), candidate = this branch. Safari quit before each run, lock held only while measuring, apps served from dev-01 through a port forward (localhost, secure context). 1440x900, a 120-paragraph note, ⌘K pressed; rAF deltas for 1.8 s. 4 alternations x 3 reps (12-15 samples a side). Idle = 5 s with nothing happening. | metric (ms) | base | slice 6 | |---|---|---| | ⌘K worst frame, cold (first open after load), median | 101 | 99 | | ⌘K worst frame, warm (second open), median | 74 | 71 | | first frame after the key, cold, median | 53 | 50.5 | | first frame after the key, warm, median | 43 | 34.5 | | worst of the next 15 frames, warm, median | 20 | 19 | | idle worst frame, median | 25 | 24.5 | Read: no regression, a small gain on the key frame (about 9 ms warm). The plan's gate "no frame at or above 65 ms" is NOT met by either side on this VM: the warm worst frame is about 70 ms with or without this slice. The mockup's 45-52 ms medians came from its HTML preview; the product's preview is the CodeMirror editor, whose pane was already cheap (it draws only the viewport), so the remaining cost is in the open itself (palette mount, glass layers), not the pane. Not fixed here; worth its own pass. Not run: iPhone simulator pass for the palette (the phone has no preview pane; a spec asserts it). Phone list/note screens on the simulator are in the slice 7 comment (identical to base).
Author
Owner

Slice 6, final re-gate on the rebased head 297545113 (on port/notes-float-1a c09ee1312)

Same server binary (built from be968d9df), own --output per project.

project result
chromium-1440 22 passed, 8 skipped
chromium-390 21 passed, 9 skipped
webkit-1440 20 passed, 2 failed, 8 skipped
webkit-390 19 passed, 1 failed, 10 skipped
svelte-check / unit (web 27 files, 261 tests; editor 574) 0 errors / all pass

The WebKit failures are composer.spec:51 (fails the same way on the 1a head itself: also red there in my base run) and composer.spec:191 ("nothing is clipped"), which times out at its 30 s cap when the box is loaded (the runs overlap other lanes on dev-01). Run alone, 3x each, back to back, base vs this branch: composer.spec "nothing" tests 6 passed on the 1a head and 6 passed on this branch, twice (A/B/A/B). So not caused by this slice; composer.spec:51 is a base failure.

Specs of this slice (search-preview-cheap, search-palette, composer-open) pass on all four projects.

## Slice 6, final re-gate on the rebased head `297545113` (on `port/notes-float-1a` c09ee1312) Same server binary (built from be968d9df), own `--output` per project. | project | result | |---|---| | chromium-1440 | 22 passed, 8 skipped | | chromium-390 | 21 passed, 9 skipped | | webkit-1440 | 20 passed, 2 failed, 8 skipped | | webkit-390 | 19 passed, 1 failed, 10 skipped | | svelte-check / unit (web 27 files, 261 tests; editor 574) | 0 errors / all pass | The WebKit failures are `composer.spec:51` (fails the same way on the 1a head itself: also red there in my base run) and `composer.spec:191` ("nothing is clipped"), which times out at its 30 s cap when the box is loaded (the runs overlap other lanes on dev-01). Run alone, 3x each, back to back, base vs this branch: `composer.spec` "nothing" tests 6 passed on the 1a head and 6 passed on this branch, twice (A/B/A/B). So not caused by this slice; `composer.spec:51` is a base failure. Specs of this slice (`search-preview-cheap`, `search-palette`, `composer-open`) pass on all four projects.
Author
Owner

Merged by git into port/notes-float at 4f0b583278 (head feb5db4dca is an ancestor); closing. Housekeeping 14 Nov.

Merged by git into `port/notes-float` at 4f0b58327825 (head feb5db4dcafd is an ancestor); closing. Housekeeping 14 Nov.
kayg closed this pull request 2026-11-13 19:32:27 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1096
No description provided.