Skip to content

feat(plugin-id): show Groups field on user creation with preloaded dropdown#23

Merged
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-groups-on-new-user
May 19, 2026
Merged

feat(plugin-id): show Groups field on user creation with preloaded dropdown#23
fdaugan merged 1 commit into
feature/vuejsfrom
norman/feat-groups-on-new-user

Conversation

@Terracosmos
Copy link
Copy Markdown
Collaborator

Make the Groups multi-select autosuggest visible on user creation, not
only on edit (per Fabrice's review of 18 mai 13:30).

Main change

Remove v-if="isEdit" from the Groups v-autocomplete block so the field
is shown on both /id/user/new and /id/user/:id. The save() payload is
updated to send the groups array in both create and edit modes.

Bonus UX

While touching the Groups field, also preload the first 20 groups via
rest/service/id/group?rows=20 at mount and open the dropdown so the
user can browse without having to type. This addresses an adjacent
review point ("le dropdown des groupes devrait afficher une liste
filtrée même si l'utilisateur n'a pas saisi de caractères").

Tested

  • /id/user/new : Groupes field visible, dropdown preloaded with 20 LDAP
    groups, autosuggest filters on keystroke, chips selectable
  • /id/user/cli1 (edit) : no regression

Per Fabrice's review (18 mai 13:30): the Groups multi-select autosuggest
was previously hidden on /id/user/new with a v-if="isEdit". Removing the
guard so the field is visible on both create and edit modes. The save()
payload is updated to send the groups array in both cases.

On /new only, the dropdown is preloaded with the first 20 groups and
opened on mount so the available groups are visible without typing.
/edit keeps the existing behaviour (the user's existing groups are
already shown as chips).
@Terracosmos Terracosmos requested a review from fdaugan May 19, 2026 11:32
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@fdaugan fdaugan merged commit 9cbcb52 into feature/vuejs May 19, 2026
4 of 5 checks passed
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.

2 participants