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

[5.x] Query Scopes config option: show available query scopes in dropdown #9933

Merged
merged 7 commits into from
May 20, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request makes a small improvement to the "Query Scopes" config option on some of our fieldtypes.

Previously, when you clicked into the config option's input, a dropdown would appear. However, it'd never actually show any dropdown options.

CleanShot 2024-04-19 at 14 26 00

This could be confusing for some developers - leading to them thinking they did something wrong when creating the query scope, causing it to not appear. But in fact, it was just showing no options because we hadn't hooked up any options to it.

This PR adds all of the available query scopes as dropdown options. It also makes the relevant changes to the Taggable fieldtype to allow for options to be passed in.

CleanShot 2024-04-19 at 14 25 39

@duncanmcclean duncanmcclean changed the title [4.x] Show options for query scopes config options [4.x] Query Scopes config option: show available query scopes in dropdown Apr 19, 2024
@duncanmcclean duncanmcclean changed the base branch from 4.x to 5.x May 9, 2024 16:13
@duncanmcclean duncanmcclean changed the title [4.x] Query Scopes config option: show available query scopes in dropdown [5.x] Query Scopes config option: show available query scopes in dropdown May 9, 2024
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

When using a taggable fieldtype and providing options to it, it doesn't load in the publish form. You get JS errors.

@duncanmcclean
Copy link
Member Author

When using a taggable fieldtype and providing options to it, it doesn't load in the publish form. You get JS errors.

Should be fixed now 👍

@jasonvarga jasonvarga merged commit 8666e35 into 5.x May 20, 2024
31 checks passed
@jasonvarga jasonvarga deleted the show-options-for-query-scopes-config-options branch May 20, 2024 20:35
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.

None yet

2 participants