Passkeys: say why the section can't list them, instead of vanishing #120

Merged
jcoffey-dev merged 1 commits from fix/119-passkeys-section-reason into main 2026-11-19 17:15:56 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 019d2d370c Passkeys: say why the section can't list them, instead of vanishing
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m44s
ci / docker-build (pull_request) Skipped
ci / announce (pull_request) Skipped
listPasskeys returned null on any error, and the section then hid itself,
so an account the server wouldn't allow passkeys (forum t/339, server
#478) saw "Loading…" and then nothing. It now tells the cases apart:

- no passkeys on the server (unknownMethod / unknownCapability): hidden,
  as before;
- forbidden: a note that passkeys aren't available for this account and
  to ask the mail administrator, with no add form;
- anything else: "Couldn't load your passkeys." with the reason and a
  Retry button.

The two new strings are added to all ten catalogs (AI-written, like the
rest of each catalog). Tests: the listing's three outcomes, and a
component test for each state of the section.

Fixes #119
2026-11-19 10:12:25 -07:00