VAPP-25: User groups: list, create, edit, delete, manage members #29
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/user-groups-vapp-25"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements VAPP-25: user-group administration on the Users page.
What changed
Adds a Groups tab to the Users page (one sidebar entry preserved) for site-admin user-group management, reusing the existing Users-table and Meshes-dialog patterns.
src/server_fns/mod.rs), all over the control channel, mirroring vervain-server's user-group dispatch incrates/meshcentral-web/src/user_session.rs:list_user_groups(usergroups),create_user_group(createusergroup),edit_user_group(editusergroup),delete_user_group(deleteusergroup),add_user_to_group(addusertousergroup, short usernames),remove_user_from_group(removeuserfromusergroup, full user id). Writes are ack-checked viarequest_ack, so validation and the admin gate render inline.usergroupsreturns an empty map for non-admins instead of an error, solist_user_groupsreadssiteadminfrom the connect-burstuserinfoframe and returns an explanatory error when the caller is not a full site admin.src/components/pages/user_groups.rs): header strip with "+ New group", a name/description/members table, per-row edit and delete. Create is a modal; delete is a typed-name confirmation; edit is a drawer that renames/re-describes and edits membership (member list with remove plus an add row fed bylist_users), updating optimistically so changes show without a reload.users.rshosts the Users/Groups tab strip.UserGroup { id, name, description, members }insrc/models/mod.rs.Acceptance criteria
just checkpasses (fmt, clippy on server + wasm, both cargo checks, tests)🤖 Generated with Claude Code