feat(plugin-id/ui): convert user edit to a dialog#34
Merged
Conversation
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.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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
en édition comme en création — la liste s'affiche sans avoir à taper.
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