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

[Admin] Ensure labels are clickable by parameterizing ids #5429

Conversation

rainerdema
Copy link
Contributor

@rainerdema rainerdema commented Oct 10, 2023

Summary

In certain instances within SolidusAdmin::UI::Table::RansackFilter::Component, labels were not clickable due to spaces in their associated IDs, which occurred when the label or option value contained spaces.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

Ensure that IDs generated for labels do not contain spaces, utilizing the
`parameterize` method.

This resolves an issue where labels were not clickable due to invalid characters
in corresponding IDs.
@rainerdema rainerdema requested a review from elia October 10, 2023 17:06
@rainerdema rainerdema self-assigned this Oct 10, 2023
@rainerdema rainerdema requested a review from a team as a code owner October 10, 2023 17:06
@rainerdema rainerdema merged commit ce69e2c into solidusio:main Oct 11, 2023
2 checks passed
@rainerdema rainerdema deleted the rainerd/ransack-filter/fix/parameterize-id-creation branch October 11, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants