Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix storage growth planner stable tone

rcourtmanff38aba5b21f
diff --git a/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts
index d57ce60d83..aa0973d88f 100644
--- a/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts
+++ b/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts
@@ -141,5 +141,8 @@ describe('storageGrowthPlannerPresentation', () => {
expect(planner.topPools).toEqual([]);
expect(planner.emptyTitle).toBe('No capacity planning pressure over 7d');
+ expect(planner.planningPools[0]?.priorityToneClass).toBe(
+ 'border-green-200 bg-green-50 text-green-700 dark:border-green-900/60 dark:bg-green-950/30 dark:text-green-300',
+ );
});
});
diff --git a/frontend-modern/src/features/storageBackups/storageGrowthPlannerPresentation.ts b/frontend-modern/src/features/storageBackups/storageGrowthPlannerPresentation.ts
index 86453bbe13..9e2d8a7865 100644
--- a/frontend-modern/src/features/storageBackups/storageGrowthPlannerPresentation.ts
+++ b/frontend-modern/src/features/storageBackups/storageGrowthPlannerPresentation.ts
@@ -135,7 +135,7 @@ function getPriorityToneClass(priority: StorageGrowthPlannerPriority): string {
case 'unknown':
return 'border-border bg-surface-alt text-muted';
case 'stable':
- return 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-900/60 dark:bg-emerald-950/30 dark:text-emerald-300';
+ return 'border-green-200 bg-green-50 text-green-700 dark:border-green-900/60 dark:bg-green-950/30 dark:text-green-300';
}
}