8009fc6b8a
Adds device list panel with 1s real-time polling, device cards showing connection type/Android version/battery, wireless connect dialog, and DeviceInfoPanel with static fields fetched once and live fields (RAM, battery, thermal, storage, IP) pulsed every second. Introduces the selectedDeviceId vs profiledDeviceId split in Zustand store, Profile toggle per card, and auto-clear on device disconnect. All non-device feature panels gate on useActiveDevice and render NoDeviceSelected when no device is being profiled.
16 lines
552 B
TypeScript
16 lines
552 B
TypeScript
import { Radio } from 'lucide-react'
|
|
|
|
export function NoDeviceSelected() {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center h-full gap-3 text-muted-foreground">
|
|
<Radio size={40} strokeWidth={1.25} />
|
|
<div className="text-center">
|
|
<p className="text-sm font-medium">No device being profiled</p>
|
|
<p className="text-xs mt-1">
|
|
Go to Devices, select a device, and press <span className="text-foreground font-medium">Profile</span> to start monitoring.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|