Compare commits

..

4 Commits
1.1.0 ... main

Author SHA1 Message Date
ee420fbf29
Merge pull request #30 from Retr0-01/fix-layout-confirmations
fix: improve layout confirmation messages
2025-09-23 19:54:49 +08:00
615f72249e
Merge pull request #29 from Retr0-01/fix-storage-node-status
fix: active storage node status
2025-09-23 19:54:38 +08:00
Retr0-01
d1ad6a008d improve layout confirmation messages 2025-09-23 12:25:58 +03:00
Retr0-01
fbcd83709b fix storage node status 2025-09-23 12:18:24 +03:00
4 changed files with 13 additions and 9 deletions

4
.gitignore vendored
View File

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

View File

@ -108,7 +108,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
const onRevert = () => {
if (
window.confirm("Are you sure you want to revert layout changes?") &&
window.confirm("Are you sure you want to revert any changes made?") &&
data?.version != null
) {
revertChanges.mutate(data?.version + 1);
@ -117,7 +117,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
const onApply = () => {
if (
window.confirm("Are you sure you want to revert layout changes?") &&
window.confirm("Are you sure you want to apply your layout changes?") &&
data?.version != null
) {
applyChanges.mutate(data?.version + 1);
@ -247,7 +247,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
` (${Math.round(
(item.dataPartition.available /
item.dataPartition.total) *
100
100
)}%)`}
</p>
</div>
@ -262,8 +262,8 @@ const NodesList = ({ nodes }: NodeListProps) => {
{item.draining
? "Draining"
: item.isUp
? "Active"
: "Inactive"}
? "Active"
: "Inactive"}
</Badge>
<Dropdown

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;