diff --git a/frontend/src/components/alerts/AlertsPage.tsx b/frontend/src/components/alerts/AlertsPage.tsx index b803356..657efb5 100644 --- a/frontend/src/components/alerts/AlertsPage.tsx +++ b/frontend/src/components/alerts/AlertsPage.tsx @@ -4,7 +4,7 @@ import { useState } from 'react' import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query' -import { Link } from '@tanstack/react-router' +import { DeviceLink } from '@/components/ui/device-link' import { Bell, BellOff, @@ -106,13 +106,9 @@ function AlertRow({ {isSilenced && }
- + {alert.device_hostname ?? alert.device_id.slice(0, 8)} - + {alert.rule_name && {alert.rule_name}} {alert.threshold != null && ( @@ -342,7 +338,9 @@ export function AlertsPage() { {alert.message ?? alert.metric ?? 'System alert'} - {alert.device_hostname ?? alert.device_id.slice(0, 8)} + + {alert.device_hostname ?? alert.device_id.slice(0, 8)} + {alert.rule_name && ` — ${alert.rule_name}`}