Repository navigation
Conversation
Add an eye button inside the password field that toggles between showing and hiding the typed password. The e2e login fixture now matches the password label exactly so it does not also match the toggle button's accessible name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
This PR adds a show/hide toggle to the password field on the login page, so users can quickly check what they typed (e.g. to catch a typo) before submitting.
Changes
type="password"andtype="text"and swaps the icon betweenEyeandEyeOff(lucide-react, already a dependency)type="button"so it never submits the form, and it is disabled while a login is in progress, like the inputaria-labelplusaria-pressedfor the current state, and the same focus ring as the existing inputs and buttonsloginPasswordToggleinen.jsonanden-US.jsonLoginFixturenow usesgetByLabel('Password', { exact: true }), since the default substring match would also hit the toggle's "Toggle password visibility" labelNo backend, configuration or storage changes.
Verification
make lint-webuipasses with no new warningsBefore / After
AI disclosure
Per AI_POLICY.md: this change was written with the help of Claude Code. It is small (one component, one translation key, one test selector), and I have reviewed every line and can explain it.
🤖 Generated with Claude Code
Summary by CodeRabbit