Skip to content

Commit 8609a55

Browse files
committed
fix(Settings): improve user guidance during system update
1 parent fcb6965 commit 8609a55

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

admin/docs/release-notes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release Notes
22

3+
## Unreleased
4+
5+
### Features
6+
7+
### Bug Fixes
8+
- **Settings**: Fix potential stale cache issue when checking for system updates
9+
- **Settings**: Improve user guidance during system updates
10+
11+
### Improvements
12+
13+
314
## Version 1.25.0 - February 12, 2026
415

516
### Features

admin/inertia/pages/settings/update.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export default function SystemUpdatePage(props: {
231231
const [logs, setLogs] = useState<string>('')
232232
const [email, setEmail] = useState('')
233233
const [versionInfo, setVersionInfo] = useState(props.system)
234+
const [showConnectionLostNotice, setShowConnectionLostNotice] = useState(false)
234235

235236
useEffect(() => {
236237
if (!isUpdating) return
@@ -242,6 +243,9 @@ export default function SystemUpdatePage(props: {
242243
throw new Error('Failed to fetch update status')
243244
}
244245
setUpdateStatus(response)
246+
247+
// If we can connect again, hide the connection lost notice
248+
setShowConnectionLostNotice(false)
245249

246250
// Check if update is complete or errored
247251
if (response.stage === 'complete') {
@@ -255,6 +259,8 @@ export default function SystemUpdatePage(props: {
255259
}
256260
} catch (err) {
257261
// During container restart, we'll lose connection - this is expected
262+
// Show a notice to inform the user that this is normal
263+
setShowConnectionLostNotice(true)
258264
// Continue polling to detect when the container comes back up
259265
console.log('Polling update status (container may be restarting)...')
260266
}
@@ -414,6 +420,16 @@ export default function SystemUpdatePage(props: {
414420
/>
415421
</div>
416422
)}
423+
{isUpdating && showConnectionLostNotice && (
424+
<div className="mb-6">
425+
<Alert
426+
type="info"
427+
title="Connection Temporarily Lost (Expected)"
428+
message="You may see error notifications while the backend restarts during the update. This is completely normal and expected. Connection should be restored momentarily."
429+
variant="solid"
430+
/>
431+
</div>
432+
)}
417433
<div className="bg-white rounded-lg border shadow-md overflow-hidden">
418434
<div className="p-8 text-center">
419435
<div className="flex justify-center mb-4">{getStatusIcon()}</div>

0 commit comments

Comments
 (0)