feat: implement custom scan profiles and wcag filtering - #53
Open
kritikukreja6-create wants to merge 1 commit into
Open
feat: implement custom scan profiles and wcag filtering#53kritikukreja6-create wants to merge 1 commit into
kritikukreja6-create wants to merge 1 commit into
Conversation
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
This PR introduces Custom Scan Profiles and WCAG Level Filtering, allowing users to target specific accessibility compliance levels (A, AA, AAA) rather than running a generic blanket scan.
By defining custom parameters, developers can now test against specific regional or legal requirements, making the scanning engine much more versatile.
This is my contribution for SSOC '26! 🚀
Fixes / Closes
Closes #<INSERT_YOUR_ISSUE_NUMBER_HERE>
Changes Made
This is a full-stack implementation spanning the React UI, Flask API, and Node.js scanner:
Frontend (React / Tailwind CSS)
ScanProfileFormcomponent to allow users to define and save custom configurations (e.g., togglingwcag2a,wcag2aa,wcag2aaa).ScanUrlFormto include a dynamic dropdown menu that fetches and displays saved profiles from the database.useScannerhook andapi.tsto seamlessly attach the selectedprofileIdto the scanning payload.Backend (Flask / MongoDB)
POST /api/profilesandGET /api/profilesendpoints inapp.pyto handle the creation and retrieval of user-defined profiles./api/scanendpoint to fetch a given profile's specificaxeConfigfrom MongoDB and pass it down to the Node.js scanning service as a stringified argument.Scanner Engine (Node.js / axe-core)
scan_service.jsto catch custom CLI arguments.customAxeConfiginto the Puppeteerpage.evaluate()context soaxe.run()only tests against the user-requested rules.Screenshots
(Consider dragging and dropping the screenshot of your UI with the new dropdown menu and the create form here!)
Checklist
feat: ...)