Notes Float suite fixes b: vim-block, contacts phone, sheet + flat-list contrast #1144

Closed
kayg wants to merge 0 commits from port/notes-float-suite-fix-b into port/notes-float
Owner

Suite fixes on port/notes-float (#1088 comment 97106), plus the flat-list contrast case.

  1. vim-block.spec.ts:23 (chromium-1440, light and dark): the vim attribute was never lost for a note that stays put. The spec clicked the middle of the long line, which in the window layout lands on [Calternal](<calternal.md>); a click follows the link, the route moved to another note (and dropped vim=on), the editor lost its Vim extension, data-vim went away. Product is fine. The spec now focuses the editor on the plain last line.
  2. contacts-list.spec.ts:83 (phone): the Notes tabs are gone (slice 8); Contacts is a pill in the app switcher, so the spec taps [data-phone-foot] [data-app-switch] [data-app="contacts"]. Contacts' own tab bar still has its Notes tab, which the spec keeps using for the way back. Contacts is reachable on the phone, nothing dropped.
  3. contrast.spec.ts:268 (Insert sheet "Link to a note", 1.16 to 2.03): the label is the sheet's cut-off last row (sheet 580 tall, tile reaches past its bottom); the part past the glass edge lies over the dark backdrop, not the glass. The ink (--ink, black in light) is right. glyphsIn now measures a glyph only where its clipping box shows it.
  4. contrast.spec.ts:66 (All notes .meta, dark/dawn 4.39, dark/day 4.15): the flat list reads straight on the global layer's wash. New lib/wash-ink.ts fits --ink-2/3/4 to that wash over the sky's darkest and lightest colour with the glass's own adaptInk, once per backdrop/scheme/accent/hour change (from syncBehindProbe), written as --wash-ink-* on the root and used by .wlist.on-glass. Not a static opacity raise. (First try: register the list as a <Glass>. It made the registry watch the list's scroll, which adaptive-glass.spec.ts:84/:120 rightly rejected, so it was dropped.)

Gates (server built from base 6a3ef2e83; Rust unchanged): chromium-1440/390 on dev-01, adaptive-glass app-switch bar-* contacts-* glass glass-roots notes-float-phone phone-* vim vim-block: 555 passed. webkit-1440/390 on dev-02: 552 passed, 1 first-run failure (contacts-edit:114, webkit-1440), 10/10 pass on --repeat-each=10 (flaky, not this change). Contrast project (contrast.spec + chrome-contrast.spec): 9 passed, incl. :66 and :268 at 1440 and 390. svelte-check 0 errors; vitest 104 passed. Bundle gate: index chunk 238.458 KB vs base 238.33 (+0.13 KB, the wash-ink module); other chunk deltas are noise (vim chunk over budget on the base too).

Not done: no real-Safari/iPhone-sim shot pair (the Insert sheet's ink is unchanged; the list ink in dark by day is the visible change); no perf-VM ABAB (nothing runs per scroll or key: one pass per backdrop change).

Suite fixes on `port/notes-float` (#1088 comment 97106), plus the flat-list contrast case. 1. **vim-block.spec.ts:23** (chromium-1440, light and dark): the vim attribute was never lost for a note that stays put. The spec clicked the middle of the long line, which in the window layout lands on `[Calternal](<calternal.md>)`; a click follows the link, the route moved to another note (and dropped `vim=on`), the editor lost its Vim extension, `data-vim` went away. Product is fine. The spec now focuses the editor on the plain last line. 2. **contacts-list.spec.ts:83** (phone): the Notes tabs are gone (slice 8); Contacts is a pill in the app switcher, so the spec taps `[data-phone-foot] [data-app-switch] [data-app="contacts"]`. Contacts' own tab bar still has its Notes tab, which the spec keeps using for the way back. Contacts is reachable on the phone, nothing dropped. 3. **contrast.spec.ts:268** (Insert sheet "Link to a note", 1.16 to 2.03): the label is the sheet's cut-off last row (sheet 580 tall, tile reaches past its bottom); the part past the glass edge lies over the dark backdrop, not the glass. The ink (`--ink`, black in light) is right. `glyphsIn` now measures a glyph only where its clipping box shows it. 4. **contrast.spec.ts:66** (All notes `.meta`, dark/dawn 4.39, dark/day 4.15): the flat list reads straight on the global layer's wash. New `lib/wash-ink.ts` fits `--ink-2/3/4` to that wash over the sky's darkest and lightest colour with the glass's own `adaptInk`, once per backdrop/scheme/accent/hour change (from `syncBehindProbe`), written as `--wash-ink-*` on the root and used by `.wlist.on-glass`. Not a static opacity raise. (First try: register the list as a `<Glass>`. It made the registry watch the list's scroll, which `adaptive-glass.spec.ts:84/:120` rightly rejected, so it was dropped.) Gates (server built from base 6a3ef2e83; Rust unchanged): chromium-1440/390 on dev-01, adaptive-glass app-switch bar-* contacts-* glass glass-roots notes-float-phone phone-* vim vim-block: 555 passed. webkit-1440/390 on dev-02: 552 passed, 1 first-run failure (contacts-edit:114, webkit-1440), 10/10 pass on `--repeat-each=10` (flaky, not this change). Contrast project (contrast.spec + chrome-contrast.spec): 9 passed, incl. :66 and :268 at 1440 and 390. svelte-check 0 errors; vitest 104 passed. Bundle gate: index chunk 238.458 KB vs base 238.33 (+0.13 KB, the wash-ink module); other chunk deltas are noise (vim chunk over budget on the base too). Not done: no real-Safari/iPhone-sim shot pair (the Insert sheet's ink is unchanged; the list ink in dark by day is the visible change); no perf-VM ABAB (nothing runs per scroll or key: one pass per backdrop change).
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 flat list's inks are fitted once per backdrop change to the wash over the sky (no registered glass, so no scroll recompute); contacts spec: Contacts' own Notes tab returns
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
2398f48c48
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator. Budget lines (index +0.13 KB for wash-ink) and the Safari/iPhone check of the dark-day list ink are part of the final release-check lane. Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator. Budget lines (index +0.13 KB for wash-ink) and the Safari/iPhone check of the dark-day list ink are part of the final release-check lane. Closing.
kayg closed this pull request 2026-11-14 23:54:24 +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!1144
No description provided.