UserDetailPage
Component Detail
User Interface
medium complexity
frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Full-screen view of a single user's profile, roles, and audit history within the tenant. Allows Org Admins to edit display name, role assignment, and account status. All mutations are reflected in active session state and appended to the org audit trail.
user-detail-page
Sources & reasoning
Blueprint tags user-crud [MVP] and the Admin Web Portal MVP scope (lines 326, 329) explicitly lists brukeradministrasjon as a launch requirement and confirms Coordinators and Peer Mentors are managed records, not portal users. Target release is MVP per both the blueprint and the source doc's Admin Web Portal MVP section.
-
docs/source/likeperson.md · line 326Brukeradministrasjon (invitere, deaktivere, rolletildeling)
-
docs/source/likeperson.md · line 329Coordinators og Peer Mentors logger IKKE inn i admin-portalen; de forvaltes som datarecords (invitasjon, rolletildeling, deaktivering) av Org Admin.
Responsibilities
- Display and allow inline editing of user profile fields (name, role, status)
- Show chronological audit trail entries scoped to this user
- Propagate role or status changes to session state immediately after save
- Prevent Org Admins from editing users outside their own tenant
Interfaces
loadUser(userId): UserProfile
updateUser(userId, patch: UserPatch): Promise<UserProfile>
loadAuditTrail(userId): AuditEntry[]
onDeleteClick(userId): Promise<void>