User Interface medium complexity frontend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Modal dialog that collects an email address and target role for a new user invitation. Submits the invitation request to AdminUserService and surfaces validation errors inline. Closes on success and triggers a list refresh in the parent UserListPage.

Feature: User CRUD

invite-user-modal

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.

  • Brukeradministrasjon (invitere, deaktivere, rolletildeling)
  • Coordinators og Peer Mentors logger IKKE inn i admin-portalen; de forvaltes som datarecords (invitasjon, rolletildeling, deaktivering) av Org Admin.

Responsibilities

  • Collect and validate email address and role selection before submission
  • Call invitation API and display server-side validation errors without closing modal
  • Enforce role options available to the current caller (Org Admin cannot grant Global Admin)
  • Emit success event with new pending-user record to trigger parent list refresh

Interfaces

open(tenantId): void
close(): void
submitInvitation(email, role, tenantId): Promise<PendingUser>

Related Data Entities (2)

Data entities managed by this component