From fd33631c212b916113253e75d63524b1bbbe66f2 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Tue, 12 Nov 2024 12:09:02 +0000 Subject: [PATCH] sort topbar out and use a grid --- app/components/TopBar.tsx | 43 +- .../__snapshots__/TopBar.test.ts.snap | 666 ++++++++++++------ 2 files changed, 480 insertions(+), 229 deletions(-) diff --git a/app/components/TopBar.tsx b/app/components/TopBar.tsx index 1e87c20..c8e89a1 100644 --- a/app/components/TopBar.tsx +++ b/app/components/TopBar.tsx @@ -58,29 +58,31 @@ export default function TopBar({ {instName.toUpperCase()} is{" "} {getRunstate(runInfoPVs)} -

+

Config:{" "} - + {findPVByHumanReadableName(runInfoPVs, configName) ? findPVByHumanReadableName(runInfoPVs, configName)!.value : "UNKNOWN"}

-
+
{dashboard.map((column: Array>, index: number) => ( - + {column.map((row: Array, index: number) => ( - - +
{row[0].value} + + {row[0].value} + {row[1].value != null ? row[1].value : "Hidden/unknown"} @@ -92,20 +94,23 @@ export default function TopBar({
-
diff --git a/app/components/__snapshots__/TopBar.test.ts.snap b/app/components/__snapshots__/TopBar.test.ts.snap index d80096e..d77af54 100644 --- a/app/components/__snapshots__/TopBar.test.ts.snap +++ b/app/components/__snapshots__/TopBar.test.ts.snap @@ -29,35 +29,35 @@ exports[`renders topbar unchanged 1`] = `

Config:

Title:
Users: