First-run creates the superadmin in-app; wizard seeds reference data

No CLI needed for a UI-driven install.

- Login page: when the instance has no users yet (/setup/needs-admin), it shows
  a "create the first admin" form instead of login. Submitting creates the admin
  (admin role = full access / superadmin) via /setup/create-admin, logs in, and
  goes to the setup wizard.
- Wizard Starter Data step: "Seed core reference data" button (statuses, types,
  permissions, default settings via /setup/seed-reference) alongside the common
  vendors, so a UI-first install gets the data the app needs.
- Add waitress to requirements.txt (the IIS web.config launches it but it was
  missing - found while validating the Windows install).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-07-10 11:53:38 -04:00
parent 301eaa6375
commit 57efb5f965
3 changed files with 90 additions and 32 deletions

View File

@@ -117,3 +117,4 @@ werkzeug==3.1.8
# flask-cors
# flask-jwt-extended
# pytest-flask
waitress>=3.0