From bc33caf40137091b4ef46aa211d456bab2d01fec Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Wed, 27 Aug 2025 18:43:56 +0000 Subject: [PATCH] refactor: make update notifications more subtle and professional - Changed from bright blue gradient to subtle light blue background - Reduced padding for less intrusive appearance - Improved professional wording: - "New version available" instead of "Update available" - Direct "View details" link to release notes - Removed redundant update instructions (already in release notes) - Added deployment-specific hints only where needed (ProxmoxVE/Docker) - Better color contrast with blue text on light background The notifications are now informative without being distracting, maintaining a professional appearance while ensuring users don't miss important updates. --- .../src/components/UpdateBanner.tsx | 52 ++++++++++++------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/frontend-modern/src/components/UpdateBanner.tsx b/frontend-modern/src/components/UpdateBanner.tsx index a29d32e2c..584898b2a 100644 --- a/frontend-modern/src/components/UpdateBanner.tsx +++ b/frontend-modern/src/components/UpdateBanner.tsx @@ -11,26 +11,26 @@ export function UpdateBanner() { switch (deploymentType) { case 'proxmoxve': - return "Type 'update' in the ProxmoxVE console"; + return "ProxmoxVE users: type 'update' in console"; case 'docker': - return 'Pull the latest Docker image and recreate container'; + return 'Docker: pull latest image'; case 'source': - return 'Pull latest changes and rebuild'; + return 'Source: pull and rebuild'; default: - return 'Run the install script to update'; + return ''; // No message, just the version info } }; const getShortMessage = () => { const info = updateStore.updateInfo(); if (!info) return ''; - return `Update available: ${info.latestVersion}`; + return `New version available: ${info.latestVersion}`; }; return ( -
-
+
+
{/* Update icon */} @@ -41,12 +41,22 @@ export function UpdateBanner() {
{getShortMessage()} - {!isExpanded() && ( + {!isExpanded() && getUpdateInstructions() && ( <> - - + + )} + {!isExpanded() && ( + + )}
@@ -54,7 +64,7 @@ export function UpdateBanner() { {/* Expand/Collapse button */}