feat: Word the workload and update panels for Windows servers

This commit is contained in:
2026-08-13 12:16:10 +00:00
parent ea6d0b969c
commit 36848a519a
4 changed files with 28 additions and 9 deletions
+11 -4
View File
@@ -47,11 +47,18 @@ export function MaintenanceTab({
<Card padding={false}>
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-border px-6 py-4">
<h2 className="text-lg font-semibold text-text-primary">OS updates</h2>
{updates.length > 0 ? <Badge variant="warning">{updates.length} pending</Badge> : <Badge variant="success">up to date</Badge>}
<div className="flex flex-wrap items-center gap-2">
{updates.length > 0 ? <Badge variant="warning">{updates.length} pending</Badge> : <Badge variant="success">up to date</Badge>}
{/* Sits with the updates panel because that is what
caused it. The agent never reboots a host itself. */}
{server.inventory?.reboot_required && <Badge variant="warning">reboot required</Badge>}
</div>
</div>
{updates.length === 0 ? (
<p className="px-6 py-10 text-center text-sm text-text-secondary">No pending package updates. The agent checks hourly.</p>
<p className="px-6 py-10 text-center text-sm text-text-secondary">
{isWindows ? "No pending Windows updates. The agent checks hourly." : "No pending package updates. The agent checks hourly."}
</p>
) : (
<>
{/* Capped so a host with 400 pending packages does not make the
@@ -60,9 +67,9 @@ export function MaintenanceTab({
<Table>
<Thead>
<Tr>
<Th>Package</Th>
<Th>{isWindows ? "Update" : "Package"}</Th>
<Th>Current</Th>
<Th>Available</Th>
<Th>{isWindows ? "KB" : "Available"}</Th>
</Tr>
</Thead>
<Tbody>