Admin panel (apps/admin)
The admin dashboard runs on port 3001 and is excluded from search indexing. It uses a branded shield-check mark consistent with the user app.
Administrator authentication
Create GitHub Actions repository secrets named ADMIN_USERNAME, ADMIN_PASSWORD, and AUTH_JWT_SECRET. Admin sign-in calls the API and receives an HMAC-signed session that expires after eight hours. API admin routes validate this session; the password is never used as a session token. Do not embed credentials in frontend settings or docs.
Modules
| Route | Purpose |
|---|---|
/ | User, audit, review, and average-risk summaries |
/users | Search accounts and suspend/reactivate |
/audits | Inspect audit records and risk scores |
/reviews | Moderate feedback submitted by accounts |
/settings | Maintenance/notice controls and anonymous/account daily/weekly quota settings |
Quota defaults are anonymous 1/day and 7/week, account 5/day and 35/week. Limits are configurable independently and reset on UTC day/week boundaries.
Run/build
npm run dev:admin
npm run lint --workspace=@clauseshield/admin
npm run build:admin