Mockup: app switcher shows 3 apps + hover list button (kayg 11-11) #1075

Open
opened 2026-11-11 12:32:21 +00:00 by kayg · 6 comments
Owner

kayg 11-11 17:44 IST, about the app switcher at the bottom of the Float sidebar:

can we go back to the design where there were three items already visible instead of the dots. clicking on the blank space should open the list view but it should already be possible to horizontally scroll and switch apps in that 3 app app switcher area. maybe even better add a hover action for the 3 app app switcher to slightly expand to include a list icon with a divider so it becomes obvious that pressing that button switches this thing to a list.

Branch feat/switcher-three (off review/calendar-2), preview slot switcher (https://preview.calternal.cloud/switcher/). Mockup only, no merge.

Started from: f6de0ae0d (first app-window cut: one Toolbar pill of icons for the three most recent apps), visuals only; the pinned-app order and rules of the dots (lib/pinned-apps, AS1) stay.

kayg 11-11 17:44 IST, about the app switcher at the bottom of the Float sidebar: > can we go back to the design where there were three items already visible instead of the dots. clicking on the blank space should open the list view but it should already be possible to horizontally scroll and switch apps in that 3 app app switcher area. maybe even better add a hover action for the 3 app app switcher to slightly expand to include a list icon with a divider so it becomes obvious that pressing that button switches this thing to a list. Branch `feat/switcher-three` (off `review/calendar-2`), preview slot `switcher` (https://preview.calternal.cloud/switcher/). Mockup only, no merge. Started from: `f6de0ae0d` (first app-window cut: one Toolbar pill of icons for the three most recent apps), visuals only; the pinned-app order and rules of the dots (`lib/pinned-apps`, AS1) stay.
Author
Owner

Switcher: three apps + hover list button

Branch feat/switcher-three, head 036e9ccf1, based on the latest origin/review/calendar-2 (d73a95938). Slot: https://preview.calternal.cloud/switcher/

Started from: f6de0ae0d (the first app-window cut: one Toolbar pill of icons, bar-icon size). The pinned order and rules of the dots (lib/pinned-apps, AS1) are kept. DotsSwitch is replaced by AppSwitch.svelte.

What it does

  1. Rest: three icons in one 36 px pill (100 px wide), the open app centred and tinted, neighbours either side, the same bar-icon size as the Search pill (spec pins it).
  2. Switching: the icons are one CSS scroll-snap strip (x mandatory, snap-align: center). A trackpad swipe, shift+wheel or touch drag slides through the apps; the app it lands on opens. One passive scroll listener only arms a 110 ms timer, so nothing is measured while it moves. Tapping a neighbour goes there. Code-made scrolls never count as landings.
  3. List: a click on the blank space of the pill, or on the open app's own icon, opens the existing All Apps menu. Touch also gets a long press (520 ms).
  4. Hover (mouse): the pill springs 42 px wider to the right (the icons stay put; 250 ms spring, 150 ms back, 30 ms leave delay) and shows a 1 px divider and a list icon. Pressing it opens All Apps. Only the pill's own width moves; its contents are laid out once and clipped.
  5. Touch: no hover, so the divider and list icon are always shown on the phone (and on any hover: none device); they fit (170 px pill at 390). Blank-space tap and long press work too.
  6. Narrow sidebars (decision): under ~250 px of sidebar the cell has no room for the wider pill, so the hover keeps the rest width and leaves the list button out (it never grows over Search). The blank-space click still opens the list.
  7. Keyboard: the strip is one tab stop; Left/Right/Home/End move between apps and scroll them to the middle without switching; Enter or Space switches (on the open app: the list); the list button is the next tab stop and shows itself on focus-visible.

Gates (exact)

bunx playwright test tests/app-switch.spec.ts tests/look-pins.spec.ts tests/window-layout.spec.ts -g "switch|bottom row|swip|phone|fits at every" --project=chromium --project=webkit on dev-02: 68 passed. New specs: three apps in view and centred, bar-icon size and 36 px, scroll to switch (snap + one whole icon), blank-space click, hover reveals the list icon (width, icons stay, clear of Search), 9 widths, 220 px sidebar, keyboard. (Chromium here is aarch64; the pixel/contrast gates still belong to the x86 train.)

Before / after against calendar-2 (d73a95938), computed values

Probe of every element on the page, Chromium, 1440 / 800 / 390, light and dark: elements outside the footer compared: 916 / 915 (1440), 875 (800), 322 (390): 0 changed (font family/size/weight, line-height, letter-spacing, paddings, gap, radius, width, height, x, y).

sidebar footer, 1440 before (dots) after
dock box x5 y839 320x44 x5 y839 320x44
avatar x13 y847 36x36 x13 y847 36x36
middle cell x55 y847 220x36 x55 y847 220x36
switcher dots viewport 72x36 at x129 pill 100x36 at x115 (r 999)
search x281 y847 36x36 x281 y847 36x36
phone footer, 390 before after
avatar pill x16 w64 h44 x16 w64 h44
switcher pill x140 w110 h44 x110 w170 h44 (rest + divider + list button)
search x330 w44 h44 x330 w44 h44

Real Safari (macOS-01), the sidebar at 1440: hover pill 142x36 (rest 100x36).

Frames (Mac VM Safari, 60 Hz display, rAF deltas, idle baseline next to each run)

Caveat: #260 had no "over" notice when I ran these (last J516/J461c posts ~13:50 UTC). The VM showed load ~1 and no bench process, but treat these as provisional, and rerun if a window overlapped.

gesture worst frame (ms), 4 runs frames >= 50 ms
idle 21 25 22 23 0
hover expand 20 22 24 21 0
scroll strip (3 more runs after the first) 22 34 23 0
scroll strip, first run 145 2 (this run also switched app: see below)
tap an app (calendar-2 dots, ABAB x3) 101 99 60 89 / 111 108 108 90 / 139 147 103 106 1-5
tap an app (new icons, ABAB x3) 101 58 108 57 / 101 58 108 57 / up to 143 2-5

The hover expand sits at the idle floor. The strip's own scrolling is clean. A ~100 ms hitch happens when an app actually switches (route change, sidebar slide, card crossfade); it is the same on calendar-2 with the dots (60-147 ms there, 57-143 ms here), so this change adds nothing, but it is a finding for the app-switch path (a openApp frame cost to hunt). The display runs at 60 Hz, so the 8.3 ms target cannot be read here.

Shots

Attached below: Safari 1440 light and dark (rest, hover, keyboard focus, full window), iPhone 18 Pro simulator (own sim, iOS 27, deleted after) light and dark at 402 pt.

Notes

  • Dark scroll-to-switch: in one real-Safari run the first wheel did not land (after a reload); light switched. The Playwright spec switches reliably in Chromium and WebKit. Worth a look on a real trackpad.
  • One webkit spec (the sidebar swipe snap-back, untouched code) failed once in the first run and passed in the next 68-test run: a flake, not from this change.

light-rest-dock

light-rest-dock

light-hover-dock

light-hover-dock

dark-rest-dock

dark-rest-dock

dark-hover-dock

dark-hover-dock

light-keyboard-focus-dock

light-keyboard-focus-dock

dark-keyboard-focus-dock

dark-keyboard-focus-dock

light-hover-full

light-hover-full

dark-hover-full

dark-hover-full

phone-light

phone-light

phone-dark

phone-dark

## Switcher: three apps + hover list button **Branch** `feat/switcher-three`, head `036e9ccf1`, based on the latest `origin/review/calendar-2` (`d73a95938`). **Slot:** https://preview.calternal.cloud/switcher/ **Started from:** `f6de0ae0d` (the first app-window cut: one Toolbar pill of icons, bar-icon size). The pinned order and rules of the dots (`lib/pinned-apps`, AS1) are kept. `DotsSwitch` is replaced by `AppSwitch.svelte`. ### What it does 1. **Rest:** three icons in one 36 px pill (100 px wide), the open app centred and tinted, neighbours either side, the same bar-icon size as the Search pill (spec pins it). 2. **Switching:** the icons are one CSS scroll-snap strip (`x mandatory`, `snap-align: center`). A trackpad swipe, shift+wheel or touch drag slides through the apps; the app it lands on opens. One passive `scroll` listener only arms a 110 ms timer, so nothing is measured while it moves. Tapping a neighbour goes there. Code-made scrolls never count as landings. 3. **List:** a click on the blank space of the pill, or on the open app's own icon, opens the existing All Apps menu. Touch also gets a long press (520 ms). 4. **Hover (mouse):** the pill springs 42 px wider to the right (the icons stay put; 250 ms spring, 150 ms back, 30 ms leave delay) and shows a 1 px divider and a list icon. Pressing it opens All Apps. Only the pill's own width moves; its contents are laid out once and clipped. 5. **Touch:** no hover, so the divider and list icon are **always shown** on the phone (and on any `hover: none` device); they fit (170 px pill at 390). Blank-space tap and long press work too. 6. **Narrow sidebars (decision):** under ~250 px of sidebar the cell has no room for the wider pill, so the hover keeps the rest width and leaves the list button out (it never grows over Search). The blank-space click still opens the list. 7. **Keyboard:** the strip is one tab stop; Left/Right/Home/End move between apps and scroll them to the middle without switching; Enter or Space switches (on the open app: the list); the list button is the next tab stop and shows itself on focus-visible. ### Gates (exact) `bunx playwright test tests/app-switch.spec.ts tests/look-pins.spec.ts tests/window-layout.spec.ts -g "switch|bottom row|swip|phone|fits at every" --project=chromium --project=webkit` on dev-02: **68 passed**. New specs: three apps in view and centred, bar-icon size and 36 px, scroll to switch (snap + one whole icon), blank-space click, hover reveals the list icon (width, icons stay, clear of Search), 9 widths, 220 px sidebar, keyboard. (Chromium here is aarch64; the pixel/contrast gates still belong to the x86 train.) ### Before / after against calendar-2 (`d73a95938`), computed values Probe of every element on the page, Chromium, 1440 / 800 / 390, light and dark: **elements outside the footer compared: 916 / 915 (1440), 875 (800), 322 (390): 0 changed** (font family/size/weight, line-height, letter-spacing, paddings, gap, radius, width, height, x, y). | sidebar footer, 1440 | before (dots) | after | |---|---|---| | dock box | x5 y839 320x44 | x5 y839 320x44 | | avatar | x13 y847 36x36 | x13 y847 36x36 | | middle cell | x55 y847 220x36 | x55 y847 220x36 | | switcher | dots viewport 72x36 at x129 | pill 100x36 at x115 (r 999) | | search | x281 y847 36x36 | x281 y847 36x36 | | phone footer, 390 | before | after | |---|---|---| | avatar pill | x16 w64 h44 | x16 w64 h44 | | switcher pill | x140 w110 h44 | x110 w170 h44 (rest + divider + list button) | | search | x330 w44 h44 | x330 w44 h44 | Real Safari (macOS-01), the sidebar at 1440: hover pill 142x36 (rest 100x36). ### Frames (Mac VM Safari, 60 Hz display, rAF deltas, idle baseline next to each run) **Caveat: #260 had no "over" notice when I ran these (last J516/J461c posts ~13:50 UTC). The VM showed load ~1 and no bench process, but treat these as provisional, and rerun if a window overlapped.** | gesture | worst frame (ms), 4 runs | frames >= 50 ms | |---|---|---| | idle | 21 25 22 23 | 0 | | **hover expand** | **20 22 24 21** | **0** | | scroll strip (3 more runs after the first) | 22 34 23 | 0 | | scroll strip, first run | 145 | 2 (this run also switched app: see below) | | tap an app (calendar-2 dots, ABAB x3) | 101 99 60 89 / 111 108 108 90 / 139 147 103 106 | 1-5 | | tap an app (new icons, ABAB x3) | 101 58 108 57 / 101 58 108 57 / up to 143 | 2-5 | The hover expand sits at the idle floor. The strip's own scrolling is clean. **A ~100 ms hitch happens when an app actually switches (route change, sidebar slide, card crossfade); it is the same on calendar-2 with the dots (60-147 ms there, 57-143 ms here), so this change adds nothing, but it is a finding for the app-switch path** (a `openApp` frame cost to hunt). The display runs at 60 Hz, so the 8.3 ms target cannot be read here. ### Shots Attached below: Safari 1440 light and dark (rest, hover, keyboard focus, full window), iPhone 18 Pro simulator (own sim, iOS 27, deleted after) light and dark at 402 pt. ### Notes - Dark scroll-to-switch: in one real-Safari run the first wheel did not land (after a reload); light switched. The Playwright spec switches reliably in Chromium and WebKit. Worth a look on a real trackpad. - One webkit spec (the sidebar swipe snap-back, untouched code) failed once in the first run and passed in the next 68-test run: a flake, not from this change. **light-rest-dock** ![light-rest-dock](https://git.kayg.org/attachments/9abcf46e-398d-46d1-9aaf-5bd3823c3cdb) **light-hover-dock** ![light-hover-dock](https://git.kayg.org/attachments/218ba217-4d5a-47f5-9034-4d40d4f675a9) **dark-rest-dock** ![dark-rest-dock](https://git.kayg.org/attachments/37e215c2-4d30-4bb5-a786-dfc49be069f3) **dark-hover-dock** ![dark-hover-dock](https://git.kayg.org/attachments/4e43e880-0bac-4145-b9a4-31d55035829d) **light-keyboard-focus-dock** ![light-keyboard-focus-dock](https://git.kayg.org/attachments/d447e44f-f0b3-4fe6-9eb3-6a0e4222f43d) **dark-keyboard-focus-dock** ![dark-keyboard-focus-dock](https://git.kayg.org/attachments/c92c4cf7-4333-4436-9519-ba6e4e8fc0a9) **light-hover-full** ![light-hover-full](https://git.kayg.org/attachments/5fa69239-0e72-4226-ba03-cb71ed4e0bc9) **dark-hover-full** ![dark-hover-full](https://git.kayg.org/attachments/6077bf52-55b1-4d28-8bf9-ed1f049ae1a1) **phone-light** ![phone-light](https://git.kayg.org/attachments/7afd4efd-d9e0-446d-aade-85758bf98886) **phone-dark** ![phone-dark](https://git.kayg.org/attachments/3022044e-7fbb-459b-af8c-90c05ad274dd)
Author
Owner

Correction to the frame table: the "tap an app, new icons" row should read: run A 137 102 143 101, run B 101 58 108 57 (the other ABAB round did not record). Calendar-2 dots: 101 99 60 89, 111 108 108 90, 139 147 103 106. Both distributions overlap (about 57-147 ms), so the conclusion stands: no change from this PR; the hitch is the existing app-switch path.

Correction to the frame table: the "tap an app, new icons" row should read: run A 137 102 143 101, run B 101 58 108 57 (the other ABAB round did not record). Calendar-2 dots: 101 99 60 89, 111 108 108 90, 139 147 103 106. Both distributions overlap (about 57-147 ms), so the conclusion stands: no change from this PR; the hitch is the existing app-switch path.
Author
Owner

Round 2 (kayg reviewed the slot 11-11 ~20:08 IST)

  1. Remove the pinning mechanism entirely. "at rest i only see home in the pill? why aren't all apps there automatically? please remove the pinning mechanism and show all apps in the horizontal scroll." Every app is in the strip, in the app list's order.
  2. "This state should not be possible" (Home centred, an EMPTY slot on its left, a lightning icon on its right): the pill must always show three apps, the current one centred. The strip wraps around (circular: the first app's left neighbour is the last). Keep scroll-snap and the one passive listener; cheap loop (the list rendered 3x, silently re-centred at the ends). Also: what is the lightning icon, and does it belong in the list?
  3. "The app switcher looks different in different apps." Every app renders the SAME footer component (Tasks/PaneFrame and any app with its own shell still show the old one). Find every place the footer/switcher is rendered, use the one AppSwitch, delete the leftovers.
  4. Keep the rest (hover list button, blank-space click, keyboard, specs). Then real Safari + iPhone sim across Notes, Tasks, Mail, Home, Contacts, Files; redeploy switcher.
## Round 2 (kayg reviewed the slot 11-11 ~20:08 IST) 1. **Remove the pinning mechanism entirely.** "at rest i only see home in the pill? why aren't all apps there automatically? please remove the pinning mechanism and show all apps in the horizontal scroll." Every app is in the strip, in the app list's order. 2. **"This state should not be possible"** (Home centred, an EMPTY slot on its left, a lightning icon on its right): the pill must always show three apps, the current one centred. The strip wraps around (circular: the first app's left neighbour is the last). Keep scroll-snap and the one passive listener; cheap loop (the list rendered 3x, silently re-centred at the ends). Also: what is the lightning icon, and does it belong in the list? 3. **"The app switcher looks different in different apps."** Every app renders the SAME footer component (Tasks/PaneFrame and any app with its own shell still show the old one). Find every place the footer/switcher is rendered, use the one AppSwitch, delete the leftovers. 4. Keep the rest (hover list button, blank-space click, keyboard, specs). Then real Safari + iPhone sim across Notes, Tasks, Mail, Home, Contacts, Files; redeploy `switcher`.
Author
Owner

Round 2 result (kayg 11-11 ~20:08 IST): head 39d7d5b71, deployed build 0bd8198f (the last change after it is a spec only)

Slot: https://preview.calternal.cloud/switcher/

1. Pinning removed

lib/pinned-apps.svelte.ts is deleted; lib/app-list.ts replaces it: Home, then every app in the app table's order (Calendar, Tasks, Notes, Contacts, Mail, Money, AI, Automations, Files; Settings is the account menu's, Photos is not built). No pins, no drag, no stored state (cal.apps.pinned is never read or written). The All Apps menu has no pin buttons or drag; I also removed the pin and drag support from the shared menu (packages/ui ContextMenu/menu.ts: only All Apps used it; its within/width options stay).

2. The loop

The strip draws the list three times and rests in the middle copy; when a scroll stops in the first or last copy it is moved by exactly one copy's width, instantly (identical picture, no visible jump). The pill ALWAYS shows three apps with the open one centred: at Home the left neighbour is Files and the right is Calendar; at Files the right neighbour is Home. CSS scroll-snap and the one passive scroll listener stay; only the middle copy is in the a11y tree and tab order; Left/Right wrap round. The sidebar swipe and the app keys wrap too (Home back goes to Files).
The lightning icon is the Automations app (x-auto), not AI (AI is the sparkle). It belongs: Automations is an app in the list. In your shot it sat beside Home because Home's only pinned neighbour was Automations/Files in that localStorage; now Home's neighbours are Files and Calendar.
Real Safari (macOS-01): scrolling left from Home landed on Automations (Safari's wheel moved two icons) and the strip came back to the middle copy: Automations, Files (open), Home... shown in the wrap shot.

Every app's sidebar/first screen draws SideDock, and SideDock now only draws WindowDock (desktop) or PhoneFoot (phone), and PhoneFoot is only the AppSwitch. Found and fixed:

  • PhoneFoot had its own tab strip (and the dots prop): used by the Tasks and Contacts phone first screens (TasksBar, ContactsBar drew PhoneFoot directly with their own app lists). Now they use SideDock. The strip, thumb, ?tabs= and AppTabs footer branch in SideDock are gone.
  • Calendar's phone places screen drew TWO footers (CalSide rendered the desktop WindowDock inside it plus a second SideDock phone). CalSide now takes phone; the extra dock is gone.
  • DotsSwitch: already deleted last round; no data-app-dots, .dots or pinned-apps references remain.
  • Left on purpose: AppTabs.svelte is still used by PanesPreview (a Settings preview, not a footer). Settings → Tabs still exists (it only orders the old bar, which no longer exists): it needs your call (remove the page?).
  • Still different: Tasks keeps its own desktop shell (TasksApp/PaneFrame): its sidebar is a white card with the footer inside it, not the flat sidebar of Notes/Mail/Contacts/Files, and it has no sidebar swipe. The footer in it IS the same component (same pill, 100x36, three apps; see the Tasks shot), but the card around it differs. Moving Tasks into the window layout is a larger change; say if you want it.
    A spec now checks all 11 desktop and 10 phone first screens: exactly one switcher on screen, 100x36 (180x44 phone), three apps in view, no tab strip or dots.

4. Kept

Hover list button (spring, 42 px), blank-space click, long press, keyboard (Left/Right/Home/End round the loop, Enter, the list button as the next tab stop), narrow-sidebar fallback. New this round on the phone: icons are 44 pt targets (they were 38), and under 360 pt wide the list button gives way (long press opens the list).

Gates

app-switch.spec.ts (new loop, no-pin, one-footer and wrap specs), chromium + webkit, on dev-02: all pass in the final runs. Old tab-strip specs updated to the one switcher (m9a, round9b, round9c-foot, tasks-tiers, contacts, review-switches, look-pins, window-layout; app-tabs.spec.ts deleted). Broad run of 20 footer-related spec files on chromium: only failures left are pre-existing on calendar-2 (compared on a calendar-2 worktree): tasks-tiers 320 menu-corner (fails there too), round9b "inset sheets" (1 in 24 on both builds, serial repeat), m9a #9B table swipe (webkit flake), contacts "keep in touch" (1 in 8, flake). Fixed along the way: the calendar sidebar bounds spec ignores the switcher's clipped strip.

Frames (real Safari, Mac VM, 60 Hz, same-session idle baseline)

#260 still had no "over" notice (J524 was profiling on the Mac); numbers are provisional.

gesture worst frame (ms), 4 runs frames >= 50 ms
idle 23 22 21 24 0
hover expand 25 21 21 23 0
scroll strip (incl. the loop re-centre) 119 / 21 23 22 1 (first run, which also switched app)
tap an app -> Contacts: new 78 57 256 48 0-2
tap an app -> Contacts: calendar-2 dots (same JS click, same session) 93 42 41 345 0-1
Hover and the strip's own scroll sit at the idle floor. App switching (route change) has the same noisy 40-350 ms hitch on both builds, so it is the existing app-switch path, not this change.

Shots

Real Safari 1440 per app (Notes, Tasks, Mail, Home, Contacts, Files; dock light and dark, full light), and the iPhone 18 Pro simulator (own sim, deleted after): Notes, Tasks, Mail, Contacts, Files light, Tasks, Files, Notes dark.

safari-light-notes-dock

safari-light-notes-dock

safari-light-tasks-dock

safari-light-tasks-dock

safari-light-mail-dock

safari-light-mail-dock

safari-light-home-dock

safari-light-home-dock

safari-light-contacts-dock

safari-light-contacts-dock

safari-light-files-dock

safari-light-files-dock

safari-dark-notes-dock

safari-dark-notes-dock

safari-dark-tasks-dock

safari-dark-tasks-dock

safari-dark-mail-dock

safari-dark-mail-dock

safari-dark-home-dock

safari-dark-home-dock

safari-dark-contacts-dock

safari-dark-contacts-dock

safari-dark-files-dock

safari-dark-files-dock

safari-light-notes-full

safari-light-notes-full

safari-light-tasks-full

safari-light-tasks-full

safari-light-mail-full

safari-light-mail-full

safari-light-home-full

safari-light-home-full

safari-light-contacts-full

safari-light-contacts-full

safari-light-files-full

safari-light-files-full

safari-wrap-after-scroll-left-from-home

safari-wrap-after-scroll-left-from-home

iphone-notes

iphone-notes

iphone-tasks

iphone-tasks

iphone-mail

iphone-mail

iphone-contacts

iphone-contacts

iphone-files

iphone-files

iphone-notes-dark

iphone-notes-dark

iphone-tasks-dark

iphone-tasks-dark

iphone-files-dark

iphone-files-dark

## Round 2 result (kayg 11-11 ~20:08 IST): head `39d7d5b71`, deployed build `0bd8198f` (the last change after it is a spec only) Slot: https://preview.calternal.cloud/switcher/ ### 1. Pinning removed `lib/pinned-apps.svelte.ts` is deleted; `lib/app-list.ts` replaces it: **Home, then every app in the app table's order** (Calendar, Tasks, Notes, Contacts, Mail, Money, AI, Automations, Files; Settings is the account menu's, Photos is not built). No pins, no drag, no stored state (`cal.apps.pinned` is never read or written). The All Apps menu has no pin buttons or drag; I also removed the pin and drag support from the shared menu (`packages/ui` ContextMenu/menu.ts: only All Apps used it; its `within`/`width` options stay). ### 2. The loop The strip draws the list three times and rests in the middle copy; when a scroll stops in the first or last copy it is moved by exactly one copy's width, instantly (identical picture, no visible jump). The pill ALWAYS shows three apps with the open one centred: at Home the left neighbour is Files and the right is Calendar; at Files the right neighbour is Home. CSS scroll-snap and the one passive `scroll` listener stay; only the middle copy is in the a11y tree and tab order; Left/Right wrap round. The sidebar swipe and the app keys wrap too (Home back goes to Files). **The lightning icon is the Automations app** (`x-auto`), not AI (AI is the sparkle). It belongs: Automations is an app in the list. In your shot it sat beside Home because Home's only pinned neighbour was Automations/Files in that localStorage; now Home's neighbours are Files and Calendar. Real Safari (macOS-01): scrolling left from Home landed on Automations (Safari's wheel moved two icons) and the strip came back to the middle copy: Automations, Files (open), Home... shown in the `wrap` shot. ### 3. One footer everywhere Every app's sidebar/first screen draws `SideDock`, and `SideDock` now only draws `WindowDock` (desktop) or `PhoneFoot` (phone), and `PhoneFoot` is only the AppSwitch. Found and fixed: - `PhoneFoot` had its own tab strip (and the `dots` prop): used by the **Tasks and Contacts phone first screens** (`TasksBar`, `ContactsBar` drew `PhoneFoot` directly with their own app lists). Now they use `SideDock`. The strip, thumb, `?tabs=` and `AppTabs` footer branch in `SideDock` are gone. - **Calendar's phone places screen drew TWO footers** (CalSide rendered the desktop `WindowDock` inside it plus a second `SideDock phone`). CalSide now takes `phone`; the extra dock is gone. - `DotsSwitch`: already deleted last round; no `data-app-dots`, `.dots` or `pinned-apps` references remain. - Left on purpose: `AppTabs.svelte` is still used by `PanesPreview` (a Settings preview, not a footer). Settings → Tabs still exists (it only orders the old bar, which no longer exists): **it needs your call (remove the page?)**. - **Still different:** Tasks keeps its own desktop shell (`TasksApp`/`PaneFrame`): its sidebar is a white card with the footer inside it, not the flat sidebar of Notes/Mail/Contacts/Files, and it has no sidebar swipe. The footer in it IS the same component (same pill, 100x36, three apps; see the Tasks shot), but the card around it differs. Moving Tasks into the window layout is a larger change; say if you want it. A spec now checks all 11 desktop and 10 phone first screens: exactly one switcher on screen, 100x36 (180x44 phone), three apps in view, no tab strip or dots. ### 4. Kept Hover list button (spring, 42 px), blank-space click, long press, keyboard (Left/Right/Home/End round the loop, Enter, the list button as the next tab stop), narrow-sidebar fallback. New this round on the phone: icons are 44 pt targets (they were 38), and under 360 pt wide the list button gives way (long press opens the list). ### Gates `app-switch.spec.ts` (new loop, no-pin, one-footer and wrap specs), chromium + webkit, on dev-02: all pass in the final runs. Old tab-strip specs updated to the one switcher (m9a, round9b, round9c-foot, tasks-tiers, contacts, review-switches, look-pins, window-layout; `app-tabs.spec.ts` deleted). Broad run of 20 footer-related spec files on chromium: only failures left are **pre-existing on calendar-2** (compared on a calendar-2 worktree): tasks-tiers 320 menu-corner (fails there too), round9b "inset sheets" (1 in 24 on both builds, serial repeat), m9a #9B table swipe (webkit flake), contacts "keep in touch" (1 in 8, flake). Fixed along the way: the calendar sidebar bounds spec ignores the switcher's clipped strip. ### Frames (real Safari, Mac VM, 60 Hz, same-session idle baseline) **#260 still had no "over" notice (J524 was profiling on the Mac); numbers are provisional.** | gesture | worst frame (ms), 4 runs | frames >= 50 ms | |---|---|---| | idle | 23 22 21 24 | 0 | | hover expand | 25 21 21 23 | 0 | | scroll strip (incl. the loop re-centre) | 119 / 21 23 22 | 1 (first run, which also switched app) | | tap an app -> Contacts: new | 78 57 256 48 | 0-2 | | tap an app -> Contacts: calendar-2 dots (same JS click, same session) | 93 42 41 345 | 0-1 | Hover and the strip's own scroll sit at the idle floor. App switching (route change) has the same noisy 40-350 ms hitch on both builds, so it is the existing app-switch path, not this change. ### Shots Real Safari 1440 per app (Notes, Tasks, Mail, Home, Contacts, Files; dock light and dark, full light), and the iPhone 18 Pro simulator (own sim, deleted after): Notes, Tasks, Mail, Contacts, Files light, Tasks, Files, Notes dark. **safari-light-notes-dock** ![safari-light-notes-dock](https://git.kayg.org/attachments/da0f63ff-1196-4634-b2b2-2c0396477c4c) **safari-light-tasks-dock** ![safari-light-tasks-dock](https://git.kayg.org/attachments/86935a35-7f25-4d99-ac79-d15379a7ca85) **safari-light-mail-dock** ![safari-light-mail-dock](https://git.kayg.org/attachments/9fab0064-3651-45b2-a110-f27c2412c51e) **safari-light-home-dock** ![safari-light-home-dock](https://git.kayg.org/attachments/6f1607a4-0a5c-43d9-b423-1faf2dbb55a2) **safari-light-contacts-dock** ![safari-light-contacts-dock](https://git.kayg.org/attachments/c8a6ca98-4f53-455a-9bc1-98c61d9520b4) **safari-light-files-dock** ![safari-light-files-dock](https://git.kayg.org/attachments/b7d7ea85-1ce8-4048-ab9b-67c12c6d8198) **safari-dark-notes-dock** ![safari-dark-notes-dock](https://git.kayg.org/attachments/dc5f7c72-24ad-4ddf-a79e-9a717cad6c71) **safari-dark-tasks-dock** ![safari-dark-tasks-dock](https://git.kayg.org/attachments/01a9fac6-f7c9-456c-9639-f9f45a9cd9d4) **safari-dark-mail-dock** ![safari-dark-mail-dock](https://git.kayg.org/attachments/dbeb9c86-354f-41aa-9f2b-36aed77a2c90) **safari-dark-home-dock** ![safari-dark-home-dock](https://git.kayg.org/attachments/ac25e3c1-702f-4a4f-bc7e-8b08ac7206f6) **safari-dark-contacts-dock** ![safari-dark-contacts-dock](https://git.kayg.org/attachments/643d53ca-dfe2-4491-849f-0fdccf019dc8) **safari-dark-files-dock** ![safari-dark-files-dock](https://git.kayg.org/attachments/64d7218c-e7ab-431a-98d6-a2ab37450957) **safari-light-notes-full** ![safari-light-notes-full](https://git.kayg.org/attachments/cbdf2b10-c201-40cd-a070-d67a6c1ec28f) **safari-light-tasks-full** ![safari-light-tasks-full](https://git.kayg.org/attachments/816e8fde-2557-4697-b383-ddca5c5e03ac) **safari-light-mail-full** ![safari-light-mail-full](https://git.kayg.org/attachments/8e04face-5837-4250-88d1-419cf1aaef2a) **safari-light-home-full** ![safari-light-home-full](https://git.kayg.org/attachments/da2dca0b-435d-46a8-b1ad-3845cd1f4fb8) **safari-light-contacts-full** ![safari-light-contacts-full](https://git.kayg.org/attachments/6b7fe544-1a6a-4c9c-982f-366c529915d0) **safari-light-files-full** ![safari-light-files-full](https://git.kayg.org/attachments/15b4dc41-9346-4f0c-aaab-880a334d2825) **safari-wrap-after-scroll-left-from-home** ![safari-wrap-after-scroll-left-from-home](https://git.kayg.org/attachments/4f6e256b-081e-4480-872b-f256f307c884) **iphone-notes** ![iphone-notes](https://git.kayg.org/attachments/0979cabc-4b22-474c-aba4-cd257f412bf0) **iphone-tasks** ![iphone-tasks](https://git.kayg.org/attachments/3ae2fc62-ca63-4c6c-9532-ce0c0bd399b6) **iphone-mail** ![iphone-mail](https://git.kayg.org/attachments/2aa230c3-0d68-456f-81c0-d373b64c02b2) **iphone-contacts** ![iphone-contacts](https://git.kayg.org/attachments/58151ccf-16bc-49db-9ec6-001f0cae02e3) **iphone-files** ![iphone-files](https://git.kayg.org/attachments/5963a2d1-b258-416a-8ae7-425b0afe26d4) **iphone-notes-dark** ![iphone-notes-dark](https://git.kayg.org/attachments/b6908288-7029-4316-84c6-fc7e189e5397) **iphone-tasks-dark** ![iphone-tasks-dark](https://git.kayg.org/attachments/2786d76f-3663-4823-9cc7-3bfa09649582) **iphone-files-dark** ![iphone-files-dark](https://git.kayg.org/attachments/056ce91d-29cb-4100-873c-051f08b68c54)
Author
Owner

Merged into review/calendar-2: head c14b7ad67, calendar-2 slot redeployed (deployed calendar-2 @ c14b7ad6)

  • Merge check: WindowDock's avatar keeps the contrast-safe ink (color-mix(accent 60%, ink), from 6397d1343); Search is the shared Pill (page ink). The phone's avatar (PhoneFoot .av) did not have it, so it got the same ink.
  • Settings → Tabs removed: the page, its nav entry and render branch, tabsModel, the state module lib/tabs.svelte.ts (now lib/apps.ts, a plain app table + appName), the five setOn(...) calls in the app screens, Tasks' "Tabs" settings section and its "Tab order" search entry, and the specs that named it (admin, no-clipping, round9b, m9a). ToolbarSettings is now only the editor toolbar's. AppTabs stays only for the Appearance panes preview's app picker (not a footer).
  • Also fixed: the hover-tint contrast audit hovered all 30 buttons of the switcher's looped strip (4 min timeouts); it now hovers only the icons in the strip's window.
  • Specs (targeted): app-switch, look-pins, window-layout, m9a, round9c-foot, admin, no-clipping, contrast-audit, chrome-contrast. chromium + webkit on dev-02 (aarch64), chromium on dev-01 (x86). Final run on the merged head: app-switch + chrome-contrast chromium+webkit 134 passed; hover tints 5/5 on both hosts. Failures seen in earlier runs and cleared or not ours: webkit look-pins "body 17/27.2" (27.200001px; fails the same on calendar-2), webkit window-layout toggle (4.5 vs 5 px, 4/4 pass on both builds), webkit m9a #9B and no-clipping 390 (load flakes, pass on rerun), the sidebar-swipe snap-back (flaky under load: 1 in 10 on dev-02, fails on loaded x86 where the host is at load 40).
  • Pushed fast-forward 512721f1d..c14b7ad67; tmp/c2-merge-switcher deleted. Preview deployed without an outer slot.
  • Checked on the deployed slot: real Safari 1440 Notes (Tasks · Notes · Contacts in the pill, avatar and Search legible) and the iPhone 18 Pro sim (my own, deleted).

safari-1440-notes-calendar-2

safari-1440-notes-calendar-2

safari-notes-dock

safari-notes-dock

iphone-notes-calendar-2

iphone-notes-calendar-2

## Merged into review/calendar-2: head `c14b7ad67`, calendar-2 slot redeployed (`deployed calendar-2 @ c14b7ad6`) - **Merge check:** WindowDock's avatar keeps the contrast-safe ink (`color-mix(accent 60%, ink)`, from 6397d1343); Search is the shared Pill (page ink). The phone's avatar (`PhoneFoot .av`) did not have it, so it got the same ink. - **Settings → Tabs removed:** the page, its nav entry and render branch, `tabsModel`, the state module `lib/tabs.svelte.ts` (now `lib/apps.ts`, a plain app table + `appName`), the five `setOn(...)` calls in the app screens, Tasks' "Tabs" settings section and its "Tab order" search entry, and the specs that named it (`admin`, `no-clipping`, `round9b`, `m9a`). `ToolbarSettings` is now only the editor toolbar's. `AppTabs` stays only for the Appearance panes preview's app picker (not a footer). - **Also fixed:** the hover-tint contrast audit hovered all 30 buttons of the switcher's looped strip (4 min timeouts); it now hovers only the icons in the strip's window. - **Specs (targeted):** app-switch, look-pins, window-layout, m9a, round9c-foot, admin, no-clipping, contrast-audit, chrome-contrast. chromium + webkit on dev-02 (aarch64), chromium on dev-01 (x86). Final run on the merged head: app-switch + chrome-contrast chromium+webkit **134 passed**; hover tints 5/5 on both hosts. Failures seen in earlier runs and cleared or not ours: webkit `look-pins` "body 17/27.2" (27.200001px; fails the same on calendar-2), webkit `window-layout` toggle (4.5 vs 5 px, 4/4 pass on both builds), webkit `m9a` #9B and `no-clipping` 390 (load flakes, pass on rerun), the sidebar-swipe snap-back (flaky under load: 1 in 10 on dev-02, fails on loaded x86 where the host is at load 40). - **Pushed** fast-forward `512721f1d..c14b7ad67`; `tmp/c2-merge-switcher` deleted. Preview deployed without an outer slot. - **Checked on the deployed slot:** real Safari 1440 Notes (Tasks · Notes · Contacts in the pill, avatar and Search legible) and the iPhone 18 Pro sim (my own, deleted). **safari-1440-notes-calendar-2** ![safari-1440-notes-calendar-2](https://git.kayg.org/attachments/064fb55f-69e4-43c4-a5b3-70e196525dac) **safari-notes-dock** ![safari-notes-dock](https://git.kayg.org/attachments/277c9c04-9900-4b7a-83b6-e65d1359ed61) **iphone-notes-calendar-2** ![iphone-notes-calendar-2](https://git.kayg.org/attachments/ecabc7c6-5732-4343-b6a9-090ceca84dc5)
Author
Owner

Round 3 (kayg 11-12 ~11:10 IST): scrolling only browses; a click switches with a fade

Head 3232345c9 on review/calendar-2 (merged from feat/switcher-browse), calendar-2 slot redeployed (deployed calendar-2 @ 3232345c).

  1. Scrolling only browses. A wheel, trackpad swipe or touch drag scrolls the wrapping strip to show apps and never switches. A click or tap on an icon switches; so does Enter (arrows move focus only). The strip springs back to centre the open app when the pointer leaves it (150 ms grace; not for touch) or after 2 s without a scroll, and while the keyboard is browsing it stays where it was put. The spring is 240 ms (ease-out with a small overshoot, scrollLeft written once a frame, snap off while it runs and back on at the end); reduced motion jumps. Still ONE passive scroll listener (it arms two timers; the loop re-centre is silent).
  2. Switch fade. A click on an app fades the new app's cards in, opacity only, 300 ms, the custom ease-out: the arrival Notes uses for a note (Shell arrive, now both read one token, --arrive-ms: 300ms, so they cannot drift apart). The class is set in the same render that mounts the cards, so no frame shows them whole first; focus and pointer events are never blocked (pointer-events untouched, opacity is the only property). From the keyboard (Enter) the switch is instant, as Notes' is; reduced motion: no fade. Real Safari events: pointerdown 0 ms, animationstart +72 ms (when the new app's first frame lands), keyboard Enter: no animation. It first ended early (cancelled at 271 of 300 ms, the class timer was shorter than the late first frame); it now ends with its own animationend.

Specs (updated)

app-switch.spec.ts: scroll does not switch (browses, snaps, springs back on pointer leave and after 2 s), the loop browses without an empty slot, click switches with the fade (computed animation wl-cards-in 0.3 s; opacity only where the engine lists it; the --arrive-ms token is 300 ms; input not blocked), Enter is instant, arrows move focus without switching. chromium + webkit, dev-02: 176 passed (every test twice); with look-pins, window-layout, m9a, chrome-contrast: 324 passed and 4 failed that are not this change (webkit look-pins 27.200001px, webkit m9a #9B table swipe, and two of mine that I then fixed in the specs themselves and re-ran green).

Frames, real Safari (Mac VM, 60 Hz, same-session idle baseline; #260 had no "over" notice and another lane was measuring on the Mac between my runs, so provisional)

Real pointer clicks (WebDriver pointerDown/Up, not a script click: a script click skips the fade), tap an app -> Contacts, ABAB:

build worst frame per run (ms)
calendar-2 (cut, no fade) 56 72 109 71 / 55 64 70 57
this branch (fade) 73 67 66 67 / 97 202 67 94
Idle floor 20-25 ms in every run. The medians are close (about 66 vs 70 ms); the fade build has one 202 ms outlier in 8 (the cut build's worst is 109 ms), so it is not measurably worse but I would like a second ABAB when the Mac is free. Earlier (script clicks, so no fade): cut 78 31 58 70 57 42 42 46, new 81 47 40 65 70 57 23 25. Browsing: scroll + the spring back, worst 24 24 22 24 / 25 28 25 25 ms, 0 frames >= 50 ms; hover expand 21-26 ms.

Shots

Real Safari 1440 dock: rest, after a scroll (browsing: Contacts, Mail, Money; nothing switched), after the pointer left (sprung back), scrolled again, and after 2 s idle; the page after a click. iPhone 18 Pro sim (my own, deleted): a touch drag on the strip scrolled it one icon and stayed on Notes (the strip shows Notes at the left, tinted).

safari-browse-0-rest

safari-browse-0-rest

safari-browse-1-scrolled-no-switch

safari-browse-1-scrolled-no-switch

safari-browse-2-after-pointer-left

safari-browse-2-after-pointer-left

safari-browse-3-scrolled-again

safari-browse-3-scrolled-again

safari-browse-4-after-2s

safari-browse-4-after-2s

safari-after-click-contacts

safari-after-click-contacts

iphone-touch-drag-browse

iphone-touch-drag-browse

## Round 3 (kayg 11-12 ~11:10 IST): scrolling only browses; a click switches with a fade Head `3232345c9` on `review/calendar-2` (merged from `feat/switcher-browse`), calendar-2 slot redeployed (`deployed calendar-2 @ 3232345c`). 1. **Scrolling only browses.** A wheel, trackpad swipe or touch drag scrolls the wrapping strip to show apps and never switches. A click or tap on an icon switches; so does Enter (arrows move focus only). The strip springs back to centre the open app when the pointer leaves it (150 ms grace; not for touch) or after 2 s without a scroll, and while the keyboard is browsing it stays where it was put. The spring is 240 ms (ease-out with a small overshoot, `scrollLeft` written once a frame, snap off while it runs and back on at the end); reduced motion jumps. Still ONE passive scroll listener (it arms two timers; the loop re-centre is silent). 2. **Switch fade.** A click on an app fades the new app's cards in, **opacity only, 300 ms, the custom ease-out: the arrival Notes uses for a note** (`Shell` `arrive`, now both read one token, `--arrive-ms: 300ms`, so they cannot drift apart). The class is set in the same render that mounts the cards, so no frame shows them whole first; focus and pointer events are never blocked (`pointer-events` untouched, `opacity` is the only property). From the keyboard (Enter) the switch is instant, as Notes' is; reduced motion: no fade. Real Safari events: `pointerdown` 0 ms, `animationstart` +72 ms (when the new app's first frame lands), keyboard Enter: no animation. It first ended early (cancelled at 271 of 300 ms, the class timer was shorter than the late first frame); it now ends with its own `animationend`. ### Specs (updated) `app-switch.spec.ts`: scroll does not switch (browses, snaps, springs back on pointer leave and after 2 s), the loop browses without an empty slot, click switches with the fade (computed animation `wl-cards-in` 0.3 s; opacity only where the engine lists it; the `--arrive-ms` token is 300 ms; input not blocked), Enter is instant, arrows move focus without switching. chromium + webkit, dev-02: 176 passed (every test twice); with look-pins, window-layout, m9a, chrome-contrast: 324 passed and 4 failed that are not this change (webkit `look-pins` 27.200001px, webkit `m9a` #9B table swipe, and two of mine that I then fixed in the specs themselves and re-ran green). ### Frames, real Safari (Mac VM, 60 Hz, same-session idle baseline; **#260 had no "over" notice and another lane was measuring on the Mac between my runs, so provisional**) Real pointer clicks (WebDriver pointerDown/Up, not a script click: a script click skips the fade), tap an app -> Contacts, ABAB: | build | worst frame per run (ms) | |---|---| | calendar-2 (cut, no fade) | 56 72 109 71 / 55 64 70 57 | | this branch (fade) | 73 67 66 67 / 97 202 67 94 | Idle floor 20-25 ms in every run. The medians are close (about 66 vs 70 ms); the fade build has one 202 ms outlier in 8 (the cut build's worst is 109 ms), so it is **not measurably worse but I would like a second ABAB when the Mac is free**. Earlier (script clicks, so no fade): cut 78 31 58 70 57 42 42 46, new 81 47 40 65 70 57 23 25. Browsing: scroll + the spring back, worst 24 24 22 24 / 25 28 25 25 ms, 0 frames >= 50 ms; hover expand 21-26 ms. ### Shots Real Safari 1440 dock: rest, after a scroll (browsing: Contacts, Mail, Money; nothing switched), after the pointer left (sprung back), scrolled again, and after 2 s idle; the page after a click. iPhone 18 Pro sim (my own, deleted): a touch drag on the strip scrolled it one icon and stayed on Notes (the strip shows Notes at the left, tinted). **safari-browse-0-rest** ![safari-browse-0-rest](https://git.kayg.org/attachments/4063afef-0b01-42db-8a76-642086afffcb) **safari-browse-1-scrolled-no-switch** ![safari-browse-1-scrolled-no-switch](https://git.kayg.org/attachments/c2a1773d-5289-4642-9693-86e63d6ccd1c) **safari-browse-2-after-pointer-left** ![safari-browse-2-after-pointer-left](https://git.kayg.org/attachments/5cd9c291-76f2-4424-8404-ecabb42b1992) **safari-browse-3-scrolled-again** ![safari-browse-3-scrolled-again](https://git.kayg.org/attachments/6c7e9af6-ef2a-4e8d-a2ad-b2f9b40ad981) **safari-browse-4-after-2s** ![safari-browse-4-after-2s](https://git.kayg.org/attachments/281eda34-887b-46c2-a607-b9effdf636b2) **safari-after-click-contacts** ![safari-after-click-contacts](https://git.kayg.org/attachments/d4a68752-e1f2-47fc-8d95-e057ea8d4da9) **iphone-touch-drag-browse** ![iphone-touch-drag-browse](https://git.kayg.org/attachments/dfda33d4-0203-4064-92a1-d55873016a68)
Sign in to join this conversation.
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#1075
No description provided.