Skip to content

fix(ui): drop the alert role from the encryption notice - #1378

Open
TheMeinerLP wants to merge 2 commits into
mainfrom
fix/encryption-notice-role
Open

TheMeinerLP wants to merge 2 commits into
mainfrom
fix/encryption-notice-role

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

The System page warns while secret values are stored in clear and no settings key is set. That warning does not change until someone sets the key, but it was announced as an alert on every visit. A screen reader user heard it interrupt the page as if something had just failed.

The notice now uses the shared alert with the warning tone. It stays visible and is read politely, as a status, and it keeps the same text and anchor.

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 src/components/support/SettingsEncryptionAlert.test.ts: the warning test was changed first to expect the shared alert with the warning tone and no alert role, and it failed before the change
  • 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

The notice that secret values are kept in clear stays on the System
page until a key is set, so it is not an event. It was announced as an
alert on every visit, which interrupted screen reader users as if
something had just failed. It is now a warning on the shared alert,
which announces it politely.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
Look up the notice as MdAlert by component instead of its data-ingot-component.
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