diff --git a/app/_components/GitWidget.tsx b/app/_components/GitWidget.tsx index 0513ff2..333b84b 100644 --- a/app/_components/GitWidget.tsx +++ b/app/_components/GitWidget.tsx @@ -58,10 +58,15 @@ export default function GitWidget({ initial, repos }: { initial: GitInitial; rep ) : error ? (

{error}

) : data ? ( -

- {data.dirty} +

+ {data.dirty}/{data.total} - {' '}repo{data.dirty !== 1 ? 's' : ''} dirty + {' '}repos uncommitted

) : ( diff --git a/app/_components/SystemdWidget.tsx b/app/_components/SystemdWidget.tsx index 9c01760..147d141 100644 --- a/app/_components/SystemdWidget.tsx +++ b/app/_components/SystemdWidget.tsx @@ -58,7 +58,16 @@ export default function SystemdWidget({ initial, units }: { initial: SystemdInit ) : error ? (

{error}

) : data ? ( -

+

0 && data.healthy === data.total + ? 'text-green-600' + : data.healthy > 0 + ? 'text-orange-500' + : 'text-destructive', + ].join(' ')} + > {data.healthy}/{data.total} healthy