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.

refactor(recovery): shorten summary headline tone

rcourtman0c2e10f55058
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index a8bca5539e..3af96e74bd 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -754,6 +754,10 @@ stale, and footprint telemetry in multiple stacked readouts inside one card.
Recovery summary cards should keep one dominant metric with one short support
band so the strip scans at the same speed as infrastructure and workloads
instead of behaving like a recovery-only executive summary.
+That same card-headline rule should keep the helper label terse too. Recovery
+headline captions should prefer short monitoring terms like `attention`,
+`healthy`, `running`, `types`, or `points` over sentence-like helper copy that
+makes the strip feel more bespoke than storage or workloads.
That support band should stay genuinely short, ideally one compact support line
and only occasionally two, so the operator can scan the summary as orientation
instead of reading each card like a dense checklist.
@@ -776,13 +780,10 @@ expressed as short metric rows. Recovery summary cards should stay on the
shared monitoring-card rhythm of one dominant metric plus compact supporting
rows rather than reviving bespoke visual telemetry that makes the strip read
heavier than the rest of Pulse.
-That same scan rule should also use the summary header for the first, obvious
-recovery counts. The header should carry total protected items plus one top
-status cue, not a second copy of the full posture breakdown. When recovery has
-attention-state items, the header should surface that attention cue; otherwise
-it may carry the healthy cue. The `Posture` card then owns the composition of
-the posture state instead of having the header and card repeat both healthy and
-attention counts at once.
+That same scan rule should also keep the summary header to orientation rather
+than another status rail. The header should carry total protected items only;
+the `Posture` card owns the attention-versus-healthy composition so the strip
+does not repeat the same posture cue both above and inside the cards.
That same differentiation rule applies across cards too. `Posture` and
`Freshness` should not lead with the same stale/attention headline; the
freshness card should emphasize recent successful coverage such as fresh-in-24h
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
index d3a80c8e36..37b8f2df98 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
@@ -59,16 +59,17 @@ describe('RecoverySummary', () => {
expect(screen.getByText('Freshness')).toBeInTheDocument();
expect(screen.getByText('Activity')).toBeInTheDocument();
expect(screen.getAllByText(/attention/i).length).toBeGreaterThan(0);
- expect(screen.getByText(/recovery points/i)).toBeInTheDocument();
- expect(screen.getByText(/item types/i)).toBeInTheDocument();
+ expect(screen.getByText(/^points$/i)).toBeInTheDocument();
+ expect(screen.getByText(/^types$/i)).toBeInTheDocument();
expect(screen.getByText('2 platforms')).toBeInTheDocument();
expect(screen.getAllByText('1 healthy')).toHaveLength(1);
- expect(screen.getByText('1 attention')).toBeInTheDocument();
expect(screen.getByText('1 stale')).toBeInTheDocument();
expect(screen.getByText('fresh in 24h')).toBeInTheDocument();
expect(screen.getByText('Mar 9')).toBeInTheDocument();
expect(screen.getByText('2 protected items')).toBeInTheDocument();
- expect(screen.getByText('need attention')).toBeInTheDocument();
+ expect(screen.getByText('attention')).toBeInTheDocument();
+ expect(screen.queryByText('need attention')).not.toBeInTheDocument();
+ expect(screen.queryByText('1 attention')).not.toBeInTheDocument();
expect(screen.queryByText('Failed 1')).not.toBeInTheDocument();
expect(screen.queryByText('>7d 1 · Never Succeeded 1')).not.toBeInTheDocument();
expect(screen.queryByText('Healthy 1 · Failed 1')).not.toBeInTheDocument();
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
index c8633a661c..acf743ae4d 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
@@ -43,20 +43,20 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
if (attentionCount() > 0) {
return {
value: attentionCount(),
- label: 'need attention',
+ label: 'attention',
valueClass: 'text-amber-600 dark:text-amber-400',
};
}
if (postureSummary().running > 0) {
return {
value: postureSummary().running,
- label: 'currently running',
+ label: 'running',
valueClass: 'text-blue-600 dark:text-blue-400',
};
}
return {
value: healthyCount(),
- label: 'healthy items',
+ label: 'healthy',
valueClass: 'text-emerald-600 dark:text-emerald-400',
};
});
@@ -108,32 +108,11 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
if (!latestLabel) return undefined;
return <span class="ml-auto truncate text-xs text-muted">{latestLabel}</span>;
});
- const headerStatusCue = createMemo(() => {
- if (attentionCount() > 0) {
- return (
- <span class="text-amber-600 dark:text-amber-400">
- {attentionCount()} attention
- </span>
- );
- }
- if (healthyCount() > 0) {
- return (
- <span class="text-emerald-600 dark:text-emerald-400">
- {healthyCount()} healthy
- </span>
- );
- }
- return undefined;
- });
-
return (
<Show when={hasRollups()}>
<SummaryPanel
headerLeft={
- <>
- <span class="font-medium text-base-content">{summary().total} protected items</span>
- <Show when={headerStatusCue()}>{headerStatusCue()}</Show>
- </>
+ <span class="font-medium text-base-content">{summary().total} protected items</span>
}
timeRange={props.timeRange()}
onTimeRangeChange={props.onTimeRangeChange ? handleTimeRangeChange : undefined}
@@ -185,7 +164,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
<div class="text-xl font-semibold tabular-nums text-base-content">
{itemCoverage().itemTypeCount}
</div>
- <div class="text-[11px] text-muted">item types</div>
+ <div class="text-[11px] text-muted">types</div>
</div>
</div>
</SummaryMetricCard>
@@ -202,7 +181,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
<div class="text-xl font-semibold tabular-nums text-base-content">
{activity().totalEvents}
</div>
- <div class="text-[11px] text-muted">recovery points</div>
+ <div class="text-[11px] text-muted">points</div>
</div>
</div>
</SummaryMetricCard>
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 6ddc32a17f..5d40b64382 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -496,9 +496,10 @@ describe('Recovery', () => {
const summary = await screen.findByTestId('recovery-summary');
expect(within(summary).getByText('Coverage')).toBeInTheDocument();
expect(within(summary).getByText(/\d+ protected items/i)).toBeInTheDocument();
- expect(within(summary).getByText(/\d+ attention/i)).toBeInTheDocument();
+ expect(within(summary).queryByText(/\d+ attention/i)).not.toBeInTheDocument();
+ expect(within(summary).getByText(/^attention$/i)).toBeInTheDocument();
expect(within(summary).queryByText('Primary Item')).not.toBeInTheDocument();
- expect(within(summary).getByText(/item types/i)).toBeInTheDocument();
+ expect(within(summary).getByText(/^types$/i)).toBeInTheDocument();
expect(within(summary).getAllByText(/platforms/i).length).toBeGreaterThan(0);
expect(within(summary).queryByText('Primary Platform')).not.toBeInTheDocument();
});