Admin: roles, users and role assignment pages (#44 slice B) #134
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Slice B of #44 (web). Depends on the API issue "Admin API: roles, users and role assignment" (nothing to build until its operations exist in the OpenAPI spec).
Scope
Pages in
web/apps/adminon the #43/#44/#46 foundation (shell,useAccess,@kws/uikit, sharedapi.ts/forms.ts): a Roles list and editor (name, description, permission checklist from the catalog; system roles read-only), a Users list with search and a user page showing memberships and roles, and a role-assignment form. Menu entries gated by the new permission key(s).Notes from earlier slices
staleTime: Infinity, no focus/reconnect refetch,retry: false, refetch on mount), fixed error texts,versionconflicts with Reload that keeps untouched fields, double-submit guard, 44 px targets, mocked Playwright in the admin suite.Decisions (owner, 2026-10-30)
Platform scope only (organization roles/members are the partner portal's, #49). Only an admin deactivates a user or removes their membership. Staff are invited by email only: the Users page needs an "Invite staff" form (email + roles), a pending-invitations list with delete, and no way to add a user who has not accepted an invitation.
Status 2026-10-31: unblocked. The API (#133 slices A and B) is merged, so the web pages for roles, users, assignment and staff invitations can start. Also needed: the /accept-invitation page (the invitation email links to <admin_portal_url>/accept-invitation#&e=). The portal now has a no-access page (PR #140). Note for the e2e: the dev mock IdP has no sign-up screen, and the real local Zitadel needs a mail server for the invitee's verification code.