diff --git a/.cursor/rules/frontend-ui-patterns.mdc b/.cursor/rules/frontend-ui-patterns.mdc index eaf9cc5..c86ef4f 100644 --- a/.cursor/rules/frontend-ui-patterns.mdc +++ b/.cursor/rules/frontend-ui-patterns.mdc @@ -81,19 +81,26 @@ Max 1 primary (`default`) на экран; остальные `outline` / `ghost Эталон: [data-grid-filtering-2](https://reui.io/preview/base/data-grid-filtering-2). ```tsx - + Label - {count} + {count} ``` -- `h-auto!` снимает клип underline у `TabsList` (`h-8`) -- Active count — контрастный chip (`bg-foreground` / `text-background`) +- Active = яркий текст + **белый underline** (`after:`), без фона/инвертированного badge +- Count pill всегда `bg-muted` (как в preview) +- `h-auto` / `flex-none` / `data-active:bg-transparent` — снять клип `h-8` и `dark:bg-input/30` у примитива - Active state — Base UI `data-active`, не Radix `data-[state=active]` ## Sidebar diff --git a/apps/web/src/components/blocks/data-grid-filtering-2/components/data-grid-view.tsx b/apps/web/src/components/blocks/data-grid-filtering-2/components/data-grid-view.tsx index 6ae3516..7083c8d 100644 --- a/apps/web/src/components/blocks/data-grid-filtering-2/components/data-grid-view.tsx +++ b/apps/web/src/components/blocks/data-grid-filtering-2/components/data-grid-view.tsx @@ -562,12 +562,12 @@ export function AutomationLibraryGridView() { resetPagination() }} > - + {AUTOMATION_TABS.map((tab) => ( {tab.label} diff --git a/apps/web/src/components/reui-kit/resource-page.tsx b/apps/web/src/components/reui-kit/resource-page.tsx index 92434ce..28ac76b 100644 --- a/apps/web/src/components/reui-kit/resource-page.tsx +++ b/apps/web/src/components/reui-kit/resource-page.tsx @@ -34,6 +34,7 @@ import { Separator } from '@cfdm/ui/components/separator' import { Skeleton } from '@cfdm/ui/components/skeleton' import { Tabs, TabsList, TabsTrigger } from '@cfdm/ui/components/tabs' import { Alert, AlertDescription, AlertTitle } from '@cfdm/ui/components/alert' +import { cn } from '@cfdm/ui/lib/utils' import { EmptyState } from '@/components/empty-state' import { applyFiltersToData } from './filter-utils' import { debugAgentLog } from '@/lib/debug-agent-log' @@ -289,17 +290,24 @@ export function ResourcePage({ {tabs && tabs.length > 0 ? ( <> -
+ {/* Line tabs как @reui/data-grid-filtering-2: muted count + underline */} +
{tabs.map((tab) => ( {tab.label}