fix(projects): preserve all filters in the URL - #170
Merged
Conversation
Make project kind, search, group, award category, video-only, and layout state derive from query parameters so filtered views survive navigation and can be shared. Carry the complete query string through project links and back navigation, while retaining the debounced search request behavior and the stored layout preference as the default when no URL override exists. Cover restoration from a fully filtered URL and preservation across project and idea navigation.
Preserve the complete URL-backed project filter state while incorporating the closed-submission help-label behavior from master. Project cards now receive both the visibility flag and the full detail-navigation query string.
HazAT
marked this pull request as ready for review
August 23, 2026 08:51
Use the URL search parameter directly for project requests so browser back and forward navigation updates results immediately. Keep typing debounced by delaying query-string writes from the local input, and synchronize the input whenever navigation supplies a different URL value. Add regression coverage that navigates from a searched URL to an unfiltered URL and verifies both the request and input update without waiting for the typing debounce.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9080aea. Configure here.
Track debounced query-string writes separately from external URL navigation so an internal normalized search update does not overwrite the active input. This keeps trailing spaces intact when users pause between words while retaining immediate synchronization for browser navigation. Extend search coverage to pause after a trailing space, verify the input remains unchanged, and then continue typing the complete query.
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.

The projects archive now treats URL query parameters as the source of truth for project/idea selection, search, group, award category, video-only filtering, and grid/list view. Opening a project from results, personal projects, the award roll, or ballot picks—and then returning—restores the same filtered view, making those views bookmarkable and shareable.
Project-only filters remain in the URL while ideas are selected so switching back to projects restores them, but they are not applied to idea requests. Search still debounces data fetching while replacing the in-progress URL state, and the stored layout preference remains the fallback when the URL does not specify a view.