Add HPC related filters to search page#469
Merged
Merged
Conversation
WillEngler
pushed a commit
to Garden-AI/garden-frontend-staging
that referenced
this pull request
Nov 5, 2025
* add function type to search filters * add HPC endpoints to search filters * pull client-side filter logic out into helpers Garden-AI/garden-frontend@f05bbfa
This was referenced Nov 10, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #465
This PR add filters to the search page to allow filtering gardens by whether they have HPC functions or not (as well as modal functions), and if any HPC functions are associated with an endpoint, gardens can be filtered by endpoint as well.
Screen.Recording.2025-11-05.at.12.48.24.PM.mov
All of the new filtering logic lives client-side. I figure in this case it was easier and cleaner to do this on the client since sending a new search request just to filter by function type is a bit overkill when we can easily pull out gardens with hpc or modal functions easily once we get the results of the text search. This does mean I had to add some logic to update the facet counts we get from the backend once the local filtering has been applied, but its not too much work.
Testing
Manually