Sign-in: wait for the sign-in mode before showing the fields #110

Merged
jcoffey-dev merged 1 commits from fix/102-signin-mode into main 2026-11-18 18:35:20 +00:00
Owner

Fixes #102 (reported in https://community.coffeylabs.org/t/232, post 34).

On an install that signs in on the mail server's page, /mail/a showed the username and password fields until /api/config answered, then swapped the password field for the note about the server's page.

  • The fields are laid out but hidden (visibility: hidden, aria-hidden) until the sign-in mode is known, so the card keeps its size while it waits. The wrapper is keyed on the mode, so the fields remount once it arrives and autoFocus still lands (a hidden input can't take focus).
  • The two hints under "This is my own device" go through t(), with translations added to all ten catalogs (AI-written, like the rest of those catalogs).

Checked locally: typecheck, npm test (web 1599, server 300), release-version.test.sh, npm run i18n:check (1737/1737 in every language), build.

Fixes #102 (reported in https://community.coffeylabs.org/t/232, post 34). On an install that signs in on the mail server's page, /mail/a showed the username and password fields until `/api/config` answered, then swapped the password field for the note about the server's page. - The fields are laid out but hidden (`visibility: hidden`, `aria-hidden`) until the sign-in mode is known, so the card keeps its size while it waits. The wrapper is keyed on the mode, so the fields remount once it arrives and `autoFocus` still lands (a hidden input can't take focus). - The two hints under "This is my own device" go through `t()`, with translations added to all ten catalogs (AI-written, like the rest of those catalogs). Checked locally: typecheck, `npm test` (web 1599, server 300), `release-version.test.sh`, `npm run i18n:check` (1737/1737 in every language), build.
jcoffey-dev added 1 commit 2026-11-18 18:33:08 +00:00
Sign-in: wait for the sign-in mode before showing the fields
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m46s
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / announce (pull_request) Skipped
6a7fe5f16d
On an install that signs in on the mail server's page, /mail/a showed the
username and password fields until /api/config answered, then swapped the
password field for the note about the server's page. The fields are now laid
out but hidden until the mode is known, so the card keeps its size, and they
remount then so autofocus still lands.

The two hints under "This is my own device" go through t() now, with
translations in all ten catalogs.

Fixes #102
jcoffey-dev merged commit 291e68a331 into main 2026-11-18 18:35:20 +00:00
jcoffey-dev deleted branch fix/102-signin-mode 2026-11-18 18:35:20 +00:00
Sign in to join this conversation.