-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add static explanation #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Greptile OverviewGreptile SummaryThis PR replaces AxeCore/Deque references with static, user-friendly explanations sourced from Key Changes:
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant AIProcessor
participant ViolationTransformer
participant UserStoryService
participant rulesData.json
participant OpenAI
participant HtmlGenerator
Client->>AIProcessor: processAccessibilityIssues(issues)
AIProcessor->>ViolationTransformer: transformMany(issues)
loop For each issue
ViolationTransformer->>UserStoryService: getRuleData(issue.id)
UserStoryService->>rulesData.json: Read static data
rulesData.json-->>UserStoryService: Rule data (title, summary, wcag, etc)
UserStoryService-->>ViolationTransformer: Rule data
ViolationTransformer->>ViolationTransformer: Enrich issue with static fields
end
ViolationTransformer-->>AIProcessor: Transformed issues (without helpUrl)
alt AI Enabled
loop For each transformed issue
AIProcessor->>UserStoryService: getUserStory(issue.id)
UserStoryService-->>AIProcessor: User story
AIProcessor->>OpenAI: Generate explanation & remediation
OpenAI-->>AIProcessor: AI response
AIProcessor->>AIProcessor: Merge AI data with transformed issue
end
end
AIProcessor-->>Client: Processed issues with static + AI data
Client->>HtmlGenerator: Generate HTML report
HtmlGenerator->>HtmlGenerator: Render title, summary, explanation, WCAG, ACT rules
HtmlGenerator-->>Client: HTML report with user-friendly content
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7 files reviewed, no comments
4rokis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Feature PR
Summary
Adding a feature to remove AxeCore/Deque references from the JSON output and replace them with cleaner, static explanations to make accessibility results more user-friendly, consistent, and easier for the business to understand.
Changes
Evidence / Demo
Checklist