Skip to content

feat: Add defaultCategory to Phase 2 bulk-review rules#244

Open
rajathmr2000 wants to merge 16 commits into
mainfrom
feat/AXE-3625-phase-2-bulk-review
Open

feat: Add defaultCategory to Phase 2 bulk-review rules#244
rajathmr2000 wants to merge 16 commits into
mainfrom
feat/AXE-3625-phase-2-bulk-review

Conversation

@rajathmr2000

@rajathmr2000 rajathmr2000 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

rajathmr2000 and others added 4 commits June 26, 2026 15:18
Wire seven axe-core rules to their Phase 2 bulk-review categories via
metadata.defaultCategory (reference data only; no rule logic change):

  aria-hidden-focus            -> aria-hidden
  aria-valid-attr-value        -> aria-attributes
  bypass                       -> bypass-blocks
  css-orientation-lock         -> orientation
  duplicate-id-aria            -> duplicate-ids
  identical-links-same-purpose -> link-consistency
  video-caption                -> media-captions

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add reviewPayload.visualHelperData emits for aria-valid-attr-value,
aria-hidden-focus, identical-links-same-purpose and duplicate-id-aria
(dedicated evaluate/after), plus their unit specs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collapse the dedicated duplicate-id-aria evaluate/after back into the
shared duplicate-id-evaluate/duplicate-id-after, gated by a `reviewPayload`
check option. The aria check enables the bulk-review payload via that
option; the static/active checks keep their original string `data` and are
behaviourally unchanged. Adds tests for both data shapes and verdict parity.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@rajathmr2000 rajathmr2000 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review (automated) — 4 inline finding(s). Full report in the PR comment below. Verdict: Passed.

Comment thread lib/checks/aria/aria-valid-attr-value-evaluate.js
}

// primary link's DqElement is at relatedNodes[0]; capture before rebuild.
const currentNode = currentResult.relatedNodes[0];

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Medium] Missing // [tag]: submodule comment

The new bulk-review emit block (capture + reviewPayload) has an explanatory comment but not the required // [tag]: impact tag for axe-core submodule edits.

Suggestion: prefix the block, e.g. // a11y-rule-identical-links-same-purpose: emit identical-link group for bulk review.

Reviewer: stack:code-review

Comment thread lib/checks/navigation/identical-links-same-purpose-evaluate.js
Comment thread lib/checks/parsing/duplicate-id-after.js
@rajathmr2000 rajathmr2000 changed the title AXE-3625: Add defaultCategory to Phase 2 bulk-review rules feat: Add defaultCategory to Phase 2 bulk-review rules Jun 29, 2026
Wire metadata.defaultCategory for the prioritized rules (aria-valid-attr-value,
video-caption, bypass, css-orientation-lock) and emit reviewPayload.visualHelperData
for aria-valid-attr-value. Excludes aria-hidden-focus / identical-links-same-purpose
/ duplicate-id-aria (deferred).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@rajathmr2000 rajathmr2000 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review (automated) — 4 inline finding(s). Full report in the PR comment below. Verdict: Failed - see PR comment.

Comment thread lib/checks/navigation/identical-links-same-purpose-after.js
Comment thread lib/checks/navigation/identical-links-same-purpose-evaluate.js
Comment thread lib/checks/parsing/duplicate-id-after.js
rajathmr2000 and others added 6 commits June 29, 2026 13:25
Update the 8 needs-review deepEqual expectations in valid-attr-value.js
to include the reviewPayload the check now emits on the needs-review
path, and add the // a11y-rule-aria-valid-attr-value tag on the emit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Normalize the // a11y-rule comment indentation (tab -> spaces) so
fmt:check (prettier --check) passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
rajathmr2000 added a commit that referenced this pull request Jun 29, 2026
Make this branch's tree identical to feat/AXE-3625-bulk-review-priority (#245) so #244 carries the agreed priority-rule scope.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rajathmr2000 rajathmr2000 force-pushed the feat/AXE-3625-phase-2-bulk-review branch from 5d1b443 to 32c3c05 Compare June 29, 2026 10:52
@rajathmr2000 rajathmr2000 changed the base branch from main to feat/AXE-3625-bulk-review-priority July 9, 2026 10:37
@rajathmr2000 rajathmr2000 changed the base branch from feat/AXE-3625-bulk-review-priority to main July 9, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants