mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-30 20:29:15 +00:00
feat(dashboard): add node badge to Recent Alerts for remote node alerts (#423)
Alerts from remote nodes now display a node name badge in the Recent Alerts card, matching the existing badge style in the notification panel. This helps users identify which node generated each alert.
This commit is contained in:
@@ -16,7 +16,7 @@ interface HomeDashboardProps {
|
||||
}
|
||||
|
||||
export default function HomeDashboard({ onNavigateToStack, notifications, onClearNotifications }: HomeDashboardProps) {
|
||||
const { activeNode } = useNodes();
|
||||
const { activeNode, nodes } = useNodes();
|
||||
const data = useDashboardData();
|
||||
|
||||
return (
|
||||
@@ -48,6 +48,7 @@ export default function HomeDashboard({ onNavigateToStack, notifications, onClea
|
||||
|
||||
<RecentAlerts
|
||||
notifications={notifications}
|
||||
nodes={nodes}
|
||||
onCleared={onClearNotifications}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user