diff --git a/frontend/src/components/fleet/FleetTable.tsx b/frontend/src/components/fleet/FleetTable.tsx
index 8771291..d05b283 100644
--- a/frontend/src/components/fleet/FleetTable.tsx
+++ b/frontend/src/components/fleet/FleetTable.tsx
@@ -16,6 +16,7 @@ import {
import { Button } from '@/components/ui/button'
import { formatUptime, formatDateTime } from '@/lib/utils'
import { cn } from '@/lib/utils'
+import { DeviceLink } from '@/components/ui/device-link'
import { TableSkeleton } from '@/components/ui/page-skeleton'
import { EmptyState } from '@/components/ui/empty-state'
@@ -82,17 +83,16 @@ function SortHeader({ column, label, currentSort, currentDir, onSort, className
)
}
-function DeviceCard({ device, onClick }: { device: DeviceResponse; onClick: () => void }) {
+function DeviceCard({ device, tenantId }: { device: DeviceResponse; tenantId: string }) {
return (
-
+
)
}
@@ -213,7 +213,7 @@ export function FleetTable({
|
- {device.hostname} |
+ {device.hostname} |
{device.ip_address}
|
@@ -287,7 +287,7 @@ export function FleetTable({
handleDeviceClick(device)}
+ tenantId={tenantId}
/>
))
)}
@@ -324,12 +324,9 @@ export function FleetTable({
data-index={virtualRow.index}
ref={virtualizer.measureElement}
className={cn(
- 'border-b border-border/50 hover:bg-elevated/50 cursor-pointer transition-colors',
+ 'border-b border-border/50 hover:bg-elevated/50 transition-colors',
selectedIndex === virtualRow.index && 'bg-elevated/50',
)}
- onClick={() => handleDeviceClick(device)}
- tabIndex={0}
- onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleDeviceClick(device) } }}
style={{
position: 'absolute',
top: 0,
@@ -385,12 +382,9 @@ export function FleetTable({
key={device.id}
data-testid={`device-row-${device.hostname}`}
className={cn(
- 'border-b border-border/50 hover:bg-elevated/50 cursor-pointer transition-colors',
+ 'border-b border-border/50 hover:bg-elevated/50 transition-colors',
selectedIndex === idx && 'bg-elevated/50',
)}
- onClick={() => handleDeviceClick(device)}
- tabIndex={0}
- onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleDeviceClick(device) } }}
>
{renderDeviceRow(device)}