Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Feature Proposal: count number of issues by issue code #1

Open
sgregson opened this issue Jan 17, 2018 · 0 comments
Open

Feature Proposal: count number of issues by issue code #1

sgregson opened this issue Jan 17, 2018 · 0 comments

Comments

@sgregson
Copy link

sgregson commented Jan 17, 2018

❤️ the work on pa11y@5 beta!

I've been playing around with the beta and found myself often working to facet the issues list by their code. Other a11y testing tools provide this view to help prioritize fixes - the more issues of a type, the more critical to address first.

I worked on a local branch of the reporter to produce the following mock of what I had in mind, aiming for:

  • Facet issue counts (split by error,warning,notice) according to Success Criteria, sorted by volume of issues
  • no clientside scripting
    • uses the HTML <details> element (IE/Edge support TBD) to reveal/hide
  • link directly to WCAG2 Success Criteria
    • via regex extracting from issue.code.split('.').filter(chunk => chunk.match(/^[A-Z]+\d+$/)), which is gross-but-works. would love better method.

screencap of issue faces

I'd be happy to add some tests and bring it closer to PR-ready if that's in keeping with the goal of this reporter?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant