Skip to main content

WP-15 Admin screens at Stitch parity

Load AGENTS.md, ADR 0012, and this file. Tech specs: api/admin-screens.md, app/admin-screens.md, exchange/admin-screens.md. Implement only when the user asks and WP-11 plus WP-12 have landed.

Group G4. May run beside WP-13, WP-14, and WP-16.

Owns​

  • afia-app/lib/presentation/admin/users/
  • afia-app/lib/presentation/admin/structures/
  • afia-app/lib/presentation/admin/money/
  • afia-app/l10n-src/admin.json

These folders sit inside the WP-04 presentation folder. WP-04 keeps the admin shell. WP-15 writes only these three subfolders.

Features: F-25 admin screens at Stitch parity.

Stitch folders in stitch_afia_admin-1.zip and stitch_afia_admin-2.zip:

  • Users: cran_dashboard_admin_afia_admin, gestion_des_utilisateurs_afia_admin_updated, d_tail_utilisateur_afia_admin_updated, activation_suspension_compte_afia_admin_updated, changement_de_r_le_afia_admin_updated
  • Structures: gestion_des_structures_afia_admin_fix, cr_ation_structure_afia_admin_fix, d_tail_structure_afia_admin_fix, param_trage_sp_cialit_s_afia_admin_fix, param_trage_cr_neaux_afia_admin_fix, param_trage_tarifs_afia_admin_fix
  • Money: liste_conventionnements_afia_admin, conventionnement_afia_admin, d_tail_conventionnement_afia_admin_fix, suivi_transactions_afia_admin

manifest/ccf-tree.tsv names WP-15 as the owner of these rows.

Must not write​

  • afia-api
  • afia-app/lib/core/theme/, afia-app/lib/presentation/kit/, pubspec.yaml
  • afia-app/lib/domain/ and afia-app/lib/data/. Ask WP-12 for a missing field.
  • Other files under afia-app/lib/presentation/admin/
  • Another role's presentation folder or l10n-src file
  • afia-app/lib/l10n/app_*.arb by hand

Depends on​

WP-11 for the kit and theme. WP-12 for the admin dashboard, user status, and user fields.

Done when​

  1. Each folder above has one screen built from kit widgets.
  2. A golden or screenshot per screen sits beside its Stitch screen.png with the same layout, colors, type, and spacing.
  3. Every label comes from AppLocalizations. New keys live in l10n-src/admin.json in English, French, and Arabic.
  4. Arabic renders RTL with Noto Sans Arabic.
  5. Suspend and activate call PATCH /api/v1/afia/admin/users/{id}/status.
  6. cd afia-app && flutter test passes.

Do not invent screens​

Build only the folders listed above. RBAC permissions, AI automation, resource optimisation, compensation, AI planning, flows, audit, settings, hubs, international, and compliance stay out. Do not copy the side-by-side French and Arabic text from the export.