Skip to content

fix(forms-a11y): keep handler that normalizes Mystique a11y payload to update_from/target_selector for codefix-handler compatibility.#2038

Open
anshikag-adobe wants to merge 5 commits intomainfrom
fix/combine_a11y_issues
Open

fix(forms-a11y): keep handler that normalizes Mystique a11y payload to update_from/target_selector for codefix-handler compatibility.#2038
anshikag-adobe wants to merge 5 commits intomainfrom
fix/combine_a11y_issues

Conversation

@anshikag-adobe
Copy link

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes
  • If data sources for any opportunity has been updated/added, please update the wiki for same opportunity.

Related Issues

Thanks for contributing!

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

This PR will trigger a patch release when merged.

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

severity: (issue.severity ?? issue.Severity) === 'critical' ? 'critical' : 'serious',
failureSummary: String(issue.failureSummary ?? issue.failure_summary ?? ''),
htmlWithIssues: normalizedHtml,
aiGenerated: Boolean(issue.aiGenerated ?? issue.ai_generated ?? true),
Copy link
Contributor

Choose a reason for hiding this comment

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

The problem I see with this approach is we are storing both camelCase as well as snakeCase. This will cause confusion in the future

Copy link
Author

Choose a reason for hiding this comment

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

The normalizer accepted both camelCase (from Mystique) and snake_case as input but always returned snake_case. Reading both shapes in the normalizer and in consumers made it look like I was storing both formats.
What I changed: I now treat snake_case as the only format in the pipeline: normalize at every entry point (including extractFormAccessibilityData), consumers only read update_from and target_selector, and I added a test that camelCase input is normalized to snake_case. CamelCase is only accepted at the Mystique boundary and is converted immediately, so I no longer store or propagate both.

Should that be fine? updating the commit.

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant for the other attributes. only htmlWithIssues uses snake_case while the entire object uses camelCase (aiGenerated). A comment why partial object is snake_case would be a good thing here.

@anshikag-adobe anshikag-adobe force-pushed the fix/combine_a11y_issues branch from d01d18c to 66cf393 Compare March 2, 2026 09:30
severity: (issue.severity ?? issue.Severity) === 'critical' ? 'critical' : 'serious',
failureSummary: String(issue.failureSummary ?? issue.failure_summary ?? ''),
htmlWithIssues: normalizedHtml,
aiGenerated: Boolean(issue.aiGenerated ?? issue.ai_generated ?? true),
Copy link
Contributor

Choose a reason for hiding this comment

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

I meant for the other attributes. only htmlWithIssues uses snake_case while the entire object uses camelCase (aiGenerated). A comment why partial object is snake_case would be a good thing here.

@anshikag-adobe anshikag-adobe force-pushed the fix/combine_a11y_issues branch from 66cf393 to 7c68e93 Compare March 3, 2026 05:09
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