Repository navigation
fix(ui): let the alert carry its error state anchor - #1379
Open
TheMeinerLP wants to merge 1 commit into
Open
TheMeinerLP wants to merge 1 commit into
TheMeinerLP wants to merge 1 commit into
Conversation
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
added a commit
that referenced
this pull request
Nov 28, 2026
The state now comes from MdAlert itself, see #1379.
5 of 14 tasks
TheMeinerLP
added a commit
that referenced
this pull request
Nov 28, 2026
The state now comes from MdAlert itself, see #1379.
5 of 14 tasks
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
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 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 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 eslinton the changed Vue and test files: cleannpm run typecheck: cleannpm run anchors:docregenerated the reference page; the only change is themd-alertrow listingerrorChecklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (frontend-only change; not run)