Show the detected machine type in device inventory

This commit is contained in:
2026-11-18 17:39:43 +01:00
parent 6963ad332c
commit c599baa494
9 changed files with 231 additions and 16 deletions
+3 -1
View File
@@ -169,6 +169,7 @@ function DeviceDetail({
const jobs = Array.isArray(d?.recent_jobs) ? d.recent_jobs.map((v) => record(v)) : null;
const facts = d && [
['Kunde', label(d.customer_name)],
['Type', label(d.device_type)],
['Betriebssystem', label(d.os)],
['RAM', gib(d.ram_total_bytes) === null ? unknown : gib(d.ram_total_bytes) + ' GiB'],
['CPU', [cpu(d).primary, cpu(d).secondary].filter(Boolean).join(' · ')],
@@ -533,7 +534,7 @@ export function Devices({
<span className="sr-only">Ziel auswählen</span>
</th>
)}
{['Hostname', 'OS', 'Status', 'Speicher frei / gesamt', 'RAM', 'CPU', 'Kunde'].map(
{['Hostname', 'Type', 'OS', 'Status', 'Speicher frei / gesamt', 'RAM', 'CPU', 'Kunde'].map(
(h) => (
<th scope="col" key={h}>
{h}
@@ -582,6 +583,7 @@ export function Devices({
{label(d.hostname)}
</button>
</td>
<td data-label="Type">{label(d.device_type)}</td>
<td data-label="OS">{label(d.os)}</td>
<td data-label="Status" className="device-presence">
<Presence d={d} />