Settings: list, add, rename and remove passkeys #99

Closed
opened 2026-10-14 03:04:50 +00:00 by kayg · 2 comments
Owner

Settings has no passkey management yet. Add a Passkeys section: list each passkey (name, created, last used), add a new one (WebAuthn registration while signed in), rename, and remove (never the last one). Every view stays live (ADR 0012): changes are journal events, so another open device updates. Design follows TASTE.md and the packages/ui primitives (warm tooltips, springy in-place motion). Tests: server unit + Playwright in Chromium and WebKit (virtual authenticator).

Settings has no passkey management yet. Add a Passkeys section: list each passkey (name, created, last used), add a new one (WebAuthn registration while signed in), rename, and remove (never the last one). Every view stays live (ADR 0012): changes are journal events, so another open device updates. Design follows TASTE.md and the packages/ui primitives (warm tooltips, springy in-place motion). Tests: server unit + Playwright in Chromium and WebKit (virtual authenticator).
Author
Owner

Screenshots, Chromium, real server and real person (virtual authenticators), two passkeys listed; 390 / 900 / 1440, light and dark.

390: light, dark

two-390-light.png two-390-dark.png

900: light, dark

two-900-light.png two-900-dark.png

1440: light, dark

two-1440-light.png two-1440-dark.png

One passkey (1440): the remove button is dimmed; its tooltip says why.

one-1440-light.png

WebKit has no virtual authenticator in Playwright, so there it covers only the screen (empty list on the development server, a failed add says one calm line). Screenshots from Chromium and WebKit at 390 and 1440:

empty-chromium-390.png empty-chromium-1440.png empty-webkit-390.png empty-webkit-1440.png

Screenshots, Chromium, real server and real person (virtual authenticators), two passkeys listed; 390 / 900 / 1440, light and dark. **390:** light, dark ![two-390-light.png](https://git.kayg.org/attachments/a68b92ff-2b3e-4dae-bf93-c111cb3ffc09) ![two-390-dark.png](https://git.kayg.org/attachments/f263f1ab-47ed-46c7-a2da-b751f3bad0f2) **900:** light, dark ![two-900-light.png](https://git.kayg.org/attachments/15868bae-fe6e-420d-a728-d8d81e477cd2) ![two-900-dark.png](https://git.kayg.org/attachments/d9fa1c42-deb6-4796-b67d-acdf454b39df) **1440:** light, dark ![two-1440-light.png](https://git.kayg.org/attachments/4138a7b3-5798-4f1e-9e70-f6bbee3f11bb) ![two-1440-dark.png](https://git.kayg.org/attachments/acbe4ee2-cfff-4d0a-90bd-73d1553dc988) **One passkey (1440):** the remove button is dimmed; its tooltip says why. ![one-1440-light.png](https://git.kayg.org/attachments/a25a2045-58f4-4cf7-a659-e8715d21d594) WebKit has no virtual authenticator in Playwright, so there it covers only the screen (empty list on the development server, a failed add says one calm line). Screenshots from Chromium and WebKit at 390 and 1440: ![empty-chromium-390.png](https://git.kayg.org/attachments/ebceb0ea-365d-4c2c-95ab-4d4788ccd6f2) ![empty-chromium-1440.png](https://git.kayg.org/attachments/54f1a6c8-f7a4-4474-a48e-9a3bae780023) ![empty-webkit-390.png](https://git.kayg.org/attachments/777559a5-873b-4aa0-9fe7-f2381602b7e6) ![empty-webkit-1440.png](https://git.kayg.org/attachments/b75d7026-230b-4ccb-abea-cda2278cb3fc)
Author
Owner

Performance for #99 (PR #114). Nothing on a hot path changed: no editor, note, journal-write or startup code is touched, and no new work happens until Settings → Account is opened.

  • account.passkeys on a real debug-build server: 300 sequential calls over loopback averaged about 24 ms each, almost all of it curl spawning on the shared machine (one indexed SELECT in auth.db). Opening Settings makes this one call.
  • Add/rename/remove each do one small transaction in auth.db plus one journal event; registration verification is the same WebAuthn work sign-in setup already does.
  • auth.db v2 migration is one ALTER TABLE ... ADD COLUMN with a default (instant, tested on a v1 file).
  • Web bundle: the production main chunk is 772,947 B with this change; the new code is one small component and one store module in the same chunk. There is no perf/budgets.json in the repo on this branch, so the perf machine's gate still needs its normal run on the PR.
  • Full Playwright run on this branch (flow, passkeys, chromium 1440/390, webkit 1440): the new tests pass; the existing editor.spec "no layout shift ... (cpu x6)" passes alone and failed only when the machine was busy, and a few WebKit editor/day/info specs failed in this shared sandbox (screenshot and timing); none of them touch passkeys or Settings.
Performance for #99 (PR #114). Nothing on a hot path changed: no editor, note, journal-write or startup code is touched, and no new work happens until Settings → Account is opened. - `account.passkeys` on a real debug-build server: 300 sequential calls over loopback averaged about 24 ms each, almost all of it `curl` spawning on the shared machine (one indexed SELECT in `auth.db`). Opening Settings makes this one call. - Add/rename/remove each do one small transaction in `auth.db` plus one journal event; registration verification is the same WebAuthn work sign-in setup already does. - `auth.db` v2 migration is one `ALTER TABLE ... ADD COLUMN` with a default (instant, tested on a v1 file). - Web bundle: the production main chunk is 772,947 B with this change; the new code is one small component and one store module in the same chunk. There is no `perf/budgets.json` in the repo on this branch, so the perf machine's gate still needs its normal run on the PR. - Full Playwright run on this branch (flow, passkeys, chromium 1440/390, webkit 1440): the new tests pass; the existing `editor.spec` "no layout shift ... (cpu x6)" passes alone and failed only when the machine was busy, and a few WebKit editor/day/info specs failed in this shared sandbox (screenshot and timing); none of them touch passkeys or Settings.
kayg closed this issue 2026-10-14 04:13:05 +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#99
No description provided.