Repository navigation
fix(web,mobile): password change — restore missing messages, show each problem under its own input - #179
Merged
Conversation
…word change Changing the password with a wrong current password threw next-intl MISSING_MESSAGE (settings.security.incorrectCurrent) in dev and rendered the raw key in production. 732eb32 dropped incorrectCurrent and currentRequired from settings.security and settings.changePasswordDialog in every locale; 3e993af then added passwordChangeErrorKey, which still returns both. - Re-add both keys to both namespaces in all 7 locales, with the wording they had before 732eb32. - New test drives every branch of passwordChangeErrorKey and asserts each returned key (and its placeholders) exists in both namespaces in every locale; the parity test cannot catch a key missing from all locales alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Submitting Settings -> Security with only the current password filled showed
the strength checklist's "≥8 characters" chip in a banner above the form; an
empty current password was never checked before the request.
- Validation is per input: current password required, new password required
then the policy as sentences ("Must contain an uppercase letter (A-Z)"),
confirmation judged once a new password exists. Errors appear on the first
submit and are re-checked as the user types.
- A wrong / missing current password from the server shows under that input
(and takes focus) until it is edited; too short goes under the new
password. Network / SSO / unknown stay in the banner.
- Web: pure `validatePasswordChange` + `passwordChangeErrorField`
(lib/auth/password-change-form.ts); new settings.security keys in all 7
locales, worded as mobile already ships them.
- Mobile: same rules with Form validators
(settings/utils/password_change_form.dart) and `changePasswordErrorField`.
- Tests: vitest (helper, catalogue keys, page behaviour) and a Flutter widget
test mirroring it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…fading toast
After a successful change the Security page cleared the form and showed a
4-second toast at the top of the screen; once it faded the page looked exactly
as before, so it was unclear whether anything happened, and nothing said the
other devices had just been signed out.
- The card now shows a lasting confirmation ("Password changed successfully"
+ "Your other devices have been signed out.", or for a first password "You
can now also sign in with your email and this password.") until an input
is edited or Cancel is pressed. Web renders it as role="status"; mobile as
a live-region PasswordChangedNotice. The toast / top banner is gone.
- New keys in all 7 locales: web settings.security.changeDoneBody /
setDoneBody, mobile securityChangeDoneBody / securitySetDoneBody
(gen-l10n regenerated).
- Tests: vitest page test + catalogue check, Flutter widget test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual test on
dev(2026-10-28), Settings → Password & Security:MISSING_MESSAGE: Could not resolve settings.security.incorrectCurrent(dev overlay; production would render the raw key).Missing messages (web)
732eb327(2FA work) removedincorrectCurrent/currentRequiredfromsettings.securityandsettings.changePasswordDialogin all 7 locales. A day later,3e993affaddedpasswordChangeErrorKey(), which still returns both. They are back, with their original wording from732eb327^.Per-input validation (web + mobile)
aria-invalid, focus moves to the first one), and are re-checked as the user types.validatePasswordChange+passwordChangeErrorFieldinlib/auth/password-change-form.ts; 5 newsettings.securitykeys in all 7 locales, worded as mobile already ships them.Formvalidators (settings/utils/password_change_form.dart) andchangePasswordErrorField. No new ARB keys.ChangePasswordDialogon both platforms, which nothing renders.Confirmation after a success (web + mobile)
role="status"; mobile renders it as a live-regionPasswordChangedNotice. The toast and the top banner are removed.changeDoneBody/setDoneBody, mobilesecurityChangeDoneBody/securitySetDoneBody).devin the browser with a seeded test account: changed its password, then changed it back.Verified:
tsc, eslint andflutter analyzeare clean.test/features/settings33/33.devas8364d917and92290ba4, and tested manually there.Testcontainers fix (#178) is merged into
main, and this branch now includes it.🤖 Generated with Claude Code