improve: reorder tables to group infrastructure servers together

- PBS Servers table now appears right after Proxmox Nodes table
- Better logical flow: infrastructure servers → guest resources → storage
- Makes more sense to have all server-level monitoring grouped together
This commit is contained in:
Pulse Monitor
2025-08-21 11:56:56 +00:00
parent 5b84d89a50
commit 93c881eb27
@@ -910,6 +910,25 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
/>
</Show>
{/* PBS Servers Table */}
<Show when={pbsServersWithOverrides().length > 0}>
<ResourceTable
title="PBS Servers"
resources={pbsServersWithOverrides()}
columns={['CPU %', 'Memory %']}
activeAlerts={props.activeAlerts}
onEdit={startEditing}
onSaveEdit={saveEdit}
onCancelEdit={cancelEdit}
onRemoveOverride={removeOverride}
editingId={editingId}
editingThresholds={editingThresholds}
setEditingThresholds={setEditingThresholds}
formatMetricValue={formatMetricValue}
hasActiveAlert={hasActiveAlert}
/>
</Show>
{/* Guests Table */}
<Show when={Object.keys(guestsGroupedByNode()).length > 0}>
<ResourceTable
@@ -949,25 +968,6 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
hasActiveAlert={hasActiveAlert}
/>
</Show>
{/* PBS Servers Table */}
<Show when={pbsServersWithOverrides().length > 0}>
<ResourceTable
title="PBS Servers"
resources={pbsServersWithOverrides()}
columns={['CPU %', 'Memory %']}
activeAlerts={props.activeAlerts}
onEdit={startEditing}
onSaveEdit={saveEdit}
onCancelEdit={cancelEdit}
onRemoveOverride={removeOverride}
editingId={editingId}
editingThresholds={editingThresholds}
setEditingThresholds={setEditingThresholds}
formatMetricValue={formatMetricValue}
hasActiveAlert={hasActiveAlert}
/>
</Show>
</div>
);
}