Skip to content

feat(plugin-id/ui): convert user edit to a dialog#34

Merged
fdaugan merged 2 commits into
feature/vuejsfrom
norman/feat-user-edit-dialog
May 22, 2026
Merged

feat(plugin-id/ui): convert user edit to a dialog#34
fdaugan merged 2 commits into
feature/vuejsfrom
norman/feat-user-edit-dialog

Conversation

@Terracosmos
Copy link
Copy Markdown
Collaborator

Change

Convertit l'écran d'édition utilisateur en pop-up (v-dialog), ouverte depuis le menu
engrenage de la liste des users. Remplace les anciennes pages routées /id/user/new
et /id/user/:id.

Details

  • Nouveau composant UserEditDialog.vue (remplace UserEditView.vue).
  • Le menu déroulant Groupes précharge la liste des groupes à l'ouverture du champ,
    en édition comme en création — la liste s'affiche sans avoir à taper.
  • Branche remise à jour sur le dernier feature/vuejs.

Note

Réouvre le travail de la PR #32, qui avait été mergée dans une branche intermédiaire
au lieu de feature/vuejs.

Files

  • ui/src/views/UserEditDialog.vue (nouveau, remplace UserEditView.vue)
  • ui/src/views/UserListView.vue
  • ui/src/index.js

Per Fabrice's review (chantier I.2): the user create/edit screen is no
longer a routed page but a popup, mirroring the Roles screen.

- Extract the former UserEditView form into UserEditDialog.vue, a
  v-dialog component (props modelValue + userId, emits saved). It is
  hosted by UserListView and opened from the "New user" button and the
  row gear menu's Edit action; clicking a row also opens it.
- Remove the per-entity routes /id/user/new and /id/user/:id (Option A,
  mirroring the Roles screen which has no per-entity route).
- Adapt the unsaved-changes guard: useFormGuard's onBeforeRouteLeave is
  inert without a route change, so the dialog binds model-value one-way
  and intercepts every close (Cancel / Esc / scrim) through requestClose,
  which raises the existing guard dialog when the form is dirty.
- Rearrange the lock/isolate/reset actions inside the dialog as a
  compact bordered list, consistent with the row gear menu.
- Preload the Groups dropdown's first page of options when it opens, in
  edit mode as well as create, so the user always sees a list to pick
  from without typing; already-assigned groups are merged in so their
  chips keep rendering.
@Terracosmos Terracosmos requested a review from fdaugan May 22, 2026 13:34
@fdaugan fdaugan closed this May 22, 2026
@fdaugan fdaugan reopened this May 22, 2026
@fdaugan fdaugan merged commit 57bc8df into feature/vuejs May 22, 2026
4 of 6 checks passed
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

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