Train AS: port piece 1, inset sheets without ✕/title/dim (#660) #667

Closed
kayg wants to merge 0 commits from train/2026-10-22as into dev
Owner

Train AS ran the full suite at b3702a9 (run as2): fmt, clippy, workspace tests, the build, svelte-check, every Playwright project in parallel shards: admin 41+2, cr1440 307+1, cr390 251+190, wk1440 136+171+1, wk390 145+182+117, small 19.

Four browser tests failed in as2 under host load (load average 10-22): admin-contrast light+dark (admin-webkit-1440, 30 s timeouts), width.spec:31 (chromium-1440, 816 vs 832 px), swipe-rows.spec:207 (webkit-1440). Rerun 3x each on the same head: all passed (3/3, 3/3, 7/7 incl. setup). The same sheet code also passed all four in train AR. Run as1 failed on a Rust test this train does not touch (fanout a_crash_before_the_seed_is_durable_never_doubles_text, no answer in 30 s at load 22; 20/20 alone; tracked in #666).

Contents (#660, port piece 1 of the round-9 phone chrome):

  • iOS inset sheets, one glass, blur primitives (9647307).
  • Sheets have no close button, no title bar and no dim; they close by drag, tap outside or Esc (a1ae641, IN5-IN7).
  • phone-edges test now expects no dim with a sheet open (only the palette dims).
  • Not included: the search port (#636, perf fix in progress) and the spring check (#655, follows next).

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

Train AS ran the full suite at b3702a9 (run as2): fmt, clippy, workspace tests, the build, svelte-check, every Playwright project in parallel shards: admin 41+2, cr1440 307+1, cr390 251+190, wk1440 136+171+1, wk390 145+182+117, small 19. Four browser tests failed in as2 under host load (load average 10-22): admin-contrast light+dark (admin-webkit-1440, 30 s timeouts), width.spec:31 (chromium-1440, 816 vs 832 px), swipe-rows.spec:207 (webkit-1440). Rerun 3x each on the same head: all passed (3/3, 3/3, 7/7 incl. setup). The same sheet code also passed all four in train AR. Run as1 failed on a Rust test this train does not touch (fanout a_crash_before_the_seed_is_durable_never_doubles_text, no answer in 30 s at load 22; 20/20 alone; tracked in #666). Contents (#660, port piece 1 of the round-9 phone chrome): - iOS inset sheets, one glass, blur primitives (9647307). - Sheets have no close button, no title bar and no dim; they close by drag, tap outside or Esc (a1ae641, IN5-IN7). - phone-edges test now expects no dim with a sheet open (only the palette dims). - Not included: the search port (#636, perf fix in progress) and the spring check (#655, follows next). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
From the approved mockup (issue/469-mockup-9a @ 816226f):
- Sheets: --sheet-inset / --sheet-r-top / --sheet-r-bottom / --sheet-corners tokens and
  lib/sheet-radius.ts (display radius lookup; bottom concentric with the display). Every phone
  sheet (Insert, Style, Info, Move, Link, Invite) sits 8 pt from the sides and the screen's bottom
  edge with 40 pt top corners and concentric bottom ones; desktop keeps one radius.
- Morph and SheetBody as in the mockup: sheet spring (IN8), crossfade without a gap, plain fades
  for tall sheets, 44 pt grabber and round close, flick-to-close by velocity (IN6). The corners
  do not animate (a radius repaints the glass every frame).
- The bar drops an inset sheet to 8 pt (--sheet-drop), off while the keyboard is up (data-kb).
- One glass material: the mockup's --glass-float alphas (0.16/0.32, --glass-a hooks), text halo,
  and a firm fallback where there is no backdrop blur. Bar sheets are paper under the glass.
- BlurStrips and ProgressiveBlur (top/bottom, bare) in packages/ui/src/chrome for pieces 2 and 5.
- morphIn lands on the element's own corners instead of a fixed 26 px.

Removed: the --sheet-r one-radius token, SheetBody's 100vw-16px width / 16 px grabber, the
26 px fallbacks in InviteSheet, ProgressiveBlur's ?ramp= experiment, the dead .pblur selector.

New: e2e/sheet-geometry.spec.ts (all bar sheets + invite, 320/390/1440, light/dark),
lib/sheet-radius.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
The decisions (calternal-decisions-inspector IN5, IN6; kayg 2026-10-20 on heights) overrule the
mockup's header on Insert, Info, Move and Link:
- SheetBody: no header (title + ✕); the dialog keeps its name as its label. A phone sheet has only
  the grabber. Its height is its content's, capped by what is visible above the bar.
- Bar: the phone's dim becomes a clear catcher (.bar-catch) that closes the sheet on a tap
  outside and reaches nothing under it; the page-dim hook (`dim`) is gone from the bar.
- BottomBar: a click outside the sheet closes it on a desktop.
- InviteSheet: no title, ✕ or dim; a grabber that drags it closed on a phone.
- lib/sheet-drag.ts: the one drag-to-close gesture and rule (flick 0.6 pt/ms or 40%).
- Specs: sheet-geometry asserts no ✕/title/dim, content height, distinct heights, and every
  close path; bar-focus, bar-stays and admin close with Esc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Train AS: phone-edges expects no dim with a sheet open (sheets no longer dim; only the palette does)
Some checks failed
CI / server (pull_request) Successful in 29s
CI / web (pull_request) Failing after 41s
CI / rust (pull_request) Failing after 1m57s
b3702a9252
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Author
Owner

Closing: this PR's head commit is already in dev (checked 26 Oct, against dev a779a46). The train landed it by merging directly into dev.

Closing: this PR's head commit is already in `dev` (checked 26 Oct, against dev `a779a46`). The train landed it by merging directly into dev.
kayg closed this pull request 2026-10-26 11:18:07 +00:00
Some checks failed
CI / server (pull_request) Successful in 29s
CI / web (pull_request) Failing after 41s
CI / rust (pull_request) Failing after 1m57s

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!667
No description provided.