From e7ee0b801746887349c7472e7850cf3c425886d2 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Tue, 18 Aug 2026 13:17:32 +0200 Subject: [PATCH] Adopt shared WebUI structural primitives --- webui/src/features/records/RecordsPage.tsx | 22 +++++----- webui/src/styles/records.css | 47 +--------------------- 2 files changed, 13 insertions(+), 56 deletions(-) diff --git a/webui/src/features/records/RecordsPage.tsx b/webui/src/features/records/RecordsPage.tsx index 0a16db4..1fe65d5 100644 --- a/webui/src/features/records/RecordsPage.tsx +++ b/webui/src/features/records/RecordsPage.tsx @@ -21,12 +21,15 @@ import { DialogForm, ActionToolbar, Dialog, DismissibleAlert, DocumentationHelpLink, + FilterBar, FormField, i18nMessage, LoadingIndicator, PageScrollViewport, + StatePanel, StatusBadge, useTemporalDataContext, + WorkspaceFrame, type DataGridColumn, type PlatformRouteContext } from "@govoplan/core-webui"; @@ -232,8 +235,8 @@ export default function RecordsPage({ settings, auth }: PlatformRouteContext) { return (
-
- + + ))} {!loading && catalog.file_plan.length === 0 && ( -

No file-plan nodes are configured.

+ )} @@ -360,10 +363,7 @@ export default function RecordsPage({ settings, auth }: PlatformRouteContext) { {detailLoading && } {detailError && {detailError}} {!detailLoading && !detailError && !detail && ( -
-
+ } title="Records" description="Select a record to inspect its contents and chronology." /> )} {!detailLoading && detail && (
- + {detail.items.length} {detail.items.length === 0 ? ( -

No items have been filed in this temporal view.

+ ) : (
{detail.items.map((item) => ( diff --git a/webui/src/styles/records.css b/webui/src/styles/records.css index dfb7359..78eb02d 100644 --- a/webui/src/styles/records.css +++ b/webui/src/styles/records.css @@ -1,40 +1,14 @@ -.records-page, -.records-shell { +.records-page { height: 100%; min-height: 0; overflow: hidden; } -.records-shell { - display: flex; - flex-direction: column; - background: var(--panel); -} - -.records-toolbar { - display: flex; - align-items: center; - gap: 10px; - min-height: 58px; - padding: 9px 14px; - border-bottom: var(--border-line-dark); - background: var(--panel-header); -} - .records-search { - display: flex; - align-items: center; - gap: 8px; - width: min(420px, 100%); + flex: 1 1 420px; margin-left: 8px; } -.records-search input { - min-width: 130px; - height: 36px; - flex: 1; -} - .records-result-count { margin-left: auto; color: var(--muted); @@ -205,17 +179,6 @@ padding: 18px 20px 32px; } -.records-detail-empty { - display: grid; - place-items: center; - align-content: center; - gap: 10px; - height: 100%; - color: var(--muted); - padding: 30px; - text-align: center; -} - .records-detail-header, .records-detail-actions, .records-section-heading { @@ -529,12 +492,6 @@ font-weight: 700; } -.records-empty-note { - margin: 12px; - color: var(--muted); - font-size: var(--font-size-sm); -} - .records-dialog { width: min(760px, calc(100vw - 32px)); }