Skip to content

feat(settings): unified search for accounts and groups#59626

Open
pringelmann wants to merge 5 commits intomasterfrom
feat/59166/unified-user-group-search
Open

feat(settings): unified search for accounts and groups#59626
pringelmann wants to merge 5 commits intomasterfrom
feat/59166/unified-user-group-search

Conversation

@pringelmann
Copy link
Copy Markdown
Contributor

@pringelmann pringelmann commented Apr 14, 2026

Summary

Part of #53862. Replaces the two separate search mechanisms in account management (global unified search bar for users, sidebar input for groups) with a single search field in the account management sidebar. Typing dispatches to both the users and groups API.

The search query lives in the Vuex store so UserList and AppNavigationGroupList can react to the same state without needing a shared parent component.

image

Behaviour change

The UserList no longer subscribes to nextcloud:unified-search.search, so the global top-bar search no longer filters the account list. Keeping both in sync both ways turned out messy (clearing one didn't clear the other), so the dedicated sidebar input is now the single entry point for this page. Happy to revisit if reviewers disagree.
Ctrl+F now brings the new input into focus instead of the global search.

Scope

MVP only: filters users and groups by name. Both APIs already support ?search=, so no backend changes.

Matching groups by member name (e.g. searching "alice" surfaces the groups alice belongs to) is a nice-to-have and deferred as a follow-up.

Checklist

@pringelmann pringelmann self-assigned this Apr 14, 2026
@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch 2 times, most recently from b5c2b9e to e107c10 Compare April 14, 2026 11:31
@pringelmann
Copy link
Copy Markdown
Contributor Author

/compile

@pringelmann pringelmann added this to the Nextcloud 34 milestone Apr 14, 2026
@pringelmann pringelmann marked this pull request as ready for review April 14, 2026 11:32
@pringelmann pringelmann requested a review from a team as a code owner April 14, 2026 11:32
@pringelmann pringelmann requested review from nfebe, sorbaugh and szaimen and removed request for a team April 14, 2026 11:33
@pringelmann pringelmann added 3. to review Waiting for reviews design Design, UI, UX, etc. feature: users and groups labels Apr 14, 2026
@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from b14bc64 to c672b9a Compare April 14, 2026 13:31
@pringelmann
Copy link
Copy Markdown
Contributor Author

/compile amend /

Comment thread apps/settings/src/views/UserManagementNavigation.vue Outdated
Copy link
Copy Markdown
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Design-wise this looks nice, filtering both users and groups at the same time. :)

Replace the unified search event bus subscription and the separate group
sidebar search with a single input in the account management navigation.
The query is shared via Vuex so UserList and AppNavigationGroupList
react to the same state.

Part of #53862
Fixes #59166

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from 37288e5 to 47ddd2c Compare April 16, 2026 09:48
Copy link
Copy Markdown
Collaborator

@artonge artonge left a comment

Choose a reason for hiding this comment

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

And sorry, I forgot to also mentioned that we also usually advertise shortcuts in the app settings. For example in Files:

Image

Would be nice to have a similar doc for the user management setting.

-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews design Design, UI, UX, etc. feature: users and groups

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Add search function to account management

3 participants