Files
HiveGrid-Wireframes/hivegrid-cloud/.eslintrc.a11y-baseline.json
T

58 lines
5.0 KiB
JSON

{
"$schema-comment": "Baseline catalogue of jsx-a11y/recommended rules that are currently disabled in .eslintrc because the codebase has pre-existing violations. The plan is to drive these counts down to zero, then promote each rule back to `error` in .eslintrc and remove it from this file. See docs/contributing/wcag-audit.md for the reduction policy. Counts are produced by `scripts/verify-a11y-baseline.mjs`.",
"generatedAt": "2026-05-17",
"lastUpdatedAt": "2026-05-28",
"scope": ["apps/web/app/**/*.tsx", "packages/ui/src/stories/**/*.tsx"],
"ruleset": "plugin:jsx-a11y/recommended",
"totalViolations": 81,
"rules": {
"jsx-a11y/no-autofocus": {
"violations": 81,
"severity": "P2",
"rationale": "Autofocus remains in form/editor surfaces. Button/link wrappers now use programmatic focus instead of DOM autoFocus. Migration plan: prefer programmatic focus on open() so screen-reader users hear the modal title first."
}
},
"promoted": {
"jsx-a11y/anchor-has-content": {
"promotedAt": "2026-05-20",
"rationale": "Reached 0 violations. The two reusable wrappers (PaginationLink, StepperTitle) now destructure `children` and render it explicitly so the rule can statically verify content. Rule moved back to `error` (jsx-a11y/recommended default) and the `off` override removed from .eslintrc."
},
"jsx-a11y/heading-has-content": {
"promotedAt": "2026-05-20",
"rationale": "Reached 0 violations alongside anchor-has-content — see StepperTitle. Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/label-has-associated-control": {
"promotedAt": "2026-05-20",
"rationale": "P1. Reached 0 violations (#73 WCAG sweep). Form labels were associated with their controls via htmlFor+id (marketing-funnels, PropertyForm); accessible text was flattened to within depth-2 (NewMember, RowForm, GroupForm); empty/decorative labels captioning non-form widgets were converted to <div>/role=group captions (ConfirmModal inputs now carry aria-label, PreviewTooltips, PreviewInputTextWithMonacoEditor, JsonPropertyForm, PromptTemplateForm). Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/click-events-have-key-events": {
"promotedAt": "2026-05-20",
"rationale": "P1. Reached 0 violations (#73 WCAG sweep). Genuine div-buttons were converted to <button> (ShowMoreLinesText, WorkflowExecutionsSidebar, BlockRun toggle); rows with nested interactive children gained role=button + tabIndex + onKeyDown (ConditionsGroupsInfo, prompt-builder templates); dead onClick={e=>e.preventDefault()} handlers on plain divs were removed (PdfViewer, WorkflowRun); image lightbox trigger wrapped in <button> (HoverEffect). Three genuine mouse-only click-to-focus hit-area enhancements (input-group, InputRichTextEditor, novel editor, SiteTypeCard wrapper) retain a justified inline eslint-disable to avoid a redundant tab stop ahead of an already-keyboard-accessible control. Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/no-static-element-interactions": {
"promotedAt": "2026-05-20",
"rationale": "P1. Reached 0 violations alongside click-events-have-key-events (#73 WCAG sweep) — same set of fixes. Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/no-noninteractive-element-interactions": {
"promotedAt": "2026-05-20",
"rationale": "P1. Reached 0 violations (#73 WCAG sweep). The <img> lightbox trigger (HoverEffect) was wrapped in a <button>; the role=group input-group addon retains a justified inline eslint-disable for its mouse-only focus-forwarding click. Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/anchor-is-valid": {
"promotedAt": "2026-05-25",
"rationale": "Reached 0 violations after Storybook Popover demo menu anchors were converted to button controls. Rule moved back to `error` and the `off` override removed from .eslintrc."
},
"jsx-a11y/no-noninteractive-tabindex": {
"promotedAt": "2026-05-25",
"rationale": "Verifier reproduced 0 violations across the tracked app and Storybook scope. Rule moved back to `error` and the stale `off` override was removed from .eslintrc."
},
"jsx-a11y/media-has-caption": {
"promotedAt": "2026-05-28",
"rationale": "Reached 0 violations after AudioOrVideoPlayer started rendering a captions track for audio and video media by default, with optional caller-provided VTT metadata. Rule moved back to `error` and the `off` override was removed from .eslintrc."
}
},
"reductionPolicy": {
"monotonicDecrease": "scripts/verify-a11y-baseline.mjs (run in CI on PRs) MUST fail if any rule's count grows above the value recorded here. Reducing the count is encouraged — re-run the script to update the baseline.",
"promotionThreshold": "When a rule's violation count reaches 0, remove its `off` override from .eslintrc, delete the entry from this file, and add a row to docs/contributing/wcag-audit.md changelog."
}
}