Merge dev (attachments) into Notes Float #1132

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

Brings origin/dev 8b00393b0 (attachments port #846/#860/#861) into port/notes-float c5147c1c3. Head 2f5b7f69b.

Conflict: only perf/budgets.json. Both sides' approval notes kept (_notes_float_*, _web_attachments_lazy), chunk.attachments line added. Chunk lines raised to the measured sizes of the merged head, built on dev-01 with perf/web.sh --bundle-only: chunk.index 231.5 → 232.31 (measured 232.302), idle-screens 61.08 → 61.69 (measured 61.681). Every other chunk was already within its line. total_js_brotli = sum of the chunk lines = 568.272 (measured total 559.530; the sum carries the existing headroom on the other lines). First-paint JS (first_js_brotli) 232.302 against its 240 budget, untouched. A small first-paint growth, under kayg 2026-11-11 (trim rounds).

Semantic check: auto-merge touched Editor.svelte, phone-bars.spec.ts, InsertSheet, TextBar, AttachMenu. The attachments specs (pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars) pass together with the Float specs in the same chromium runs, so attachment cards inside the Float page card behave as on dev. I did not shoot them in real Safari or the iPhone sim here: std is down, so the glass and fade look of embed cards inside the page card is still unchecked.

Gate (dev-01, x86, merged head 2f5b7f69b) Command Result
bundle perf/web.sh --bundle-only --gate pass
svelte-check bunx svelte-check in apps/web 0 errors, 20 warnings
web vitest bunx vitest run in apps/web 32 files, 308 passed
editor vitest bunx vitest run in packages/editor 592 passed
server binary cargo build -j4 -p calternal from the merged head built OK
chromium-1440 playwright test pictures embeds note-embeds slash-menu note-bars* phone-bars window-layout switching keys-no-motion toolbar-slot app-switch style-sheet composer-open --project=chromium-1440 --workers=1 76 passed
chromium-390 same specs, --project=chromium-390 295 passed
webkit-1440/390 on dev-02 NOT RUN: std down (dev-02 unreachable at ~17:50 IST)

Not run: perf ABAB (no hot-path code of mine; the merge only combines two already-gated sides).

Brings `origin/dev` 8b00393b0 (attachments port #846/#860/#861) into `port/notes-float` c5147c1c3. Head 2f5b7f69b. **Conflict:** only `perf/budgets.json`. Both sides' approval notes kept (`_notes_float_*`, `_web_attachments_lazy`), `chunk.attachments` line added. Chunk lines raised to the measured sizes of the merged head, built on dev-01 with `perf/web.sh --bundle-only`: `chunk.index` 231.5 → 232.31 (measured 232.302), `idle-screens` 61.08 → 61.69 (measured 61.681). Every other chunk was already within its line. `total_js_brotli` = sum of the chunk lines = 568.272 (measured total 559.530; the sum carries the existing headroom on the other lines). First-paint JS (`first_js_brotli`) 232.302 against its 240 budget, untouched. A small first-paint growth, under kayg 2026-11-11 (trim rounds). **Semantic check:** auto-merge touched `Editor.svelte`, `phone-bars.spec.ts`, `InsertSheet`, `TextBar`, `AttachMenu`. The attachments specs (pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars) pass together with the Float specs in the same chromium runs, so attachment cards inside the Float page card behave as on dev. I did not shoot them in real Safari or the iPhone sim here: std is down, so the glass and fade look of embed cards inside the page card is still unchecked. | Gate (dev-01, x86, merged head 2f5b7f69b) | Command | Result | |---|---|---| | bundle | `perf/web.sh --bundle-only --gate` | pass | | svelte-check | `bunx svelte-check` in apps/web | 0 errors, 20 warnings | | web vitest | `bunx vitest run` in apps/web | 32 files, 308 passed | | editor vitest | `bunx vitest run` in packages/editor | 592 passed | | server binary | `cargo build -j4 -p calternal` from the merged head | built OK | | chromium-1440 | `playwright test pictures embeds note-embeds slash-menu note-bars* phone-bars window-layout switching keys-no-motion toolbar-slot app-switch style-sheet composer-open --project=chromium-1440 --workers=1` | 76 passed | | chromium-390 | same specs, `--project=chromium-390` | 295 passed | | webkit-1440/390 on dev-02 | | NOT RUN: std down (dev-02 unreachable at ~17:50 IST) | Not run: perf ABAB (no hot-path code of mine; the merge only combines two already-gated sides).
kayg added 49 commits 2026-11-14 12:23:11 +00:00
Pictures are an editor extension in the attachments chunk, put into an empty
slot when the chunk loads. hidden.ts and the editor core are back to dev's
code, so a plain note pays 0 B and runs dev's typing path; a note with
pictures maps its decorations through edits and looks only at the touched
lines.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The field reads the editor's data-mode, so the app needs no mode wiring; the read-only check moves into the lazy chunk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
It goes through lazy.ts, so the editor's slot is filled when the chunk arrives.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
First-paint and index lines are untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
After a sheet closed, the capsule could stay at the sheet's size over the page (the observer call for the
new layer was skipped or late). The layer is now measured as it mounts and in the next frame, and a call
from a replaced layer is dropped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
At the e2e failure the new tools layer was in the page but its action had not run, so no observer call
ever reported it and the capsule kept the closed sheet's size. Morph now looks the layer up by key on each
key change (after the update and in the next frame) and measures it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
They are default blocks (plain metadata); choosing one asks the app, with an event on the editor's element,
to open its chooser inside that key press or tap. The Insert sheet goes back to dev's own code.
slash-menu.spec.ts:98 failed because only the sheet registered them, after the / menu had been read.

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>
Editor.svelte keeps the attachment preview wait and uses dev's readFm; vite.config.ts and
packages/editor/package.json keep both sides; budgets are set from a measurement in the next commit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The blur sat on every picture card while the note was open. With it switched off, typing in a note with
pictures is at or below a note without them (it was +2.7% task / +5.0% script). The dark fade stays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With the blur gone the mask was the last per-card effect on the strip. Typing in a note with pictures is
at the level of a note without them with it removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The field mapped both decoration sets on every keystroke. An edit after the last embed moves none of them,
so the sets are now left as they are (the profile showed the field's update as the only per-key code of
the attachments chunk).

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>
The trace of typing in a note with a stack gallery put most of the native cost on the gallery. Its box height
comes from a CSS variable (stack) or its aspect-ratio (grid cell), not its content, so content-visibility: auto
changes no size.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An invisible toolbar on every embed still kept a backdrop blur, and made every key in a note with
pictures cost more than in one without.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every embed built its own toolbar (buttons and icons) when it was drawn. Now there is one, made when the
pointer or focus reaches an embed and moved there, so embeds nobody is pointing at carry none.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The fade is the strip's own background (no ::before layer, no z-index). Picture and video cards use
content-visibility: auto: a card out of view is not laid out, painted or hit-tested, and its height still
comes from its aspect-ratio, so nothing moves when it comes into view.

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>
Approved mockup. Gates: targeted specs on 4 projects, full suite 3505 pass (4 flaky/pre-existing: #1113 #1114 #1115), throttled-390 0/80 vs dev 0/80 on perf-01, typing accepted by kayg 14 Nov (+1.24% attached-note task, ~0.06 ms/key). Shots: #861 comment 95661.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	perf/budgets.json
perf: budgets for Notes Float + dev merge (index, idle-screens, total = sum)
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
2f5b7f69b3
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator. WebKit + Safari/iPhone checks of attachment cards inside the Float page card are part of the final full suite and Safari pass once std is back. Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator. WebKit + Safari/iPhone checks of attachment cards inside the Float page card are part of the final full suite and Safari pass once std is back. Closing.
kayg closed this pull request 2026-11-14 12:23:38 +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!1132
No description provided.