Repository navigation
fix(ui): draw the account and settings errors with the shared alert - #1376
Open
TheMeinerLP wants to merge 3 commits into
Open
TheMeinerLP wants to merge 3 commits into
TheMeinerLP wants to merge 3 commits into
Conversation
Password, second factor, backup and domain settings messages were hand-built paragraphs, so they looked and announced differently from the other dashboard errors. They now use MdAlert in the error tone, so a failed load or refused change is announced once, with the same container everywhere.
Look up MdAlert by component and read its tone prop, not the data-ingot attributes.
5 of 14 tasks
The state now comes from MdAlert itself, see #1379.
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.
Description
When changing a password, a second factor or a domain setting failed, or the settings backup could not be read, the message appeared as a plain red paragraph. It looked different on each page, and screen readers announced some of these failures and not others.
These messages now use the shared alert in the error tone, so they look the same on every page and are announced once when they appear. In the rename and removal forms, the alert sits where the message was before.
Type of change
fix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
heavy npx vitest runon the password card, second factor card, domain settings panel, settings backup panel, maintenance view and analytics view tests, with the new tests written first and seen to failnpx eslinton the changed filesnpm run typecheckinreposilite-frontendChecklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (frontend-only change, Gradle not run)Depends on #1379 for the error state anchor.