generated from coulomb/repo-seed
1.2 KiB
1.2 KiB
UI Handoff Contracts
Future self-service and scope-admin UIs should consume user-engine through a transport adapter that preserves the service shapes below.
Self-Service Account UI
Required backend operations:
meto resolve the current actor, user, account, and identity links.effective_profilewith the actor tenant and optional application id.projectionwithSELF_SERVICEfor editable user-visible fields.set_profile_valuefor fields whose catalog mutability includesUSER.audit_recordsor a filtered audit transport for recent user-visible account activity.
Scope Admin UI
Required backend operations:
resolve_tenant_contextbefore all tenant-scoped screens.set_tenant_account_statusfor in-scope account state.add_membershipfor tenant/team membership changes.projectionwithADMINor a future admin transport projection.tenant_diagnosticsfor onboarding and support readiness checks.
Fixtures
Use user_engine.testing.scenarios for human, tenant admin, platform
operator, delegated agent, invalid, expired, local issuer, and missing-tenant
fixtures. UIs should keep fixtures at the transport boundary and avoid
embedding identity-provider logic.