diff --git a/admin/docs/release-notes.md b/admin/docs/release-notes.md index ad1354c..61b6464 100644 --- a/admin/docs/release-notes.md +++ b/admin/docs/release-notes.md @@ -1,5 +1,16 @@ # Release Notes +## Unreleased + +### Features + +### Bug Fixes +- **Settings**: Fix potential stale cache issue when checking for system updates +- **Settings**: Improve user guidance during system updates + +### Improvements + + ## Version 1.25.0 - February 12, 2026 ### Features diff --git a/admin/inertia/pages/settings/update.tsx b/admin/inertia/pages/settings/update.tsx index dc604f3..edbe561 100644 --- a/admin/inertia/pages/settings/update.tsx +++ b/admin/inertia/pages/settings/update.tsx @@ -231,6 +231,7 @@ export default function SystemUpdatePage(props: { const [logs, setLogs] = useState('') const [email, setEmail] = useState('') const [versionInfo, setVersionInfo] = useState(props.system) + const [showConnectionLostNotice, setShowConnectionLostNotice] = useState(false) useEffect(() => { if (!isUpdating) return @@ -242,6 +243,9 @@ export default function SystemUpdatePage(props: { throw new Error('Failed to fetch update status') } setUpdateStatus(response) + + // If we can connect again, hide the connection lost notice + setShowConnectionLostNotice(false) // Check if update is complete or errored if (response.stage === 'complete') { @@ -255,6 +259,8 @@ export default function SystemUpdatePage(props: { } } catch (err) { // During container restart, we'll lose connection - this is expected + // Show a notice to inform the user that this is normal + setShowConnectionLostNotice(true) // Continue polling to detect when the container comes back up console.log('Polling update status (container may be restarting)...') } @@ -414,6 +420,16 @@ export default function SystemUpdatePage(props: { /> )} + {isUpdating && showConnectionLostNotice && ( +
+ +
+ )}
{getStatusIcon()}