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.

Surface container runtime as a chip next to the image name

rcourtman072166906712
diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx
index 157db8b3cc..45364d1fd6 100644
--- a/frontend-modern/src/components/Dashboard/GuestRow.tsx
+++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx
@@ -41,6 +41,7 @@ export function GuestRow(props: GuestRowProps) {
const navigate = useNavigate();
const {
agentVersion,
+ appContainerRuntimeLabel,
clusterName,
contextLabel,
cpuAnomaly,
@@ -324,7 +325,7 @@ export function GuestRow(props: GuestRowProps) {
{/* Image */}
<Show when={isColVisible('image')}>
<td class="px-1.5 sm:px-2 py-0.5 align-middle">
- <div class="flex justify-center">
+ <div class="flex items-center justify-center gap-1.5">
<Show
when={workloadType() === 'app-container' && dockerImage()}
fallback={<span class="text-xs ">—</span>}
@@ -332,6 +333,14 @@ export function GuestRow(props: GuestRowProps) {
<span class="text-xs text-muted truncate max-w-[140px]" title={dockerImage()}>
{getShortImageName(dockerImage())}
</span>
+ <Show when={appContainerRuntimeLabel()}>
+ <span
+ class="rounded bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 px-1 py-0.5 text-[9px] font-medium uppercase tracking-wide whitespace-nowrap"
+ title={`${appContainerRuntimeLabel()} runtime`}
+ >
+ {appContainerRuntimeLabel()}
+ </span>
+ </Show>
</Show>
</div>
</td>
diff --git a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
index 77b600d8c4..594d731630 100644
--- a/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx
@@ -551,6 +551,59 @@ describe('GuestRow', () => {
});
expect(screen.getByTestId('update-button')).toBeTruthy();
});
+
+ it('renders Docker runtime chip next to image for Docker-managed app-containers', () => {
+ renderGuestRow({
+ guest: makeGuest({
+ type: 'app-container',
+ workloadType: 'app-container',
+ image: 'nginx:latest',
+ containerRuntime: 'docker',
+ }),
+ visibleColumnIds: ['name', 'image'],
+ });
+ expect(screen.getByText('Docker')).toBeTruthy();
+ });
+
+ it('renders Podman runtime chip next to image for Podman-managed app-containers', () => {
+ renderGuestRow({
+ guest: makeGuest({
+ type: 'app-container',
+ workloadType: 'app-container',
+ image: 'nginx:latest',
+ containerRuntime: 'podman',
+ }),
+ visibleColumnIds: ['name', 'image'],
+ });
+ expect(screen.getByText('Podman')).toBeTruthy();
+ });
+
+ it('renders TrueNAS runtime chip for TrueNAS app-containers without explicit runtime', () => {
+ renderGuestRow({
+ guest: makeGuest({
+ type: 'app-container',
+ workloadType: 'app-container',
+ image: 'nginx:latest',
+ platformType: 'truenas',
+ }),
+ visibleColumnIds: ['name', 'image'],
+ });
+ expect(screen.getByText('TrueNAS')).toBeTruthy();
+ });
+
+ it('does not render a runtime chip when runtime and platform are both unknown', () => {
+ renderGuestRow({
+ guest: makeGuest({
+ type: 'app-container',
+ workloadType: 'app-container',
+ image: 'nginx:latest',
+ }),
+ visibleColumnIds: ['name', 'image'],
+ });
+ expect(screen.queryByText('Docker')).toBeNull();
+ expect(screen.queryByText('Podman')).toBeNull();
+ expect(screen.queryByText('TrueNAS')).toBeNull();
+ });
});
describe('pod workload type', () => {
diff --git a/frontend-modern/src/components/Dashboard/useGuestRowState.ts b/frontend-modern/src/components/Dashboard/useGuestRowState.ts
index 88fc19ddf2..4fae2932fc 100644
--- a/frontend-modern/src/components/Dashboard/useGuestRowState.ts
+++ b/frontend-modern/src/components/Dashboard/useGuestRowState.ts
@@ -94,6 +94,18 @@ export function useGuestRowState(props: GuestRowProps) {
return type === 'vm' || type === 'system-container';
});
+ const appContainerRuntimeLabel = createMemo<string | null>(() => {
+ if (workloadType() !== 'app-container') return null;
+ const runtime = (props.guest.containerRuntime || '').trim();
+ const normalized = runtime.toLowerCase();
+ if (normalized === 'docker') return 'Docker';
+ if (normalized === 'podman') return 'Podman';
+ if (runtime) return runtime;
+ const platform = (props.guest.platformType || '').trim().toLowerCase();
+ if (platform === 'truenas') return 'TrueNAS';
+ return null;
+ });
+
const isOCIContainer = createMemo(() => {
if (workloadType() !== 'system-container') return false;
const containerMeta = props.guest as Partial<Pick<Container, 'isOci'>>;
@@ -242,6 +254,7 @@ export function useGuestRowState(props: GuestRowProps) {
);
return {
+ appContainerRuntimeLabel,
cpuAnomaly,
customUrl,
diskAnomaly,