Switching tabs: instant, with a subtle fade; arrow keys move through Settings #173

Closed
opened 2026-10-14 07:11:20 +00:00 by kayg · 2 comments
Owner

kayg:

  • "changing tabs should also be a subtle fade in (while the actual loading should happen super fast. v0 had terrible loading speed between different tabs)"
  • "here too i should be able to spam scroll down or up" (the Settings sections list)

Build:

  • Notes ⇄ Settings: the content shows instantly (keep both mounted, or warm), with a 120–150 ms opacity-only fade when clicked or tapped. Keyboard switches don't animate.
  • No waiting: switching never waits on the network. Settings reads the local copy (#100), and Notes keeps its list and editor alive.
  • Settings sections: ↑/↓ move through Appearance, Writing, Keyboard, Account and Devices, and each section's content shows at once (no fetch on switch; Devices and Passkeys load ahead).
  • Measure: time from tab click to full paint, on a 10k Home.
kayg: - "changing tabs should also be a subtle fade in (while the actual loading should happen super fast. v0 had terrible loading speed between different tabs)" - "here too i should be able to spam scroll down or up" (the Settings sections list) **Build:** - **Notes ⇄ Settings:** the content shows instantly (keep both mounted, or warm), with a 120–150 ms opacity-only fade when clicked or tapped. Keyboard switches don't animate. - **No waiting:** switching never waits on the network. Settings reads the local copy (#100), and Notes keeps its list and editor alive. - **Settings sections:** ↑/↓ move through Appearance, Writing, Keyboard, Account and Devices, and each section's content shows at once (no fetch on switch; Devices and Passkeys load ahead). - **Measure:** time from tab click to full paint, on a 10k Home.
Author
Owner

Click to full paint, 10k Home (fixture n10000-s1, Chromium 1440x900 headless, production build, real server; the click event to two animation frames after the target tab is on screen; 5 round trips per run, runs interleaved before/after).

The machine was badly overloaded the whole time (load average 90-190 from the other agents), so wall times swing 10x from run to run for the same build. Read the minimums and the node counts; the medians are what they are.

before (remount) after (kept mounted)
Notes -> Settings, p50 per run 362 / 2453 / 589 ms 305 / 440 ms
Notes -> Settings, fastest 74 / 2026 / 327 ms 61 / 51 ms
Settings -> Notes, p50 per run 484 / 4662 / 1077 ms 382 / 458 ms
Settings -> Notes, fastest 386 / 2791 / 418 ms 77 / 62 ms
DOM nodes built per switch, Notes -> Settings 114 (and 375 removed) 0
DOM nodes built per switch, Settings -> Notes 401 (and 118 removed) 0

The node counts are load-independent: before, every switch rebuilt a whole screen (an empty Today note here; a long note costs more, and the editor and the list start from scratch); after, nothing is built or removed, the layer is only shown. What is left in the "after" times is the browser painting the glass layers under software rendering and the machine load.

Settings sections (pointer click, same 10k Home): the Devices list is loaded ahead, so it never shows "Looking...". Switching section builds only that section's nodes (Keyboard 145, Account 23, Devices 7). Arrow keys do the same without any animation.

Tests: e2e/tabs.spec.ts passes on Chromium and WebKit (same editor element after Settings, arrows walk the sections, history doesn't grow, Devices never "Looking..."). links.spec.ts "Info shows the notes linking here" fails the same on plain dev here (the old server binary I had), the rest of links/day/prefs pass.

Seen but not mine: at 320 wide the "Today" chip next to the date in a note wraps to "Tod / ay" (visible in the Notes shots).

**Click to full paint, 10k Home** (fixture n10000-s1, Chromium 1440x900 headless, production build, real server; the click event to two animation frames after the target tab is on screen; 5 round trips per run, runs interleaved before/after). The machine was badly overloaded the whole time (load average 90-190 from the other agents), so wall times swing 10x from run to run for the same build. Read the minimums and the node counts; the medians are what they are. | | before (remount) | after (kept mounted) | |---|---|---| | Notes -> Settings, p50 per run | 362 / 2453 / 589 ms | 305 / 440 ms | | Notes -> Settings, fastest | 74 / 2026 / 327 ms | 61 / 51 ms | | Settings -> Notes, p50 per run | 484 / 4662 / 1077 ms | 382 / 458 ms | | Settings -> Notes, fastest | 386 / 2791 / 418 ms | 77 / 62 ms | | DOM nodes built per switch, Notes -> Settings | 114 (and 375 removed) | 0 | | DOM nodes built per switch, Settings -> Notes | 401 (and 118 removed) | 0 | The node counts are load-independent: before, every switch rebuilt a whole screen (an empty Today note here; a long note costs more, and the editor and the list start from scratch); after, nothing is built or removed, the layer is only shown. What is left in the "after" times is the browser painting the glass layers under software rendering and the machine load. Settings sections (pointer click, same 10k Home): the Devices list is loaded ahead, so it never shows "Looking...". Switching section builds only that section's nodes (Keyboard 145, Account 23, Devices 7). Arrow keys do the same without any animation. Tests: `e2e/tabs.spec.ts` passes on Chromium and WebKit (same editor element after Settings, arrows walk the sections, history doesn't grow, Devices never "Looking..."). `links.spec.ts` "Info shows the notes linking here" fails the same on plain dev here (the old server binary I had), the rest of links/day/prefs pass. Seen but not mine: at 320 wide the "Today" chip next to the date in a note wraps to "Tod / ay" (visible in the Notes shots).
Author
Owner

Screenshots, Notes and Settings switched with both tabs mounted (10k Home). Chromium and WebKit, light and dark, 320 / 390 / 900 / 1440. Per size: Notes, Settings, back to Notes.

chromium 320 light: Notes · Settings · Notes again

chromium-320-light-notes.png chromium-320-light-settings.png chromium-320-light-notes-back.png

chromium 320 dark: Notes · Settings · Notes again

chromium-320-dark-notes.png chromium-320-dark-settings.png chromium-320-dark-notes-back.png

chromium 390 light: Notes · Settings · Notes again

chromium-390-light-notes.png chromium-390-light-settings.png chromium-390-light-notes-back.png

chromium 390 dark: Notes · Settings · Notes again

chromium-390-dark-notes.png chromium-390-dark-settings.png chromium-390-dark-notes-back.png

chromium 900 light: Notes · Settings · Notes again

chromium-900-light-notes.png chromium-900-light-settings.png chromium-900-light-notes-back.png

chromium 900 dark: Notes · Settings · Notes again

chromium-900-dark-notes.png chromium-900-dark-settings.png chromium-900-dark-notes-back.png

chromium 1440 light: Notes · Settings · Notes again

chromium-1440-light-notes.png chromium-1440-light-settings.png chromium-1440-light-notes-back.png

chromium 1440 dark: Notes · Settings · Notes again

chromium-1440-dark-notes.png chromium-1440-dark-settings.png chromium-1440-dark-notes-back.png

webkit 320 light: Notes · Settings · Notes again

webkit-320-light-notes.png webkit-320-light-settings.png webkit-320-light-notes-back.png

webkit 320 dark: Notes · Settings · Notes again

webkit-320-dark-notes.png webkit-320-dark-settings.png webkit-320-dark-notes-back.png

webkit 390 light: Notes · Settings · Notes again

webkit-390-light-notes.png webkit-390-light-settings.png webkit-390-light-notes-back.png

webkit 390 dark: Notes · Settings · Notes again

webkit-390-dark-notes.png webkit-390-dark-settings.png webkit-390-dark-notes-back.png

webkit 900 light: Notes · Settings · Notes again

webkit-900-light-notes.png webkit-900-light-settings.png webkit-900-light-notes-back.png

webkit 900 dark: Notes · Settings · Notes again

webkit-900-dark-notes.png webkit-900-dark-settings.png webkit-900-dark-notes-back.png

webkit 1440 light: Notes · Settings · Notes again

webkit-1440-light-notes.png webkit-1440-light-settings.png webkit-1440-light-notes-back.png

webkit 1440 dark: Notes · Settings · Notes again

webkit-1440-dark-notes.png webkit-1440-dark-settings.png webkit-1440-dark-notes-back.png

Screenshots, Notes and Settings switched with both tabs mounted (10k Home). Chromium and WebKit, light and dark, 320 / 390 / 900 / 1440. Per size: Notes, Settings, back to Notes. **chromium 320 light:** Notes · Settings · Notes again ![chromium-320-light-notes.png](https://git.kayg.org/attachments/a8d4c2f3-5d68-4b30-bf93-b3a3657b9108) ![chromium-320-light-settings.png](https://git.kayg.org/attachments/25d88074-1075-4dd2-ae30-1ac20cf90a00) ![chromium-320-light-notes-back.png](https://git.kayg.org/attachments/1b76803f-04d5-4ffc-8514-597e7ebae68a) **chromium 320 dark:** Notes · Settings · Notes again ![chromium-320-dark-notes.png](https://git.kayg.org/attachments/9cf4ee17-9b8c-44ba-ba7a-fb392de214b6) ![chromium-320-dark-settings.png](https://git.kayg.org/attachments/8aed6ed6-09bb-4f21-a5fd-4bd77b160252) ![chromium-320-dark-notes-back.png](https://git.kayg.org/attachments/8bcca5f2-2e0d-4fe3-bb7e-7e28272a443a) **chromium 390 light:** Notes · Settings · Notes again ![chromium-390-light-notes.png](https://git.kayg.org/attachments/86c27631-ed2b-4d02-a64b-cbf7810d9f7f) ![chromium-390-light-settings.png](https://git.kayg.org/attachments/21a83db0-2705-4391-87ee-8543029326f0) ![chromium-390-light-notes-back.png](https://git.kayg.org/attachments/a55a5447-3566-4f99-8b7a-14eac6252247) **chromium 390 dark:** Notes · Settings · Notes again ![chromium-390-dark-notes.png](https://git.kayg.org/attachments/81f96636-d393-4e5c-a75e-78384dda9d4e) ![chromium-390-dark-settings.png](https://git.kayg.org/attachments/739ac416-7a40-4aa4-a9dc-9db2a2652f87) ![chromium-390-dark-notes-back.png](https://git.kayg.org/attachments/7c4443de-2e4b-4319-a11e-6bec2d12b255) **chromium 900 light:** Notes · Settings · Notes again ![chromium-900-light-notes.png](https://git.kayg.org/attachments/4e735571-6225-445e-b580-f312177d2d56) ![chromium-900-light-settings.png](https://git.kayg.org/attachments/888a6eea-9882-423c-b603-90725e509cde) ![chromium-900-light-notes-back.png](https://git.kayg.org/attachments/4cc2da1b-040d-483b-9c78-a48e4a5dcb7c) **chromium 900 dark:** Notes · Settings · Notes again ![chromium-900-dark-notes.png](https://git.kayg.org/attachments/6f080605-163d-4387-8a9d-bbbc2d703c2d) ![chromium-900-dark-settings.png](https://git.kayg.org/attachments/ba1011cc-2c6e-4086-82fa-d25ad7de8057) ![chromium-900-dark-notes-back.png](https://git.kayg.org/attachments/2ee21167-759c-4bdc-8e77-ed38ddbd4ed7) **chromium 1440 light:** Notes · Settings · Notes again ![chromium-1440-light-notes.png](https://git.kayg.org/attachments/25e7f02c-7c19-48e0-98a9-ff1e5111ca32) ![chromium-1440-light-settings.png](https://git.kayg.org/attachments/b39a29fa-4d61-49cb-9cca-52e49986c4de) ![chromium-1440-light-notes-back.png](https://git.kayg.org/attachments/4d35cde0-d6ab-482e-9834-507b6bcb6cbe) **chromium 1440 dark:** Notes · Settings · Notes again ![chromium-1440-dark-notes.png](https://git.kayg.org/attachments/82e9634c-9d43-4950-bda0-283b18ec91e4) ![chromium-1440-dark-settings.png](https://git.kayg.org/attachments/e8dca812-9d36-42a6-b1f9-49220727be71) ![chromium-1440-dark-notes-back.png](https://git.kayg.org/attachments/3c468c97-8c91-40ba-9003-21028c329305) **webkit 320 light:** Notes · Settings · Notes again ![webkit-320-light-notes.png](https://git.kayg.org/attachments/af6e0b3d-ea77-4eae-b916-97f03b29a8ce) ![webkit-320-light-settings.png](https://git.kayg.org/attachments/83bd0a1f-b4d3-4abc-a329-72a275372282) ![webkit-320-light-notes-back.png](https://git.kayg.org/attachments/71af355b-5e14-4a6d-8521-50f337e4f8aa) **webkit 320 dark:** Notes · Settings · Notes again ![webkit-320-dark-notes.png](https://git.kayg.org/attachments/b0b20920-8b5b-4a33-a53e-a94211b08bcd) ![webkit-320-dark-settings.png](https://git.kayg.org/attachments/7fc38588-6333-4a53-9f97-527f7f0bf95b) ![webkit-320-dark-notes-back.png](https://git.kayg.org/attachments/5d1ff184-604f-4c60-8e34-71aa528a2abb) **webkit 390 light:** Notes · Settings · Notes again ![webkit-390-light-notes.png](https://git.kayg.org/attachments/b89d03df-efa9-4f11-8fd8-127a78f08d43) ![webkit-390-light-settings.png](https://git.kayg.org/attachments/7e9979d2-2a82-4edb-bb25-8993897a1e4c) ![webkit-390-light-notes-back.png](https://git.kayg.org/attachments/78faa9cb-533d-49a0-af01-b3dd9bbed737) **webkit 390 dark:** Notes · Settings · Notes again ![webkit-390-dark-notes.png](https://git.kayg.org/attachments/4906f34e-bc84-460f-9c32-e29109d4b4ce) ![webkit-390-dark-settings.png](https://git.kayg.org/attachments/c010681f-d778-421f-9a1f-849730a046ca) ![webkit-390-dark-notes-back.png](https://git.kayg.org/attachments/90f58d50-d57b-4923-bb99-10c02e6b59a6) **webkit 900 light:** Notes · Settings · Notes again ![webkit-900-light-notes.png](https://git.kayg.org/attachments/ee1e0741-e0e1-456f-994a-6b2c09150109) ![webkit-900-light-settings.png](https://git.kayg.org/attachments/0554a37a-7e9e-4e4c-bf28-79329836f6ad) ![webkit-900-light-notes-back.png](https://git.kayg.org/attachments/eb9ade19-9462-44d0-8749-cb4590d94e6d) **webkit 900 dark:** Notes · Settings · Notes again ![webkit-900-dark-notes.png](https://git.kayg.org/attachments/621fbbc7-e5ca-4010-8c66-fdc4645ec689) ![webkit-900-dark-settings.png](https://git.kayg.org/attachments/4d80a18c-61b1-4617-91b3-65b89def7567) ![webkit-900-dark-notes-back.png](https://git.kayg.org/attachments/1cb43885-e807-4880-94ce-4609235b9714) **webkit 1440 light:** Notes · Settings · Notes again ![webkit-1440-light-notes.png](https://git.kayg.org/attachments/210b1ba2-67e9-46ac-ab8d-10002cb0ba31) ![webkit-1440-light-settings.png](https://git.kayg.org/attachments/902ca0b5-697f-42b4-a058-b27c6d7ac76d) ![webkit-1440-light-notes-back.png](https://git.kayg.org/attachments/913f1bed-a885-4689-a202-e95bd96d5467) **webkit 1440 dark:** Notes · Settings · Notes again ![webkit-1440-dark-notes.png](https://git.kayg.org/attachments/89d85251-8f3d-413d-9546-1eeca742e9d8) ![webkit-1440-dark-settings.png](https://git.kayg.org/attachments/ba45d35d-2f43-4ddd-ab52-5f2f3630f37c) ![webkit-1440-dark-notes-back.png](https://git.kayg.org/attachments/b3b0902d-dbe6-43ba-88b6-d9dd0687ad59)
kayg closed this issue 2026-10-14 10:18:55 +00:00
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#173
No description provided.