Mockup: note header as floating glass pills, back + current heading (#285) #326

Closed
kayg wants to merge 4 commits from issue/285-sticky-pills into dev
Owner

Closes #285 (mockup round 2). Replaces #300.

kayg found the full-width band strange on the iPhone. This round has no band, just two glass pills floating over the note:

  • Back pill: a round glass pill on the left (phone only; on wider windows the list is already beside the note).
  • Heading capsule: a glass capsule in the centre that hugs the current heading (H2/H3/H4, the deepest wins) or the title. At the very top it's away, since the big title is right there. When the title scrolls under, it grows in with the title in it.
  • Swap: the words turn over in place with a spring, rising on the way down and dropping on the way up. The capsule's width springs to fit the new words, which stay whole and centred until it settles. A heading too long for the room gets its ellipsis at rest. Tapping the capsule goes to the heading. Jumps, key presses and reduced motion swap at once.
  • One material: both pills use the bar's glass token for token, the same as Morph in packages/ui: --glass-float tint, --glass-float-filter blur and saturation, --glass-float-edge, and --shadow-float. Taps between the pills reach the note.
  • No top blur: I left out the optional soft blur at the top edge. The pills read fine on their own over text and photos, and anything wider than the pills would start to look like a band again.

The heading tracker plugin, the H4 support and the seeded notes are the same as in #300. This branch is from current dev, with the round 1 commits on top.

Evidence (screenshots at 320/390/1440, light and dark, over photos and over text, in Chromium and WebKit; frame strips; how the glass compares) is on #285.

Preview (a side page, with the round 1 page backed up): https://preview.calternal.cloud/sticky-header.html#/note/autumn-trip?list=all

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Closes #285 (mockup round 2). Replaces #300. kayg found the full-width band strange on the iPhone. This round has no band, just two glass pills floating over the note: - **Back pill:** a round glass pill on the left (phone only; on wider windows the list is already beside the note). - **Heading capsule:** a glass capsule in the centre that hugs the current heading (H2/H3/H4, the deepest wins) or the title. At the very top it's away, since the big title is right there. When the title scrolls under, it grows in with the title in it. - **Swap:** the words turn over in place with a spring, rising on the way down and dropping on the way up. The capsule's width springs to fit the new words, which stay whole and centred until it settles. A heading too long for the room gets its ellipsis at rest. Tapping the capsule goes to the heading. Jumps, key presses and reduced motion swap at once. - **One material:** both pills use the bar's glass token for token, the same as Morph in `packages/ui`: `--glass-float` tint, `--glass-float-filter` blur and saturation, `--glass-float-edge`, and `--shadow-float`. Taps between the pills reach the note. - **No top blur:** I left out the optional soft blur at the top edge. The pills read fine on their own over text and photos, and anything wider than the pills would start to look like a band again. The heading tracker plugin, the H4 support and the seeded notes are the same as in #300. This branch is from current `dev`, with the round 1 commits on top. Evidence (screenshots at 320/390/1440, light and dark, over photos and over text, in Chromium and WebKit; frame strips; how the glass compares) is on #285. Preview (a side page, with the round 1 page backed up): https://preview.calternal.cloud/sticky-header.html#/note/autumn-trip?list=all 🤖 Generated with [Claude Code](https://claude.com/claude-code) 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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg found the full-width band strange on the phone. The header is now
two pills floating over the note, like the bottom bar:

- a round back pill on the left (phone only);
- a capsule in the middle that hugs the current heading or title. Its
  width springs in place to fit the new words while the line turns over,
  and the words stay whole and centred until it settles (ellipsis only at
  rest, for a heading too long for the capsule).

Both use the bar's glass token for token (--glass-float tint,
--glass-float-filter blur and saturation, --glass-float-edge,
--shadow-float), the same as Morph in packages/ui. The capsule is away
while the big title is in view, and grows in when it scrolls under.
Taps between the pills reach the note. Jumps and key presses still swap
at once, and reduced motion drops the springs.

The header's room grows to 52 px, and the scroll padding follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
mockup: header capsule settles even at its widest; no reveal between two long headings (#285)
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m58s
CI / web (pull_request) Failing after 2m38s
8479c0ab21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Closed (2026-10-16). Replaced by a new mockup round for the phone chrome (top pills + progressive blur, bottom search).

Closed (2026-10-16). Replaced by a new mockup round for the phone chrome (top pills + progressive blur, bottom search).
kayg closed this pull request 2026-10-16 03:57:39 +00:00
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m58s
CI / web (pull_request) Failing after 2m38s

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