@@ -233,24 +233,30 @@ function formatDate(dateString: string | null | undefined): string {
233233 class =" flex items-center justify-center size-10 rounded-lg"
234234 :class =" versionInfo?.updateAvailable
235235 ? 'bg-warning-50 dark:bg-warning-950 text-warning-600 dark:text-warning-400'
236- : 'bg-success-50 dark:bg-success-950 text-success-600 dark:text-success-400'"
236+ : !versionInfo && !versionLoading
237+ ? 'bg-surface-100 dark:bg-surface-800 text-surface-500 dark:text-surface-400'
238+ : 'bg-success-50 dark:bg-success-950 text-success-600 dark:text-success-400'"
237239 >
238240 <ArrowUpCircle v-if =" versionInfo?.updateAvailable" class =" size-5" />
241+ <AlertTriangle v-else-if =" !versionInfo && !versionLoading" class =" size-5" />
239242 <CheckCircle2 v-else class =" size-5" />
240243 </div >
241244 <div >
242245 <h2 class =" text-base font-semibold text-surface-900 dark:text-surface-100" >
243- {{ versionInfo?.updateAvailable ? 'Update available' : 'Up to date' }}
246+ {{ versionInfo?.updateAvailable ? 'Update available' : !versionInfo && !versionLoading ? 'Unable to check' : 'Up to date' }}
244247 </h2 >
245248 <p class =" text-sm text-surface-500 dark:text-surface-400" >
246249 <template v-if =" versionLoading " >
247250 Checking for updates…
248251 </template >
249- <template v-else-if =" versionInfo ?.updateAvailable " >
252+ <template v-else-if =" ! versionInfo " >
253+ Could not check for updates. Verify your network connection and try again.
254+ </template >
255+ <template v-else-if =" versionInfo .updateAvailable " >
250256 Version {{ versionInfo.latestVersion }} is available (you're on {{ versionInfo.currentVersion }})
251257 </template >
252258 <template v-else >
253- You're running the latest version ({{ versionInfo? .currentVersion }})
259+ You're running the latest version ({{ versionInfo.currentVersion }})
254260 </template >
255261 </p >
256262 </div >
@@ -550,6 +556,11 @@ function formatDate(dateString: string | null | undefined): string {
550556 Node.js {{ systemInfo.nodeVersion }}
551557 </div >
552558 </div >
559+
560+ <div v-else class =" px-6 py-8 text-center" >
561+ <AlertTriangle class =" size-5 mx-auto text-surface-400 mb-2" />
562+ <p class =" text-sm text-surface-500 dark:text-surface-400" >Failed to load system information.</p >
563+ </div >
553564 </section >
554565
555566 <!-- Expand / Collapse controls -->
0 commit comments