From 79d823082173ef01586b3d63051c158b83126b78 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 12 Oct 2025 20:20:32 +0200 Subject: [PATCH] Update system-logs.tsx --- AppImage/components/system-logs.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/AppImage/components/system-logs.tsx b/AppImage/components/system-logs.tsx index b404a4e..6ca76a1 100644 --- a/AppImage/components/system-logs.tsx +++ b/AppImage/components/system-logs.tsx @@ -523,6 +523,20 @@ export function SystemLogs() { } } + // ADDED: New function for notification source colors + const getNotificationSourceColor = (source: string) => { + switch (source.toLowerCase()) { + case "task-log": + return "bg-purple-500/10 text-purple-500 border-purple-500/20" + case "journal": + return "bg-cyan-500/10 text-cyan-500 border-cyan-500/20" + case "system": + return "bg-orange-500/10 text-orange-500 border-orange-500/20" + default: + return "bg-gray-500/10 text-gray-500 border-gray-500/20" + } + } + const logCounts = { total: logs.length, error: logs.filter((log) => ["error", "critical", "emergency", "alert"].includes(log.level)).length, @@ -1013,6 +1027,15 @@ export function SystemLogs() { > {notification.type.toUpperCase()} + {/* CHANGED: Modified to use getNotificationSourceColor and appropriate icons */} + + {notification.source === "task-log" && } + {notification.source === "journal" && } + {notification.source.toUpperCase()} +
{notification.timestamp}