Selector label always shows; Home Screen hint in the page with steps; tooltips follow (#156) #211

Closed
kayg wants to merge 0 commits from issue/156-selector-label into dev
Owner

Closes #156 (plus the two follow-ups kayg sent).

Theme selector label. I could not reproduce the empty capsule in WebKit on Linux at 320/375/390, light and dark, with every option chosen: the label is in the DOM, its colour is 8.9:1 on the capsule, and elementFromPoint hits the label's button. So the cause on the iPhone is a paint problem that desktop WebKit does not show (the capsule is a separate layer drawn on top of the label; only the chosen label sits under it, which matches the screenshot). The fix removes every way that can happen: the capsule is now z-index: -1 inside the track's own stacking context and no longer promoted with will-change, and the weight transition (a variable-font animation on exactly the chosen label) is gone. Real bugs I did find and fixed: at 320 the group scrolled sideways and "Dark" hung off the edge; options now tighten (padding and a hair smaller words) so all four fit. If the label is still blank on the phone after this, the next step is a Web Inspector session on the device.

Home Screen hint. It was a toast over the Writing section whose How went to the page you were already on. It is now InstallHint.svelte, a card in the page flow (top of Settings, top of the phone Home list), so it never covers anything. How unfolds the steps inside the card (spring height, no motion from the keyboard); × closes it for good. Share → Add to Home Screen for iOS Safari, an Install button where the browser offers it.

Install card (Settings → This device). The Install and × buttons used Settings' scoped .btn, which AppCard never received. Install is now a pill, × a 30 px circle, both centred on the card with 8 px between.

Tooltips. Centred on the trigger and inside the viewport at 320 and 1440 (surveyed every trigger on Settings and Home: all centred). They were measured once, so a trigger that moved while the tooltip was open (the bar morphing) left it off to one side; the tooltip now follows the trigger each frame while it is open.

Tests: selector.spec.ts (labels on a phone, 4 widths, light and dark), apps/web/e2e/selector-fit.spec.ts, apps/web/e2e/tooltips.spec.ts. The selector spec passed in WebKit and Chromium on this machine except load timeouts; the two new web specs could not run locally (ports 4455/4173 were in use by another agent's e2e), so I checked the same assertions with scripts against a local build; CI will run them.

Touches Settings.svelte (+2 lines: import and <InstallHint />) and PhoneStack.svelte (+3), both small hunks.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Closes #156 (plus the two follow-ups kayg sent). **Theme selector label.** I could not reproduce the empty capsule in WebKit on Linux at 320/375/390, light and dark, with every option chosen: the label is in the DOM, its colour is 8.9:1 on the capsule, and `elementFromPoint` hits the label's button. So the cause on the iPhone is a paint problem that desktop WebKit does not show (the capsule is a separate layer drawn on top of the label; only the chosen label sits under it, which matches the screenshot). The fix removes every way that can happen: the capsule is now `z-index: -1` inside the track's own stacking context and no longer promoted with `will-change`, and the weight transition (a variable-font animation on exactly the chosen label) is gone. Real bugs I did find and fixed: at 320 the group scrolled sideways and "Dark" hung off the edge; options now tighten (padding and a hair smaller words) so all four fit. If the label is still blank on the phone after this, the next step is a Web Inspector session on the device. **Home Screen hint.** It was a toast over the Writing section whose How went to the page you were already on. It is now `InstallHint.svelte`, a card in the page flow (top of Settings, top of the phone Home list), so it never covers anything. How unfolds the steps inside the card (spring height, no motion from the keyboard); × closes it for good. Share → Add to Home Screen for iOS Safari, an Install button where the browser offers it. **Install card (Settings → This device).** The Install and × buttons used Settings' scoped `.btn`, which AppCard never received. Install is now a pill, × a 30 px circle, both centred on the card with 8 px between. **Tooltips.** Centred on the trigger and inside the viewport at 320 and 1440 (surveyed every trigger on Settings and Home: all centred). They were measured once, so a trigger that moved while the tooltip was open (the bar morphing) left it off to one side; the tooltip now follows the trigger each frame while it is open. Tests: `selector.spec.ts` (labels on a phone, 4 widths, light and dark), `apps/web/e2e/selector-fit.spec.ts`, `apps/web/e2e/tooltips.spec.ts`. The selector spec passed in WebKit and Chromium on this machine except load timeouts; the two new web specs could not run locally (ports 4455/4173 were in use by another agent's e2e), so I checked the same assertions with scripts against a local build; CI will run them. Touches Settings.svelte (+2 lines: import and `<InstallHint />`) and PhoneStack.svelte (+3), both small hunks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Selector label always shows; Home Screen hint sits in the page and opens its steps; tooltips follow; install card buttons
Some checks failed
CI / web (pull_request) Failing after 4m27s
CI / rust (pull_request) Failing after 33m32s
53f8aa1468
- Selector: capsule under every label by z-index -1 (no will-change), no weight transition,
  tighter padding and font on narrow phones so 'By time of day' fits at 320 without scrolling.
- InstallHint: an in-page card (never over content) whose How unfolds the steps in place.
- Tooltips stay centred on a trigger that moves while they are open.
- AppCard: Install is a pill, the x is centred beside it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Review, from the screenshots I checked myself:

  • How unfolds the steps in place (390 strip).
  • The Install card has a pill and a centred ×.
  • The selector fits at 320.

After merging dev, svelte-check reports 0 errors. Merging, because it fixes the dead How button and the overflow.

Follow-ups, sent back to the agent:

  • the hint card's top edge is clipped at the very top of Settings on a phone;
  • step 1 is cut off with an ellipsis ('If you don't see it, it's under ···');
  • the selected capsule is cramped against its neighbours at 320–390;
  • Install shows twice, once in the hint and once in This device. Keep one place.
Review, from the screenshots I checked myself: - **How** unfolds the steps in place (390 strip). - **The Install card** has a pill and a centred ×. - **The selector** fits at 320. After merging dev, svelte-check reports 0 errors. Merging, because it fixes the dead How button and the overflow. **Follow-ups, sent back to the agent:** - the hint card's top edge is clipped at the very top of Settings on a phone; - step 1 is cut off with an ellipsis ('If you don't see it, it's under ···'); - the selected capsule is cramped against its neighbours at 320–390; - Install shows twice, once in the hint and once in This device. Keep one place.
kayg closed this pull request 2026-10-14 08:46:47 +00:00
Some checks failed
CI / web (pull_request) Failing after 4m27s
CI / rust (pull_request) Failing after 33m32s

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