Infrastructure: - Add `mlops` compose profile: MLflow (basic-auth, /mlflow path) + Airflow (LocalExecutor, /airflow path) + airflow-db - infra/mlflow/basic_auth.ini for MLflow auth config - Caddy routes /mlflow* and /airflow* inside existing o.alogins.net block (see agap_git) - Dockerfile.admin: NEXT_PUBLIC_MLFLOW_URL / NEXT_PUBLIC_AIRFLOW_URL build args (default /mlflow, /airflow) Admin panel: - /admin/models: replace MLflow iframe with external link cards - /admin/experiments: replace LinUCB stats with MLOps hub (links to MLflow experiments/models + Airflow DAGs/datasets) - AdminShell: external nav links for MLflow ↗ and Airflow ↗ under MLOps section Docs & planning: - README: new AI stack section (Ollama/LiteLLM/OpenWebUI three-tier, tip generation pipeline, model aliases) - README: Phase 2 expanded with AI infra issues (#86-#93) and granular pipeline breakdown - README: Phase 4 expanded with LLM MLOps items (#94-#97) - CLAUDE.md: AI stack section, updated current phase (M1 shipped / M2 in progress), compose profiles, updated What NOT to do - docs/architecture/overview.md: AI stack section, updated decision flow diagram for Phase 2 LLM pipeline - ADR-0006: updated to reflect external services (path-based, not embedded) - Gitea issues #86-#97 created (M2: AI infra + pipeline; M4: LLM MLOps) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
apps/admin — oO Admin Console
Next.js 15 app. Deployed at admin.o.alogins.net (dev: http://localhost:3080).
Contract
- All routes are admin-only. The Next.js middleware calls
GET /api/user/meon every request and checksrole === 'admin'. First admin is seeded viaADMIN_SEED_EMAILenv var at API startup. - Admin write actions are appended to the
admin_actionsaudit log in the DB.
Pages
| Route | Description |
|---|---|
/ |
Overview: DAU/WAU KPI cards, tips served, reaction breakdown, activation funnel |
/users |
User list (paginated) |
/users/:id |
User detail: identity, consents, integrations, tip stats, reward history; revoke-integration + reset-bandit actions |
/audit |
Admin action audit log |
/events |
Event stream viewer (stub — pending API history endpoint) |
Dev
pnpm --filter @oo/admin dev # starts on :3080
# also run the API: pnpm --filter @oo/api dev (port 3078)
Extraction criteria
Stays as a Next.js app in the monorepo permanently — it's not a candidate for extraction. It gets richer (more pages, embedded MLflow/Grafana) but not split.
Known issues
@tremor/react 3.xdeclares a peer dep on React 18; the workspace uses React 19. Works in practice. Will resolve naturally when Tremor ships React 19 support or when we switch to Tremor v4 (which targets React 18+).