Merge pull request #29 from Retr0-01/fix-storage-node-status

fix: active storage node status
This commit is contained in:
Khairul Hidayat 2025-09-23 19:54:38 +08:00 committed by GitHub
commit 615f72249e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

4
.gitignore vendored
View File

@ -26,3 +26,7 @@ dist-ssr
.env*
!.env.example
docker-compose.*.yml
data/
meta/
garage.toml

View File

@ -38,8 +38,8 @@ const HomePage = () => {
health?.status === "healthy"
? "text-success"
: health?.status === "degraded"
? "text-warning"
: "text-error"
? "text-warning"
: "text-error"
)}
/>
<StatsCard title="Nodes" icon={HardDrive} value={health?.knownNodes} />
@ -56,7 +56,7 @@ const HomePage = () => {
<StatsCard
title="Active Storage Nodes"
icon={DatabaseZap}
value={health?.storageNodesOk}
value={health?.storageNodesUp}
/>
<StatsCard
title="Partitions"

View File

@ -5,7 +5,7 @@ export type GetHealthResult = {
knownNodes: number;
connectedNodes: number;
storageNodes: number;
storageNodesOk: number;
storageNodesUp: number;
partitions: number;
partitionsQuorum: number;
partitionsAllOk: number;