From ff38aba5b21f90d434b0f71dd3556779515e68fb Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 13 May 2026 18:21:56 +0100 Subject: [PATCH] Fix storage growth planner stable tone --- .../__tests__/storageGrowthPlannerPresentation.test.ts | 3 +++ .../storageBackups/storageGrowthPlannerPresentation.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/storageGrowthPlannerPresentation.test.ts index d57ce60d8..aa0973d88 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 86453bbe1..9e2d8a786 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'; } }