feat(ui): design polish — semantic status tokens, self-hosted fonts, a11y, skeletons
Design system & theme: - add semantic status tokens (success/warning/danger + track) for both themes - replace hardcoded green/red/amber/blue across ~20 files with tokens - fix light-mode bugs (bg-white/10, rgba white gauges) via theme-aware track - add named text-2xs (11px) step; unify ad-hoc text-[10px]/[11px] - consistent card elevation (shadow-sm) + opt-in interactive hover Fonts & perf: - self-host DM Sans / JetBrains Mono via @fontsource-variable (font-display: swap) - drop render-blocking Google Fonts link; remove unused Geist dep Accessibility & mobile: - global prefers-reduced-motion; focus-visible on custom buttons - StatusDot role/aria-label; aria-sort on sortable table headers - Button auto nativeButton=false when rendered as Link/anchor - 100vh -> dvh in app shell; pointer-coarse min 44px touch targets Loading & types: - Skeleton primitive + table loading state on InstancesPage - fix all 36 pre-existing tsc errors (Select null coercion, SDN query keys, Dashboard Rec typing, VMInstance, profile language, JSX namespace) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -345,7 +345,7 @@ function PoolsCard({ networkId, pools }: { networkId: number; pools: IPAMPool[]
|
||||
const ipMapColors: Record<string, string> = {
|
||||
gateway: 'bg-purple-500',
|
||||
allocated: 'bg-blue-500',
|
||||
reserved: 'bg-amber-500',
|
||||
reserved: 'bg-warning',
|
||||
available: 'bg-muted',
|
||||
};
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ function IPHistoryCard() {
|
||||
<div className="rounded-lg border divide-y text-sm">
|
||||
{rows.map((h, i) => (
|
||||
<div key={i} className="flex items-center gap-2 px-3 py-2">
|
||||
<Badge variant="outline" className="text-[10px]">{String(h.action ?? '')}</Badge>
|
||||
<Badge variant="outline" className="text-2xs">{String(h.action ?? '')}</Badge>
|
||||
<span className="text-muted-foreground">{String(h.resource_name ?? '')}</span>
|
||||
<span className="ml-auto text-xs text-muted-foreground">
|
||||
{String(h.performed_by ?? '')} · {h.performed_at ? new Date(String(h.performed_at)).toLocaleString() : ''}
|
||||
|
||||
Reference in New Issue
Block a user