Skip to content

fix(ui): draw the sign-in and access errors with the shared alert - #1371

Open
TheMeinerLP wants to merge 3 commits into
mainfrom
fix/alert-sign-in-access
Open

TheMeinerLP wants to merge 3 commits into
mainfrom
fix/alert-sign-in-access

Conversation

@TheMeinerLP

@TheMeinerLP TheMeinerLP commented Nov 28, 2026 •

Copy link
Copy Markdown

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 fix
  • feat - new feature
  • refactor - internal change without behaviour change
  • perf - performance improvement
  • docs - documentation only
  • test - tests only
  • build / ci / chore - tooling, dependencies, pipelines
  • Breaking change (configuration, API or behaviour that existing deployments rely on)

How was this tested?

  • heavy npx vitest run on 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 fail
  • npx eslint on the changed files
  • npm run typecheck in reposilite-frontend

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md (English, imperative, one of feat, fix, docs, refactor, test, build, ci, chore, perf)
  • Tests cover the change, or the change is not testable and I explained why above
  • ./gradlew build passes locally (frontend-only change, Gradle not run)
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

Depends on #1379 for the error state anchor.

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.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
Look up MdAlert and MdListbox by role and component, not by data-ingot-component.
The state now comes from MdAlert itself, see #1379.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant