diff --git a/internal/site/src/components/systems-table/systems-table-columns.tsx b/internal/site/src/components/systems-table/systems-table-columns.tsx index e9438418..641ebd19 100644 --- a/internal/site/src/components/systems-table/systems-table-columns.tsx +++ b/internal/site/src/components/systems-table/systems-table-columns.tsx @@ -422,6 +422,13 @@ function DiskCellWithMultiple(info: CellContext) { return cn("h-full", getIndicatorColor(pct)) } + // Extra disk indicators (max 3 dots - one per state if any disk exists in range) + const stateColors = [STATUS_COLORS.up, STATUS_COLORS.pending, STATUS_COLORS.down] + const extraDiskIndicators = + status !== SystemStatus.Up + ? [] + : [...new Set(extraFs.map(([, pct]) => getMeterState(pct)))].sort().map((state) => stateColors[state]) + return ( @@ -439,10 +446,10 @@ function DiskCellWithMultiple(info: CellContext) { style={{ width: `${rootDiskPct}%` }} > {/* Extra disk indicators */} - {extraFs.map(([name, pct]) => ( + {extraDiskIndicators.map((color) => ( ))}