diff --git a/apps/web/components.json b/apps/web/components.json index 5afe9ff..0b8c3d4 100644 --- a/apps/web/components.json +++ b/apps/web/components.json @@ -11,7 +11,7 @@ }, "iconLibrary": "lucide", "registries": { - "@reui": "https://reui.io/r/{style}/{name}.json" + "@reui": "https://reui.io/r/styles/{style}/{name}.json" }, "aliases": { "components": "@/components", diff --git a/apps/web/src/routes/_auth/dashboard.tsx b/apps/web/src/routes/_auth/dashboard.tsx index d371018..6724834 100644 --- a/apps/web/src/routes/_auth/dashboard.tsx +++ b/apps/web/src/routes/_auth/dashboard.tsx @@ -27,10 +27,11 @@ import type { DataTableColumn } from '@/components/data-grid-types' import { dataGridCellStack } from '@/components/data-grid-cells' import { SectionCardsSkeleton, TableSkeleton } from '@/components/skeletons' import { Button } from '@cfdm/ui/components/button' -import { Badge } from '@cfdm/ui/components/badge' +import { Badge } from '@/components/reui/badge' import { Alert, AlertDescription, AlertTitle } from '@cfdm/ui/components/alert' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@cfdm/ui/components/tabs' import { StatusBadge } from '@/components/status-badge' +import { cn } from '@cfdm/ui/lib/utils' import { computeInventoryHealth, getStaleSyncAccountIds } from '@/lib/inventory-health' import { formatInBaseCurrency, normalizeRatesPayload, vpsStatusLabel } from '@/lib/format' @@ -39,6 +40,9 @@ import { MonthlyTrendChart, MonthlyExpenseChart } from '@/components/domain/char import type { Vps, ProviderAccount, Provider, SyncLogRow } from '@/types/entities' +const DASHBOARD_TAB_TRIGGER_CLASS = + 'flex-none rounded-none border-0 border-b-2 border-transparent px-3 pb-2.5 pt-2 shadow-none after:hidden data-active:border-foreground data-active:bg-transparent data-active:shadow-none dark:data-active:border-foreground dark:data-active:bg-transparent' + export const Route = createFileRoute('/_auth/dashboard')({ loader: ({ context: { queryClient } }) => Promise.all([ @@ -307,21 +311,26 @@ function DashboardPage() { /> - - - + + + Проблемы - {issues.length > 0 ? {issues.length} : null} + {issues.length > 0 ? ( + + {issues.length} + + ) : null} - + Последние VPS - + Аккаунты - {atRisk.length > 0 ? {atRisk.length} : null} + {atRisk.length > 0 ? ( + + {atRisk.length} + + ) : null} diff --git a/packages/ui/components.json b/packages/ui/components.json index f633e7c..73a0cf3 100644 --- a/packages/ui/components.json +++ b/packages/ui/components.json @@ -11,7 +11,7 @@ }, "iconLibrary": "lucide", "registries": { - "@reui": "https://reui.io/r/{style}/{name}.json" + "@reui": "https://reui.io/r/styles/{style}/{name}.json" }, "aliases": { "components": "@cfdm/ui/components",