From 29f19e2346fea7c3ae1f083864abd88a3fd1d766 Mon Sep 17 00:00:00 2001 From: Gandalf the Greybeard Date: Sat, 7 Mar 2026 16:55:19 +0000 Subject: [PATCH] fix: apply prettier formatting to pass CI format check Three files had formatting inconsistencies causing the format:check CI step to fail on main since 2026-03-04. Fixes #3 Co-Authored-By: Claude Opus 4.6 --- src/api/kbench.ts | 3 +-- src/components/BenchmarkPage.tsx | 4 +++- src/components/OverviewPage.tsx | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/api/kbench.ts b/src/api/kbench.ts index 6a19fca..6cdbb0a 100644 --- a/src/api/kbench.ts +++ b/src/api/kbench.ts @@ -77,8 +77,7 @@ export const KBENCH_STORAGE_CLASS_ANNOTATION = 'tns-csi.headlamp/storage-class'; // --------------------------------------------------------------------------- function shortId(): string { - return Math.random().toString(36) - .slice(2, 8); + return Math.random().toString(36).slice(2, 8); } export function generateJobName(): string { diff --git a/src/components/BenchmarkPage.tsx b/src/components/BenchmarkPage.tsx index f0e3abe..cebd020 100644 --- a/src/components/BenchmarkPage.tsx +++ b/src/components/BenchmarkPage.tsx @@ -828,7 +828,9 @@ export default function BenchmarkPage() { } catch (err: unknown) { setBenchState({ status: 'failed', - error: `Cleanup error: ${err instanceof Error ? err.message : String(err)}`, + error: `Cleanup error: ${ + err instanceof Error ? err.message : String(err) + }`, jobName: state.jobName, pvcName: state.pvcName, }); diff --git a/src/components/OverviewPage.tsx b/src/components/OverviewPage.tsx index 4e2a938..b989456 100644 --- a/src/components/OverviewPage.tsx +++ b/src/components/OverviewPage.tsx @@ -256,19 +256,19 @@ export default function OverviewPage() { }, ...(pvcStatusCounts.Pending > 0 ? [ - { - name: 'PVCs (Pending)', - value: {pvcStatusCounts.Pending}, - }, - ] + { + name: 'PVCs (Pending)', + value: {pvcStatusCounts.Pending}, + }, + ] : []), ...(pvcStatusCounts.Lost > 0 ? [ - { - name: 'PVCs (Lost)', - value: {pvcStatusCounts.Lost}, - }, - ] + { + name: 'PVCs (Lost)', + value: {pvcStatusCounts.Lost}, + }, + ] : []), ]} />