From f8a9e069a27f930c5b98c3977dffbf44762fa1fe Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 7 Nov 2026 11:20:56 +0100 Subject: [PATCH] openspec(fix-cognito-signin): 3.3 done Co-authored-by: Cursor --- openspec/changes/fix-cognito-signin/tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openspec/changes/fix-cognito-signin/tasks.md b/openspec/changes/fix-cognito-signin/tasks.md index 34a8392..1c72b3a 100644 --- a/openspec/changes/fix-cognito-signin/tasks.md +++ b/openspec/changes/fix-cognito-signin/tasks.md @@ -13,7 +13,7 @@ - [ ] 3.1 In `async_step_token`, map `err.kind` to `token_rejected` / `invalid_credentials` / `invalid_auth`; on `invalid_credentials` re-show the `user` form (setup) or `reauth_confirm` form (reauth) with the error instead of the token form - [ ] 3.2 Pass `description_placeholders={"reason": ...}` on every `async_show_form` for `user`, `reauth_confirm` and `token` (empty string when there is no error) -- [ ] 3.3 In `strings.json` and `translations/en.json`, reword `invalid_auth` to include `{reason}` and add `invalid_credentials` and `token_rejected`; verify the two files stay identical (`diff`) +- [x] 3.3 In `strings.json` and `translations/en.json`, reword `invalid_auth` to include `{reason}` and add `invalid_credentials` and `token_rejected`; verify the two files stay identical (`diff`) - [ ] 3.4 Extend `tests/test_config_flow.py`: one test per error key (setup and reauth), asserting the form step, the error key and the `reason` placeholder; update `test_reauth_bad_token_keeps_old_tokens` for the new key; add a check that every `errors["base"]` value in `config_flow.py` exists in both translation files; verify `.venv-test/bin/pytest tests/` passes ## 4. README