Skip to content
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

fix: handling of commands.json aliases #1197

Merged
merged 5 commits into from
Feb 13, 2025
Merged

fix: handling of commands.json aliases #1197

merged 5 commits into from
Feb 13, 2025

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Feb 13, 2025

Preview Tests

This PR does the following:

  • Correctly defaults the flattenObject() function's parentKey param to an empty string. Without this, it was causing incorrect string matching comparisons during the review pages renders. So comparisons against "undefinedmodifierAliases.vo" when "modifierAliases.vo" was expected, would happen. This also applied to keyAliases.
  • Consolidation of flattenObject(), findValuesByKeys() and findValueByKey() functions.

This addresses a build issue discussed in #1193.

@howard-e howard-e changed the title fix: commands.json handling of aliases fix: commands.json handling of alias commands Feb 13, 2025
@howard-e howard-e changed the title fix: commands.json handling of alias commands fix: handling of commands.json aliases Feb 13, 2025
Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

To test, I merged the compare branch for PR #1193 into the fix-alias-keys branch and made the test1197 branch and published in draft PR #1198.

The preview of the Media Seek Slider Test Plan | For Pattern: seek-slider available from PR 1198 is correctly rendering the VoiceOver tests.

This PR seems to be solving the problem!

Copy link
Contributor

@stalgiag stalgiag left a comment

Choose a reason for hiding this comment

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

Confirming the fix. Also appreciate the function consolidation. Thanks for the rapid fix @howard-e !

@stalgiag stalgiag merged commit fabc5ea into master Feb 13, 2025
8 checks passed
@stalgiag stalgiag deleted the fix-alias-keys branch February 13, 2025 20:10
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.

3 participants