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 <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -77,8 +77,7 @@ export const KBENCH_STORAGE_CLASS_ANNOTATION = 'tns-csi.headlamp/storage-class';
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
function shortId(): string {
|
function shortId(): string {
|
||||||
return Math.random().toString(36)
|
return Math.random().toString(36).slice(2, 8);
|
||||||
.slice(2, 8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function generateJobName(): string {
|
export function generateJobName(): string {
|
||||||
|
|||||||
@@ -828,7 +828,9 @@ export default function BenchmarkPage() {
|
|||||||
} catch (err: unknown) {
|
} catch (err: unknown) {
|
||||||
setBenchState({
|
setBenchState({
|
||||||
status: 'failed',
|
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,
|
jobName: state.jobName,
|
||||||
pvcName: state.pvcName,
|
pvcName: state.pvcName,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -256,19 +256,19 @@ export default function OverviewPage() {
|
|||||||
},
|
},
|
||||||
...(pvcStatusCounts.Pending > 0
|
...(pvcStatusCounts.Pending > 0
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'PVCs (Pending)',
|
name: 'PVCs (Pending)',
|
||||||
value: <StatusLabel status="warning">{pvcStatusCounts.Pending}</StatusLabel>,
|
value: <StatusLabel status="warning">{pvcStatusCounts.Pending}</StatusLabel>,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(pvcStatusCounts.Lost > 0
|
...(pvcStatusCounts.Lost > 0
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'PVCs (Lost)',
|
name: 'PVCs (Lost)',
|
||||||
value: <StatusLabel status="error">{pvcStatusCounts.Lost}</StatusLabel>,
|
value: <StatusLabel status="error">{pvcStatusCounts.Lost}</StatusLabel>,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user