Dropdown menu for user / group assignment
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
[!TIP]
Help move this idea forward
- Use the 👍 reaction to show support for this feature.
- Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
- Subscribe to receive notifications about status changes and new comments.
Is your feature request related to a problem? Please describe.
Not really a problem but more of a UI "annoyance", when adding a group to a user and when having many groups it sometimes makes it difficult to see if a user already has a group assigned. Would be nice if the group would disappear from the dropdown menu when it is selected.
Describe the solution you'd like
I made a fork but not a pull request (yet) as I am in no way an expert in vue but the commit changes can be seen at https://github.com/nextcloud/server/commit/e793a60e32ab8becc27162f5b42ed0cd88ff9646
const selectedGroupIds = this.newUser.groups.map(g => g.id)
return groups.filter((group) => group.id !== '__nc_internal_recent' && group.id !== 'disabled' && !selectedGroupIds.includes(group.id))
and
const selectedGroupIds = this.userGroups.map(g => g.id)
return groups.filter((group) => group.id !== '__nc_internal_recent' && group.id !== 'disabled' && !selectedGroupIds.includes(group.id))
This way the item disappears from the drop down menu
Before:
After:
Describe alternatives you've considered
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked fork commit and locating the user/group assignment dropdown in the server frontend. Compare the existing filtering with the requested behavior, then verify that groups already assigned to a user no longer appear in the dropdown while the internal and disabled entries remain handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100