Add known/unknown device ratio next to the device count
CI / web (push) Successful in 16s
CI / api (push) Successful in 22s

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-12 23:22:04 -06:00
parent 6d3e255de3
commit c772ca95c9
2 changed files with 12 additions and 1 deletions
+6
View File
@@ -186,6 +186,12 @@ body {
font-weight: 400; font-weight: 400;
} }
.device-ratio {
color: #8b949e;
font-weight: 400;
font-size: 0.75rem;
}
.device-table { .device-table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
+6 -1
View File
@@ -65,7 +65,12 @@ export function Dashboard({ username, onLoggedOut }: { username: string; onLogge
))} ))}
<section> <section>
<h2> <h2>
Network Devices <span className="device-count">({devices.length})</span> Network Devices <span className="device-count">({devices.length})</span>{" "}
{devices.length > 0 && (
<span className="device-ratio">
{devices.filter((d) => d.known).length} known / {devices.filter((d) => !d.known).length} unknown
</span>
)}
</h2> </h2>
<DeviceTable devices={devices} onDeviceChanged={poll} /> <DeviceTable devices={devices} onDeviceChanged={poll} />
</section> </section>