From 481daa4e1a2d9ca4f3fa7d747c3db476481004de Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 17 Mar 2026 18:16:16 +0100 Subject: [PATCH] fix: resolve TS build errors and suppress rootless podman capability warnings - Add Toolbar and ToolbarButton to HistoryPage imports - Add Tooltip import and filterBar style to MapPage - Fix JailsTab test: use new Set() instead of [] for activeJails - Add --security-opt=no-new-privileges:true to push.sh build commands --- Docker/push.sh | 2 ++ .../src/components/config/__tests__/JailsTab.test.tsx | 2 +- frontend/src/pages/HistoryPage.tsx | 2 ++ frontend/src/pages/MapPage.tsx | 10 ++++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Docker/push.sh b/Docker/push.sh index 7438817..f1d362a 100644 --- a/Docker/push.sh +++ b/Docker/push.sh @@ -65,12 +65,14 @@ log "Logging in to ${REGISTRY}" if [[ "${SKIP_BUILD}" == false ]]; then log "Building backend image → ${BACKEND_IMAGE}:${TAG}" "${ENGINE}" build \ + --security-opt=no-new-privileges:true \ -t "${BACKEND_IMAGE}:${TAG}" \ -f "${SCRIPT_DIR}/Dockerfile.backend" \ "${PROJECT_ROOT}" log "Building frontend image → ${FRONTEND_IMAGE}:${TAG}" "${ENGINE}" build \ + --security-opt=no-new-privileges:true \ -t "${FRONTEND_IMAGE}:${TAG}" \ -f "${SCRIPT_DIR}/Dockerfile.frontend" \ "${PROJECT_ROOT}" diff --git a/frontend/src/components/config/__tests__/JailsTab.test.tsx b/frontend/src/components/config/__tests__/JailsTab.test.tsx index 0af5234..be17c80 100644 --- a/frontend/src/components/config/__tests__/JailsTab.test.tsx +++ b/frontend/src/components/config/__tests__/JailsTab.test.tsx @@ -61,7 +61,7 @@ describe("JailsTab", () => { reloadAll: vi.fn(), }); - mockUseConfigActiveStatus.mockReturnValue({ activeJails: [] }); + mockUseConfigActiveStatus.mockReturnValue({ activeJails: new Set() }); render( diff --git a/frontend/src/pages/HistoryPage.tsx b/frontend/src/pages/HistoryPage.tsx index 93be5cb..3d323eb 100644 --- a/frontend/src/pages/HistoryPage.tsx +++ b/frontend/src/pages/HistoryPage.tsx @@ -29,6 +29,8 @@ import { TableHeaderCell, TableRow, Text, + Toolbar, + ToolbarButton, createTableColumn, makeStyles, tokens, diff --git a/frontend/src/pages/MapPage.tsx b/frontend/src/pages/MapPage.tsx index 79a7bba..8280894 100644 --- a/frontend/src/pages/MapPage.tsx +++ b/frontend/src/pages/MapPage.tsx @@ -21,6 +21,7 @@ import { TableHeaderCell, TableRow, Text, + Tooltip, makeStyles, tokens, } from "@fluentui/react-components"; @@ -58,6 +59,15 @@ const useStyles = makeStyles({ borderRadius: tokens.borderRadiusMedium, border: `1px solid ${tokens.colorNeutralStroke1}`, }, + filterBar: { + display: "flex", + alignItems: "center", + justifyContent: "space-between", + gap: tokens.spacingHorizontalM, + padding: tokens.spacingVerticalS, + borderRadius: tokens.borderRadiusMedium, + backgroundColor: tokens.colorNeutralBackground2, + }, }); // ---------------------------------------------------------------------------