feat(admin-ui): alias labels, active-provider legends, denser tables and readable money

Label configured model aliases with an alias badge wherever a model id shows.
List only providers with traffic in the window in provider chart legends.
Page long tables, show a scroll shadow on wide ones and drop the duplicate model link.
Show costs with thousands separators and magnitude-scaled decimals on cards and chart axes.
Use whole-number ticks for count charts and replace all-zero charts with a message.
Back off polling after failures.
Keep the CSV status region from widening the page on phones.
Regenerate admin_assets_gen.go.
This commit is contained in:
2026-11-08 02:22:22 +00:00
parent 05a7c114f5
commit 758d7c7020
37 changed files with 468 additions and 147 deletions
+4 -9
View File
@@ -2,7 +2,6 @@ import type { VNode } from 'vue'
import { isVNode } from 'vue'
import { describe, expect, it } from 'vitest'
import EntityLink from '@/components/EntityLink.vue'
import ModelChip from '@/components/ModelChip.vue'
import { Badge } from '@/components/ui/badge'
import { buildModelCatalogRows, modelCatalogColumns } from './model-table-columns'
@@ -126,15 +125,11 @@ describe('buildModelCatalogRows', () => {
describe('modelCatalogColumns: id column', () => {
const col = modelCatalogColumns().find((c) => c.id === 'id')
it('cell renders a ModelChip and an EntityLink pointed at kind "model"', () => {
// This table lives on the Models page, so a link back to it would repeat the chip's own text.
it('cell renders one ModelChip and no self-link', () => {
const rendered = cellOf(col)({ row: { original: testRow({ id: 'anthropic/claude' }) } }) as VNode
const children = rendered.children as VNode[]
const chip = children.find((c) => c.type === ModelChip)
const link = children.find((c) => c.type === EntityLink)
expect(chip?.props?.id).toBe('anthropic/claude')
expect(link?.props?.kind).toBe('model')
expect(link?.props?.id).toBe('anthropic/claude')
expect(link?.props?.label).toBe('anthropic/claude')
expect(rendered.type).toBe(ModelChip)
expect(rendered.props?.id).toBe('anthropic/claude')
})
})