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.

Shorten drawer support section titles

rcourtmanfa424849365e
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index a1833fb2a4..62325b0951 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -473,7 +473,7 @@ explicit reveal control without extra explanatory chrome, so the drawer signals
secondary depth through one governed structure instead of repeating prose about
what is "supporting" or "secondary" in each block.
Host and node system or hardware cards now also live behind a collapsed
-`Host details` support block instead of rendering before the primary overview
+`Host` support block instead of rendering before the primary overview
cards, so runtime status, identity, and next investigation steps stay first
while deeper machine detail remains available on demand.
That host-details section now reads as a simple vertical stack of detail cards
@@ -493,30 +493,30 @@ When the identity side has no owned rows or supporting labels yet, the sparse
fallback now stays terse (`No identity metadata yet.`) so empty state chrome
does not read heavier than the data it is standing in for.
Type-specific Docker, PBS, and PMG operational panels now also live inside a
-collapsed `Service details` support block, so lane-specific controls and
+collapsed `Service` support block, so lane-specific controls and
breakdowns stay available without displacing the common runtime and identity
hierarchy on first read.
The drawer’s secondary support sections now share the same responsive
flex-wrap card-group pattern used by the workloads drawer, so change history,
service details, host details, investigation context, and discovery context
read side by side on wider screens instead of as a single full-width stack.
-Host details uses that same flex-wrap pattern inside the disclosure for the
+Host uses that same flex-wrap pattern inside the disclosure for the
system, hardware, storage, and network cards, so the drawer matches the
shared workload-card density instead of stretching those cards one per row.
-The collapsed `Host details` summary now names the available categories only,
+The collapsed `Host` summary now names the available categories only,
instead of exposing internal card counts in the disclosure label.
-When `Service details` is expanded, each service card remains summary-first and
+When `Service` is expanded, each service card remains summary-first and
pushes heavier breakdowns or update controls behind one more service-local
reveal, so the opened state still scans as current state before deeper
operations.
That same ownership rule now keeps the service-summary sentence in the
-`Service details` disclosure header instead of repeating a second summary box
+`Service` disclosure header instead of repeating a second summary box
inside PBS or PMG cards, and the service-local reveal labels stay terse
(`Show jobs`, `Show mail flow`, `Jobs`, `Queue`), while the opened accordions
also use shorter section labels (`Types`, `Queue detail`, `Mail detail`) and
count-only summary badges so opened cards read like current state instead of
descriptive chrome.
-That collapsed `Service details` summary now also uses resource-facing count
+That collapsed `Service` summary now also uses resource-facing count
phrasing (`1 datastore`, `7 containers`, `16 delayed messages`) instead of
implementation wording like `queue total`.
Within that same PMG opened state, queue and backlog remain the primary metric
diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
index 096d441650..57faa502ed 100644
--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
@@ -500,12 +500,12 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver
<Show when={drawer.hasServiceDetails()}>
<SupportDisclosure
- title="Service details"
+ title="Service"
summary={drawer.serviceDetailsSummary()}
expanded={drawer.showServiceDetails()}
onToggle={() => drawer.setShowServiceDetails((value) => !value)}
- showLabel="Show service details"
- hideLabel="Hide service details"
+ showLabel="Show service"
+ hideLabel="Hide service"
class="h-full"
contentClass="mt-3 space-y-3"
dataTestId="resource-service-details-section"
@@ -880,12 +880,12 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver
<Show when={drawer.hasHostDetails()}>
<SupportDisclosure
- title="Host details"
+ title="Host"
summary={drawer.hostDetailSummary()}
expanded={drawer.showHostDetails()}
onToggle={() => drawer.setShowHostDetails((value) => !value)}
- showLabel="Show host details"
- hideLabel="Hide host details"
+ showLabel="Show host"
+ hideLabel="Hide host"
class="h-full"
contentClass="mt-3 flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(50%-0.375rem)] [&>*]:min-w-[220px] [&>*]:max-w-full [&>*]:overflow-hidden"
dataTestId="resource-host-details-section"
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 b34c56d00b..30fe4778fa 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx
@@ -320,8 +320,8 @@ describe('ResourceDetailDrawer change history section', () => {
).toBeNull();
const currentStateSection = screen.getByTestId('resource-current-state-section');
const identitySection = screen.getByTestId('resource-identity-section');
- expect(screen.queryByText('Host details')).toBeNull();
- expect(screen.queryByText('Service details')).toBeNull();
+ expect(screen.queryByText('Host')).toBeNull();
+ expect(screen.queryByText('Service')).toBeNull();
expect(screen.queryByText('Supporting context')).toBeNull();
expect(screen.queryByText('Mail details are only available for PMG resources.')).toBeNull();
expect(
@@ -609,8 +609,8 @@ describe('ResourceDetailDrawer change history section', () => {
render(() => <ResourceDetailDrawer resource={resource} />);
- expect(screen.getByText('Service details')).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: 'Show service details' }));
+ expect(screen.getByText('Service')).toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: 'Show service' }));
const serviceDetails = within(screen.getByTestId('resource-service-details-section'));
expect(
screen.getByTestId('resource-service-details-section').querySelector('.mt-3.space-y-3'),
@@ -662,7 +662,7 @@ describe('ResourceDetailDrawer change history section', () => {
render(() => <ResourceDetailDrawer resource={resource} />);
- fireEvent.click(screen.getByRole('button', { name: 'Show service details' }));
+ fireEvent.click(screen.getByRole('button', { name: 'Show service' }));
fireEvent.click(screen.getByRole('button', { name: 'Show mail flow' }));
expect(screen.getByText('Queue')).toBeInTheDocument();
expect(screen.getByText('Backlog')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
index 6abea146ef..bdc0e9c7d1 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx
@@ -121,7 +121,7 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- expect(getByText('Summary')).toBeInTheDocument();
+ expect(() => getByText('Summary')).toThrow();
expect(getByText('Current state')).toBeInTheDocument();
expect(() => getByText('Sources')).toThrow();
expect(queryByRole('link', { name: 'Open related workloads for host-1' })).toBeNull();
@@ -213,12 +213,12 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- expect(getByText('Host details')).toBeInTheDocument();
+ expect(getByText('Host')).toBeInTheDocument();
expect(getByText('System, Hardware, Network, and Disks')).toBeInTheDocument();
expect(queryByText('Hardware')).toBeNull();
expect(queryByText('Network')).toBeNull();
- fireEvent.click(getByRole('button', { name: 'Show host details' }));
+ fireEvent.click(getByRole('button', { name: 'Show host' }));
await waitFor(() => {
expect(getByText('Hardware')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx
index 12ef896ec6..41a5127ce6 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx
@@ -90,11 +90,11 @@ describe('ResourceDetailDrawer service cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- expect(getByText('Service details')).toBeInTheDocument();
+ expect(getByText('Service')).toBeInTheDocument();
expect(getByText('2 datastores · 3 jobs')).toBeInTheDocument();
expect(getByText('Platform ID')).toBeInTheDocument();
expect(queryByText('PBS Service')).toBeNull();
- fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ fireEvent.click(getByRole('button', { name: 'Show service' }));
expect(getByTestId('resource-service-details-section').querySelector('.mt-3.grid')).toBeNull();
const serviceDetails = within(getByTestId('resource-service-details-section'));
expect(serviceDetails.getByText('PBS')).toBeInTheDocument();
@@ -144,11 +144,11 @@ describe('ResourceDetailDrawer service cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- expect(getByText('Service details')).toBeInTheDocument();
- expect(getByText('519 queue total · 16 backlog')).toBeInTheDocument();
+ expect(getByText('Service')).toBeInTheDocument();
+ expect(getByText('519 queued messages · 16 delayed messages')).toBeInTheDocument();
expect(getByText('Platform ID')).toBeInTheDocument();
expect(queryByText('Mail Gateway')).toBeNull();
- fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ fireEvent.click(getByRole('button', { name: 'Show service' }));
expect(getByTestId('resource-service-details-section').querySelector('.mt-3.grid')).toBeNull();
const serviceDetails = within(getByTestId('resource-service-details-section'));
expect(serviceDetails.getByText('PMG')).toBeInTheDocument();
@@ -199,7 +199,7 @@ describe('ResourceDetailDrawer service cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ fireEvent.click(getByRole('button', { name: 'Show service' }));
fireEvent.click(getByRole('button', { name: 'Show mail flow' }));
const pmgSupportContext = within(getByTestId('pmg-support-context'));
expect(pmgSupportContext.queryByText('Nodes')).toBeNull();
@@ -231,9 +231,9 @@ describe('ResourceDetailDrawer service cards', () => {
<ResourceDetailDrawer resource={resource} />
));
- expect(getByText('Service details')).toBeInTheDocument();
+ expect(getByText('Service')).toBeInTheDocument();
expect(getByText('18 containers · 4 updates')).toBeInTheDocument();
- fireEvent.click(getByRole('button', { name: 'Show service details' }));
+ fireEvent.click(getByRole('button', { name: 'Show service' }));
expect(getByText('Docker runtime')).toBeInTheDocument();
expect(queryByText('Container Updates')).toBeNull();
expect(queryByText('Check now')).toBeNull();