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.
This commit is contained in:
2026-11-25 11:52:38 +00:00
parent e1f1a60d4d
commit 6bc144cc12
49 changed files with 224 additions and 5584 deletions
+1 -2
View File
@@ -43,8 +43,7 @@ export function kindLabel(kind: string): string {
}
/**
* eventKindVariant maps a kind to the shadcn-vue Badge variant its row
* renders (lib/events-columns.ts): destructive for the three kinds where a
* eventKindVariant maps a kind to the Badge variant its row renders: destructive for the three kinds where a
* request was actually DENIED (rate_limit, budget, capacity — money or
* quota was protected), secondary for an infra/upstream failure that is
* not itself a policy decision (store_down, upstream, timeout), outline
-7
View File
@@ -1,7 +0,0 @@
import type { ClassValue } from "clsx"
import { clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}