mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(webui): redesign the admin dashboard around admin tasks
A sidebar replaces the flat tabs with seven pages, and one filter bar sets the time range, comparison period and scope for all of them. - Home: spend against budget, forecast, request rate, error rate, open breakers, top users and models, recent events and warnings. - Spend: spend over time with comparison, budget burn-down, an attribution drill-down from group to user to model, pricing health and cost avoided by free models. - Consumers: a directory with last seen and limit bars, an access matrix, and a detail page per user. - Models: the catalog with billing prices, fleet latency and error rates, and provider health. - Reliability: error, timeout, failover, 429 and 402 trends, events, and latency per provider. - Config: the redacted config and a change helper that emits YAML or users.json snippets to paste into git. - MCP & Agents: callers per target. Page state lives in the URL hash, and old tab links map to the new pages. The replaced views are removed. admin_assets_gen.go is regenerated. Claude-Session: https://claude.ai/code/session_01V5jYJNxpDFdJkyyExpADrv
This commit is contained in:
@@ -97,6 +97,29 @@
|
||||
--chart-tokens-out: #e69f00;
|
||||
--chart-cost: #d55e00;
|
||||
|
||||
/*
|
||||
* --chart-series-a..d: Spend's breakdown chart (pages/SpendPage.vue,
|
||||
* BREAKDOWN_PALETTE) extends the four series above with the
|
||||
* remaining four swatches of that same Okabe & Ito (2008) 8-color
|
||||
* qualitative set, for its open-ended per-model/provider/group
|
||||
* series count. These tokens used to live in SpendPage.vue's own
|
||||
* unscoped <style> block; moved here (P3 item 22) so every chart
|
||||
* color token lives in the one design-tokens file, matching the
|
||||
* Tailwind-only rule (no plain CSS outside a component's own scoped
|
||||
* block or this file).
|
||||
*
|
||||
* --chart-series-b is NOT the Okabe-Ito yellow (#f0e442) verbatim in
|
||||
* light mode: that measures well under WCAG 1.4.11's 3:1 non-text
|
||||
* contrast minimum as a chart line on this light --card (~1.4:1) —
|
||||
* #8a6d00 instead measures ~4.9:1 against --card, clearing both the
|
||||
* 3:1 graphical-object minimum and the 4.5:1 text minimum with
|
||||
* margin, while staying recognizably the same yellow/gold hue.
|
||||
*/
|
||||
--chart-series-a: #56b4e9;
|
||||
--chart-series-b: #8a6d00;
|
||||
--chart-series-c: #cc79a7;
|
||||
--chart-series-d: #4d4d4d;
|
||||
|
||||
/*
|
||||
* --status-warn: a semantic "degraded, not broken" indicator (the
|
||||
* Providers tab's amber success-rate badge, ProviderRateBadge.vue) —
|
||||
@@ -162,6 +185,16 @@
|
||||
--chart-tokens-out: #f0ac1f;
|
||||
--chart-cost: #e8763a;
|
||||
|
||||
/* Same Okabe-Ito hues as the light-mode block's own doc comment
|
||||
above — already legible on a dark ground at this saturation
|
||||
(Okabe-Ito was designed for slide/print use on light and dark
|
||||
backgrounds alike), so only --chart-series-b's LIGHT value
|
||||
needed darkening; here it keeps the original #f0e442. */
|
||||
--chart-series-a: #56b4e9;
|
||||
--chart-series-b: #f0e442;
|
||||
--chart-series-c: #cc79a7;
|
||||
--chart-series-d: #b8b8b8;
|
||||
|
||||
/* #f0ac1f on the dark --card measures ~8.97:1 — no separate dark
|
||||
value was needed to clear WCAG 1.4.3 here, unlike light mode
|
||||
(see --status-warn's own doc comment above), but the token is
|
||||
|
||||
Reference in New Issue
Block a user