Skip to main content

WP-15 exchange

Screen flow over the existing wire. Envelope: envelope.md. Wire shapes: api-enrichment.md.

Workflow​

  1. The admin shell opens the users, structures, and money sections.
  2. Each screen asks a repository for data.
  3. The repository calls the endpoint and returns domain types.
  4. The screen renders kit widgets with AppLocalizations labels.
  5. A write goes through the owner repository. The screen then reloads.

Wire​

No new wire. The screens use:

  • GET /api/v1/afia/admin/dashboard for dashboard.
  • /api/v1/afia/admin/users for users.
  • PATCH /api/v1/afia/admin/users/{id}/status for activate and suspend.
  • /api/v1/afia/admin/structures, /admin/specialties, and /admin/tariffs for structures, specialties, slots, and tariffs.
  • /api/v1/afia/admin/agreements for agreements and transactions.

Ownership​

WP-15 writes lib/presentation/admin/users/, lib/presentation/admin/structures/, lib/presentation/admin/money/ and l10n-src/admin.json. WP-12 owns the wire. WP-11 owns the kit.

Does not do​

New endpoints. Rbac permissions, ai automation, resource optimisation, compensation, ai planning, flows, audit, settings, hubs, international, and compliance.