Seamless phone edges: glass under the status bar, Settings in Safari, lists end at the bottom (#445) #461

Merged
kayg merged 9 commits from train/2026-10-16o into dev 2026-10-15 22:39:17 +00:00
Owner

Seamless top and bottom edges on iPhone (#445). Built on train/2026-10-15n2 (dev + #443 + #446). It carries the #447 commit (the Home Screen app reaching the screen's bottom) and the 320x568 home-screen.spec:186 fix, so #447 need not land separately.

What was wrong (seen in the iOS 27 simulator, harness #451)

  • Home Screen app, glass screens (Places, Journal, All notes, a tag, Trash, search): a flat, greyer strip behind the status bar. WebKit blurs nothing above the top of the screen. Under the status bar, the glass's blur reaches past the edge and mixes in the root's background-color. Shown with a red root: the top ~95 pt of the glass turned red, and nothing else did. Extending the glass upwards changes nothing. The root colour is the glass over --edge-key, and for a photo that key was the average of the built-in mountains photo. So with an upload, or any photo whose top differs, the glass under the status bar went flat and greyer: top vs 70-100 pt below, Δ13 to Δ17.
  • Safari, Settings: the desktop frame's shadow drew a line where the page meets the strip under Safari's toolbar (a step of 13 to 20 at the toolbar).
  • All phone lists: the list took its full height under the top bar, so it ran past the screen's bottom by the top bar's height. Its scroller ended 110 pt (Home Screen) or 48 pt (Safari) below the screen. This is also why home-screen.spec.ts:186 at 320x568 saw the scroller at 580 instead of 568 in train n.

Fix

  • glass-edge.ts: for a photo (built-in, upload or Unsplash), --edge-key is the part of the picture under the screen's top 48 px, sampled from the picture that is on screen (background-size: cover geometry). It is sampled again when that picture loads and when the screen turns. The root colour (--edge-glass) follows from it. Sky and plain backdrops are unchanged; they were already right.
  • Settings.svelte: no frame shadow on a phone. In a Safari tab the text fades into the paper strip under the toolbar, as the lists do. In the Home Screen app there is no fade.
  • PhoneStack.svelte: the list fills only what the top bar leaves (flex: 1; min-height: 0), so it ends at the screen's bottom.

Simulator (iPhone 18 Pro, iOS 27.0; kayg's phone runs iOS 27 too)

Gutter colour, status bar (8-50 pt) vs just below (70-100 pt), and the largest step near each edge:

before (origin/dev) after
Home Screen, Journal/Places, dark Δ13, flat strip Δ5, smooth (the photo's own gradient), step ≤1
Home Screen, Journal/Places, light Δ15 Δ7, smooth, step ≤1
Safari, Settings, bottom step 13 (dark) / 20 (light) at the toolbar step ≤1
Safari, lists, top/bottom Δ≤2 Δ≤2
List scroller bottom (Home Screen / Safari) 984 / 762 874 / 714 = the screen's / window's bottom

Before/after contact sheets (Home Screen light, Home Screen dark, Safari light, Safari dark) are on #445.

No flicker of the bar colour on route changes: a 60 fps recording of Journal → note → back → Places → Journal, in Safari and in the Home Screen app, shows the colour switch once per change (glass ↔ paper) and never pass through another value.

Tests

--no-deps, phone-edges, phone-bars, safe-areas, home-screen, pwa, bar-*. Run on the same tree based on train n (identical to this branch's tree):

  • chromium-390: 464 passed.
  • webkit-390: 458 passed, then 6 bar-* tests (bar-focus x2, bar-stable, bar-stays, bar-taps x2) timed out with the host at load 40-70. They passed alone with 1 worker (6/6).
  • home-screen.spec:186 at 320x568 (the train n failure): passes. The scroller now ends at 568.

Limit: a photo whose top varies a lot from side to side can't be matched by one colour. WebKit gives the blur only one colour above the screen. The strip now has the photo's own average, so it follows the picture instead of standing apart from it.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

(Replaces #455, merged with current dev. Review on #455.)

Seamless top and bottom edges on iPhone (#445). Built on `train/2026-10-15n2` (dev + #443 + #446). It carries the #447 commit (the Home Screen app reaching the screen's bottom) and the 320x568 `home-screen.spec:186` fix, so #447 need not land separately. ## What was wrong (seen in the iOS 27 simulator, harness #451) - **Home Screen app, glass screens (Places, Journal, All notes, a tag, Trash, search): a flat, greyer strip behind the status bar.** WebKit blurs nothing above the top of the screen. Under the status bar, the glass's blur reaches past the edge and mixes in the root's `background-color`. Shown with a red root: the top ~95 pt of the glass turned red, and nothing else did. Extending the glass upwards changes nothing. The root colour is the glass over `--edge-key`, and for a photo that key was the average of the **built-in** mountains photo. So with an upload, or any photo whose top differs, the glass under the status bar went flat and greyer: top vs 70-100 pt below, Δ13 to Δ17. - **Safari, Settings:** the desktop frame's shadow drew a line where the page meets the strip under Safari's toolbar (a step of 13 to 20 at the toolbar). - **All phone lists:** the list took its full height under the top bar, so it ran past the screen's bottom by the top bar's height. Its scroller ended 110 pt (Home Screen) or 48 pt (Safari) below the screen. This is also why `home-screen.spec.ts:186` at 320x568 saw the scroller at 580 instead of 568 in train n. ## Fix - `glass-edge.ts`: for a photo (built-in, upload or Unsplash), `--edge-key` is the part of the picture **under the screen's top 48 px**, sampled from the picture that is on screen (`background-size: cover` geometry). It is sampled again when that picture loads and when the screen turns. The root colour (`--edge-glass`) follows from it. Sky and plain backdrops are unchanged; they were already right. - `Settings.svelte`: no frame shadow on a phone. In a Safari tab the text fades into the paper strip under the toolbar, as the lists do. In the Home Screen app there is no fade. - `PhoneStack.svelte`: the list fills only what the top bar leaves (`flex: 1; min-height: 0`), so it ends at the screen's bottom. ## Simulator (iPhone 18 Pro, iOS 27.0; kayg's phone runs iOS 27 too) Gutter colour, status bar (8-50 pt) vs just below (70-100 pt), and the largest step near each edge: | | before (origin/dev) | after | |---|---|---| | Home Screen, Journal/Places, dark | Δ13, flat strip | Δ5, smooth (the photo's own gradient), step ≤1 | | Home Screen, Journal/Places, light | Δ15 | Δ7, smooth, step ≤1 | | Safari, Settings, bottom | step 13 (dark) / 20 (light) at the toolbar | step ≤1 | | Safari, lists, top/bottom | Δ≤2 | Δ≤2 | | List scroller bottom (Home Screen / Safari) | 984 / 762 | 874 / 714 = the screen's / window's bottom | Before/after contact sheets (Home Screen light, Home Screen dark, Safari light, Safari dark) are on #445. No flicker of the bar colour on route changes: a 60 fps recording of Journal → note → back → Places → Journal, in Safari and in the Home Screen app, shows the colour switch once per change (glass ↔ paper) and never pass through another value. ## Tests `--no-deps`, phone-edges, phone-bars, safe-areas, home-screen, pwa, bar-*. Run on the same tree based on train n (identical to this branch's tree): - chromium-390: **464 passed**. - webkit-390: 458 passed, then 6 bar-* tests (bar-focus x2, bar-stable, bar-stays, bar-taps x2) timed out with the host at load 40-70. They passed alone with 1 worker (**6/6**). - `home-screen.spec:186` at 320x568 (the train n failure): passes. The scroller now ends at 568. Limit: a photo whose top varies a lot from side to side can't be matched by one colour. WebKit gives the blur only one colour above the screen. The strip now has the photo's own average, so it follows the picture instead of standing apart from it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T (Replaces #455, merged with current dev. Review on #455.)
Type follows the reader's text size (#351)
Some checks failed
CI / server (pull_request) Successful in 30s
CI / rust (pull_request) Successful in 2m5s
CI / web (pull_request) Failing after 43m56s
84224f6e90
Every font size is counted in --type-px (1/16 of the root size) instead of px: the type tokens and
the ~285 stray sizes in apps/web, packages/ui and apps/mockup. The root is the browser's own size
(html { font-size: 100% }), Android's font scale (meta text-scale), and on iPhone/iPad the system
text size via `font: -apple-system-body`, scaled so the usual setting is pixel-identical.

Pills, bars, list rows and fields grow with their words (min-height, or heights in type-px). From
about 120% (data-text="large", lib/text-size: one ResizeObserver on a probe, never per frame) the
phone bar keeps two lines, swatches become rows, Insert takes fewer tiles a row, theme segments
wrap, keyboard keys go under their names. Titles stop growing at 13vw so long words fit.

New e2e/text-size.spec.ts checks the usual size is unchanged and that nothing is cut off or
sideways at 200% on 320/390/1440.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Icons, checkboxes and panes grow with the text too (#351)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / rust (pull_request) Successful in 1m53s
CI / web (pull_request) Failing after 43m0s
acbb5e899c
Icons size from --icon-px (the type pixel, up to 1.5x, so a phone's row of icon buttons still
fits 320 px); icon buttons, bar tabs and Insert glyph boxes add --icon-grow (0 at the usual
size). To-do checkboxes and the list marker box grow with them, tree lines included.

The sidebar and list (and Settings' sections column) widen with larger text, up to 1.4x and
360/520 px. Sign-in's card widens and keeps its fields inside it; Style's sliders and fonts,
Info's section hints and version rows rearrange at large text instead of squeezing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Merge #351 (text size) onto train 2026-10-15k
Some checks failed
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m56s
CI / web (pull_request) Failing after 40m59s
2411503898
Conflicts with #401: kept its shared ListFilter and EmptyState and its contrast colours. The
type-px sizes now apply to them, and the filter and empty-state heights grow with the text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
One floating glass: a shared Glass and its tokens for every floating surface (#319)
Some checks failed
CI / server (pull_request) Successful in 1m11s
CI / rust (pull_request) Successful in 3m7s
CI / web (pull_request) Failing after 58m57s
cea0a4e46a
- packages/ui: styles/glass.css (the `float-glass` class, its dense step and
  the `float-glass-behind` form for elements made elsewhere) and
  components/Glass.svelte (a childless layer). tokens.css loads glass.css.
- Tokens: the lighter material from the search mockup (#330): tint 0.30 light /
  0.36 dark, blur(20px) saturate 180/170% brightness 1.04/0.90, plus a new soft
  inner shade (--glass-float-shade). One denser step, 0.56 / 0.60, for lines of
  words: menus, the link and tag pickers and the bar's sheets.
- Words and icons on the glass use the on-glass inks, so quiet labels and icons
  read over dark and bright patches of a photo.
- The bar (all its modes, its sheets, toasts), search, context menus, the `[[` /
  `@` link picker, the tag picker and the toast capsule all draw it; their own
  copies of the values are gone, and so are the toast's hard-coded fallbacks
  and the primitives harness's copies.
- Menus and the tag picker no longer fade or blur themselves while opening or
  closing (that cut their glass off from the page): they scale, and the glass
  and the rows fade each on their own (#287).
- glass.spec: every floating surface is the same material, with the dense tint
  only on menus and the picker, the glass holds nothing, and a menu never cuts
  its glass off on any frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
On kayg's iPhone (iOS 26, Home Screen app) the layout viewport itself is one status bar short:
innerHeight, the svh/dvh units, the visual viewport and position: fixed boxes all end ~62 pt
above the bottom, while the page still covers the screen. #405 measured the app with a fixed
box, so it measured the short value and also pulled --screen-h (the backdrop, 100lvh) down to
it; the strip below showed the page's background as a flat band.

- home-screen.ts: when the page runs under the status bar (a top safe area) or the phone is on
  its side, and the window is the screen's full width, the screen's own height counts too. The
  tallest of that and the fixed box sizes --vh and --screen-h. An opaque status bar (no top
  safe area) keeps the window's height, so the app never grows past it.
- The new-note button and the phone bar sit in the app's box on the Home Screen, not fixed.
- The bar rests on the app's bottom edge with the keyboard down, not the short visual viewport.
- e2e: a short-window model (window a status bar shorter than screen.height) for the list,
  the button, the bar, and the opaque-bar shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
On the Home Screen, WebKit blurs nothing above the screen's top: the list
glass under the status bar mixes in the root's background colour, which is
the glass over the backdrop's edge colour. For a photo that colour was the
average of the built-in photo, so with an upload (or any photo whose top
differs) the glass under the status bar turned a flat, darker strip. The
edge colour is now the part of the picture under the screen's top, sampled
from the picture that is on screen (built-in, upload or Unsplash), again
when it loads and when the screen turns.

Settings on a phone dropped its desktop frame shadow, which drew a line
where the page meets the strip under Safari's toolbar; the text fades out
there instead, as the lists do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Phone lists end at the screen's bottom, not a top bar below it (#445)
Some checks failed
CI / server (pull_request) Successful in 53s
CI / rust (pull_request) Successful in 2m58s
CI / web (pull_request) Failing after 43m17s
5e98d82ddb
The list took its full height under the top bar, so it ran past the
screen's bottom by the top bar's height: its scroller's end sat off
screen. It now fills what the top bar leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg merged commit cb62e18adb into dev 2026-10-15 22:39:17 +00:00
kayg deleted branch train/2026-10-16o 2026-10-15 22:39:18 +00:00
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!461
No description provided.