From 45530cdb992c26e1a88df7cf97cf14615c232286 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Mon, 14 Sep 2026 08:43:08 +0700 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B8=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83?= =?UTF-8?q?=20=D1=81=D0=B5=D1=82=D0=B5=D0=B2=D1=8B=D1=85=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=D1=82=D1=80=D0=BE=D0=B2=20=D0=BD=D0=B0=20ReUI=20v9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/data-grids/filters-data-grid.tsx | 23 +++++++------- docs/ux-ui-progress.md | 8 +++++ tests/e2e/network-filters-table.spec.ts | 35 +++++++++++++++++++++ 3 files changed, 55 insertions(+), 11 deletions(-) create mode 100644 tests/e2e/network-filters-table.spec.ts diff --git a/components/data-grids/filters-data-grid.tsx b/components/data-grids/filters-data-grid.tsx index 71ef3318..e0b6d23b 100644 --- a/components/data-grids/filters-data-grid.tsx +++ b/components/data-grids/filters-data-grid.tsx @@ -1,23 +1,22 @@ "use client" import { useMemo, useState } from "react" +import { dataGridFeatures, type DataGridFeatures } from "@/components/reui/data-grid" import { type ColumnDef, - getCoreRowModel, - getSortedRowModel, - useReactTable, -} from "@tanstack/react-table-v8" + useTable, +} from "@tanstack/react-table" import type { FilterRule, GreTunnel, Server } from "@/lib/data" import { Flag } from "@/components/flag" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" -import { DataGridShell } from "@/components/data-grids/shared/legacy-data-grid-shell" +import { DataGridShell } from "@/components/data-grids/shared/data-grid-shell" import { DATA_GRID_CELL_PAD, DATA_GRID_CELL_PAD_FIRST, DATA_GRID_CELL_PAD_LAST, -} from "@/components/data-grids/shared/legacy-data-grid-layout" -import { DataGridSortHeader } from "@/components/data-grids/shared/legacy-data-grid-sort-header" +} from "@/components/data-grids/shared/data-grid-layout" +import { DataGridSortHeader } from "@/components/data-grids/shared/data-grid-sort-header" import { EmptyState } from "@/components/empty-state" import { AlertCircleIcon, @@ -210,7 +209,7 @@ function FiltersDataGrid({ onMoveUp, onMoveDown, }: FiltersDataGridProps) { - const columns = useMemo[]>( + const columns = useMemo[]>( () => [ { id: "priority", @@ -242,6 +241,7 @@ function FiltersDataGrid({