refactor(webui): reuse entity links and formatters; drop stale component comments

This commit is contained in:
2026-11-25 12:11:21 +00:00
parent dccf04f840
commit 13a38a6631
8 changed files with 21 additions and 25 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import type { ModelCatalogRow } from '@/lib/model-table-columns'
* (lib/model-table-columns.ts's ModelCatalogRow, built from GET
* /admin/api/catalog + usage/models + performance) to whichever match a
* free-text query (redesign-plan.md section 3.1's Models page `q` param) —
* against the canonical id (ModelChip's own copyable text) OR any of the
* against the canonical id (the copyable model name) OR any of the
* model's own aliases, case-insensitively. An empty/whitespace-only query
* is "no filter", returning `rows` unchanged (the pre-redesign
* filterModelsByPrefix this function replaces made the identical choice).
+1 -1
View File
@@ -66,7 +66,7 @@ export function providerRateStatus(rate: number | null): ProviderRateStatus {
/**
* isModelDegraded reports whether a model's OWN day-window rate should
* show a badge beside its ModelChip at all — the spec's "only when that
* show a badge beside its model name at all — the spec's "only when that
* model is degraded (<99% w/ attempts>0)" rule: a healthy or no-traffic
* model gets no badge, so the accordion is not cluttered with a badge
* beside every single model.