feat(firmware): make device hostnames clickable in firmware page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-18 11:19:13 -05:00
parent e5a5d735a6
commit 213681c4e6

View File

@@ -34,6 +34,7 @@ import { cn } from '@/lib/utils'
import { TableSkeleton } from '@/components/ui/page-skeleton'
import { EmptyState } from '@/components/ui/empty-state'
import { UpgradeProgressModal } from './UpgradeProgressModal'
import { DeviceLink } from '@/components/ui/device-link'
// ---------------------------------------------------------------------------
// Stat card
@@ -318,7 +319,11 @@ function VersionGroupCard({
key={device.id}
className="flex items-center gap-3 px-4 py-2 border-t border-border/50 text-xs"
>
<span className="flex-1 text-text-secondary truncate">{device.hostname}</span>
<span className="flex-1 text-text-secondary truncate">
<DeviceLink tenantId={tenantId} deviceId={device.id}>
{device.hostname}
</DeviceLink>
</span>
<span className="w-28 text-text-muted truncate">
{device.model ?? '—'}
</span>