Add Reports drawer, Dell catalog compliance, and Service Tag chat context.

Exposes OME warranties, baselines, report defs, and CSV/JSON exports for customer-ready fleet briefs.
This commit is contained in:
mo
2026-07-17 15:15:57 +02:00
parent c2bb0465d0
commit 115b6e39aa
11 changed files with 1393 additions and 36 deletions
+19
View File
@@ -201,3 +201,22 @@ Ops visibility (no secrets):
Mapped via `pydantic-settings` from `.env` (see `.env.example`):
`OME_URL`, `OME_USER`, `OME_PASSWORD`, `POLL_INTERVAL`, `OPENWEBUI_URL`, `OPENWEBUI_EMAIL`, `OPENWEBUI_PASSWORD`, `GPU_METRICS_URL`, `VLLM_URL`, `VLLM_MODEL`, `VLLM_MAX_TOKENS`, `CHAT_SYSTEM_CHARS`, `COCKPIT_DATA`, `CORS_ORIGINS`
## Reports / compliance
| Method | Path | Notes |
|--------|------|-------|
| GET | `/api/reports/fleet` | Fleet matrix + warranty join |
| GET | `/api/reports/firmware` | Alias of compliance components |
| GET | `/api/reports/brief` | Customer brief payload |
| GET | `/api/compliance` | Dell baseline device/component compliance |
| GET | `/api/warranties` | WarrantyService dump |
| GET | `/api/baselines` | UpdateService baselines |
| GET | `/api/catalogs` | UpdateService catalogs |
| GET | `/api/ome/report-defs` | ReportService definitions |
| POST | `/api/ome/reports/run` | `{report_def_id}` starts OME report job |
| GET | `/api/ome/reports/{id}/results` | Report results when available |
| GET | `/api/ome/jobs` | Recent jobs (read-only) |
| GET | `/api/export/{kind}?fmt=csv\|json` | Downloads |
| GET | `/api/devices/{id}/warranty` | Per-device warranty |
| GET | `/api/devices/{id}/compliance` | Per-device Dell catalog deltas |
+7
View File
@@ -79,3 +79,10 @@ Every top KPI tile opens an interactive modal:
- Dell logo → cockpit home
- Ticker with pulse, power, alerts, visible count
- Drawers: Chat, Ops, OpenManage AI iframe
## Reports & Dell compliance (read-only)
- **Reports** drawer: Fleet inventory, Firmware/BIOS vs Dell catalog baseline, Warranty, OME ReportDefs, Customer brief (print/PDF).
- Exports: CSV/JSON via `/api/export/{fleet|firmware|warranty|brief}`.
- Compliance sourced from OME `UpdateService` baselines (Dell Online Catalog) with dell.com driver URIs.
- Chat includes a full **Service Tag index** and must cite ST + model + IP.