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.

Reduce resource drawer history copy density

rcourtman89f582108537
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 96190263be..7f021e0cae 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -241,6 +241,9 @@ instead of surfacing a peer `History` tab, so resource investigation stays on
one coherent runtime surface: the overview card carries the compact recent
activity summary, while the embedded change-history section owns filters and
the event log without duplicating a second timeline-summary card.
+That same change-history header now renders as title plus compact summary only,
+without an explanatory subheading, so the section reads like investigation
+state instead of inline documentation.
That same overview now keeps AI intelligence and data-governance details
inside a collapsed `Investigation context` disclosure, so runtime status and
identity stay primary while secondary AI and policy signals remain available
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
index e9062c04ca..1564ea9c5b 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx
@@ -1789,12 +1789,8 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
<div class="text-[11px] font-medium uppercase tracking-wide text-base-content">
Change history
</div>
- <div class="mt-1 text-[10px] text-muted">
- Filterable event history for this resource.
- </div>
<Show when={resourceTimelineCount() > 0}>
- <div class="mt-2 flex flex-col gap-1">
- <span class="text-[10px] text-muted">Recent activity</span>
+ <div class="mt-1">
<ResourceFacetSummary
recentChanges={resourceTimeline()}
counts={resourceFacetCounts()}
@@ -1908,7 +1904,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {
when={sortedResourceTimeline().length > 0}
fallback={
<div class="rounded border border-dashed border-border bg-surface-hover px-2 py-2 text-[10px] text-muted">
- No event records are available for this resource yet.
+ No events yet.
</div>
}
>
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
index ca6e04616c..5ec9f7ac56 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -196,7 +196,10 @@ describe('ResourceDetailDrawer change history section', () => {
).toBeNull();
expect(screen.getByRole('button', { name: 'Show metadata' })).toBeInTheDocument();
expect(screen.queryByText('Operational context')).toBeNull();
- expect(within(changeHistorySection).getByText('Recent activity')).toBeInTheDocument();
+ expect(
+ within(changeHistorySection).queryByText('Filterable event history for this resource.'),
+ ).toBeNull();
+ expect(within(changeHistorySection).queryByText('Recent activity')).toBeNull();
expect(screen.queryByText('Events')).toBeNull();
expect(screen.getAllByText('Timeline 3')).toHaveLength(1);
expect(screen.getAllByText('Restart 2')).toHaveLength(1);
@@ -308,7 +311,8 @@ describe('ResourceDetailDrawer change history section', () => {
const panel = within(historyPanel);
expect(await panel.findByText('Changes loaded')).toBeInTheDocument();
expect(panel.getByText('Routine restart requested')).toBeInTheDocument();
- expect(panel.getByText('Recent activity')).toBeInTheDocument();
+ expect(panel.queryByText('Recent activity')).toBeNull();
+ expect(panel.queryByText('Filterable event history for this resource.')).toBeNull();
expect(panel.getByText('Event log')).toBeInTheDocument();
expect(
panel.getByRole('link', { name: 'Open related resource PVE Node 1 in Infrastructure' }),