From e8ffbdbf7acc6c886936da14e53cc8c6b2201d79 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Wed, 18 Mar 2026 11:13:33 -0500 Subject: [PATCH] feat(alerts): use DeviceLink for device hostnames Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/alerts/AlertsPage.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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}`}