diff --git a/frontend/src/components/WaterSoftenerDiagram.tsx b/frontend/src/components/WaterSoftenerDiagram.tsx index 9ae431d..491259d 100644 --- a/frontend/src/components/WaterSoftenerDiagram.tsx +++ b/frontend/src/components/WaterSoftenerDiagram.tsx @@ -1,4 +1,4 @@ -import { RefreshCw, ChevronsRight } from 'lucide-react' +import { RefreshCw, ChevronsRight, ChevronsLeft } from 'lucide-react' import type { AssetStatus, TelemetryField } from '../types' function fieldByKey(latest: TelemetryField[], key: string | null): TelemetryField | undefined { @@ -96,12 +96,16 @@ export default function WaterSoftenerDiagram({ asset }: { asset: AssetStatus }) const aRegenerating = single ? regenActive : regenActive && bInService const bRegenerating = regenActive && !bInService - function Flow({ active }: { active: boolean }) { + // Brine flows FROM the brine tank INTO whichever resin tank is + // regenerating, so the chevrons point away from the (now centred) brine + // tank toward the tank they lead to. + function Flow({ active, direction }: { active: boolean; direction: 'left' | 'right' }) { + const Icon = direction === 'left' ? ChevronsLeft : ChevronsRight return ( - )}
- - + + {!single && ( <> - +