Repository navigation
fix(ui): draw the sign-in and access errors with the shared alert - #1371
Open
TheMeinerLP wants to merge 3 commits into
Open
TheMeinerLP wants to merge 3 commits into
TheMeinerLP wants to merge 3 commits into
Conversation
Sign-in, second factor, SSO, team parent and inherited node messages were hand-built paragraphs, so each looked and announced differently from the rest of the dashboard. They now use MdAlert in the error tone, and the unreadable team notice uses the warning tone, which is announced politely instead of as an alert.
Look up MdAlert and MdListbox by role and component, not by data-ingot-component.
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 a sign-in, a second factor, an SSO save, a team parent change or an inherited node fails, the message used to appear as a plain red paragraph. Each dialog drew it a little differently, and screen readers announced some of them and not others. The notice about a team whose nodes could not be read was announced as an error even though nothing failed on the page.
Those messages now use the shared alert. Errors take the error tone and announce once, and the unreadable team notice takes the warning tone, so it stays on the page and is read politely. The team parent card keeps its Reload action inside the alert.
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 sign-in dialog, step-up dialog, SSO dialog, team parent card, node editor, team detail and principal detail 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.