From e9d282758169cf3ac3405b202815dd65b2150c81 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Wed, 19 Aug 2026 18:47:45 +0200 Subject: [PATCH] refactor(webui): adopt semantic workspace actions --- webui/src/features/records/RecordsPage.tsx | 41 ++++++++++++---------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/webui/src/features/records/RecordsPage.tsx b/webui/src/features/records/RecordsPage.tsx index 1fe65d5..0971639 100644 --- a/webui/src/features/records/RecordsPage.tsx +++ b/webui/src/features/records/RecordsPage.tsx @@ -3,7 +3,6 @@ import { FilePlus2, Pencil, Plus, - RefreshCw, Search, Settings2 } from "lucide-react"; @@ -15,7 +14,7 @@ import { type FormEvent } from "react"; import { useSearchParams } from "react-router"; -import { DialogForm, ActionToolbar, +import { DialogForm, Button, DataGrid, Dialog, @@ -29,6 +28,7 @@ import { DialogForm, ActionToolbar, StatePanel, StatusBadge, useTemporalDataContext, + WorkspaceActionBar, WorkspaceFrame, type DataGridColumn, type PlatformRouteContext @@ -236,8 +236,13 @@ export default function RecordsPage({ settings, auth }: PlatformRouteContext) { return (
- - - - {canAdmin && ( + } + contextActions={<> + {canAdmin && ( - )} - + )} + - + + {i18nMessage("i18n:govoplan-records.record_count", { value0: total })} - - {!temporalIsDefault && ( + + {!temporalIsDefault && ( - )} - - + )} + } + helpAction={} + /> {error && {error}} {filingPreset &&