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.

Remove redundant/noise elements from guest drawer overview

rcourtman5456ca16a351
diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
index 4412fc72e3..2565313c35 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
@@ -373,10 +373,8 @@ describe('GuestDrawer', () => {
expect(screen.getByText('Homepage Dashboard')).toBeInTheDocument();
expect(screen.getByText('web_server')).toBeInTheDocument();
expect(screen.getByText('0.9.0')).toBeInTheDocument();
- expect(screen.getByText('95%')).toBeInTheDocument();
expect(screen.getByLabelText(getDiscoveryProvenanceTitle())).toBeInTheDocument();
expect(screen.getAllByText('http://192.0.2.10:3000').length).toBeGreaterThan(0);
- expect(screen.getByText('docker exec -it homepage /bin/sh')).toBeInTheDocument();
expect(screen.getByTestId('url-suggested')).toHaveTextContent('http://192.0.2.10:3000');
expect(screen.getByTestId('url-suggested-reason')).toHaveTextContent('Detected 3000/tcp');
});
diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.tsx
index bbe16357af..65256a0b1b 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawer.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawer.tsx
@@ -150,7 +150,6 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {
backupPresentation={backupPresentation()}
diskThresholds={diskThresholds()}
discoveryIdentifiedSummary={discoveryIdentifiedSummary()}
- discoveryReadinessPresentation={discoveryReadinessPresentation()}
hasWorkloadActionAgent={hasWorkloadActionAgent()}
showInGuestAgentInstallCue={showInGuestAgentInstallCue()}
webInterfaceTargetLabel={webInterfaceTargetLabel()}
diff --git a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
index d769439616..9496823d6f 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
@@ -5,11 +5,9 @@ import BoxIcon from 'lucide-solid/icons/box';
import { formatDiscoveryAge } from '@/api/discovery';
import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';
import { DiscoveryProvenanceMarker } from '@/components/shared/DiscoveryProvenanceMarker';
-import { DiscoveryReadinessBadge } from '@/components/shared/DiscoveryReadinessBadge';
import { InfoCardFrame } from '@/components/shared/InfoCardFrame';
import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';
import type { DiscoveryIdentifiedSummary } from '@/utils/discoveryPresentation';
-import type { DiscoveryReadinessPresentation } from '@/utils/resourceDiscoveryReadiness';
import { formatBytes, formatUptime } from '@/utils/format';
import type { MetricDisplayThresholds } from '@/utils/metricThresholds';
@@ -49,7 +47,6 @@ interface GuestDrawerOverviewProps {
} | null;
diskThresholds?: MetricDisplayThresholds | null;
discoveryIdentifiedSummary?: DiscoveryIdentifiedSummary | null;
- discoveryReadinessPresentation?: DiscoveryReadinessPresentation | null;
webInterfaceTargetLabel: string;
workloadActionAgentTitle: string;
}
@@ -68,9 +65,6 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {
</h3>
<DiscoveryProvenanceMarker />
</div>
- <span class="shrink-0 text-[10px] font-medium text-muted">
- {summary().confidencePercent}
- </span>
</div>
<div class="space-y-1.5 text-[11px]">
<div class="flex items-center justify-between gap-2">
@@ -118,14 +112,6 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {
<span class="font-medium text-base-content">{summary().portCount}</span>
</div>
</Show>
- <Show when={summary().cliAccess}>
- <div
- class="text-[10px] text-muted truncate font-mono"
- title={summary().cliAccess}
- >
- {summary().cliAccess}
- </div>
- </Show>
<div class="flex flex-wrap gap-1 pt-1 text-[10px] text-muted">
<span>{summary().sourceLabel}</span>
<Show when={summary().observedAt}>
@@ -136,29 +122,6 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {
</InfoCardFrame>
)}
</Show>
- <Show when={props.discoveryReadinessPresentation}>
- {(presentation) => (
- <InfoCardFrame>
- <div class="flex items-center justify-between gap-2 mb-2">
- <h3 class="truncate text-[11px] font-medium uppercase tracking-wide text-base-content">
- AI Context
- </h3>
- <DiscoveryReadinessBadge presentation={presentation()} compact />
- </div>
- <div class="space-y-1.5 text-[11px]">
- <div class="flex items-center justify-between gap-2">
- <span class="text-muted">Discovery</span>
- <span class="font-medium text-base-content truncate ml-2">
- {presentation().shortLabel}
- </span>
- </div>
- <Show when={presentation().detail}>
- <p class="text-[10px] leading-4 text-muted">{presentation().detail}</p>
- </Show>
- </div>
- </InfoCardFrame>
- )}
- </Show>
<InfoCardFrame>
<h3 class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">
System