Skip to content

feat: use group search in global search#3999

Merged
andre-code merged 18 commits intofeature/update-search-pagefrom
andrea/move-group-search-to-search-v2
Feb 24, 2026
Merged

feat: use group search in global search#3999
andre-code merged 18 commits intofeature/update-search-pagefrom
andrea/move-group-search-to-search-v2

Conversation

@andre-code
Copy link
Copy Markdown
Contributor

@andre-code andre-code commented Jan 29, 2026

PR to refactor and enhance the Search page.

Changes

  • Adapted GroupSearch into the global Search flow.

  • Added User and Group visualization in Global Search, including counts of how many projects and data connectors are associated with a specific user or group.

  • Moved search logic from the Group folder to the Search folder and renamed components from GroupSearch* to Search*.

  • Added a Date filter.

  • Fixed query/URL synchronization issues to ensure filters and results stay in sync.

/deploy renku=andrea/update-search-page renku-data-services=main

@RenkuBot
Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ui-3999.dev.renku.ch

@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch 3 times, most recently from afaf537 to 45b3d42 Compare February 5, 2026 11:03
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 45b3d42 to 2200307 Compare February 5, 2026 14:40
@andre-code andre-code force-pushed the andrea/user-search-page branch from e163faf to 2ad27bf Compare February 6, 2026 08:13
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch 2 times, most recently from fada4c0 to 700f201 Compare February 7, 2026 19:11
Base automatically changed from andrea/user-search-page to feature/update-search-page February 10, 2026 07:56
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch 5 times, most recently from 795cada to 84c7017 Compare February 17, 2026 09:34
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 59810fd to 079320d Compare February 19, 2026 08:11
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 079320d to f75ab31 Compare February 19, 2026 13:22
@andre-code andre-code marked this pull request as ready for review February 19, 2026 17:08
@andre-code andre-code requested a review from a team as a code owner February 19, 2026 17:08
@leafty leafty self-requested a review February 23, 2026 13:41
@leafty leafty self-assigned this Feb 23, 2026
Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

The search bar is still mis-behaving after this PR (to be compared with https://dev.renku.ch/search).

  1. The search bar content is not synchronized with the browser history, making multiple searches and then going back will not reset the search terms in the search bar.
  2. The type: and role: filters are de-synced from the real filters.

Comment on lines +46 to +48
// Reset the input to match the URL query, but only for external changes
// (e.g., sidebar filter click, browser back). After user submit, the
// search bar keeps the raw input including filter syntax.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This behavior causes problems: if I type type: Project and then click "Type: Data", then the search bar behaves badly. The typed query should be refreshed from query parsing, as it was behaving before.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This hook was preventing empty pages from loading, e.g. if page=45 but the last page is page 37, it would clamp it and set page=37. Now, it is possible to load empty page which are broken: https://renku-ci-ui-3999.dev.renku.ch/search?type=User&page=89&q=&perPage=10

See how it works without issue here: https://dev.renku.ch/search?perPage=12&page=1000&q=type%3Auser

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure why we do not use a redux slice for search now. This was making search state management much more easy to track.

@andre-code
Copy link
Copy Markdown
Contributor Author

Thanks @leafty for the review!

The latest commit addresses the points raised: the search state is now properly synced with parsed filters and URL changes, filter desync issues were fixed, and the search logic now uses a Redux slice with Redux hooks instead of the previous context-based approach.

Please let me know if you still see any inconsistencies.

@andre-code andre-code requested a review from leafty February 23, 2026 21:56
Replace context-based search with Redux hooks
Update filters and results to new state structure
Deprecate old utility functions
Clean up components and remove unused imports
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from e43746b to 4c339ee Compare February 23, 2026 22:14
Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

LGTM, very nice! 👏

One small comment, not blocking: if I type a search filter, it stays in the search bar but if I reload the page, it disappears from the search bar. The filter state is correct but it feels a bit weird.

@andre-code andre-code merged commit db67039 into feature/update-search-page Feb 24, 2026
20 checks passed
@andre-code andre-code deleted the andrea/move-group-search-to-search-v2 branch February 24, 2026 12:07
@RenkuBot
Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

andre-code added a commit that referenced this pull request Feb 24, 2026
Move groupSearch to SearchV2 folder and rename components
Adapt last search version in global search
Replace context-based search with Redux hooks
Update filters and results to new state structure
Deprecate old utility functions
Clean up components and remove unused imports
andre-code added a commit that referenced this pull request Mar 3, 2026
* feat: add search in user page (#3984)

* feat: use group search in global search (#3999)
Move groupSearch to SearchV2 folder and rename components
Adapt last search version in global search
Replace context-based search with Redux hooks
Update filters and results to new state structure


* fix(member-list): prevent overflow and add +n avatar indicator (#4023)
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