fix: apply prettier formatting to pass CI #4

Merged
ghost merged 1 commits from fix/format-check into main 2026-03-07 16:57:25 +00:00
3 changed files with 14 additions and 13 deletions
+1 -2
View File
@@ -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 {
+3 -1
View File
@@ -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,
});
+10 -10
View File
@@ -256,19 +256,19 @@ export default function OverviewPage() {
},
...(pvcStatusCounts.Pending > 0
? [
{
name: 'PVCs (Pending)',
value: <StatusLabel status="warning">{pvcStatusCounts.Pending}</StatusLabel>,
},
]
{
name: 'PVCs (Pending)',
value: <StatusLabel status="warning">{pvcStatusCounts.Pending}</StatusLabel>,
},
]
: []),
...(pvcStatusCounts.Lost > 0
? [
{
name: 'PVCs (Lost)',
value: <StatusLabel status="error">{pvcStatusCounts.Lost}</StatusLabel>,
},
]
{
name: 'PVCs (Lost)',
value: <StatusLabel status="error">{pvcStatusCounts.Lost}</StatusLabel>,
},
]
: []),
]}
/>