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

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-18 11:24:41 -05:00
parent fad52ade89
commit 98c45d92ce

View File

@@ -6,6 +6,7 @@ import { useAuth, isSuperAdmin } from '@/lib/auth'
import { useUIStore } from '@/lib/store' import { useUIStore } from '@/lib/store'
import { Card, CardContent } from '@/components/ui/card' import { Card, CardContent } from '@/components/ui/card'
import { cn } from '@/lib/utils' import { cn } from '@/lib/utils'
import { DeviceLink } from '@/components/ui/device-link'
export const Route = createFileRoute('/_authenticated/wireless')({ export const Route = createFileRoute('/_authenticated/wireless')({
component: WirelessPage, component: WirelessPage,
@@ -154,7 +155,11 @@ function WirelessPage() {
<td className="px-4 py-3 text-sm text-text-secondary"> <td className="px-4 py-3 text-sm text-text-secondary">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<span className="inline-block h-2 w-2 rounded-full bg-error" /> <span className="inline-block h-2 w-2 rounded-full bg-error" />
{issue.hostname} {tenantId && issue.device_id ? (
<DeviceLink tenantId={tenantId} deviceId={issue.device_id}>
{issue.hostname}
</DeviceLink>
) : issue.hostname}
</div> </div>
</td> </td>
{superAdmin && !tenantId && ( {superAdmin && !tenantId && (