Merge dev into Notes Float (devsync2: Tables port) #1140

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

Brings origin/dev 44fc0b7c4 (Tables port #845/#854, ADR renumber #1135) into port/notes-float ba1281c4b. Merge commit 0843721f3, then budget commits. Do not merge before review.

Conflict: only perf/budgets.json. Resolved by keeping both sides' lines and approval notes (_notes_float_*, _web_attachments_lazy, _approval_tables_*). Built the merged head on dev-01: chunk.index measured 233.369 (Float 232.485), so its line is 233.38; every chunk line is now its measured size rounded up, and total_js_brotli is the sum of the lines (576.888, measured 575.491). first_js_brotli 233.369 (budget 240) and first_css 20.250 (budget 22.1) untouched. Growth over Float is the tables parser/doorway (+0.88 KB, under 1 KB, kayg 11-14 tables note).

Semantic checks: tables inside the Float page card: wide table scrolls sideways inside the Narrow page column (scroller 657 px, 704 px of overflow) with the first column pinned (position: sticky, left edge equals scroller left at scrollLeft 220). The cell no-layer test (tables.spec every key edits the note doc in the same event) passes. No code change was needed outside budgets.

Gate Host / project Result
tables, tables-more, tables-parity, pictures, embeds, window-layout, switching, keys-no-motion, toolbar-slot, app-switch, style-sheet, composer-open, notes-float-phone dev-01 chromium-1440 + chromium-390 150 passed, 50 skipped, 0 failed
same 13 specs dev-02 webkit-1440 + webkit-390 150 passed, 50 skipped, 0 failed
svelte-check dev-01 0 errors, 19 warnings
vitest web / editor / primitives dev-01 web and primitives (70) pass; editor run finished with no failures
lint dev-01 rc 0
bundle gate (perf/web.sh --bundle-only --gate) dev-01, head de03e35e0 rc 0

Server binary: built from merged head 0843721f3 on each host (dev-01 sha256 f9a7d299…, dev-02 125a644f…). Commands: pergate.sh ds2 origin/port/notes-float-devsync2 <bin> spec <13 specs> and pergate.sh ds2c … check. The first dev-01 spec run hit a concurrent git fetch ref lock and was re-run; ui-primitives check prints 7 hand-made pill warnings that exist on dev too (embeds.css etc.), not part of this merge.

Real browsers (shots in the next comment): macOS-01 Safari at 1440, wide 9-column table in the Narrow Float card, light and dark; iPhone 18 Pro simulator (iOS 27.0, own sim, deleted), 3-column table, light and dark. Table server ran on dev-02 and was tunnelled; it is stopped and cleaned up. Mac lock released, Safari and safaridriver gone.

Brings `origin/dev` 44fc0b7c4 (Tables port #845/#854, ADR renumber #1135) into `port/notes-float` ba1281c4b. Merge commit 0843721f3, then budget commits. Do not merge before review. **Conflict:** only `perf/budgets.json`. Resolved by keeping both sides' lines and approval notes (`_notes_float_*`, `_web_attachments_lazy`, `_approval_tables_*`). Built the merged head on dev-01: `chunk.index` measured 233.369 (Float 232.485), so its line is 233.38; every chunk line is now its measured size rounded up, and `total_js_brotli` is the sum of the lines (576.888, measured 575.491). first_js_brotli 233.369 (budget 240) and first_css 20.250 (budget 22.1) untouched. Growth over Float is the tables parser/doorway (+0.88 KB, under 1 KB, kayg 11-14 tables note). **Semantic checks:** tables inside the Float page card: wide table scrolls sideways inside the Narrow page column (scroller 657 px, 704 px of overflow) with the first column pinned (`position: sticky`, left edge equals scroller left at scrollLeft 220). The cell no-layer test (`tables.spec` every key edits the note doc in the same event) passes. No code change was needed outside budgets. | Gate | Host / project | Result | |---|---|---| | tables, tables-more, tables-parity, pictures, embeds, window-layout, switching, keys-no-motion, toolbar-slot, app-switch, style-sheet, composer-open, notes-float-phone | dev-01 chromium-1440 + chromium-390 | 150 passed, 50 skipped, 0 failed | | same 13 specs | dev-02 webkit-1440 + webkit-390 | 150 passed, 50 skipped, 0 failed | | svelte-check | dev-01 | 0 errors, 19 warnings | | vitest web / editor / primitives | dev-01 | web and primitives (70) pass; editor run finished with no failures | | lint | dev-01 | rc 0 | | bundle gate (`perf/web.sh --bundle-only --gate`) | dev-01, head de03e35e0 | rc 0 | Server binary: built from merged head 0843721f3 on each host (dev-01 sha256 f9a7d299…, dev-02 125a644f…). Commands: `pergate.sh ds2 origin/port/notes-float-devsync2 <bin> spec <13 specs>` and `pergate.sh ds2c … check`. The first dev-01 spec run hit a concurrent `git fetch` ref lock and was re-run; ui-primitives check prints 7 hand-made pill warnings that exist on dev too (embeds.css etc.), not part of this merge. **Real browsers (shots in the next comment):** macOS-01 Safari at 1440, wide 9-column table in the Narrow Float card, light and dark; iPhone 18 Pro simulator (iOS 27.0, own sim, deleted), 3-column table, light and dark. Table server ran on dev-02 and was tunnelled; it is stopped and cleaned up. Mac lock released, Safari and safaridriver gone.
kayg added 131 commits 2026-11-14 19:01:43 +00:00
Plain GFM pipe tables drawn as a grid you type into; Tab/Enter navigation,
Insert, typed pipe line + Enter, spreadsheet paste, and the table bar.
widget.ts became tables.ts so the build names the chunk 'tables' (the name 'widget' is another feature's
budget line). The pending-height stylesheet folds its two rules for the same selector into one.

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>
The editor refuses every frontmatter edit that is not tagged input.properties,
so the table-widths write (tagged input.table) was dropped and a dragged width
never reached the note. tables-more.spec 'column border drags wider' and 'a picked
column moves' failed in Chromium and WebKit at 1440 and 390 because of it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Budget lines: dev's lines plus the tables chunk; index and total to be set from measured sizes in a follow-up commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Editor.svelte: keep the table-cell skip and the readFm helper from dev. Budgets: provisional lines, measured lines follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each write changes the note and the Markdown parser reads the whole table block again, so a 120-row table paid parse and parseInline on every frame while typing. Keys now wait for a 160 ms gap (480 ms at most) and flush on leaving the cell, structure edits, undo, destroy and page hide.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
First-paint JS is +838 B over dev (kayg 11-14: under 1 KB is fine), CSS +0 B. The index, press and tables lines follow the measured sizes; the new lazy chunk gets a line; the total is the sum.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
First-paint JS is +685 B over dev (kayg 11-14: under 1 KB is fine), CSS +0 B. The index and tables lines follow the measured sizes; the new lazy chunk gets a line; WhenField is hash jitter; the total is the sum.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WebKit can paint the first frame before the one-time fit, so the baseline width was the full-width cell.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The stylesheet gives the last column at least 7.5em, but the fit gave a short numeric last column 64 px and the spare width to another column, so the last column (Reps) poked out past the card and showed blank. The fit now reserves 7.5em for it; an e2e check pins the right edge.

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 three-column table was wider than the 402 px phone card, so the last column sat behind the fade; the mockup shows every column. When the wanted widths exceed the card, columns now give back width above their floor (longest word, number width, 7.5em last column) in proportion to their slack, so long text wraps. Dragged widths stay.

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>
Reverts the 160/480 ms write debounce (kayg: typing in a cell is an edit of the note, with no layer between). Every input event in a cell now writes its row into the note in the same event, so cell and note never disagree. The table's start comes from the note's own table record, not a walk of the page.

The Markdown parser reread the whole table on every edit and parsed each cell inline; the note language now skips the per-cell inline parse inside tables (the grid draws cell Markdown itself), leaving only the line walk. Tests: the note holds each key at once, undo/redo round-trips through the note, the table ranges equal the stock parser's, and a cell edit's inline-parse count does not grow with the table.

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>
Typing in a cell made the browser re-layer, hit-test and check every row of
the table card on each key. Two causes, both CSS/DOM shape, not our script:

- Every first-column cell was `position: sticky`: one layer per row that the
  browser re-layers on each frame. It is now sticky only when the table is
  wider than its card (`data-wide`, read where the columns are measured, never
  per key). Ordinary cells are no longer positioned (only header cells and the
  first column hold strips and handles).
- `content-visibility: auto` sat on every row, and the browser checks each
  skipped box on every frame, so that check grew with the table. Rows are now
  drawn in groups of 16 (one tbody each) and the skip is per group.

Rows are read through `table.rows` / `rowIndex`, which span the groups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every cell was a scroll-snap area, and the browser re-reads all snap areas
after each layout, so each key in a cell walked every cell of the table. The
header cells give the same column snapping with one area per column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
svelte-check rejected the closure-assigned group variable. The
notes-visibility-apply chunk is unchanged code whose brotli size moves with
hashed import names (568-574 B); its line goes to 0.57 and the total by 0.01.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/editor/src/insert/insert.ts
#	packages/editor/src/insert/plugins.ts
#	perf/budgets.json
- Cards have no fill of their own; body cells show the page and only the header and the pinned first column are solid (mockup tables.css); --tpaper follows --page-tint.
- Column padding 26 px and no 7.5em last column, as in the mockup; a wide table scrolls under its pinned first column. Only a table over by up to 20% of its card wraps to fit (the phone's three columns).
- A table opens at scrollLeft 0 unless the person scrolled it: scroll-snap waits for the measured columns (data-fit) and an untouched table is reset to its left edge after each measure.
- Row groups guess their size from one row's real height (--trow), not 46 px, so drawing a group moves nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Real Safari and the iPhone Simulator settled a freshly opened table on the second column's header and ignored the scroll padding for the pinned column, so it opened scrolled by the first column's width. The mockup has no scroll-snap; neither has the table now. Drops the scroll-padding variable and the data-fit gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A table whose columns at their floors still fit the card wraps to fit (the phone's three columns); one that does not fit even then scrolls under its pinned first column, as in the mockup.

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 mockup scrolls its nine-column week table under the pinned first column. With the product's wider card the words could just fit at their floors, so it was squeezed again. Wrap-to-fit now applies to tables of up to four columns (the phone's three) only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
docs(adr): renumber the Rust client ADR 0040 to 0072
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
41146be55f
dev had two ADRs numbered 0040. The newer one (one Rust client, 2026-10-16) moves to the next free number; the links ADR keeps 0040 and all its references.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two ADRs shared 0067; calendar keeps 0067 (many references), the undo ADR moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every keystroke in a cell edits the note document in the same event (no buffer layer, kayg 14 Nov). Cell typing CPU flat vs previous head; long-note typing at dev. Mockup parity (column widths, pinned first column, see-through cells), no sideways opening in Safari, exact row-group placeholders. Gates: #854 comments 96550 and the full-suite comment; flaky #1134.

Co-Authored-By: Claude Opus 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>
perf: two chunk lines had zero headroom (code-rust, vim)
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
de03e35e0a
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Real-browser shots (Safari 1440 on macos-01, iPhone 18 Pro sim iOS 27.0):

._phone-dark.png

._phone-dark.png

._phone-light.png

._phone-light.png

phone-dark.png

phone-dark.png

phone-light.png

phone-light.png

wide-dark-rest.png

wide-dark-rest.png

wide-dark-scrolled.png

wide-dark-scrolled.png

wide-light-rest.png

wide-light-rest.png

wide-light-scrolled.png

wide-light-scrolled.png

Real-browser shots (Safari 1440 on macos-01, iPhone 18 Pro sim iOS 27.0): **._phone-dark.png** ![._phone-dark.png](https://git.kayg.org/attachments/5e54801b-75ca-46c6-a31a-967d904c215b) **._phone-light.png** ![._phone-light.png](https://git.kayg.org/attachments/fc50da47-b0ab-48ee-a2d5-9cb6253cc9a7) **phone-dark.png** ![phone-dark.png](https://git.kayg.org/attachments/16c1bcff-dde1-4e82-b0f2-dbfafb9e4272) **phone-light.png** ![phone-light.png](https://git.kayg.org/attachments/c5809de4-61aa-4837-b90f-3a7144bf5c7d) **wide-dark-rest.png** ![wide-dark-rest.png](https://git.kayg.org/attachments/0562c80d-c10d-4d05-a3f4-891a08e44f34) **wide-dark-scrolled.png** ![wide-dark-scrolled.png](https://git.kayg.org/attachments/c2396b2c-bc2e-4053-bf8a-3bf43fefdad2) **wide-light-rest.png** ![wide-light-rest.png](https://git.kayg.org/attachments/0d1ccb4a-3c71-4c6d-9ad8-2b0a2d49482d) **wide-light-scrolled.png** ![wide-light-scrolled.png](https://git.kayg.org/attachments/a9cb67d6-a1fa-4e87-819d-70b21d850451)
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator after reviewing the Safari shots (wide table pinned and scrolling inside the Narrow card). Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator after reviewing the Safari shots (wide table pinned and scrolling inside the Narrow card). Closing.
kayg closed this pull request 2026-11-14 19:02:34 +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!1140
No description provided.