mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 12:42:43 +00:00
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:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user