From 5a957fe904c5f26b87d28c5395c425dd8125ca12 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 13 Apr 2026 09:18:09 +0200 Subject: [PATCH] Update storage-overview.tsx --- AppImage/components/storage-overview.tsx | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/AppImage/components/storage-overview.tsx b/AppImage/components/storage-overview.tsx index b397cd67..5d9f33a3 100644 --- a/AppImage/components/storage-overview.tsx +++ b/AppImage/components/storage-overview.tsx @@ -1654,17 +1654,22 @@ function openSmartReport(disk: DiskInfo, testStatus: SmartTestStatus, smartAttri let obsItemsHtml = '' obsList.forEach(obs => { - const severityColor = obs.severity === 'critical' ? '#dc2626' : obs.severity === 'warning' ? '#ca8a04' : '#3b82f6' - const severityBg = obs.severity === 'critical' ? '#dc262615' : obs.severity === 'warning' ? '#ca8a0415' : '#3b82f615' + // Use blue (info) as base color for all observations + const infoColor = '#3b82f6' + const infoBg = '#3b82f615' + // Severity badge color based on actual severity + const severityBadgeColor = obs.severity === 'critical' ? '#dc2626' : obs.severity === 'warning' ? '#ca8a04' : '#3b82f6' const severityLabel = obs.severity ? obs.severity.charAt(0).toUpperCase() + obs.severity.slice(1) : 'Info' const firstDate = obs.first_occurrence ? new Date(obs.first_occurrence).toLocaleString() : 'N/A' const lastDate = obs.last_occurrence ? new Date(obs.last_occurrence).toLocaleString() : 'N/A' const dismissedBadge = obs.dismissed ? 'Dismissed' : '' + const errorTypeLabel = type === 'io_error' ? 'I/O Error' : type === 'smart_error' ? 'SMART Error' : type === 'filesystem_error' ? 'Filesystem Error' : type.replace(/_/g, ' ') obsItemsHtml += ` -
+
- ${severityLabel} + ${errorTypeLabel} + ${severityLabel} ID: #${obs.id} Occurrences: ${obs.occurrence_count} ${dismissedBadge} @@ -1680,7 +1685,7 @@ function openSmartReport(disk: DiskInfo, testStatus: SmartTestStatus, smartAttri
${obs.raw_message || 'N/A'}
-
+
Device: ${obs.device_name || disk.name} @@ -1944,13 +1949,8 @@ function openSmartReport(disk: DiskInfo, testStatus: SmartTestStatus, smartAttri
Power Cycles
- ${isNvmeDisk ? ` -
${testStatus.smart_data?.nvme_raw?.media_errors ?? 0}
-
Media Errors
- ` : ` -
${disk.reallocated_sectors ?? 0}
-
Reallocated Sectors
- `} +
${disk.smart_status || 'N/A'}
+
SMART Status
${!isNvmeDisk ? ` @@ -1964,8 +1964,8 @@ function openSmartReport(disk: DiskInfo, testStatus: SmartTestStatus, smartAttri
CRC Errors
-
${disk.smart_status || 'N/A'}
-
SMART Status
+
${disk.reallocated_sectors ?? 0}
+
Reallocated Sectors
` : ''}