Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

feat(workloads): dedicated Availability column in workload table

rcourtmanc0411dd0aa1d
diff --git a/frontend-modern/src/components/Workloads/GuestRow.tsx b/frontend-modern/src/components/Workloads/GuestRow.tsx
index a2607775ac..7b494e69db 100644
--- a/frontend-modern/src/components/Workloads/GuestRow.tsx
+++ b/frontend-modern/src/components/Workloads/GuestRow.tsx
@@ -225,9 +225,6 @@ export function GuestRow(props: GuestRowProps) {
<span class="tabular-nums">{props.nestedWorkloadContext?.count}</span>
</span>
</Show>
- <Show when={availabilityPresentation()}>
- {(ap) => <AvailabilityProbeCell presentation={ap()} />}
- </Show>
</div>
</div>
@@ -242,6 +239,15 @@ export function GuestRow(props: GuestRowProps) {
</div>
</td>
+ {/* Availability */}
+ <Show when={isColVisible('availability')}>
+ <td class="px-1.5 sm:px-2 py-0.5 align-middle text-center" data-workload-col="availability">
+ <Show when={availabilityPresentation()}>
+ {(ap) => <AvailabilityProbeCell presentation={ap()} />}
+ </Show>
+ </td>
+ </Show>
+
{/* Runtime */}
<Show when={isColVisible('runtime')}>
<td class="px-1.5 sm:px-2 py-0.5 align-middle" data-workload-col="runtime">
@@ -622,21 +628,14 @@ export function GuestRow(props: GuestRowProps) {
</td>
</Show>
- {/* OS / System — availability probe protocol badge lives here per canonical platform table contract */}
+ {/* OS / System */}
<Show when={isColVisible('os')}>
<td class="px-1.5 sm:px-2 py-0.5 align-middle">
<div class="flex items-center justify-center gap-1">
<Show
when={hasOsInfo()}
fallback={
- <Show
- when={ociImage()}
- fallback={
- <Show when={availabilityPresentation()}>
- {(ap) => <AvailabilityProbeCell presentation={ap()} />}
- </Show>
- }
- >
+ <Show when={ociImage()}>
<span
class="text-xs text-cyan-600 dark:text-cyan-400 truncate max-w-[100px]"
title={`OCI Image: ${ociImage()}`}
@@ -652,9 +651,6 @@ export function GuestRow(props: GuestRowProps) {
agentVersion={agentVersion()}
/>
</Show>
- <Show when={availabilityPresentation()}>
- {(ap) => <AvailabilityProbeCell presentation={ap()} />}
- </Show>
</div>
</td>
</Show>
diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsx
index d64535a52b..f9ac01bfdf 100644
--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx
+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx
@@ -26,6 +26,7 @@ const WORKLOAD_TABLE_LAYOUT_ORDER: Record<WorkloadTableLayoutMode, number> = {
const WORKLOAD_COLUMN_MIN_LAYOUT: Record<string, WorkloadTableLayoutMode> = {
name: 'mobile',
+ availability: 'mobile',
runtime: 'tablet',
cpu: 'mobile',
memory: 'mobile',
@@ -167,6 +168,14 @@ export const GUEST_COLUMNS: ColumnDef[] = [
sortKey: 'name',
kind: 'name',
},
+ {
+ id: 'availability',
+ label: 'Avail',
+ width: '56px',
+ minWidth: '48px',
+ maxWidth: '64px',
+ kind: 'badge',
+ },
{
id: 'runtime',
label: 'Runtime',
@@ -511,6 +520,7 @@ export const getWorkloadVisibleColumnsForLayout = (
export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
all: new Set([
'name',
+ 'availability',
'type',
'info',
'cpu',
@@ -528,6 +538,7 @@ export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
]),
vm: new Set([
'name',
+ 'availability',
'vmid',
'cpu',
'memory',
@@ -544,6 +555,7 @@ export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
]),
'system-container': new Set([
'name',
+ 'availability',
'vmid',
'cpu',
'memory',
@@ -560,6 +572,7 @@ export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
]),
container: new Set([
'name',
+ 'availability',
'runtime',
'type',
'info',
@@ -581,6 +594,7 @@ export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
]),
'app-container': new Set([
'name',
+ 'availability',
'runtime',
'cpu',
'memory',