Use cases

Who uses the framework and for what, as the code allows today. An admin can do everything a user can. Each case names the action or page that implements it under "Where to look". How to read a use case diagram: Diagram guide.

1. The main app

What a signed-in person does in the main app. Which apps they see and which actions they may call depends on their roles (see Who can do what).

Where to look

  • api/apps/auth/authController.class.php: login, validate2fa, resendtwofa, forgotpassword, setpassword, validate_session, logout (resetpassword is the admin's "send a reset mail", a granted permission).
  • api/apps/xp_users/xp_users.xml: the update (own profile), edit_users and assign_roles permissions; README "Users inside a space".
  • api/apps/xp_notification/xp_notification.xml: list, mark_read, clear_all.
  • Each installed app adds its own cases: see its manifest's user_permissions.

2. The admin panel

The admin panel at api/admin/ is a separate SPA on the same backend, with its own session cookie. Its pages are the system administrator's use cases.

Where to look

  • api/admin/apps/system_admin_app/route.js: one route per page (/applist, /scheduler, /migrations, /upgrades, /exports, /settings, /roles-permission, /spaces, /backups, /self-system-check); the logs page is api/admin/apps/logs/route.js. Users are managed in the main app's Users app, not in the admin panel.
  • api/apps/system_admin_app/system_admin_appController.class.php: the actions behind those pages; AppPackageInstaller for installs.
  • README "Admin Panel" and api/admin/README.md.

3. Developers and cron

A developer works from the CLI entry points and the dev/ workspace; cron is the only outside actor, calling the heartbeat every minute.

Where to look

  • api/shell.php, api/migrate.php, api/upgrade.php, api/heartbeat.php: the entry points; CLAUDE.md "Backend CLI entry points".
  • dev/README.md: the development workspace; The app pattern.
  • README "Heartbeat (Task Scheduler)": the cron line and the heartbeat commands.