port: tables (approved mockup) #845

Closed
kayg wants to merge 10 commits from port/port-tables into dev
Owner

First PR of the tables port (approved mockup, kayg 10-19 T1 to T6): the core interaction in the product's CodeMirror editor. Stacked follow-up: the PR "port: tables, resizing, markdown in cells, carry, motion" (base port/port-tables).

What it does

  • T1 Plain GFM pipe tables; nothing else stored. A table nobody edited is never rewritten (textFor keeps the file's bytes). An edit writes the tidy form once, and that form is stable.
  • T2 In the default mode each table is a grid you type into, no pipes (packages/editor/src/tables/). Show source draws the pipes. Tab / Shift-Tab, Enter (last row adds a row), Backspace on an empty last row, arrows walk in and out. Edits are normal transactions: undo is the note's one history.
  • T3 Create: Insert sheet "Table" (Mod+/), a typed | a | b | line + Enter, spreadsheet (TSV) or web-page (HTML) paste. Header + two rows of three, caret in the first cell.
  • T4 Bar morphs into table actions for a cell / a picked row / a picked column. Tap a row or column edge to pick it.
  • T5 Phone: scrolls inside the card, first column pinned (one soft edge, and scrolled to the end the last column starts exactly at the pinned edge, so no sliver of the column before it). No swipe row actions on tables. Phone bar: one strip inside the capsule, fixed order.
  • T6 Number-only columns right-aligned with tabular figures.
  • /table: apps/web/src/lib/insert-blocks.ts (INSERT_BLOCKS) is the list the Insert sheet reads; the / menu (port-pickers) only has to read it.

Lazy loading (this push)

The grid, the model, the bar's table actions and the table styles are separate chunks, fetched when a note with a table opens, when a | is typed or pasted in, when a spreadsheet is pasted, or when Insert makes a table. What stays in the first paint: tables/lazy.ts (a watcher, ~1 KB) and one case 'Table' in syntax/hidden.ts that gives a table's lines the height the grid will have until it arrives (cm-table-pending; they show their text after 5 s if the code never arrives). e2e/tables.spec.ts "no jump" holds the grid's chunk back and checks the text below does not move (< 4 px) when it lands.

Gates (dev-01 chromium, dev-02 webkit, CI=1 --retries=0, through ~/bin/slot)

  • editor vitest 531 passed (incl. model round trips: every mockup table, escaped pipes, all alignments, ragged rows, unedited = byte-exact); web vitest 78; ui vitest 46; tsc --noEmit clean; bun run check 0 errors (14 warnings = base); bun run lint ok.
  • e2e/tables.spec.ts chromium 1440+390: 27 passed (1 by-design skip); webkit 1440+390: same file earlier 25 passed.
  • Neighbours with the stack head (editor, big-paste, phone-bars, bar-stable, bar-stays, touch-select, enter, vim-block, block-no-text-sel, tables): 356 passed.

Bundle (project's own scripts/bundle-size.mjs, brotli bytes)

base (origin/dev) this PR budget (perf/budgets.json)
first paint JS 245,265 245,690 245,760 (240 KiB): under, 70 B to spare
first paint CSS 21,361 21,483 22,630 (22.1 KiB): under
all JS 319,370 329,147 322,560 (315 KiB): over by 6,587 B

all JS is over its budget and I have not touched the budget. The table code is 9 KB brotli of lazy chunks (grid + model 6.8, bar actions 2.0, glue 0.4) and is not an opt-in plugin, so it counts in "all". The base already leaves only 3.1 KB. This needs kayg to approve a raise (as for the Composer on 29 Oct) or to cut scope; the stacked PR adds a further 3.5 KB (resizing, inline markdown, carry, motion).

Not in this PR

Resizing, carrying a row or column, motion, markdown in cells, copy: the stacked PR.
Screenshots (product vs mockup, same states, 1440x900 and 390x844): ~/Developer/Worktrees/shots/port-tables/ on the control host.

Budget (kayg approved, 2026-11-08 08:20 IST): kayg approved raising the lazy budget total, up to 543.9 KiB. perf/budgets.json in this PR sets each named lazy line to the largest size measured over the 17 approved ports after trimming (rounded up to 0.01 KiB) and the total to the sum of the lines (543.25 KiB). The same file is in the first PR of every stack, so whichever merges first carries it. First paint is judged separately and has not been raised.

First PR of the tables port (approved mockup, kayg 10-19 T1 to T6): the core interaction in the product's CodeMirror editor. Stacked follow-up: the PR "port: tables, resizing, markdown in cells, carry, motion" (base `port/port-tables`). ## What it does - **T1** Plain GFM pipe tables; nothing else stored. A table nobody edited is never rewritten (`textFor` keeps the file's bytes). An edit writes the tidy form once, and that form is stable. - **T2** In the default mode each table is a grid you type into, no pipes (`packages/editor/src/tables/`). Show source draws the pipes. Tab / Shift-Tab, Enter (last row adds a row), Backspace on an empty last row, arrows walk in and out. Edits are normal transactions: undo is the note's one history. - **T3** Create: Insert sheet "Table" (`Mod+/`), a typed `| a | b |` line + Enter, spreadsheet (TSV) or web-page (HTML) paste. Header + two rows of three, caret in the first cell. - **T4** Bar morphs into table actions for a cell / a picked row / a picked column. Tap a row or column edge to pick it. - **T5** Phone: scrolls inside the card, first column pinned (one soft edge, and scrolled to the end the last column starts exactly at the pinned edge, so no sliver of the column before it). No swipe row actions on tables. Phone bar: one strip inside the capsule, fixed order. - **T6** Number-only columns right-aligned with tabular figures. - `/table`: `apps/web/src/lib/insert-blocks.ts` (`INSERT_BLOCKS`) is the list the Insert sheet reads; the `/` menu (port-pickers) only has to read it. ## Lazy loading (this push) The grid, the model, the bar's table actions and the table styles are separate chunks, fetched when a note with a table opens, when a `|` is typed or pasted in, when a spreadsheet is pasted, or when Insert makes a table. What stays in the first paint: `tables/lazy.ts` (a watcher, ~1 KB) and one `case 'Table'` in `syntax/hidden.ts` that gives a table's lines the height the grid will have until it arrives (`cm-table-pending`; they show their text after 5 s if the code never arrives). `e2e/tables.spec.ts` "no jump" holds the grid's chunk back and checks the text below does not move (< 4 px) when it lands. ## Gates (dev-01 chromium, dev-02 webkit, `CI=1 --retries=0`, through `~/bin/slot`) - editor vitest 531 passed (incl. model round trips: every mockup table, escaped pipes, all alignments, ragged rows, unedited = byte-exact); web vitest 78; ui vitest 46; `tsc --noEmit` clean; `bun run check` 0 errors (14 warnings = base); `bun run lint` ok. - `e2e/tables.spec.ts` chromium 1440+390: 27 passed (1 by-design skip); webkit 1440+390: same file earlier 25 passed. - Neighbours with the stack head (editor, big-paste, phone-bars, bar-stable, bar-stays, touch-select, enter, vim-block, block-no-text-sel, tables): 356 passed. ## Bundle (project's own `scripts/bundle-size.mjs`, brotli bytes) | | base (origin/dev) | this PR | budget (perf/budgets.json) | |---|---|---|---| | first paint JS | 245,265 | 245,690 | 245,760 (240 KiB): **under, 70 B to spare** | | first paint CSS | 21,361 | 21,483 | 22,630 (22.1 KiB): under | | all JS | 319,370 | 329,147 | 322,560 (315 KiB): **over by 6,587 B** | **all JS is over its budget** and I have not touched the budget. The table code is 9 KB brotli of lazy chunks (grid + model 6.8, bar actions 2.0, glue 0.4) and is not an opt-in plugin, so it counts in "all". The base already leaves only 3.1 KB. This needs kayg to approve a raise (as for the Composer on 29 Oct) or to cut scope; the stacked PR adds a further 3.5 KB (resizing, inline markdown, carry, motion). ## Not in this PR Resizing, carrying a row or column, motion, markdown in cells, copy: the stacked PR. Screenshots (product vs mockup, same states, 1440x900 and 390x844): `~/Developer/Worktrees/shots/port-tables/` on the control host. **Budget (kayg approved, 2026-11-08 08:20 IST):** kayg approved raising the lazy budget total, up to 543.9 KiB. `perf/budgets.json` in this PR sets each named lazy line to the largest size measured over the 17 approved ports after trimming (rounded up to 0.01 KiB) and the total to the sum of the lines (543.25 KiB). The same file is in the first PR of every stack, so whichever merges first carries it. First paint is judged separately and has not been raised.
kayg added 10 commits 2026-11-02 08:57:37 +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.
tables: the card is solid paper
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
c244134e18
Author
Owner

housekeeping #1009: rebased+failing, left open for review.

rebased table port while preserving dev note-bar styling and table pending state.

head: bc1eb03c56718a068291bd5b5f3282a430b8ff68; based on dev cd7f84432febfc63b788fbb9b9f9950452982d74, pushed with the original exact force-with-lease.

frontend frozen install, check, lint, build and unit tests passed. bundle gate failed. first-paint brotli vs dev: JS 231204 B (+427 B), CSS 18533 B (+147 B).

targeted Chromium and WebKit specs at 1440 and 390 never started. the audit waited more than three hours behind the live daily-train-1107 locks (first queue at 23:45 IST, 7 November; final queue cleanup after 02:46 IST, 8 November). browser validation and UI captures are unrun. only this audit’s exact queued units were stopped; the train locks and owners were left intact. hot-path perf qualification is unrun.

all executed gates used the VM Nix environment, shared Mac lock and slot. exact commands, source heads, logs and dev baseline. frontend inputs are identical to the tested frontend tree when a Rust-only repair changed the head.

original-head cherry/patch inventory, pr-845.md; unmatched entries are missing-patch candidates, with semantic overlap/replacements noted above.

final queue, cleanup and source-verification evidence.

housekeeping #1009: rebased+failing, left open for review. rebased table port while preserving dev note-bar styling and table pending state. head: `bc1eb03c56718a068291bd5b5f3282a430b8ff68`; based on dev `cd7f84432febfc63b788fbb9b9f9950452982d74`, pushed with the original exact force-with-lease. frontend frozen install, check, lint, build and unit tests passed. bundle gate failed. first-paint brotli vs dev: JS 231204 B (+427 B), CSS 18533 B (+147 B). targeted Chromium and WebKit specs at 1440 and 390 never started. the audit waited more than three hours behind the live daily-train-1107 locks (first queue at 23:45 IST, 7 November; final queue cleanup after 02:46 IST, 8 November). browser validation and UI captures are unrun. only this audit’s exact queued units were stopped; the train locks and owners were left intact. hot-path perf qualification is unrun. all executed gates used the VM Nix environment, shared Mac lock and slot. [exact commands, source heads, logs and dev baseline](https://git.kayg.org/attachments/870a0fef-2e31-425c-aea6-eb87a66d365a). frontend inputs are identical to the tested frontend tree when a Rust-only repair changed the head. [original-head cherry/patch inventory](https://git.kayg.org/attachments/e05a38dc-c028-4d77-8655-efa9d5c8ea50), `pr-845.md`; unmatched entries are missing-patch candidates, with semantic overlap/replacements noted above. [final queue, cleanup and source-verification evidence](https://git.kayg.org/attachments/7ab315a5-4b6c-4af1-971b-cdae2637adae).
Author
Owner

Final-port test pass (issue #1009), READY: no: specs pass; bundle gate fails; first paint is bigger than dev.

head bc1eb03c56718a068291bd5b5f3282a430b8ff68

Targeted specs, CI=1 --retries=0 --workers=1, dev-01 Chromium and dev-02 WebKit (through ~/bin/slot), against a dev-head backend (cd7f84432).

spec Chromium 1440 Chromium 390 WebKit 1440 WebKit 390
tables 13/13 14/14 13/13 14/14

Bundle gate: perf/web.sh --bundle-only --gate (the 17 failures from the housekeeping audit). Per the gate's own rule (total_js_brotli budget must equal the sum of the named chunk budgets) a cap can only move between named chunks; there is no donor chunk inside this PR, so a fix is a code cut or a decision by kayg. I raised nothing and moved nothing.

  • widget chunk 6.92 KB vs 1.1 cap. First paint JS +427 B, CSS +147 B vs dev.

Not done: Not run yet: Mac VM Safari blur/frame check and perf ABAB x5 on the perf VMs (they need a ready PR first); light/dark 2x screenshots against the mockup are only done for #888 (see its comment).

Not marked READY FOR MERGE.

**Final-port test pass (issue #1009), READY: no: specs pass; bundle gate fails; first paint is bigger than dev.** head `bc1eb03c56718a068291bd5b5f3282a430b8ff68` Targeted specs, `CI=1 --retries=0 --workers=1`, dev-01 Chromium and dev-02 WebKit (through `~/bin/slot`), against a dev-head backend (`cd7f84432`). | spec | Chromium 1440 | Chromium 390 | WebKit 1440 | WebKit 390 | |---|---|---|---|---| | tables | 13/13 | 14/14 | 13/13 | 14/14 | **Bundle gate:** `perf/web.sh --bundle-only --gate` (the 17 failures from the housekeeping audit). Per the gate's own rule (`total_js_brotli` budget must equal the sum of the named chunk budgets) a cap can only move between named chunks; there is no donor chunk inside this PR, so a fix is a code cut or a decision by kayg. I raised nothing and moved nothing. - `widget` chunk 6.92 KB vs 1.1 cap. First paint JS +427 B, CSS +147 B vs dev. **Not done:** Not run yet: Mac VM Safari blur/frame check and perf ABAB x5 on the perf VMs (they need a ready PR first); light/dark 2x screenshots against the mockup are only done for #888 (see its comment). Not marked READY FOR MERGE.
Author
Owner

READY FOR MERGE: tables core (head 8e6d8e89e)

Rebased on dev 9438918f3 (#848/#849 in), budgets regenerated from a fresh build of this head, bundle gate clean, specs on dev-02 (idle host) with calternal-h861, chromium and webkit at 1440 and 390 (preload, lazy-ui, lazy-offline, glass, shortcuts and this PR's own specs): 0 failed.

dev this PR
first paint plain / normalised 227531 / 227081 B 228097 / 227333 B (+566 / +252 B)
CSS 18234 18399 (+165)
budget total 537.55 KiB 538.74 KiB (tables 6.94)

194 passed, 42 skipped. First-paint growth: the Table block in the registry (tables/lazy.ts +840 B raw) and the table CSS; kayg decides.

## READY FOR MERGE: tables core (head `8e6d8e89e`) Rebased on dev `9438918f3` (#848/#849 in), budgets regenerated from a fresh build of this head, bundle gate clean, specs on dev-02 (idle host) with `calternal-h861`, chromium and webkit at 1440 and 390 (preload, lazy-ui, lazy-offline, glass, shortcuts and this PR's own specs): **0 failed**. | | dev | this PR | |---|---|---| | first paint plain / normalised | 227531 / 227081 B | 228097 / 227333 B (**+566 / +252 B**) | | CSS | 18234 | 18399 (+165) | | budget total | 537.55 KiB | 538.74 KiB (tables 6.94) | 194 passed, 42 skipped. First-paint growth: the Table block in the registry (`tables/lazy.ts` +840 B raw) and the table CSS; kayg decides.
Author
Owner

READY FOR MERGE: tables core (head 16c014486)

Merged dev fe2efbf11 (#1044) into the branch (it also merges cleanly with 4274dafb4, git merge-tree), budgets regenerated from a fresh build, bundle gate clean, specs on dev-02 with calternal-h861, chromium and webkit at 1440 and 390. Dev baseline on fe2efbf11: 228023 B plain / 227378 B normalised / CSS 18236.

One fix since the last head: #1044 removed the page-wide keyboard-no-motion rule, so the table's handles and edge fades (.rs/.cs::before, .tw::after) played their transitions after a key. They now name themselves (tables.css), which keys-no-motion and tables-more check.

first paint plain / normalised CSS budget total
228202 / 227989 B (+179 / +611 B; growth accepted by kayg) 18400 (+164) 539.01 KiB

Specs (preload, lazy-ui, lazy-offline, glass, shortcuts, keys-no-motion, tables): 70 passed (4 projects of the keys/tables set after the fix), earlier full set 181 passed; the one keys-no-motion webkit-1440 settings failure was a flake (passes on rerun and on the other heads). Gate clean.

## READY FOR MERGE: tables core (head `16c014486`) Merged dev `fe2efbf11` (#1044) into the branch (it also merges cleanly with `4274dafb4`, `git merge-tree`), budgets regenerated from a fresh build, bundle gate clean, specs on dev-02 with `calternal-h861`, chromium and webkit at 1440 and 390. Dev baseline on `fe2efbf11`: 228023 B plain / 227378 B normalised / CSS 18236. One fix since the last head: #1044 removed the page-wide keyboard-no-motion rule, so the table's handles and edge fades (`.rs/.cs::before`, `.tw::after`) played their transitions after a key. They now name themselves (`tables.css`), which `keys-no-motion` and `tables-more` check. | first paint plain / normalised | CSS | budget total | |---|---|---| | 228202 / 227989 B (**+179 / +611 B**; growth accepted by kayg) | 18400 (+164) | 539.01 KiB | Specs (preload, lazy-ui, lazy-offline, glass, shortcuts, keys-no-motion, tables): 70 passed (4 projects of the keys/tables set after the fix), earlier full set 181 passed; the one `keys-no-motion` webkit-1440 settings failure was a flake (passes on rerun and on the other heads). Gate clean.
Author
Owner

BLOCKED / unrun in the current ports lane

Current remote head: 16c014486d19b5edece858560cec6f26cfb1f3b8. This PR was not changed or retested in this pass.

The requested serial lane stopped at #902: fresh dev-01 measurement on dev 31972329b shows first-paint JS +313 B (+0.306 KiB), CSS unchanged, and failed index/ContactsScreen bundle lines. The instruction is to stop and report additional growth requiring kayg; no budgets were raised. Current #902 evidence and exact commands.

For this PR: rebase/push, svelte-check, vitest, four-project targeted e2e, contrast, bundle delta, editor perf vs dev, and fresh real Safari / iPhone Simulator product-versus-mockup captures are unrun in this pass. Earlier evidence remains historical; this comment makes no current READY claim. The approved tables/attachments growth remains accepted as specified by kayg; that approval was not revoked or changed. No merge performed.

## BLOCKED / unrun in the current ports lane Current remote head: `16c014486d19b5edece858560cec6f26cfb1f3b8`. This PR was not changed or retested in this pass. The requested serial lane stopped at #902: fresh dev-01 measurement on dev `31972329b` shows first-paint JS +313 B (+0.306 KiB), CSS unchanged, and failed index/ContactsScreen bundle lines. The instruction is to stop and report additional growth requiring kayg; no budgets were raised. [Current #902 evidence and exact commands](https://git.kayg.org/kayg/calternal/pulls/902#issuecomment-90034). For this PR: rebase/push, svelte-check, vitest, four-project targeted e2e, contrast, bundle delta, editor perf vs dev, and fresh real Safari / iPhone Simulator product-versus-mockup captures are **unrun in this pass**. Earlier evidence remains historical; this comment makes no current READY claim. The approved tables/attachments growth remains accepted as specified by kayg; that approval was not revoked or changed. No merge performed.
Author
Owner

implementation resumed after parking #902. #845 is rebased onto current dev 31972329b at e4adcf5f6 and pushed with exact force-with-lease. kept dev keyboard-motion behavior and ContactsScreen cap/approval text. own original budget lines are retained, with _approval_tables_845 citing kayg 11-10, tables and attachments ports OK and the recorded +179 B plain / +611 B normalised first-paint JS, +164 B CSS allowance. dev-01 checks, web/editor vitest, bundle, targeted tables/keys-no-motion on all four main projects, and contrast are running. the backend was freshly built from the exact dev base. no READY claim yet.

implementation resumed after parking #902. #845 is rebased onto current dev `31972329b` at `e4adcf5f6` and pushed with exact force-with-lease. kept dev keyboard-motion behavior and ContactsScreen cap/approval text. own original budget lines are retained, with `_approval_tables_845` citing **kayg 11-10, tables and attachments ports OK** and the recorded +179 B plain / +611 B normalised first-paint JS, +164 B CSS allowance. dev-01 checks, web/editor vitest, bundle, targeted tables/keys-no-motion on all four main projects, and contrast are running. the backend was freshly built from the exact dev base. no READY claim yet.
Author
Owner

current-dev validation: BLOCKED

Head f828454e7, based on dev 31972329b. No merge performed.

Only this PR's original named budget lines were carried over; current dev's unrelated lines and ContactsScreen approval remain intact. _approval_tables_845 cites "kayg 11-10, tables and attachments ports OK".

All checks ran on dev-01 through ~/bin/slot and the Nix shell:

gate result
bun run --cwd apps/web check 0 errors, 18 warnings
bun run --cwd apps/web test 238 passed
bun run --cwd packages/editor test 576 passed
targeted Playwright, four main projects 84 passed, 32 skipped, 0 failed
bunx playwright test --project=contrast --workers=1 --retries=0 10 passed
PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate FAIL: index 222.979 KiB > 222.89

Targeted command: CI=1 E2E_DIST=<built-dist> CALTERNAL_BIN=<dev-debug-bin> bunx playwright test e2e/tables.spec.ts e2e/keys-no-motion.spec.ts --project=chromium-1440 --project=chromium-390 --project=webkit-1440 --project=webkit-390 --workers=1 --retries=0.

First paint, Brotli vs current dev: JS +567 B (+0.554 KiB); CSS +167 B (+0.163 KiB). Total JS including opt-in chunks +9618 B (+9.393 KiB). Dev: JS 227763 B, CSS 18859 B, total JS 534085 B. Normalising content-hash references gives JS +284 B. The recorded allowance is JS +179 B plain / +611 B normalised, CSS +164 B. Normalised JS is within that record, but wire JS is larger and CSS is 3 B beyond it. This is BLOCKED; no extra budget was granted or added.

Gate logs and bundle JSON.

Typing on perf-02 through the plain FIFO perf-turn, holding both VM locks, Chromium 4× slowdown, 10k fixture notes, three counterbalanced rounds, independent dev A and dev B controls. Exact selector: bunx playwright test -c perf/playwright.config.ts '(^|/)typing[.]perf[.]ts$' --project=chromium --workers=1. 48/48 checks passed. Both locks released. No timings ran on std; Mac VM memory was below its 2 GB perf floor, so it was used only for captures.

Medians of per-run p50 / p95 latency (ms), and median CPU ms/key:

metric dev A dev B #845 #854
code_block 54.20 / 98.70 58.00 / 100.60 48.10 / 76.40 63.90 / 75.30
code_block_cpu 29.74 30.52 30.25 29.69
code_note_prose 43.30 / 70.50 51.70 / 74.90 43.30 / 69.90 60.60 / 100.20
code_note_prose_cpu 32.67 32.50 32.54 32.41
long_note 65.60 / 100.10 64.00 / 100.30 63.00 / 81.90 64.20 / 80.30
long_note_cpu 27.35 28.39 27.86 28.31
nested_list 43.70 / 52.60 43.40 / 54.90 43.50 / 53.90 44.00 / 53.80
nested_list_cpu 50.99 51.25 51.19 50.93

Raw samples, logs and exact run script. The initial broad filename selector was stopped and discarded; these results use fresh fixture homes and the exact selector. The perf-01-to-perf-02 SSH connection failed on retry, so the control host coordinated a FIFO perf-01 holder and the measurement unit on perf-02; both locks were held together, and measurement began immediately.

No regression observed for #845 relative to the dev-vs-dev control spread. This does not override the size blocker.

Real Safari on the Mac VM, actual 1440×900, light and dark. Native iPhone 18 Pro Safari on std, own simulator under the std lock, iOS 27, light and dark. The native phone is 402 CSS px wide (1206-pixel screenshots); auxiliary WebKit captures below cover exactly 390×844. Glass is judged only from real Safari and iPhone captures.

state approved mockup product
1440 Safari, light mockup product
iPhone Safari, light mockup product
390 layout, light mockup product
1440 Safari, dark mockup product
iPhone Safari, dark mockup product
390 layout, dark mockup product

Visual differences remain visible: the resting phone capture uses narrower, more equal column widths and a solid cell/header treatment; the mockup gives the first column more room and a tint. This wraps exercise names more on the phone. The active desktop grid also has a different tint from the mockup. The product also retains its current shell/backdrop and larger gap below the title. Captures use sample data. A fresh iPhone light capture taken after only 10 seconds showed pending content; the 25-second settled capture above renders the table. No visual parity claim is made.

Active desktop grid, real Safari: light product / light mockup · dark product / dark mockup

## current-dev validation: BLOCKED Head `f828454e7`, based on dev `31972329b`. No merge performed. Only this PR's original named budget lines were carried over; current dev's unrelated lines and ContactsScreen approval remain intact. `_approval_tables_845` cites "kayg 11-10, tables and attachments ports OK". All checks ran on dev-01 through `~/bin/slot` and the Nix shell: | gate | result | |---|---| | `bun run --cwd apps/web check` | 0 errors, 18 warnings | | `bun run --cwd apps/web test` | 238 passed | | `bun run --cwd packages/editor test` | 576 passed | | targeted Playwright, four main projects | 84 passed, 32 skipped, 0 failed | | `bunx playwright test --project=contrast --workers=1 --retries=0` | 10 passed | | `PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate` | FAIL: index 222.979 KiB > 222.89 | Targeted command: `CI=1 E2E_DIST=<built-dist> CALTERNAL_BIN=<dev-debug-bin> bunx playwright test e2e/tables.spec.ts e2e/keys-no-motion.spec.ts --project=chromium-1440 --project=chromium-390 --project=webkit-1440 --project=webkit-390 --workers=1 --retries=0`. First paint, Brotli vs current dev: JS **+567 B (+0.554 KiB)**; CSS **+167 B (+0.163 KiB)**. Total JS including opt-in chunks **+9618 B (+9.393 KiB)**. Dev: JS 227763 B, CSS 18859 B, total JS 534085 B. Normalising content-hash references gives JS +284 B. The recorded allowance is JS +179 B plain / +611 B normalised, CSS +164 B. Normalised JS is within that record, but wire JS is larger and CSS is **3 B beyond it**. This is BLOCKED; no extra budget was granted or added. [Gate logs and bundle JSON](https://git.kayg.org/attachments/7fb79414-3bba-4070-b755-70580c2db80f). Typing on perf-02 through the plain FIFO `perf-turn`, holding both VM locks, Chromium 4× slowdown, 10k fixture notes, three counterbalanced rounds, independent dev A and dev B controls. Exact selector: `bunx playwright test -c perf/playwright.config.ts '(^|/)typing[.]perf[.]ts$' --project=chromium --workers=1`. 48/48 checks passed. Both locks released. No timings ran on std; Mac VM memory was below its 2 GB perf floor, so it was used only for captures. Medians of per-run p50 / p95 latency (ms), and median CPU ms/key: | metric | dev A | dev B | #845 | #854 | |---|---|---|---|---| | code_block | 54.20 / 98.70 | 58.00 / 100.60 | 48.10 / 76.40 | 63.90 / 75.30 | | code_block_cpu | 29.74 | 30.52 | 30.25 | 29.69 | | code_note_prose | 43.30 / 70.50 | 51.70 / 74.90 | 43.30 / 69.90 | 60.60 / 100.20 | | code_note_prose_cpu | 32.67 | 32.50 | 32.54 | 32.41 | | long_note | 65.60 / 100.10 | 64.00 / 100.30 | 63.00 / 81.90 | 64.20 / 80.30 | | long_note_cpu | 27.35 | 28.39 | 27.86 | 28.31 | | nested_list | 43.70 / 52.60 | 43.40 / 54.90 | 43.50 / 53.90 | 44.00 / 53.80 | | nested_list_cpu | 50.99 | 51.25 | 51.19 | 50.93 | [Raw samples, logs and exact run script](https://git.kayg.org/attachments/ee6db570-abad-439f-ace6-1937b0ede60c). The initial broad filename selector was stopped and discarded; these results use fresh fixture homes and the exact selector. The perf-01-to-perf-02 SSH connection failed on retry, so the control host coordinated a FIFO perf-01 holder and the measurement unit on perf-02; both locks were held together, and measurement began immediately. No regression observed for #845 relative to the dev-vs-dev control spread. This does not override the size blocker. Real Safari on the Mac VM, actual 1440×900, light and dark. Native iPhone 18 Pro Safari on std, own simulator under the std lock, iOS 27, light and dark. The native phone is 402 CSS px wide (1206-pixel screenshots); auxiliary WebKit captures below cover exactly 390×844. Glass is judged only from real Safari and iPhone captures. | state | approved mockup | product | |---|---|---| | 1440 Safari, light | ![mockup](https://git.kayg.org/attachments/8d03191e-f4e0-474d-ad5e-31997b2f3e3c) | ![product](https://git.kayg.org/attachments/d549c59f-1b35-407b-8660-2a4c02ad8653) | | iPhone Safari, light | ![mockup](https://git.kayg.org/attachments/64861e52-fc90-4855-93b8-79ec7c19cd34) | ![product](https://git.kayg.org/attachments/a5f664ff-214b-4830-97b4-90874dd2bcff) | | 390 layout, light | ![mockup](https://git.kayg.org/attachments/6ee28aed-df72-4df1-9d42-37544592103d) | ![product](https://git.kayg.org/attachments/1f0869d5-1061-4e15-90ed-5e696dff6c1c) | | 1440 Safari, dark | ![mockup](https://git.kayg.org/attachments/e384a765-efa1-43e7-afba-e1220a1b1eb3) | ![product](https://git.kayg.org/attachments/e5b7a176-7b64-4ce2-bdb4-4f256101f506) | | iPhone Safari, dark | ![mockup](https://git.kayg.org/attachments/b70535a4-51fb-445a-85d8-eb1efa335d11) | ![product](https://git.kayg.org/attachments/1901b6cc-1376-414a-a9fa-aef8ef868931) | | 390 layout, dark | ![mockup](https://git.kayg.org/attachments/9e73649d-83cc-4e50-8b96-1b729909c143) | ![product](https://git.kayg.org/attachments/cfb46f3c-2254-461e-b30a-a1c4a4a5a4fb) | Visual differences remain visible: the resting phone capture uses narrower, more equal column widths and a solid cell/header treatment; the mockup gives the first column more room and a tint. This wraps exercise names more on the phone. The active desktop grid also has a different tint from the mockup. The product also retains its current shell/backdrop and larger gap below the title. Captures use sample data. A fresh iPhone light capture taken after only 10 seconds showed pending content; the 25-second settled capture above renders the table. No visual parity claim is made. Active desktop grid, real Safari: [light product](https://git.kayg.org/attachments/0f4eef8d-60cb-4141-96ae-cbae9ab8d462) / [light mockup](https://git.kayg.org/attachments/cc5acec2-28ff-4ffb-b514-602b544e146e) · [dark product](https://git.kayg.org/attachments/1d9af528-56b0-4dcc-967f-6d15bd3a129c) / [dark mockup](https://git.kayg.org/attachments/378aa2ba-1c47-4910-a347-eb9820ae1b09)
Author
Owner

Implementation plan: typing and first paint

Base: dev 31972329b; current stack heads: #845 f828454e7, #854 3f67f0cbe.

  • Cell typing: tag the Grid's own cell transaction with its current widget identity. That one path patches the changed Markdown row and maps the existing table decoration; it must not rediscover tables across the note or rebuild the table model. Other edits, undo, structure changes, stale identities, and failed checks keep the full redraw path. Target work is proportional to the changed cell/row and CodeMirror's changed decoration ranges.
  • Layout: ignore height-only ResizeObserver notifications; refresh horizontal measurements only when the scroller width changes or scrolling changes.
  • First paint: keep the NodeView and its styles in lazy chunks, including pending-row CSS. Load them with the first table note, typed or pasted table, or Insert action. A note without a table must not fetch the table UI or its CSS.
  • Size: do not edit budgets. The latest #845 report records +179 B first-paint JS / +611 B normalized JS and +164 B CSS as the approved lines; current measured deltas are +567 B JS / +284 B normalized and +167 B CSS. #854 records +275 B JS / +611 B normalized and +164 B CSS; current deltas are +543 B JS / +284 B normalized and +167 B CSS. Rebuild and report exact post-change deltas; any growth outside those lines remains pending kayg's approval.
  • Failure table:
    • Missing or stale cell identity → fall back to full table discovery and redraw → regression test sends an untagged edit and expects discovery.
    • Cell content or row patch mismatch → adopt the document text through the existing parser path → raw-cell, round-trip, undo and table e2e coverage.
    • Lazy import or stylesheet load fails → keep the Markdown text visible at its reserved height and allow a later load attempt → lazy-load tests and table e2e.
    • ResizeObserver is absent or reports only height changes → retain CSS sizing without horizontal refresh → layout e2e and Safari/iPhone captures.
  • Gates: svelte-check, web/editor Vitest, table specs on the four main Playwright projects, contrast, bundle gate, then perf ABAB ×3 with dev-vs-dev control through the FIFO lane and both locks. Capture approved-mockup pairs in Safari at 1440 and iPhone Simulator at 390; post evidence in the PR comments.
## Implementation plan: typing and first paint Base: dev `31972329b`; current stack heads: #845 `f828454e7`, #854 `3f67f0cbe`. - Cell typing: tag the Grid's own cell transaction with its current widget identity. That one path patches the changed Markdown row and maps the existing table decoration; it must not rediscover tables across the note or rebuild the table model. Other edits, undo, structure changes, stale identities, and failed checks keep the full redraw path. Target work is proportional to the changed cell/row and CodeMirror's changed decoration ranges. - Layout: ignore height-only ResizeObserver notifications; refresh horizontal measurements only when the scroller width changes or scrolling changes. - First paint: keep the NodeView and its styles in lazy chunks, including pending-row CSS. Load them with the first table note, typed or pasted table, or Insert action. A note without a table must not fetch the table UI or its CSS. - Size: do not edit budgets. The latest #845 report records +179 B first-paint JS / +611 B normalized JS and +164 B CSS as the approved lines; current measured deltas are +567 B JS / +284 B normalized and +167 B CSS. #854 records +275 B JS / +611 B normalized and +164 B CSS; current deltas are +543 B JS / +284 B normalized and +167 B CSS. Rebuild and report exact post-change deltas; any growth outside those lines remains pending kayg's approval. - Failure table: - Missing or stale cell identity → fall back to full table discovery and redraw → regression test sends an untagged edit and expects discovery. - Cell content or row patch mismatch → adopt the document text through the existing parser path → raw-cell, round-trip, undo and table e2e coverage. - Lazy import or stylesheet load fails → keep the Markdown text visible at its reserved height and allow a later load attempt → lazy-load tests and table e2e. - ResizeObserver is absent or reports only height changes → retain CSS sizing without horizontal refresh → layout e2e and Safari/iPhone captures. - Gates: svelte-check, web/editor Vitest, table specs on the four main Playwright projects, contrast, bundle gate, then perf ABAB ×3 with dev-vs-dev control through the FIFO lane and both locks. Capture approved-mockup pairs in Safari at 1440 and iPhone Simulator at 390; post evidence in the PR comments.
Author
Owner

Tables handover: #845 → #854 (2026-11-13)

Heads and push state

  • #845 port/port-tables: 2354e31c39
  • #854 port/port-tables-2: bd64d1f971, based on the current #845 head.
  • Base: dev 31972329b. Both branch refs were pushed; Forgejo reported Everything up-to-date.
  • The local #854 worktree branch impl/ports-854 at f84762ed1 is stale/diverged. Its 16 local commits are patch-equivalent to commits on the current remote #854 branch; use remote head bd64d1f97 for continuation. No unique uncommitted change was found.

The latest completed gate reports are the earlier-head results in #845 comment 90120 and #854 comment 90122, on f828454e7 / 3f67f0cbe. They were not rerun on the current heads above.

Latest completed gates and size

Gate #845 last report #854 last report
Svelte check Pass: 0 errors, 18 warnings Pass: 0 errors, 18 warnings
Web Vitest Pass: 238 Pass: 238
Editor Vitest Pass: 576 Pass: 582
Tables e2e, four projects Pass: 84, 32 skipped Pass: 116, 32 skipped
Contrast Pass: 10 Pass: 10
Bundle gate Fail: index 222.979 KiB > 222.89 KiB Pass on that reported head

No current-head gate result is available. Do not treat the earlier passes as current qualification.

Recorded first-paint deltas against dev remain over the approved plain-JS/CSS lines:

  • #845: JS +567 B (+0.554 KiB), normalized JS +284 B, CSS +167 B (+0.163 KiB). Recorded allowances are +179 B plain JS / +611 B normalized JS / +164 B CSS. Plain JS exceeds by 388 B; CSS exceeds by 3 B. Total JS is +9,618 B.
  • #854: JS +543 B (+0.530 KiB), normalized JS +284 B, CSS +167 B (+0.163 KiB). Recorded allowances are +275 B plain JS / +611 B normalized JS / +164 B CSS. Plain JS exceeds by 268 B; CSS exceeds by 3 B. Total JS is +13,022 B.

These are the latest reported bundle numbers, not a rebuild of the current heads. Budgets were not changed. Any remaining first-paint growth outside the recorded lines needs kayg's approval.

Typing diagnostic after the outage

The failed post-reboot attempt had no valid samples because Chromium could not load libnspr4.so; it was quarantined. The fresh tables-typing-profile-r13 diagnostic completed with rc=0, verified all 20,002 fixture checksums, and used input archive SHA-256 9fc6096a18689c56c94448ba12c05028f88e536cb8d4fcab10fff77f23d34f1b. This was one dev/PR diagnostic pass, not the required ABAB ×3 and not a dev-vs-dev control.

Case dev p50 / p95 ms PR p50 / p95 ms
Long note 61.0 / 94.4 53.5 / 73.1
Nested list 43.7 / 54.9 43.5 / 55.5
Prose in code-heavy note 45.4 / 76.2 53.3 / 78.1
Code block 57.2 / 75.9 47.7 / 74.8
Table cell no dev cell arm 68.7 / 260.1

The code-heavy prose case is slower than dev in this diagnostic; the cell number has no dev-cell comparator. Neither target is qualified. The trace saw 163 commits for 168 keys and 14 table ResizeObserver callbacks, with no fit, looks, or publish calls during typing. Sampled work included parseInline (~3.0 ms/key), parse (~2.46), and nextLine (~1.81). The decoration-map counter did not hook, so its zero is inconclusive.

Open work and exact next steps

  1. Continue from #854 remote head bd64d1f97. Find and remove work proportional to the note/table on each keystroke; keep the changed-cell path O(changed cell/row), and make plain-note and cell typing no slower than dev. Add/keep regression coverage for parser work, decoration mapping, ResizeObserver behavior, and fallback paths.
  2. Re-run on dev-01 through ~/bin/slot: bun run --cwd apps/web check; bun run --cwd apps/web test; bun run --cwd packages/editor test; the table specs on chromium-1440, chromium-390, webkit-1440, and webkit-390 with CI=1 --retries=0 --workers=1; bunx playwright test --project=contrast --workers=1 --retries=0; then PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate. Build/stage before taking any perf lock.
  3. After staging and checksum verification, run the formal typing comparison as ABAB ×3 with a dev-vs-dev control via the perf-01 FIFO ~/bin/perf-turn, holding the shared perf-01 and perf-02 locks only for the measurement. The checked-in selector is bunx playwright test -c perf/playwright.config.ts '(^|/)typing[.]perf[.]ts$' --project=chromium --workers=1. Do not reuse the one-pass diagnostic as qualification. Before any timing-sensitive run on std, check kayg/infraternal#260.
  4. Re-capture the current heads against review/calendar-2: 1440 in real Safari and 390 in the iPhone Simulator, then attach the fresh comparison to the PRs. Earlier screenshot sets are historical: they include 1440 Safari, 402 CSS-pixel iPhone Simulator, and 390 WebKit captures, not fresh current-head 390 Simulator evidence.

Scripts, harnesses, and artifacts

  • On perf-02, the recovery worktree is /home/claude/Developer/Worktrees/tables-perf-relay-20261113-r11. Fresh logs and metrics are under run/profile-before-r2/logs/ and run/profile-before-r2/results-{dev,pr}/metrics.jsonl; fixture homes are under run/profile-before-r2/fixtures/. Future fixtures/logs belong under a worktree, not /tmp.
  • The one-pass diagnostic wrapper is run/start-profile-r2.sh; it invokes run/profile-before-r2.sh, uses the pinned shell at /home/claude/Developer/Worktrees/tables-perf-nix-shell, the source checkout /home/claude/Developer/Worktrees/tables-typing-perf-20261112/apps/web, and ~/bin/slot for its dev and PR arms. To repeat that diagnostic only: netbird ssh claude@calternal-perf-02-backup01 'bash ~/Developer/Worktrees/tables-perf-relay-20261113-r11/run/start-profile-r2.sh'. It is not the formal ABAB runner; formal timing must use the perf-01 FIFO.
  • The tracked harness is apps/web/perf/typing.perf.ts with apps/web/perf/playwright.config.ts in the #854 source. Run the selector above from apps/web after staging binaries/fixtures, under the FIFO workflow.
  • Gate sources are in the PR worktree: perf/web.sh for the bundle gate, apps/web/e2e/tables.spec.ts and tables-more.spec.ts for table behavior, and packages/editor/test/ for editor Vitest coverage.

Host cleanup

No Tables-owned unit, server, running slot job, perf ticket, or lock holder remained on dev-01, dev-02, perf-01, or perf-02. The perf FIFO entries for r11/r12/r13 are dead and the shared perf lock is clear. The active dev-01 Tasks #894 job and dev-02 shared preview units are unrelated, so they were left untouched. Worktrees remain in place.

## Tables handover: #845 → #854 (2026-11-13) ### Heads and push state - #845 port/port-tables: 2354e31c39c530b2ea033a17f531924851ee478a - #854 port/port-tables-2: bd64d1f971c505bc087bba5ca86f2645a11bbb4e, based on the current #845 head. - Base: dev 31972329b. Both branch refs were pushed; Forgejo reported Everything up-to-date. - The local #854 worktree branch impl/ports-854 at f84762ed1 is stale/diverged. Its 16 local commits are patch-equivalent to commits on the current remote #854 branch; use remote head bd64d1f97 for continuation. No unique uncommitted change was found. The latest completed gate reports are the earlier-head results in [#845 comment 90120](https://git.kayg.org/kayg/calternal/pulls/845#issuecomment-90120) and [#854 comment 90122](https://git.kayg.org/kayg/calternal/pulls/854#issuecomment-90122), on f828454e7 / 3f67f0cbe. They were not rerun on the current heads above. ### Latest completed gates and size | Gate | #845 last report | #854 last report | |---|---|---| | Svelte check | Pass: 0 errors, 18 warnings | Pass: 0 errors, 18 warnings | | Web Vitest | Pass: 238 | Pass: 238 | | Editor Vitest | Pass: 576 | Pass: 582 | | Tables e2e, four projects | Pass: 84, 32 skipped | Pass: 116, 32 skipped | | Contrast | Pass: 10 | Pass: 10 | | Bundle gate | **Fail**: index 222.979 KiB > 222.89 KiB | Pass on that reported head | No current-head gate result is available. Do not treat the earlier passes as current qualification. Recorded first-paint deltas against dev remain over the approved plain-JS/CSS lines: - #845: JS +567 B (+0.554 KiB), normalized JS +284 B, CSS +167 B (+0.163 KiB). Recorded allowances are +179 B plain JS / +611 B normalized JS / +164 B CSS. Plain JS exceeds by 388 B; CSS exceeds by 3 B. Total JS is +9,618 B. - #854: JS +543 B (+0.530 KiB), normalized JS +284 B, CSS +167 B (+0.163 KiB). Recorded allowances are +275 B plain JS / +611 B normalized JS / +164 B CSS. Plain JS exceeds by 268 B; CSS exceeds by 3 B. Total JS is +13,022 B. These are the latest reported bundle numbers, not a rebuild of the current heads. Budgets were not changed. Any remaining first-paint growth outside the recorded lines needs kayg's approval. ### Typing diagnostic after the outage The failed post-reboot attempt had no valid samples because Chromium could not load libnspr4.so; it was quarantined. The fresh tables-typing-profile-r13 diagnostic completed with rc=0, verified all 20,002 fixture checksums, and used input archive SHA-256 9fc6096a18689c56c94448ba12c05028f88e536cb8d4fcab10fff77f23d34f1b. This was one dev/PR diagnostic pass, not the required ABAB ×3 and not a dev-vs-dev control. | Case | dev p50 / p95 ms | PR p50 / p95 ms | |---|---:|---:| | Long note | 61.0 / 94.4 | 53.5 / 73.1 | | Nested list | 43.7 / 54.9 | 43.5 / 55.5 | | Prose in code-heavy note | 45.4 / 76.2 | 53.3 / 78.1 | | Code block | 57.2 / 75.9 | 47.7 / 74.8 | | Table cell | no dev cell arm | 68.7 / 260.1 | The code-heavy prose case is slower than dev in this diagnostic; the cell number has no dev-cell comparator. Neither target is qualified. The trace saw 163 commits for 168 keys and 14 table ResizeObserver callbacks, with no fit, looks, or publish calls during typing. Sampled work included parseInline (~3.0 ms/key), parse (~2.46), and nextLine (~1.81). The decoration-map counter did not hook, so its zero is inconclusive. ### Open work and exact next steps 1. Continue from #854 remote head bd64d1f97. Find and remove work proportional to the note/table on each keystroke; keep the changed-cell path O(changed cell/row), and make plain-note and cell typing no slower than dev. Add/keep regression coverage for parser work, decoration mapping, ResizeObserver behavior, and fallback paths. 2. Re-run on dev-01 through ~/bin/slot: bun run --cwd apps/web check; bun run --cwd apps/web test; bun run --cwd packages/editor test; the table specs on chromium-1440, chromium-390, webkit-1440, and webkit-390 with CI=1 --retries=0 --workers=1; bunx playwright test --project=contrast --workers=1 --retries=0; then PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate. Build/stage before taking any perf lock. 3. After staging and checksum verification, run the formal typing comparison as ABAB ×3 with a dev-vs-dev control via the perf-01 FIFO ~/bin/perf-turn, holding the shared perf-01 and perf-02 locks only for the measurement. The checked-in selector is bunx playwright test -c perf/playwright.config.ts '(^|/)typing[.]perf[.]ts$' --project=chromium --workers=1. Do not reuse the one-pass diagnostic as qualification. Before any timing-sensitive run on std, check kayg/infraternal#260. 4. Re-capture the current heads against review/calendar-2: 1440 in real Safari and 390 in the iPhone Simulator, then attach the fresh comparison to the PRs. Earlier screenshot sets are historical: they include 1440 Safari, 402 CSS-pixel iPhone Simulator, and 390 WebKit captures, not fresh current-head 390 Simulator evidence. ### Scripts, harnesses, and artifacts - On perf-02, the recovery worktree is /home/claude/Developer/Worktrees/tables-perf-relay-20261113-r11. Fresh logs and metrics are under run/profile-before-r2/logs/ and run/profile-before-r2/results-{dev,pr}/metrics.jsonl; fixture homes are under run/profile-before-r2/fixtures/. Future fixtures/logs belong under a worktree, not /tmp. - The one-pass diagnostic wrapper is run/start-profile-r2.sh; it invokes run/profile-before-r2.sh, uses the pinned shell at /home/claude/Developer/Worktrees/tables-perf-nix-shell, the source checkout /home/claude/Developer/Worktrees/tables-typing-perf-20261112/apps/web, and ~/bin/slot for its dev and PR arms. To repeat that diagnostic only: netbird ssh claude@calternal-perf-02-backup01 'bash ~/Developer/Worktrees/tables-perf-relay-20261113-r11/run/start-profile-r2.sh'. It is not the formal ABAB runner; formal timing must use the perf-01 FIFO. - The tracked harness is apps/web/perf/typing.perf.ts with apps/web/perf/playwright.config.ts in the #854 source. Run the selector above from apps/web after staging binaries/fixtures, under the FIFO workflow. - Gate sources are in the PR worktree: perf/web.sh for the bundle gate, apps/web/e2e/tables.spec.ts and tables-more.spec.ts for table behavior, and packages/editor/test/ for editor Vitest coverage. ### Host cleanup No Tables-owned unit, server, running slot job, perf ticket, or lock holder remained on dev-01, dev-02, perf-01, or perf-02. The perf FIFO entries for r11/r12/r13 are dead and the shared perf lock is clear. The active dev-01 Tasks #894 job and dev-02 shared preview units are unrelated, so they were left untouched. Worktrees remain in place.
Author
Owner

Tables gates on head 291c6d1ad (dev 796d80cba merged), 14 Nov: not green as a standalone PR

Same hosts and method as #854's comment. origin/dev merged; the type error hidden.ts:247 (SyntaxNode | null) is fixed here with the commit that was already on #854.

Gate Result
svelte-check 0 errors, 19 warnings (was 1 error before the one-line fix)
web vitest 261 passed
editor vitest 602 passed
contrast 10 passed
bundle gate perf/web.sh --bundle-only --gate PASS; first-paint JS +685 B (224.418 KiB), CSS +0 B; lines set (_approval_tables_1114), total 554.19
tables.spec.ts, chromium-1440 / chromium-390 4 failed per project (insert makes header+rows, Tab/Enter moves, "table nobody edited is never rewritten", typed `

The 8 failures reproduce on #845's pre-merge head 2354e31c3 (rebuilt and run), so they are not from the dev merge. Cause: #845's spec was last gated at f828454e7; later commits on this branch (raw-row cell patching that keeps the file's own spacing, the lazy Enter doorway) changed behaviour without the spec, e.g. typing in an empty | | cell writes | Name | where the spec expects | Name |. #854 (stacked) normalises that spacing and rewrites the lazy-Enter spec, and passes all four projects. Recommendation: land #845 and #854 together (or merge #854, which contains #845); #845 alone would ship red tests. I did not retrofit #854's behaviour into #845.

Typing (same ABAB×3 session, arm p845): plain notes flat within the dev-vs-dev spread except code block (64.0 / 119.7 ms vs dev 54.2 / 107.0 and 60.1 / 114.8; CPU/key flat 32.5 vs 31.8/32.1, 845 itself earlier measured 48.1). Table to type into: 172 / 436 ms, 71 ms CPU/key (fixed in #854). Full table in the #854 comment. The cell-commit gate and the last-column fit fix are #854-only.

Not merged.

## Tables gates on head `291c6d1ad` (dev `796d80cba` merged), 14 Nov: **not green as a standalone PR** Same hosts and method as [#854's comment](https://git.kayg.org/kayg/calternal/pulls/854). `origin/dev` merged; the type error `hidden.ts:247` (`SyntaxNode | null`) is fixed here with the commit that was already on #854. | Gate | Result | |---|---| | svelte-check | 0 errors, 19 warnings (was 1 error before the one-line fix) | | web vitest | 261 passed | | editor vitest | 602 passed | | contrast | 10 passed | | bundle gate `perf/web.sh --bundle-only --gate` | PASS; first-paint JS **+685 B** (224.418 KiB), CSS +0 B; lines set (`_approval_tables_1114`), total 554.19 | | `tables.spec.ts`, chromium-1440 / chromium-390 | **4 failed per project** (insert makes header+rows, Tab/Enter moves, "table nobody edited is never rewritten", typed `| a | b |` + Enter); webkit not run on #845 | The 8 failures reproduce on #845's pre-merge head `2354e31c3` (rebuilt and run), so they are not from the dev merge. Cause: #845's spec was last gated at `f828454e7`; later commits on this branch (raw-row cell patching that keeps the file's own spacing, the lazy Enter doorway) changed behaviour without the spec, e.g. typing in an empty `| |` cell writes `| Name |` where the spec expects `| Name |`. #854 (stacked) normalises that spacing and rewrites the lazy-Enter spec, and passes all four projects. **Recommendation: land #845 and #854 together (or merge #854, which contains #845); #845 alone would ship red tests.** I did not retrofit #854's behaviour into #845. Typing (same ABAB×3 session, arm p845): plain notes flat within the dev-vs-dev spread except code block (64.0 / 119.7 ms vs dev 54.2 / 107.0 and 60.1 / 114.8; CPU/key flat 32.5 vs 31.8/32.1, 845 itself earlier measured 48.1). Table to type into: 172 / 436 ms, 71 ms CPU/key (fixed in #854). Full table in the #854 comment. The cell-commit gate and the last-column fit fix are #854-only. Not merged.
Author
Owner

Merged into dev with --no-ff at 44fc0b7c4 by the orchestrator (stack #845 ⊂ #854), after reviewing the Safari/iPhone shots in comment 96550. Scroll-snap and the 7.5em last-column minimum were port-only additions (dev had no tables), so removing them to match the mockup is not a dropped feature. Closing.

Merged into `dev` with `--no-ff` at `44fc0b7c4` by the orchestrator (stack #845 ⊂ #854), after reviewing the Safari/iPhone shots in comment 96550. Scroll-snap and the 7.5em last-column minimum were port-only additions (dev had no tables), so removing them to match the mockup is not a dropped feature. Closing.
kayg closed this pull request 2026-11-14 17:38:57 +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!845
No description provided.