Merge train 2026-10-14c: shared bar, safe areas, width, backdrop fixes, mockups #329

Merged
kayg merged 28 commits from train/2026-10-14c into dev 2026-10-14 17:39:11 +00:00
Owner

Merge train c (2026-10-14). It lands:

  • #305 (#286): Width changes only the width.
  • #304 (#293): seamless top and bottom edges in Safari and the installed app.
  • #308 (#290, with #280 #268 and #283 #269): one shared Bar component with mode plugins. Bar buttons answer a single tap on iPhone, the block bar stays put, touch selection works, and the bar rests above the home indicator.
  • #306 (#294): a real photo grid, opacity down to 0 that really applies, and the credit only where the photo is visible.
  • Mockups: #292, #311, #317 (gallery, menu glass; #317 also makes the app's menus translucent glass), #288 (tree lines), #300 (sticky header r1), #301 (search).

Integration fixes, by Claude:

  • The Bar gains a dim action prop, so the scrim marks the page dim (#293). .bar-scrim is now absolute.
  • phone-edges skips only the rows that are really shaded.
  • Phone tests put the keyboard down before using the note tools (#268 rule).

Checks:

  • svelte-check: 0 errors. The mockup builds.
  • phone-edges: 288/288.
  • The width, safe-areas, phone-bars, backdrops, bar-*, touch-select, opacity, info, keyboard, editor, served and shortcuts specs pass on chromium/webkit at 390 and 1440, except 3 failures already on dev (served status, fixed by #310; the shortcuts selection jump, fixed by #299).

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Merge train c (2026-10-14). It lands: - **#305 (#286):** Width changes only the width. - **#304 (#293):** seamless top and bottom edges in Safari and the installed app. - **#308 (#290, with #280 #268 and #283 #269):** one shared Bar component with mode plugins. Bar buttons answer a single tap on iPhone, the block bar stays put, touch selection works, and the bar rests above the home indicator. - **#306 (#294):** a real photo grid, opacity down to 0 that really applies, and the credit only where the photo is visible. - **Mockups:** #292, #311, #317 (gallery, menu glass; #317 also makes the app's menus translucent glass), #288 (tree lines), #300 (sticky header r1), #301 (search). **Integration fixes, by Claude:** - The Bar gains a `dim` action prop, so the scrim marks the page dim (#293). `.bar-scrim` is now absolute. - phone-edges skips only the rows that are really shaded. - Phone tests put the keyboard down before using the note tools (#268 rule). **Checks:** - svelte-check: 0 errors. The mockup builds. - phone-edges: 288/288. - The width, safe-areas, phone-bars, backdrops, bar-*, touch-select, opacity, info, keyboard, editor, served and shortcuts specs pass on chromium/webkit at 390 and 1440, except 3 failures already on dev (served status, fixed by #310; the shortcuts selection jump, fixed by #299). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg added 28 commits 2026-10-14 17:39:04 +00:00
Phone: text bar while typing; the bar never takes focus; sheets fit above the keyboard (#268)
Some checks failed
CI / server (pull_request) Successful in 22s
CI / web (pull_request) Failing after 24s
CI / rust (pull_request) Successful in 1m53s
4c15a581b2
- Caret in the text on a phone: the bar is the text bar. The note tools
  (Log, Insert, Style, Info, Source) show when the keyboard is down, or
  blocks are selected.
- Nothing in the bar or its sheets takes focus from the text: presses keep
  focus (pointerdown and mousedown), and actions only refocus the editor if
  it really lost focus. Focusing an already focused editor made iOS move
  its keyboard.
- B, I, S, code and highlight with just a caret start the mark right there.
- Sheets are never taller than what you can see above the bar
  (--sheet-room from the visual viewport).
- e2e/bar-focus: with a faked keyboard, every text-bar button and the
  Style sheet's controls keep focus in the text; the sheet fits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
e2e: on a phone, the note tools are there with the keyboard down (#268)
Some checks failed
CI / web (pull_request) Failing after 36s
CI / server (pull_request) Successful in 53s
CI / rust (pull_request) Successful in 1m33s
541d5bdacd
editor.spec and day.spec put the keyboard down before using the note tools
at phone width; keyboardDown lives in viewport.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
One bar for every mode: shared Bar, registered modes, one look (#269)
Some checks failed
CI / server (pull_request) Successful in 23s
CI / web (pull_request) Failing after 24s
CI / rust (pull_request) Successful in 1m44s
f42f3c59d4
- @calternal/ui/bar: Bar (the capsule frame: Morph with its glass, halo
  and spring, the keep-focus rule from #268, the phone scrim), barModes
  (each mode a registered plugin: role, label, component) and pick.ts
  (#268's rule for which mode shows, unit tested).
- styles/bar.css: the rows, pills, tabs, toast and question styles, once,
  for the app and the mockup (the mockup's pill tabs on a phone).
- The app's modes are small files in components/bar (tabs, note tools, text
  bar, block bar, sheets, toast, ask); BottomBar only picks and hands them a
  context. The mockup's bar is the same Bar with the same styles.
- On a phone the question's answer no longer takes focus (#268).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Mockup: tree lines comparison page, six looks with branch hover (#247)
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m35s
7f25264d72
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Stack: the picked card comes to the front; ⋯ toggles its menu (#245)
Some checks failed
CI / web (pull_request) Failing after 19s
CI / server (pull_request) Successful in 20s
CI / rust (pull_request) Successful in 1m32s
f2cdbf7f25
- Gallery stack: a tap, click or arrow pick brings that card to the front,
  straight, with a springy lift (scale 1.06, deeper shadow), and it stays
  there after the pointer leaves. A mouse still gets the original's hover
  push; a tap only brings the card forward, so nothing slides off a
  phone's line. Round 3's motion is unchanged.
- Shared context menu (packages/ui): a tap on the ⋯ a menu was opened
  from closes it. nextMenu() decides open or close, and the menu's
  outside-press handler leaves its own trigger alone, so the click that
  follows can't reopen it and replay the opening. The web app and the
  mockup both open menus through it. Browser test in the primitives
  harness (fails without the fix, passes with it, Chromium and WebKit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Mockup: search surface, results left, preview right, filters bottom-left (#275)
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 23s
CI / rust (pull_request) Successful in 1m39s
5d24fc66b9
⌘K (or the search button by "Calternal") opens a large glass panel over the app: the input
across the top, kind chips under it, one ranked list on the left with a progressive blur under
the input and another under the filter buttons, and the selected result's preview on the right.
On a phone it is a full-screen sheet with results only; a long press shows the preview popover.

Search is built the plugin way: each kind (notes, journal, photos, files, tags) is a provider
that finds its results and brings its own preview. Previews: a note scrolled to the match with
every hit marked and ⌘G / ⇧⌘G to step through them, a day's log with that day's photos, a photo
with its caption on a soft blur, a PDF's first page, a tag's items.

Enter opens, ⌘Enter puts a link into the open note, Esc closes. Arrowing swaps the preview at
once and nothing the keyboard does animates; a click springs the panel in. Every state is a
link (?find=1&q=…&in=…&when=…&tag=…&sort=…&trash=1). Search-only fixtures (older #area/ days,
long project notes, seven photos, five PDFs) live in src/search/corpus.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
The solid "‹ All notes" band is gone. A note now has a sticky header over the
bottom bar's see-through glass: a back chevron on the left (phone) and, in the
middle, the last heading that has scrolled up under it (H2, H3 or H4, the
deepest wins), or the note's title once the big title has gone under. At the
very top it is only the chevron on clear air; the glass fades in as the title
slides under (iOS large-title collapse). Section changes turn the line over in
place with a short spring, rising on the way down and dropping on the way up;
jumps, key presses and reduced motion swap at once. A long heading ends in an
ellipsis; tapping the line goes to that heading.

- lib/noteheader: a tiny header-source plugin registry plus the heading
  tracker (one IntersectionObserver against the header's bottom edge, no
  layout reads while scrolling).
- The note runs under the header; the page keeps room at the top and a
  scroll padding so jumps stop below it.
- The phone's note screen drops its own backdrop-filter: it was the header's
  backdrop root and kept the glass from blurring the note under it.
- Mockup pill moves to the top right on phones, clear of the header line.
- Markdown H4 in the mockup; Autumn trip gets H2/H3/H4 sections, and the
  huge data set gets a long note for the scroll test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
mockup: story links for the sticky header (#285)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / web (pull_request) Failing after 24s
CI / rust (pull_request) Successful in 1m44s
6d155613c7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Width changes only the card's width: a short note's card fills the pane (#286)
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Failing after 1m2s
84d604f93d
Outside Focus the card hugged its text, so Narrow wrapped taller and Wide
shorter. The last card now reaches the pane's bottom (same margin as at the
top), and grows only when the note is longer. Phones are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
- A block selection stays one until it's put down (✓, Esc, a tap into the
  text): a later editor update (focus moving to the bar or away, a sheet
  closing, a sync) no longer turns one selected line into selected words
  and then nothing, which swapped the block bar for the tabs.
- Every bar mode change is logged with its reason in tests (__modeLog).
- One tap fires every bar and sheet control: keep-focus no longer cancels
  a touch's pointerdown (iOS dropped the click; only a long press worked);
  it cancels the touch's mousedown, which keeps focus.
- By touch, a swipe across a block (either way) or a tap on its edge or
  bullet selects it; a tap on the words types (blocks/touch.ts).
- The phone bar rests at max(safe area, 8px) + 6px above the bottom of
  what you can see, corrected from the visual viewport, so it no longer
  floats with a page box that ends above the screen (installed app); a
  view shorter without anything focused is never taken for a keyboard.
- Tests: bar-stays (each tap target), bar-taps (every control by real
  touch, WebKit and Chromium), touch-select, bar-rest (320/375/390/430,
  browser and standalone shapes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Phone: the dim behind a sheet reaches Safari's bars and the home indicator (#293)
Some checks failed
CI / server (pull_request) Successful in 23s
CI / web (pull_request) Failing after 23s
CI / rust (pull_request) Successful in 1m50s
1b297e0c7f
On a phone the dim behind a sheet (and the palette) was a `position: fixed`
layer. Safari 26 tints its status bar from a fixed layer at the screen edge
(the dark slab at the top), and it never draws fixed layers under its
floating toolbar, so the strip there stayed the undimmed page colour (the
band at the bottom).

- The dim is now an ordinary layer in the page (`position: absolute`), so
  Safari never samples it. `use:dimsPage` (lib/page-dim.ts) marks the root
  with `data-dim` while it is up.
- With `data-dim`, the page's edge colour (`--edge-shown`: html/body
  background, which Safari fills its bars with, and `theme-color`) is the
  edge colour with the same dim mixed in (`--scrim-ink`, `--scrim-amount`).
- The backdrop dims the strip below the app (what shows under Safari's
  toolbar) by the same amount.
- `theme-color` is always written as plain rgb(), since a mixed colour
  computes to color(srgb ...).

New e2e/phone-edges.spec.ts: 320/375/390/430, browser (toolbar faked) and
installed app, light and dark, sky/photo/plain, with nothing open, a sheet and
the palette. It reads the real top and bottom pixel rows against the root
colour, checks for bands, and checks that no fixed layer with a colour spans
an edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Paper: read the pane's height only for cards, so Full and phones do no extra layout reads (#286)
Some checks failed
CI / web (pull_request) Failing after 25s
CI / server (pull_request) Successful in 24s
CI / rust (pull_request) Successful in 1m32s
0e04cb2eba
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
# Conflicts:
#	apps/mockup/README.md
Backdrop picker grid, opacity down to 0 that really shows, credit only where the photo shows; paged Style sheet mockup (#294)
Some checks failed
CI / server (pull_request) Successful in 22s
CI / web (pull_request) Failing after 22s
CI / rust (pull_request) Successful in 1m35s
f219cf65bd
- Photo grid: real 2/3-column grid, tile height from width (iOS collapsed aspect-ratio)
- Opacity slider 0-100; on a phone the note screen no longer paints a second layer of paper
- Corner credit only on tablet/desktop while the photo shows (card or see-through page)
- Mockup: Style sheet as swipeable Page and Backdrop pages
- Tests: surface alpha and pixel follow the slider (full, narrow, wide, focus on/off), grid, credit rule

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Phone bar: measure its spot mid-spring; never below the box that clips it (#290)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / web (pull_request) Failing after 27s
CI / rust (pull_request) Successful in 1m48s
093bb867ff
The bar's natural spot is read from where it's drawn less the shift it's
drawn with, so a keyboard change landing mid-spring is measured right; and
the rest position is never below the box that clips the bar (a page box
ending above the screen is #293's to size). keyboard.spec checks the
absolute rest spot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Caption clear of the toolbar, a frosted menu, no list under the bar (#245)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / web (pull_request) Failing after 25s
CI / rust (pull_request) Successful in 1m45s
26d1aac8db
- Gallery caption row: the card toolbar gets its own slot at the row's
  end, so the caption truncates before it and the count sits beside the
  caption instead of behind a button (narrow lines start the caption at
  the left; wide ones keep it centred). In Grid the toolbar goes back to
  the corner.
- Shared context menu: a frosted, nearly opaque surface (97% paper light,
  96% dark) with a soft sheen and the glass edge. No backdrop blur under
  it: it added nothing visible and let photos show through in WebKit.
- Phone stack (app and mockup): overflow clip instead of hidden. A hidden
  box can still be scrolled by focus, which slid the stack up 48 px and
  showed the list screen's lower rows under the bottom bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
# Conflicts:
#	apps/web/src/components/BottomBar.svelte
Menus are the bar's glass again: blur, saturation, a dense tint (#245)
Some checks failed
CI / server (pull_request) Successful in 20s
CI / rust (pull_request) Successful in 2m10s
CI / web (pull_request) Failing after 16s
7dbfa354e9
kayg wants menus translucent and blurred, one material with the bar.
The shared ContextMenu now uses the bar's glass tokens (--glass-float-filter,
--glass-float-edge, --shadow-float) with a new --glass-float-dense tint
(76% light, 78% dark; 97% under reduced transparency) for surfaces made of
lines of words. The bar itself is untouched.

Nothing above the menu starts a backdrop root (checked in Chromium and
WebKit: no filter, transform, opacity or will-change on any ancestor).
The headless WebKit used here draws no backdrop-filter at all, even on a
bare test page, which is why its screenshots showed the photo sharp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
The bar now rests just above the home indicator (#290) and the Style sheet
is taller (#294), so their soft shadow can reach the sampled bottom rows at
any width. The very bottom (under Safari's toolbar) is still checked whenever
it is clear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
e2e: phone tests put the keyboard down before the note tools; tap tiles in view (train 2026-10-14c)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / rust (pull_request) Failing after 2m2s
CI / web (pull_request) Failing after 3m9s
2ea759c4f8
At phone width a caret in the text shows the text bar (#268), so the note
tools (Style, Note info) aren't there: backdrops, opacity and info clicked
the text and then waited for Style or Note info forever (the button they
found was in the tools layer fading out under the text bar, never visible
or stable). They now put the keyboard down first (keyboardDown, a no-op on
wide screens).

bar-taps: the Style sheet's photos sit in a scrolling window; the
two below its fold were tapped where they're clipped. Each control is
scrolled into view before its tap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg merged commit 19565816ad into dev 2026-10-14 17:39:11 +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!329
No description provided.