fix(frontend): widen management work-area panels
This commit is contained in:
@@ -34,6 +34,7 @@ test("shows the catalog default as read-only installation state", async () => {
|
|||||||
const dialog = screen.getByRole("dialog", { name: "Pi management" });
|
const dialog = screen.getByRole("dialog", { name: "Pi management" });
|
||||||
expect(dialog).toHaveAttribute("aria-modal", "false");
|
expect(dialog).toHaveAttribute("aria-modal", "false");
|
||||||
expect(dialog).toHaveAttribute("data-work-area-panel");
|
expect(dialog).toHaveAttribute("data-work-area-panel");
|
||||||
|
expect(dialog).toHaveAttribute("data-width", "expanded");
|
||||||
expect(await screen.findByText("Pi 0.80.3")).toBeVisible();
|
expect(await screen.findByText("Pi 0.80.3")).toBeVisible();
|
||||||
expect(screen.getByTestId("pi-readiness-rail")).toHaveTextContent("Runtime ready");
|
expect(screen.getByTestId("pi-readiness-rail")).toHaveTextContent("Runtime ready");
|
||||||
expect(screen.getByRole("status", { name: "Pi readiness" })).toHaveTextContent("Ready");
|
expect(screen.getByRole("status", { name: "Pi readiness" })).toHaveTextContent("Ready");
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ export function PiManagement({ open, onClose }: { open: boolean; onClose: () =>
|
|||||||
<WorkAreaPanel
|
<WorkAreaPanel
|
||||||
open={open}
|
open={open}
|
||||||
ariaLabel="Pi management"
|
ariaLabel="Pi management"
|
||||||
|
width="expanded"
|
||||||
eyebrow="Installation controls"
|
eyebrow="Installation controls"
|
||||||
title="Pi management"
|
title="Pi management"
|
||||||
description="Review the bundled runtime, inspect the catalog default, and test its provider configuration."
|
description="Review the bundled runtime, inspect the catalog default, and test its provider configuration."
|
||||||
|
|||||||
@@ -32,6 +32,10 @@
|
|||||||
container-type: inline-size;
|
container-type: inline-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thot-work-area-panel[data-width="expanded"] {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
.thot-work-area-panel:focus-visible {
|
.thot-work-area-panel:focus-visible {
|
||||||
outline: 2px solid oklch(var(--ring));
|
outline: 2px solid oklch(var(--ring));
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
@@ -131,7 +135,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@container work-area (max-width: 47.999rem) {
|
@container work-area (max-width: 47.999rem) {
|
||||||
.thot-work-area-panel {
|
.thot-work-area-panel,
|
||||||
|
.thot-work-area-panel[data-width="expanded"] {
|
||||||
inset-block: 0.5rem;
|
inset-block: 0.5rem;
|
||||||
width: calc(100% - 1rem);
|
width: calc(100% - 1rem);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export interface WorkAreaPanelProps {
|
|||||||
footer?: ReactNode;
|
footer?: ReactNode;
|
||||||
footerClassName?: string;
|
footerClassName?: string;
|
||||||
busy?: boolean;
|
busy?: boolean;
|
||||||
width?: "standard" | "wide";
|
width?: "standard" | "wide" | "expanded";
|
||||||
className?: string;
|
className?: string;
|
||||||
catalogMarkers?: boolean;
|
catalogMarkers?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ test("uses the shared modeless work-area panel and keeps workspace content scrol
|
|||||||
const dialog = screen.getByRole("dialog", { name: "Workspace management" });
|
const dialog = screen.getByRole("dialog", { name: "Workspace management" });
|
||||||
expect(dialog).toHaveAttribute("aria-modal", "false");
|
expect(dialog).toHaveAttribute("aria-modal", "false");
|
||||||
expect(dialog).toHaveAttribute("data-work-area-panel");
|
expect(dialog).toHaveAttribute("data-work-area-panel");
|
||||||
|
expect(dialog).toHaveAttribute("data-width", "expanded");
|
||||||
expect(dialog.querySelectorAll(':scope > [data-work-area-panel-region="header"]')).toHaveLength(1);
|
expect(dialog.querySelectorAll(':scope > [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="body"]')).toHaveLength(1);
|
||||||
expect(dialog.querySelectorAll(':scope > [data-work-area-panel-region="footer"]')).toHaveLength(0);
|
expect(dialog.querySelectorAll(':scope > [data-work-area-panel-region="footer"]')).toHaveLength(0);
|
||||||
|
|||||||
@@ -391,6 +391,7 @@ export function WorkspaceManager({
|
|||||||
<WorkAreaPanel
|
<WorkAreaPanel
|
||||||
open={open}
|
open={open}
|
||||||
ariaLabel="Workspace management"
|
ariaLabel="Workspace management"
|
||||||
|
width="expanded"
|
||||||
eyebrow="Workspace configuration"
|
eyebrow="Workspace configuration"
|
||||||
title="Workspace management"
|
title="Workspace management"
|
||||||
description="Read, validate, and complete the runtime configuration of workspaces supplied by the installation repository."
|
description="Read, validate, and complete the runtime configuration of workspaces supplied by the installation repository."
|
||||||
|
|||||||
Reference in New Issue
Block a user