Private operational dashboard for the LANIS backend.
npm install
cp .env.example .env.local
npm run devThe Vite development server proxies /api to http://localhost:8000. Set
VITE_API_BASE_URL to a deployed backend when running against a remote API.
The dashboard requires the protected /admin/* API. It does not contain an
admin password or any backend secret.
GitHub Actions builds and tests pull requests and main. A separate
workflow_run pipeline deploys only successful, current builds: main to
lanis-admin, PRs to version aliases on lanis-admin-preview. Deployment runs
trusted default-branch scripts with a separately locked Wrangler installation;
PR artifacts are static data and never execute in the privileged job.
Set the repository Actions secret CLOUDFLARE_API_TOKEN to a Cloudflare token
with Account / Workers Scripts / Edit for account
1a4a95ea6e17217ddfaf34660aaf25a2. The local Wrangler OAuth login cannot serve
as a persistent CI token. No admin/SPH credentials belong in Actions.
Production: https://lanis-admin.bennetjoanwegener.workers.dev.
PR N: https://pr-N-lanis-admin-preview.bennetjoanwegener.workers.dev.
The workflows must first reach main before GitHub enables workflow_run.
Create the preview Worker once with the trusted build before its first version
upload. The old lanis-admin.pages.dev site remains independent.
lanis_api must allow the production admin origin and the owned preview-origin
pattern in CORS before authenticated browser requests work. This change is
prepared in the backend's feat/admin-worker-origins branch. Backend deployment
is a separate production action.
Period selectors query persisted backend aggregates (7–365 days). Trends retain all returned dates, including zero-activity days; daily counts are never summed and presented as distinct users. Tables and CSV exports expose exact values. Heatmap hours and trend dates are UTC. Retention is returned independently by the API for at least 90 days; cohort dates identify that scope. Module counts only include recorded launches, without fabricated historical events.
Run npm test for deployment trust-boundary and analytics regressions,
npm run lint for type checking, and npm run build for the production build.
The uptime view supports lanis_api's two-account monitoring cycles and the
four-account confirmation round. The pool consists of registered users with completed onboarding, real activity in the past 30 days, and usable stored credentials. It shows both rounds, cycle-local account and
school-group labels, reduced pool coverage, isolated failures, inconclusive
results, and progress towards two healthy scheduled recovery cycles. Availability
is separate from confidence and observed scope: a single failing account shows
partial impairment with limited confidence, counts in uptime, and opens an
account-scoped incident. Missing evidence without a functional failure stays
unknown. Current/historical rounds show completed versus expected probes and
repeat failures; incident rows show confidence and scope. Historical
checks expose their stored rounds on demand; older backend records remain usable.
Live phase banners distinguish an in-flight cycle from the last completed result.
Manual checks return promptly while the backend continues the shared cycle, and
this page polls every ten seconds. No monitor credentials are stored in the portal.