-
Notifications
You must be signed in to change notification settings - Fork 0
Admin Panel
Aleksandr Artamokhov edited this page Jun 26, 2026
·
1 revision
Full tab reference:
docs/admin-guide.md
/admin/login → JWT session (cookie + optional Bearer for API scripts).
| Role | Typical access |
|---|---|
viewer |
Read-mostly dashboards, pipeline view |
operator |
Mutations except destructive/super settings |
admin |
Full factory ops |
super_admin |
Users, security-sensitive settings |
Details: docs/admin-panel-rbac.md
| Tab | Purpose |
|---|---|
| New product | Submit idea + product type |
| Pipeline | Stage machine per prod-* id |
| Dashboard | Aggregate KPIs |
| LLM Providers | Provider keys, model routing |
| LLM Logs | Historical calls (filter by product/provider) |
| Live Monitor | Real-time pipeline + optional demo video |
| Time Travel | Replay / inspect past pipeline states |
| Settings | Persisted YAML overlay (quality, discovery, site) |
| Storefront / Marketing | Themes, vitrine policy |
| Users | Admin accounts, MFA |
To avoid stale first paint, admin metrics are layered:
-
GET /api/admin/dashboard/pipeline-summary— canonical pipeline totals (same source as Pipelinecatalog_summary) -
GET /api/admin/dashboard?quick=1— quick aggregates and system resources -
GET /api/admin/dashboard— full payload (agent metrics, heavier slices) in background
If numbers disagree, treat Pipeline tab as truth and check quick/full dashboard endpoint responses in browser network logs.
- Stale
admin_tokencookie → empty tabs; re-login clears state - CSRF: mutating requests need
X-CSRF-Tokenwhen using cookie session (UI sends automatically) - Demo vitrine may open admin with limited viewer role — some write APIs blocked by design
Next.js /docs — curated guides + screenshots from web/frontend/public/docs-screenshots/.
| Feature | Detail |
|---|---|
| Locales | Globe switcher EN / RU / ES (syncs with storefront via marketing_locale) |
| Source packs | web/frontend/language-packs/docs/{en,ru,es}.json |
| Regenerate | python3 scripts/generate_docs_i18n.py |
| Capture shots | cd web/frontend && npm run capture-docs-screenshots |
Repo Markdown handbooks (docs/USER_GUIDE.md, …) stay versioned separately; /docs is the operator-friendly SPA view.
Pipeline walkthrough video:
- Admin Live Monitor / Settings when published
GET /api/public/pipeline-demo-replay- Regenerate:
python scripts/record_pipeline_demo_video.py→sync_demo_replay_from_recording.py
Skill: .cursor/skills/pipeline-demo-video/SKILL.md in repo.