Add component search URL state#2447
Open
Mbeaulne wants to merge 1 commit into
Open
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 23, 2026
Collaborator
Author
This was referenced Jun 23, 2026
8ea8ef5 to
20bee67
Compare
This was referenced Jun 23, 2026
20bee67 to
6d83fca
Compare
9b93dc2 to
7b2b03a
Compare
6d83fca to
97297cc
Compare
7b2b03a to
821d21a
Compare
97297cc to
f57ed8d
Compare
dc3ad56 to
d4954c6
Compare
f57ed8d to
c24dece
Compare
d4954c6 to
83db60e
Compare
c24dece to
1e0f470
Compare
maxy-shpfy
approved these changes
Jun 26, 2026
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.

Description
The component search state (
qanddisabled_sources) is now persisted in the URL, making searches shareable and preserving state across page refreshes. A "Copy component link" button has been added to the detail pane so users can copy a URL that includes the selected component, active search query, and source filters.Key behaviors:
qURL param on mount and syncs back to the URL after a debounce, without trimming whitespace while the input is focused.disabled_sourcesinto the URL.useDebouncedSearchValuenow accepts aninitialValueand ashouldSyncExternalValueguard so external value changes can be blocked while the input is focused.readComponentSearchQuery,readDisabledSourceKeys, andcreateDashboardComponentsV2SearchParamscentralize URL param parsing and serialization, with unknown source keys silently dropped.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
qparam appears in the URL after the debounce delay.disabled_sourcesupdates in the URL immediately.Additional Comments
The
disabled_sourcesparam only accepts the known source keys (standard,published,registered,user); unrecognized values are silently dropped during parsing and serialization.