Skip to content

fix(ui): draw the account and settings errors with the shared alert - #1376

Open
TheMeinerLP wants to merge 3 commits into
mainfrom
fix/alert-account-settings
Open

TheMeinerLP wants to merge 3 commits into
mainfrom
fix/alert-account-settings

Conversation

@TheMeinerLP

@TheMeinerLP TheMeinerLP commented Nov 28, 2026 •

Copy link
Copy Markdown

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 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 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 fail
  • npx eslint on the changed files
  • npm run typecheck in reposilite-frontend
  • The audit log and file browser error alerts are not changed here, because their retry control sits inside the same element as the message

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.

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.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
Look up MdAlert by component and read its tone prop, not the data-ingot attributes.
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