Commit Graph
432 Commits
Author SHA1 Message Date
lukaszraczylo fd9dc53241 fix(webui): request provider attempts for model page totals
The provider series endpoint rejects the req metric. Request attempt on an
hour or day window instead, and label the group total as attempts.
2026-11-25 12:38:57 +00:00
lukaszraczylo a231cebb71 build(admin): regenerate embedded admin UI 2026-11-25 12:20:39 +00:00
lukaszraczylo 13a38a6631 refactor(webui): reuse entity links and formatters; drop stale component comments 2026-11-25 12:11:21 +00:00
lukaszraczylo dccf04f840 test(webui): widen leak scan to mock sources and e2e 2026-11-25 12:11:20 +00:00
lukaszraczylo 34c2bb8dbf docs(limits): correct usage key count comments 2026-11-25 12:11:13 +00:00
lukaszraczylo ad6af8fd0a fix(webui): guard provider totals and model panel against stale responses 2026-11-25 12:11:12 +00:00
lukaszraczylo a7e9c98663 fix(webui): show unavailable usage when the store is down 2026-11-25 12:11:11 +00:00
lukaszraczylo 158a96ea55 fix(webui): open provider panel from reliability breakers 2026-11-25 12:11:10 +00:00
lukaszraczylo 62817af834 fix(webui): toasts above sheets; drop unreachable alias helpers
Stack the toast viewport on perfect-design's --z-toast token so it sits
above Sheet overlays, and add a harness check that the toast is the
topmost element at its centre while a sheet is open.

Delete useAliasNames, lib/alias and its spec, which nothing imports
since the shadcn migration removed AliasBadge.
2026-11-25 11:52:38 +00:00
lukaszraczylo ff58b03e21 test(webui): guard tailwind @source against missing perfect-design components
Add a spec that maps every component imported from perfect-design, and
every directory it imports in turn, to an @source entry in main.css.
Extend the bundle gate spec to check that utilities unique to recently
added components appear in the built CSS.
2026-11-25 11:52:38 +00:00
lukaszraczylo 6bc144cc12 refactor(webui): migrate remaining shadcn components to perfect-design
Move AuthGate, ConfigWarningsBanner, ToastViewport, SnippetBlock,
PageLoadError, LabeledSelect and the helper forms to perfect-design
Button, Input, Card, Callout, NativeSelect and ToastItem. Number fields
use a small native input because the library input rewrites typed text.

Delete components/ui, the unused ModelChip, CompactNumber, AliasBadge and
lib/utils, and the shadcn config. Remove shadcn-vue, tw-animate-css,
class-variance-authority and clsx. Give FaIcon an optional title and drop
role from decorative icons. Refresh stale comments and the README.
2026-11-25 11:52:38 +00:00
lukaszraczylo e1f1a60d4d refactor(webui): remove shadcn-vue, chart.js and replaced components
Delete 89 files that no live entry imports, drop chart.js, vue-chartjs,
@tanstack/vue-table and the FontAwesome runtime, and replace the Vue
FontAwesome wrapper with a small SVG component.

Limit Tailwind source scanning to the perfect-design components the app
bundles. Add the bundle gate script and spec: gzip JS+CSS of dist/assets
must stay at or below 324300 bytes.
2026-11-25 11:52:38 +00:00
lukaszraczylo 945621a3c5 fix(webui): compact config viewer, clear unknown helper sel, harness port guard 2026-11-25 11:52:38 +00:00
lukaszraczylo 1f8bdd8777 feat(webui): config page 2026-11-25 11:52:38 +00:00
lukaszraczylo 32a6d0c51f fix(events): keep sub-100ms paced delays readable 2026-11-25 11:52:38 +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 e0e5989326 fix(events): round paced delay in event message 2026-11-25 11:52:37 +00:00
lukaszraczylo 55f1e743fe feat(webui): targets and events pages 2026-11-25 11:52:37 +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 b9ca05be66 feat(webui): routers page 2026-11-25 11:52:37 +00:00
lukaszraczylo 7b660363e7 fix(webui): sort users and breaker tables before paging 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 9dfc663b38 feat(admin): expose model vision capability in admin meta view 2026-11-25 11:52:37 +00:00
lukaszraczylo 0f6201da38 feat(webui): models page 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 a138b186b6 fix(admin): count prefixed model globs in consumer model access 2026-11-25 11:52:37 +00:00
lukaszraczylo abdc059ed3 feat(webui): users page 2026-11-25 11:52:36 +00:00
lukaszraczylo 713a8acb09 fix(webui): reliability degraded breakers, failure rates, TTFB coverage 2026-11-25 11:52:36 +00:00
lukaszraczylo 31a09f5064 feat(webui): reliability page 2026-11-25 11:52:36 +00:00
lukaszraczylo 0ac9f5fb10 fix(webui): usage CSV, detail flags, burn-down labels 2026-11-25 11:52:36 +00:00
lukaszraczylo ed57488980 feat(webui): usage and spend page 2026-11-25 11:52:36 +00:00
lukaszraczylo bbb397cd75 fix(webui): compact overview events and request-ranked top lists 2026-11-25 11:52:36 +00:00
lukaszraczylo d2334d879b feat(webui): overview page 2026-11-25 11:52:36 +00:00
lukaszraczylo 6c151d3515 fix(webui): make visual harness checks meaningful 2026-11-25 11:52:36 +00:00
lukaszraczylo 0ef0894140 test(webui): visual harness and Workbench table widgets 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 c6da612215 feat(admin): live tokens-per-minute usage per scope 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
lukaszraczyloandGitHub 4c61d19a72 feat(router): smart routers and per-member rate limits (#9)
Add smart routers: virtual models that score each request and route it to admin-defined model tiers. A retryable failure moves the request to a higher tier. The classifier v2 extracts prose, finds the original ask in long tool loops, adds an uncertainty margin and reads tool-output failures. Sessions, outcome signals, bounded calibration, adaptive selection within a tier, gated saturation downgrade, a first-byte timeout and an opt-in timeout fallback are included. Every new feature is off by default.

Add per-member group limits, a tokensPerMinute window that counts uncached input and output, rate-limit headers in three dialects, soft pacing before the hard limit, and a limitExemptKinds list so embedding and reranking traffic never counts toward or hits a limit.

Fix yaegi named-result state that made smartContentSize grow between calls.
2026-11-25 00:40:30 +00:00
lukaszraczylo 6fb048b599 fix(admin): show kinds and endpoints in the providers panel
The provider accordion reads the overview response, not the catalog, so
the earlier change never reached it. Add kinds and endpoints to the
overview provider view and group the accordion rows by kind. Endpoint ids
now read gx10/v1/decide, without a doubled slash.
2026-11-10 12:38:33 +00:00
lukaszraczylo 085292143c feat(admin): group catalog models by kind
Add a display-only kinds map to the provider config. Each pathBaseUrls key
now appears in the admin catalog as an endpoint row. The Models page splits
a provider into one sub-section per kind.
2026-11-10 12:24:34 +00:00
lukaszraczyloandGitHub a4fda5f9cb feat(provider): per-model and per-path upstreams (#8)
Add modelBaseUrls and pathBaseUrls to openai-type providers.
2026-11-08 07:26:14 +00:00
lukaszraczylo aa9a925d49 fix(admin-ui): distinct percent ticks and a type-clean build
The error-rate axis rounded half-percent ticks up, so labels repeated (4%, 4%, 3%, 3%). Ticks now show one decimal where needed. The CSS layer test imported node:fs, which broke npm run build under vue-tsc, so it is removed.
2026-11-08 02:38:50 +00:00
lukaszraczylo 3e1750ddb9 fix(admin-ui): cap user detail cache, gate breakdown on ranking, restore single chevron
The per-user detail cache grew without limit and now keeps the 20 most recently fetched users. Spend refresh built the breakdown from a stale ranking after the ranking failed or was superseded, and now skips that step. The FontAwesome stylesheet overrode Tailwind hidden and showed two accordion chevrons, so it now loads in a low cascade layer.
2026-11-08 02:35:06 +00:00
lukaszraczylo 8c5e4fbcda fix(admin-ui): clear data on key change and show empty Spend chart
A new API key kept the previous key's data on screen until each store refreshed. All data stores now reset when the key changes. The Spend breakdown chart showed a column of identical zero ticks for an empty range, so it now shows an empty message. A stray quote in the Reliability page markup is removed.
2026-11-08 02:32:09 +00:00
lukaszraczylo 0a05dfc035 fix(admin-ui): keep sign and precision in CSV, YAML and context labels
CSV export prefixed negative numbers with an apostrophe, which corrupted the data. YAML emitted NaN and Infinity as plain strings. Context windows such as 1500 read as 2k. Numbers now skip the CSV formula guard, non-finite values use YAML float forms, and counts below 10k keep one decimal.
2026-11-08 02:29:28 +00:00
lukaszraczylo e985fded45 feat(admin-ui): hide runaway budget line and link form errors to inputs
The burn-down chart drew the budget line even when it was more than ten times the spend, which flattened the spend curve. The line now hides with a note. Limits, pricing, model metadata and grant forms mark invalid inputs with aria-invalid and aria-describedby.
2026-11-08 02:28:27 +00:00