Notes Float: app switcher, one pill per app (variant A) #1139

Closed
kayg wants to merge 0 commits from port/notes-float-switcher-a into port/notes-float
Owner

Product port of the one-pill-per-app switcher (kayg 14 Nov 21:50 IST, variant A). Pairs with the mockup PR for review/switcher-a-pills.

  • window/AppSwitch.svelte is rebuilt on the shared Toolbar + Pill (no fork): every app is its own pill, "All apps" (new apps grid glyph in Icon) is the last pill; the open app's pill and a long press also open the list.
  • Whole pills only (round(down, room, slot), at most 3), no edge peek or mask, no padding in the strip: the first/last pill is flush at the ends, no blank slot (the phone's empty slot before the first app is gone). With Notes and Contacts built the capsule is three pills wide (sized to content).
  • The hover divider and list button and its container-query hacks are removed (All apps is a pill now). Desktop WindowDock and phone PhoneFoot both use it.
  • Phone: the capsule is the capsule tier (52 pt, pills 46 pt over the 44 pt hit minimum); profile/search stay 44 pt on the same centre line.
  • Net size: total JS brotli -0.13 KB, CSS brotli -0.3 KB.
Product port of the one-pill-per-app switcher (kayg 14 Nov 21:50 IST, variant A). Pairs with the mockup PR for `review/switcher-a-pills`. - `window/AppSwitch.svelte` is rebuilt on the shared `Toolbar` + `Pill` (no fork): every app is its own pill, "All apps" (new `apps` grid glyph in `Icon`) is the last pill; the open app's pill and a long press also open the list. - Whole pills only (`round(down, room, slot)`, at most 3), no edge peek or mask, no padding in the strip: the first/last pill is flush at the ends, no blank slot (the phone's empty slot before the first app is gone). With Notes and Contacts built the capsule is three pills wide (sized to content). - The hover divider and list button and its container-query hacks are removed (All apps is a pill now). Desktop `WindowDock` and phone `PhoneFoot` both use it. - Phone: the capsule is the capsule tier (52 pt, pills 46 pt over the 44 pt hit minimum); profile/search stay 44 pt on the same centre line. - Net size: total JS brotli -0.13 KB, CSS brotli -0.3 KB.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
web: on a phone the switcher capsule is the capsule tier (52 pt, pills of 46, over the 44 pt hit minimum); specs follow
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
04b7a0291f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Evidence (server for the e2e gates = base 3cb2fd31e, built on dev-01 and dev-02)

Gates (app-switch, app-swipe, notes-float-phone, phone-foot, keys-no-motion, toolbar-slot; --retries=0 --workers=1; script ~/swprod-gate.sh):

  • chromium-1440 27 passed, chromium-390 8 passed (dev-01); webkit-1440 27 passed, webkit-390 8 passed (dev-02), at the last head (phone capsule tier).
  • svelte-check 0 errors (19 warnings, as base); vitest 32 files / 308 tests passed; perf/web.sh --bundle-only --gate clean at the last head. The base itself fails that gate on idle-screens (61.732 > 61.69); this branch is under it.
  • Size vs base: total JS brotli 559.763 → 559.632 KB (−0.13), CSS brotli 60.264 → 59.970 (−0.29). A first, longer grid glyph put press 3 bytes over its ceiling; the glyph is now four short squares.

Real Safari 1440 (macos-01, atomic Mac lock, Safari and safaridriver quit on exit), product vs mockup, sidebar narrowest (product 228 px, mockup 220 px) and 320 px, light and dark. Computed values, identical in all 8 frames, product and mockup: pill 30×30, gap 2, capsule padding 3/3, capsule 100×36, icon 20, 3 whole pills in view, 0 cut, mask none. Product: 3 pills, first pill flush at the left (no blank). Mockup (11 pills) rests on Notes, so its strip is scrolled 64 px: pills before it are scrolled out, not blank.

  • narrowest, light: product mockup
  • narrowest, dark: product mockup
  • 320, light: product mockup
  • 320, dark: product mockup

The product's narrowest sidebar is 228 px and its cell already fits three pills; the two-pill case at 220 px is a mockup-only case.

iPhone Simulator (own sim, iPhone 18 Pro iOS 27.0, deleted afterwards), light and dark, last head: three whole pills, no blank slot before Notes, capsule 52 pt, profile and search 44 pt on the same centre line.

  • product light dark
  • mockup light dark

(The product is a fresh empty vault, hence the plain page; the mockup is the preview slot with sample data.)

Frames, Mac Safari, app switch (click Contacts, then Notes), base vs this branch, ABAB x8, one session, blank page 60 rAF/s (mean 16.7 ms), idle beside each:

base: median worst / max / frames ≥50 ms branch: median worst / max / frames ≥50 ms
idle 24 / 25 / 0 24 / 36 / 0
to Contacts 81.5 / 578 / 10 68.5 / 852 / 12
to Notes 57 / 632 / 7 23.5 / 26 / 0

Medians are equal or better. Both builds have outlier runs of 150–850 ms in the VM (base 578 and 632, branch 852), so the ≥50 ms totals are noise-dominated. The first hitch of about 60–85 ms to Contacts is in both builds (existing arrival cost), not from this PR.

Decisions

  • Phone capsule = capsule tier (--tier-cap 52 pt, pills 46 pt). A 44 pt capsule gives 38 pt pills, which fail the 44 pt hit-minimum specs (tasks-tiers); profile and search stay 44 pt. If kayg prefers one height, the alternative is a 44 pt capsule and dropping the hit minimum for these pills.
  • New apps grid glyph in the shared Icon (the mockup has it).
  • Only 2 apps are built, so the capsule is 3 pills (sized to content); the "fewer pills fit" path is CSS-only and covered in the mockup.
  • Sidebar swipe and keys unchanged (they use lib/app-list; no wrap).

Open risks

  • Safari ran the Nov 13 calternal-s4 server binary (the Mac's only working one), not one built from the base; the Playwright gates use a server built from the base.
  • The bundle gate is a ±1-byte game on tiny chunks: clean at the last head, but it moves with chunk hashing.
## Evidence (server for the e2e gates = base 3cb2fd31e, built on dev-01 and dev-02) **Gates** (app-switch, app-swipe, notes-float-phone, phone-foot, keys-no-motion, toolbar-slot; `--retries=0 --workers=1`; script `~/swprod-gate.sh`): - chromium-1440 27 passed, chromium-390 8 passed (dev-01); webkit-1440 27 passed, webkit-390 8 passed (dev-02), at the last head (phone capsule tier). - svelte-check 0 errors (19 warnings, as base); vitest 32 files / 308 tests passed; `perf/web.sh --bundle-only --gate` clean at the last head. The base itself fails that gate on `idle-screens` (61.732 > 61.69); this branch is under it. - Size vs base: total JS brotli 559.763 → 559.632 KB (−0.13), CSS brotli 60.264 → 59.970 (−0.29). A first, longer grid glyph put `press` 3 bytes over its ceiling; the glyph is now four short squares. **Real Safari 1440 (macos-01, atomic Mac lock, Safari and safaridriver quit on exit), product vs mockup, sidebar narrowest (product 228 px, mockup 220 px) and 320 px, light and dark.** Computed values, identical in all 8 frames, product and mockup: pill 30×30, gap 2, capsule padding 3/3, capsule 100×36, icon 20, 3 whole pills in view, 0 cut, mask none. Product: 3 pills, first pill flush at the left (no blank). Mockup (11 pills) rests on Notes, so its strip is scrolled 64 px: pills before it are scrolled out, not blank. - narrowest, light: product ![](https://git.kayg.org/attachments/2c21b373-d774-449f-9f3d-c448db81d12e) mockup ![](https://git.kayg.org/attachments/3703f350-cb10-42fb-b2f0-b1375478e7ab) - narrowest, dark: product ![](https://git.kayg.org/attachments/de291048-6407-4bc7-ac9d-9de0fdfabea0) mockup ![](https://git.kayg.org/attachments/ef4a7a01-1335-454d-b42c-1f4a389de982) - 320, light: product ![](https://git.kayg.org/attachments/f1f58e85-066f-417d-bb80-66a6dd99bb5d) mockup ![](https://git.kayg.org/attachments/9a07acfc-5032-4365-a83b-2d5b900232fe) - 320, dark: product ![](https://git.kayg.org/attachments/74e0f41f-33ab-4289-b7f7-09c8b59581ed) mockup ![](https://git.kayg.org/attachments/ce182da8-f7ee-4854-87a9-2bb4e67be771) The product's narrowest sidebar is 228 px and its cell already fits three pills; the two-pill case at 220 px is a mockup-only case. **iPhone Simulator (own sim, iPhone 18 Pro iOS 27.0, deleted afterwards), light and dark**, last head: three whole pills, no blank slot before Notes, capsule 52 pt, profile and search 44 pt on the same centre line. - product light ![](https://git.kayg.org/attachments/149b10a6-fcd3-487b-975e-d34a390316ff) dark ![](https://git.kayg.org/attachments/e83810f6-9f5b-4cc1-8daa-c4b9e2277656) - mockup light ![](https://git.kayg.org/attachments/eac76f89-29f4-4c45-bfa4-e15f3b7d7865) dark ![](https://git.kayg.org/attachments/cf8daefa-13cb-4520-b58e-d8f11882ca04) (The product is a fresh empty vault, hence the plain page; the mockup is the preview slot with sample data.) **Frames, Mac Safari, app switch (click Contacts, then Notes), base vs this branch, ABAB x8, one session, blank page 60 rAF/s (mean 16.7 ms), idle beside each:** | | base: median worst / max / frames ≥50 ms | branch: median worst / max / frames ≥50 ms | |---|---|---| | idle | 24 / 25 / 0 | 24 / 36 / 0 | | to Contacts | 81.5 / 578 / 10 | 68.5 / 852 / 12 | | to Notes | 57 / 632 / 7 | 23.5 / 26 / 0 | Medians are equal or better. Both builds have outlier runs of 150–850 ms in the VM (base 578 and 632, branch 852), so the ≥50 ms totals are noise-dominated. The first hitch of about 60–85 ms to Contacts is in both builds (existing arrival cost), not from this PR. ## Decisions - Phone capsule = capsule tier (`--tier-cap` 52 pt, pills 46 pt). A 44 pt capsule gives 38 pt pills, which fail the 44 pt hit-minimum specs (tasks-tiers); profile and search stay 44 pt. If kayg prefers one height, the alternative is a 44 pt capsule and dropping the hit minimum for these pills. - New `apps` grid glyph in the shared `Icon` (the mockup has it). - Only 2 apps are built, so the capsule is 3 pills (sized to content); the "fewer pills fit" path is CSS-only and covered in the mockup. - Sidebar swipe and keys unchanged (they use `lib/app-list`; no wrap). ## Open risks - Safari ran the Nov 13 `calternal-s4` server binary (the Mac's only working one), not one built from the base; the Playwright gates use a server built from the base. - The bundle gate is a ±1-byte game on tiny chunks: clean at the last head, but it moves with chunk hashing.
Author
Owner

Merged into port/notes-float with --no-ff at ba1281c4b by the orchestrator after reviewing the Safari and iPhone shots (whole pills only, All apps last, no blank space). Open for kayg: the phone capsule is 52 pt beside 44 pt profile/search pills (keeps the 44 pt hit minimum). Closing.

Merged into `port/notes-float` with `--no-ff` at `ba1281c4b` by the orchestrator after reviewing the Safari and iPhone shots (whole pills only, All apps last, no blank space). Open for kayg: the phone capsule is 52 pt beside 44 pt profile/search pills (keeps the 44 pt hit minimum). Closing.
kayg closed this pull request 2026-11-14 17:37:19 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

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