Commit Graph
15 Commits
Author SHA1 Message Date
lukaszraczylo 8a530c1cb3 fix(admin): mirror backend detail parsing in the mock API
The mock now parses the detail query like the backend. Only 1 and true turn detail on. Other unknown values return 400. detail=0 and detail=false no longer return the prompt-cache fields.
2026-11-26 01:18:06 +00:00
lukaszraczylo c14ce25ce0 feat(admin): show prompt-cache hit rate per model
The usage model table and the model panel now show the prompt-cache hit rate. The Cost avoided card shows the prompt-cache saving as a separate line. The mock admin API fixtures carry the new fields.
2026-11-26 01:15:54 +00:00
lukaszraczylo 5d4a9e6cad feat(admin): decision model grid in router panel 2026-11-25 13:59:39 +00:00
lukaszraczylo b48ec65f94 test(mock): enforce backend series metric rules
Port seriesValidMetric and the usage/series query checks into the mock so it
returns the backend 400 for an invalid scope, metric and window combination.
2026-11-25 12:38:58 +00:00
lukaszraczylo a7e9c98663 fix(webui): show unavailable usage when the store is down 2026-11-25 12:11:11 +00:00
lukaszraczylo dd11ada41f fix(webui): events dates, phone detail, model links, caller coverage
Events show the date for rows from earlier days, the message sits on a second line on phones, and consecutive identical events collapse into one row with a count. Unpriced events link to the model panel or a models search. The provider filter keeps one control type. The harness covers the target callers list and the mock gains a readitall caller fixture.
2026-11-25 11:52:38 +00:00
lukaszraczylo ec9df6a92d fix(webui): router fixture consistency and panel screenshots
Router escalation fixtures now scale tiers, reasons and outcomes with requests, and the shadow classifier differs from live. The harness captures each panel's full scroll height, runs checks on the expanded panel, and samples smartrouter/uni. RoutersPage no longer refetches on range change. The breaker State column sorts by severity.
2026-11-25 11:52:37 +00:00
lukaszraczylo f7cf402564 fix(webui): models page sort, request totals, panel polish 2026-11-25 11:52:37 +00:00
lukaszraczylo 19950c40f6 fix(webui): users page filter, labels, panel fetches 2026-11-25 11:52:37 +00:00
lukaszraczylo bbb397cd75 fix(webui): compact overview events and request-ranked top lists 2026-11-25 11:52:36 +00:00
lukaszraczylo 5177b2209c feat(webui): perfect-design app shell, command palette and theme boot 2026-11-25 11:52:35 +00:00
lukaszraczylo af3628d13d fix(webui): mock live token meters and consistent huge scenario
Add tokensPerMinute to the live and limits-hot scenarios. Make the huge scenario agree across overview, catalog, performance and usage endpoints. Derive hot users from the friends group.
2026-11-25 11:52:35 +00:00
lukaszraczylo 853a66dcb7 feat(webui): mock admin API with scenarios for local development
Serve captured fixtures from the Vite dev server under MOCK=1. Synthesise missing ranges from the nearest fixture and select failure scenarios with ?mock=.
2026-11-25 11:52:35 +00:00
lukaszraczylo 0bf4e4015c test(webui): keep per-range admin fixtures 2026-11-25 11:52:35 +00:00
lukaszraczylo 4d77623f5d test(webui): anonymised admin API fixtures with leak scan 2026-11-25 11:52:35 +00:00