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

hugo: Allow preselected tags on search #477

Closed
wants to merge 1 commit into from

Conversation

Wies-UsMedia
Copy link
Collaborator

@Wies-UsMedia Wies-UsMedia commented Nov 1, 2024

See commit message.

To test, go to https://deploy-preview-477--cue.netlify.app/examples/shortcodes/search/ and you should be able to add new tags, as well as remove the preselected tags.

@Wies-UsMedia Wies-UsMedia self-assigned this Nov 1, 2024
Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for cue failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 3963a41
🔍 Latest deploy log https://app.netlify.com/sites/cue/deploys/672a257f45bd490008234fb4

Adds a feature to allow tags to added to the search widget. These
will be preselected tags, but can be manually removed after by the
user.

To test and compare, see:
https://cuelang.org/examples/shortcodes/search/

Fixes cue-lang/cue#3394

Signed-off-by: Wies de Graaf <[email protected]>
@jpluscplusm
Copy link
Collaborator

@Wies-UsMedia Is this ready for (re-)review?

@Wies-UsMedia
Copy link
Collaborator Author

@Wies-UsMedia Is this ready for (re-)review?

It is yep!

@jpluscplusm
Copy link
Collaborator

CI passed. Preview is here: https://cl-1203609-1--cue-cls.netlify.app/

Copy link
Collaborator

@jpluscplusm jpluscplusm left a comment

Choose a reason for hiding this comment

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

Reviewed via https://cl-1203609-1--cue-cls.netlify.app/examples/shortcodes/search/.

We still have a corner-corner case where removing the last tag leaves an empty q query string param, but then resets the tags to the predefined set, but that's sufficiently niche that I'll just track it as a new issue that we can address if it becomes a problem. Edit: tracked as cue-lang/cue#3556

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