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 card language

rcourtman097a19e16985
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 4bc12dd56b..1260f1d0e3 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -741,18 +741,18 @@ Day` when they do not materially improve operator triage, so the top strip
stays closer to storage's orientation-first rhythm.
That same summary-scan rule should also trim derivative rows that restate the
headline instead of adding a new operator question. `Freshness` should not add
-an extra `<24h` row under a `fresh in 24h` headline, `Protected Footprint`
-should not spend a row repeating a primary-platform label when platform count
-already frames the footprint, and `Recent History` should stay on a short
-activity readout rather than carrying a four-line micro report.
+an extra `<24h` row under a `fresh in 24h` headline, `Coverage` should not
+spend a row repeating a primary-platform label when platform count already
+frames the footprint, and `Activity` should stay on a short activity readout
+rather than carrying a four-line micro report.
That same summary-card rule should also avoid inline distribution bars or
dashboard-style subvisualizations inside the cards when the same signal can be
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 differentiation rule applies across cards too. `Recovery Posture`
-and `Freshness` should not lead with the same stale/attention headline; the
+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
reach, while posture owns the attention-state headline.
That same density rule should route through the shared summary primitives
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
index 46d896333b..acf4d374c7 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
@@ -54,10 +54,10 @@ describe('RecoverySummary', () => {
));
expect(screen.getByTestId('recovery-summary')).toBeInTheDocument();
- expect(screen.getByText('Recovery Posture')).toBeInTheDocument();
- expect(screen.getByText('Protected Footprint')).toBeInTheDocument();
+ expect(screen.getByText('Posture')).toBeInTheDocument();
+ expect(screen.getByText('Coverage')).toBeInTheDocument();
expect(screen.getByText('Freshness')).toBeInTheDocument();
- expect(screen.getByText('Recent History')).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();
@@ -66,7 +66,7 @@ describe('RecoverySummary', () => {
expect(screen.getByText('>7d 1 · Never Succeeded 1')).toBeInTheDocument();
expect(screen.getByText('fresh in 24h')).toBeInTheDocument();
expect(screen.getByText('Latest Activity Mar 9')).toBeInTheDocument();
- expect(screen.getByText('2 protected')).toBeInTheDocument();
+ expect(screen.getByText('2 protected items')).toBeInTheDocument();
expect(screen.getByText('need attention')).toBeInTheDocument();
expect(screen.queryByText('protected items')).not.toBeInTheDocument();
expect(screen.queryByText('Running')).not.toBeInTheDocument();
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
index a252a19e33..b12c43e8cd 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
@@ -154,7 +154,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
<Show when={hasRollups()}>
<SummaryPanel
headerLeft={
- <span class="font-medium text-base-content">{summary().total} protected</span>
+ <span class="font-medium text-base-content">{summary().total} protected items</span>
}
timeRange={props.timeRange()}
onTimeRangeChange={props.onTimeRangeChange ? handleTimeRangeChange : undefined}
@@ -163,7 +163,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
testId="recovery-summary"
class="overflow-hidden"
>
- <SummaryMetricCard label="Recovery Posture" loaded={true} hasData={hasRollups()}>
+ <SummaryMetricCard label="Posture" loaded={true} hasData={hasRollups()}>
<div class="flex h-full flex-col gap-1.5">
<div>
<div class={`text-xl font-semibold tabular-nums ${primaryPostureMetric().valueClass}`}>
@@ -191,7 +191,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
</div>
</SummaryMetricCard>
- <SummaryMetricCard label="Protected Footprint" loaded={true} hasData={hasRollups()}>
+ <SummaryMetricCard label="Coverage" loaded={true} hasData={hasRollups()}>
<div class="flex h-full flex-col gap-1.5">
<div>
<div class="text-xl font-semibold tabular-nums text-base-content">
@@ -204,7 +204,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
</SummaryMetricCard>
<SummaryMetricCard
- label="Recent History"
+ label="Activity"
loaded={props.seriesLoaded()}
hasData={activity().hasData}
emptyMessage={props.seriesFailed?.() ? 'Trend data unavailable' : 'No recovery activity yet'}
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 16180ec133..9247fadb9d 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -207,7 +207,7 @@ describe('Recovery', () => {
const recoveryPage = screen.getByTestId('recovery-page');
const summaryPanel = await screen.findByTestId('recovery-summary');
expect(summaryPanel).toBeInTheDocument();
- expect(screen.getByText('Recovery Posture')).toBeInTheDocument();
+ expect(screen.getByText('Posture')).toBeInTheDocument();
const workspaceTablist = await screen.findByRole('tablist', { name: /recovery data view/i });
expect(within(workspaceTablist).getByRole('tab', { name: 'Protected items' })).toBeInTheDocument();
expect(within(workspaceTablist).getByRole('tab', { name: 'Recovery events' })).toBeInTheDocument();
@@ -234,7 +234,7 @@ describe('Recovery', () => {
expect(screen.queryByText('Protected inventory')).not.toBeInTheDocument();
expect(screen.queryByText('Needs Attention')).not.toBeInTheDocument();
expect(screen.getAllByText(/Page 1 \/ 1/i).length).toBeGreaterThan(0);
- expect(screen.queryByText(/^2 protected items$/i)).not.toBeInTheDocument();
+ expect(screen.getByText(/^2 protected items$/i)).toBeInTheDocument();
expect(screen.getByRole('tab', { name: /recovery events/i })).toHaveAttribute(
'aria-selected',
'false',
@@ -464,7 +464,7 @@ describe('Recovery', () => {
render(() => <Recovery />);
const summary = await screen.findByTestId('recovery-summary');
- expect(within(summary).getByText('Protected Footprint')).toBeInTheDocument();
+ expect(within(summary).getByText('Coverage')).toBeInTheDocument();
expect(within(summary).queryByText('Primary Item')).not.toBeInTheDocument();
expect(within(summary).getByText(/item types/i)).toBeInTheDocument();
expect(within(summary).getAllByText(/platforms/i).length).toBeGreaterThan(0);