Skip to content

refactor feedback form category/service selection #2497

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

Merged
merged 2 commits into from
Apr 11, 2025
Merged

Conversation

thecristen
Copy link
Collaborator

Summary of changes

Asana Ticket: Feedback form | Form refresh breaks subject selection

After consultation with some design-savvy folk, I've decided to adjust the form this way.

Instead of a dynamically-populated <select>, which was subject to data loss on refresh and probably wasn't particularly accessible anyway, we use a simpler static <select> with <optgroup> to separate the groups.

image

It's a bit long, but this was agreed upon to be the least bad quick option.

One side effect is that we can remove the "Category" radio buttons, since we can now infer the selected category from this big dropdown.

And this all needed some downstream changes, to ensure validation still works and that the right data is sent.

Caution

The Cypress test only mostly works: the mechanism for retrieving the "sent" data is flawed when many tests are happening together, I think. But I think fixing this is out of scope 👀

@thecristen thecristen requested a review from a team as a code owner April 8, 2025 22:21
@thecristen thecristen added the dev-blue Deploy to dev-blue label Apr 8, 2025
Keyword.new()
|> Keyword.put(:key, value)
|> Keyword.put(:value, value)
|> Keyword.put(:"aria-label", value)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding aria-labels here per the advice here to improve screen reader handling,

@thecristen thecristen removed the dev-blue Deploy to dev-blue label Apr 9, 2025
@thecristen thecristen merged commit dc7e817 into main Apr 11, 2025
27 checks passed
@thecristen thecristen deleted the support-form-hotfix branch April 11, 2025 14:40
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