nextcloud / nextcloud/server

Dropdown menu for user / group assignment

Open
#57,847 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
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:

Image

After:

Image

Describe alternatives you've considered

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.