From 9718a94d1daf1b2d78e87ae04e14dfe5c98f418a Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Wed, 18 Mar 2026 11:17:14 -0500 Subject: [PATCH] feat(transparency): make device names clickable in transparency log Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/transparency/TransparencyLogTable.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/transparency/TransparencyLogTable.tsx b/frontend/src/components/transparency/TransparencyLogTable.tsx index 4e8d223..7fe6347 100644 --- a/frontend/src/components/transparency/TransparencyLogTable.tsx +++ b/frontend/src/components/transparency/TransparencyLogTable.tsx @@ -29,6 +29,7 @@ import { } from '@/lib/transparencyApi' import { cn } from '@/lib/utils' import { EmptyState } from '@/components/ui/empty-state' +import { DeviceLink } from '@/components/ui/device-link' // --------------------------------------------------------------------------- // Constants @@ -349,6 +350,7 @@ export function TransparencyLogTable({ tenantId }: TransparencyLogTableProps) { setExpandedId(expandedId === item.id ? null : item.id) @@ -454,12 +456,14 @@ function StatsCard({ icon: Icon, label, value }: StatsCardProps) { interface TransparencyLogRowProps { item: TransparencyLogEntry + tenantId: string isExpanded: boolean onToggle: () => void } function TransparencyLogRow({ item, + tenantId, isExpanded, onToggle, }: TransparencyLogRowProps) { @@ -494,7 +498,11 @@ function TransparencyLogRow({ - {item.device_name ?? '--'} + {item.device_name && item.device_id ? ( + + {item.device_name} + + ) : (item.device_name ?? '--')}