feat(ui): обновить KPI с card-35 на stats-12 во всех компонентах
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m27s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 1m52s
Build, Test, and Push CFDM Docker Image / create-release (push) Skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Failing after 6s

Заменены ссылки на блоки card-35 на stats-12 в документации и компонентах, включая KpiStatGrid, CertKpiCards, DomainKpiCards, GroupKpiCards и ServiceKpiCards. Удален неиспользуемый компонент AppCard. Добавлены иконки для улучшения визуализации KPI.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-07-17 15:30:25 +07:00
co-authored by Cursor
parent 704624cbe7
commit d8340e8a0b
13 changed files with 197 additions and 80 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
import { useMemo } from 'react'
import { FolderTreeIcon } from 'lucide-react'
import { FolderOpenIcon, FolderTreeIcon, FoldersIcon } from 'lucide-react'
import { KpiStatGrid, type KpiStatCard } from '@/components/reui-kit/kpi-stat-grid'
import type { GroupCatalogRow } from '@/components/columns/groups-columns'
@@ -10,7 +10,7 @@ interface GroupKpiCardsProps {
onSelectTab: (tabId: string) => void
}
/** KPI strip — ReUI PRO [card-35](https://reui.io/preview/base/card-35) */
/** KPI strip — ReUI PRO [stats-12](https://reui.io/preview/base/stats-12) */
export function GroupKpiCards({
rows,
activeTab,
@@ -27,6 +27,8 @@ export function GroupKpiCards({
label: 'Всего',
value: rows.length,
hint: 'Группы доменов',
icon: <FolderTreeIcon aria-hidden />,
iconClassName: 'text-info',
onSelect: () => onSelectTab('all'),
selected: activeTab === 'all',
},
@@ -35,6 +37,8 @@ export function GroupKpiCards({
label: 'С доменами',
value: withDomains,
hint: 'Непустые группы',
icon: <FoldersIcon aria-hidden />,
iconClassName: 'text-success',
onSelect: () => onSelectTab('with_domains'),
selected: activeTab === 'with_domains',
},
@@ -43,6 +47,8 @@ export function GroupKpiCards({
label: 'Пустые',
value: empty,
hint: 'Без доменов',
icon: <FolderOpenIcon aria-hidden />,
iconClassName: 'text-muted-foreground',
onSelect: () => onSelectTab('empty'),
selected: activeTab === 'empty',
},