Skip to content

fix(ui): let the alert carry its error state anchor - #1379

Open
TheMeinerLP wants to merge 1 commit into
mainfrom
fix/md-alert-error-state
Open

TheMeinerLP wants to merge 1 commit into
mainfrom
fix/md-alert-error-state

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

An inline error notice is announced to screen readers at once, but the dashboard anchor for it did not say that it was an error. Plugins that match on the anchor state could not tell an error notice from a plain status line. The alert now marks its own root with the error state, so every call site gets it without repeating the attribute. Other tones carry no state.

This is additive: a new state on an existing anchor. Nothing is removed or renamed.

Depends on: none. Follow-up PRs #1371 and #1376 drop the per-call-site attribute they added.

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/anchors/anchors.test.ts src/components/md/MdAlert.test.ts --maxWorkers=2: 2 files, 123 tests passed (includes the new error-state and no-state assertions and the registry and reference page checks)
  • npx eslint on the changed Vue and test files: clean
  • npm run typecheck: clean
  • npm run anchors:doc regenerated the reference page; the only change is the md-alert row listing error

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; not run)
  • Documentation and configuration samples are updated if the change is user-facing (the generated anchors reference is updated)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

An inline error notice was announced as an alert but did not say in
the anchor that it was an error, so plugins matching on the state
could not tell it apart from a plain status line. The alert now marks
its root with the error state itself, which lets the call sites stop
repeating it. Other tones carry no state.

This is additive: a new state on an existing anchor. Nothing is
removed or renamed.
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 28, 2026
TheMeinerLP added a commit that referenced this pull request Nov 28, 2026
The state now comes from MdAlert itself, see #1379.
TheMeinerLP added a commit that referenced this pull request Nov 28, 2026
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