From 8707ae1d46577a9236ef06004070e019378ad8d9 Mon Sep 17 00:00:00 2001 From: mptyl Date: Sat, 5 Sep 2026 10:43:49 +0200 Subject: [PATCH] fix(frontend): widen management work-area panels --- frontend/src/shell/PiManagement.test.tsx | 1 + frontend/src/shell/PiManagement.tsx | 1 + frontend/src/shell/WorkAreaPanel.css | 7 ++++++- frontend/src/shell/WorkAreaPanel.tsx | 2 +- frontend/src/shell/WorkspaceManager.test.tsx | 1 + frontend/src/shell/WorkspaceManager.tsx | 1 + 6 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/shell/PiManagement.test.tsx b/frontend/src/shell/PiManagement.test.tsx index a0b8811a..b525261b 100644 --- a/frontend/src/shell/PiManagement.test.tsx +++ b/frontend/src/shell/PiManagement.test.tsx @@ -34,6 +34,7 @@ test("shows the catalog default as read-only installation state", async () => { const dialog = screen.getByRole("dialog", { name: "Pi management" }); expect(dialog).toHaveAttribute("aria-modal", "false"); expect(dialog).toHaveAttribute("data-work-area-panel"); + expect(dialog).toHaveAttribute("data-width", "expanded"); expect(await screen.findByText("Pi 0.80.3")).toBeVisible(); expect(screen.getByTestId("pi-readiness-rail")).toHaveTextContent("Runtime ready"); expect(screen.getByRole("status", { name: "Pi readiness" })).toHaveTextContent("Ready"); diff --git a/frontend/src/shell/PiManagement.tsx b/frontend/src/shell/PiManagement.tsx index a9e0a955..f2d58968 100644 --- a/frontend/src/shell/PiManagement.tsx +++ b/frontend/src/shell/PiManagement.tsx @@ -329,6 +329,7 @@ export function PiManagement({ open, onClose }: { open: boolean; onClose: () => [data-work-area-panel-region="header"]')).toHaveLength(1); expect(dialog.querySelectorAll(':scope > [data-work-area-panel-region="body"]')).toHaveLength(1); expect(dialog.querySelectorAll(':scope > [data-work-area-panel-region="footer"]')).toHaveLength(0); diff --git a/frontend/src/shell/WorkspaceManager.tsx b/frontend/src/shell/WorkspaceManager.tsx index 5d681809..9b8ccccb 100644 --- a/frontend/src/shell/WorkspaceManager.tsx +++ b/frontend/src/shell/WorkspaceManager.tsx @@ -391,6 +391,7 @@ export function WorkspaceManager({