Skip to content

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

Merged
pringelmann merged 6 commits intomasterfrom
feat/59166/unified-user-group-search
Apr 23, 2026
Merged

feat(settings): unified search for accounts and groups#59626
pringelmann merged 6 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. :)

@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.

@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from acf58f4 to 2666cc8 Compare April 21, 2026 07:37
@pringelmann
Copy link
Copy Markdown
Contributor Author

/compile rebase /

@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from c4d05d0 to d7bb026 Compare April 21, 2026 08:23
@jancborchardt jancborchardt moved this to 🏗️ At engineering in 🖍 Design team Apr 21, 2026
@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from d7bb026 to 3671b37 Compare April 21, 2026 09:48
@pringelmann pringelmann force-pushed the feat/59166/unified-user-group-search branch from 3671b37 to 85041c0 Compare April 21, 2026 13:28
@szaimen szaimen removed their request for review April 21, 2026 13:42
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>
-e
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 85041c0 to 946d109 Compare April 23, 2026 08:18
@pringelmann pringelmann merged commit 7880bfa into master Apr 23, 2026
141 of 144 checks passed
@pringelmann pringelmann deleted the feat/59166/unified-user-group-search branch April 23, 2026 09:22
@github-project-automation github-project-automation Bot moved this from 🏗️ At engineering to 🎉 Done in 🖍 Design team Apr 23, 2026
@pringelmann pringelmann added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish design Design, UI, UX, etc. feature: users and groups

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

Add search function to account management

3 participants