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): prefer platform terminology

rcourtmana5f11effb428
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 7c3ca913bc..3430cefb5c 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -149,6 +149,10 @@ items, recovery events, and latest points so PBS backups, TrueNAS snapshots,
Kubernetes artifacts, and future providers all fit the same first-class UI
frame without removing the source badges and row-level cues that make Proxmox
operators productive.
+Operator-facing filter and detail labels should likewise prefer `platform`
+wording over implementation-facing `provider` wording, so the recovery surface
+describes the monitored platform families Pulse covers rather than exposing
+backend transport vocabulary as the primary UI model.
That primary workspace selection now also lives in canonical recovery route
state through `frontend-modern/src/routing/resourceLinks.ts` and
`frontend-modern/src/features/recovery/useRecoverySurfaceState.ts`, so copied
diff --git a/frontend-modern/src/components/Recovery/Recovery.tsx b/frontend-modern/src/components/Recovery/Recovery.tsx
index 1466aacf94..3b76dac65e 100644
--- a/frontend-modern/src/components/Recovery/Recovery.tsx
+++ b/frontend-modern/src/components/Recovery/Recovery.tsx
@@ -537,7 +537,7 @@ const Recovery: Component = () => {
when={workspaceView() === 'inventory'}
fallback="Cross-platform recovery artifacts grouped by day and filtered through one shared recovery model."
>
- Platform-neutral protection rollups across every connected recovery provider in the selected window.
+ Platform-neutral protection rollups across every connected recovery platform in the selected window.
</Show>
</div>
</Card>
diff --git a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
index cbfa02fbf4..612396f61b 100644
--- a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
@@ -324,7 +324,7 @@ export const RecoveryHistorySection: Component<RecoveryHistorySectionProps> = (p
>
<LabeledFilterSelect
id="recovery-provider-filter-history"
- label="History provider"
+ label="History platform"
value={props.providerFilter()}
onChange={(event) => {
props.setProviderFilter(
@@ -337,7 +337,7 @@ export const RecoveryHistorySection: Component<RecoveryHistorySectionProps> = (p
<For each={props.providerOptions()}>
{(provider) => (
<option value={provider}>
- {provider === 'all' ? 'All Providers' : getSourcePlatformLabel(provider)}
+ {provider === 'all' ? 'All Platforms' : getSourcePlatformLabel(provider)}
</option>
)}
</For>
diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
index 15e9ca2e30..558b4d6559 100644
--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
@@ -17,7 +17,7 @@ describe('RecoveryPointDetails', () => {
wsState.resources = [];
});
- it('renders provider-neutral details framing while preserving PBS-specific metadata', () => {
+ it('renders platform-neutral details framing while preserving PBS-specific metadata', () => {
wsState.resources = [
{
id: 'pbs-resource-1',
@@ -74,15 +74,15 @@ describe('RecoveryPointDetails', () => {
/>
));
- expect(screen.getByText('Provider Details')).toBeInTheDocument();
+ expect(screen.getByText('Platform Details')).toBeInTheDocument();
expect(screen.queryByText('PBS Details')).not.toBeInTheDocument();
- expect(screen.getByText('Provider-specific recovery metadata, verification state, and repository health.')).toBeInTheDocument();
+ expect(screen.getByText('Platform-specific recovery metadata, verification state, and repository health.')).toBeInTheDocument();
expect(screen.getByText('Repository Health')).toBeInTheDocument();
expect(screen.getByText('Verification')).toBeInTheDocument();
- const providerCard = screen.getByText('Provider').parentElement?.parentElement;
- expect(providerCard).not.toBeNull();
- expect(within(providerCard as HTMLDivElement).getByText('PBS')).toBeInTheDocument();
+ const platformCard = screen.getByText('Platform').parentElement?.parentElement;
+ expect(platformCard).not.toBeNull();
+ expect(within(platformCard as HTMLDivElement).getByText('PBS')).toBeInTheDocument();
});
it('uses canonical provider labels without forcing provider detail panels for other platforms', () => {
@@ -99,11 +99,11 @@ describe('RecoveryPointDetails', () => {
/>
));
- expect(screen.queryByText('Provider Details')).not.toBeInTheDocument();
+ expect(screen.queryByText('Platform Details')).not.toBeInTheDocument();
expect(screen.queryByText('PBS Details')).not.toBeInTheDocument();
- const providerCard = screen.getByText('Provider').parentElement?.parentElement;
- expect(providerCard).not.toBeNull();
- expect(within(providerCard as HTMLDivElement).getByText('TrueNAS')).toBeInTheDocument();
+ const platformCard = screen.getByText('Platform').parentElement?.parentElement;
+ expect(platformCard).not.toBeNull();
+ expect(within(platformCard as HTMLDivElement).getByText('TrueNAS')).toBeInTheDocument();
});
});
diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
index 43dcde9409..035d51a2b9 100644
--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
@@ -148,7 +148,7 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props
const pairs: { k: string; v: string }[] = [];
pairs.push({ k: 'ID', v: p.id });
- pairs.push({ k: 'Provider', v: providerLabel() || 'n/a' });
+ pairs.push({ k: 'Platform', v: providerLabel() || 'n/a' });
pairs.push({ k: 'Kind', v: String(p.kind || 'n/a') });
pairs.push({ k: 'Mode', v: String(p.mode || 'n/a') });
pairs.push({ k: 'Outcome', v: String(p.outcome || 'unknown') });
@@ -263,10 +263,10 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props
<div class="flex flex-wrap items-start justify-between gap-3">
<div>
<div class="text-[10px] font-semibold uppercase tracking-wide text-muted">
- Provider Details
+ Platform Details
</div>
<div class="mt-1 text-xs text-muted">
- Provider-specific recovery metadata, verification state, and repository health.
+ Platform-specific recovery metadata, verification state, and repository health.
</div>
</div>
<Show when={providerBadge()}>
diff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
index 11960fbc28..4dac8f1ceb 100644
--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
@@ -198,7 +198,7 @@ export const RecoveryProtectedInventorySection: Component<
>
<LabeledFilterSelect
id="recovery-provider-filter"
- label="Provider"
+ label="Platform"
value={props.providerFilter()}
onChange={(event) =>
props.setProviderFilter(
@@ -210,7 +210,7 @@ export const RecoveryProtectedInventorySection: Component<
<For each={props.providerOptions()}>
{(provider) => (
<option value={provider}>
- {provider === 'all' ? 'All Providers' : getSourcePlatformLabel(provider)}
+ {provider === 'all' ? 'All Platforms' : getSourcePlatformLabel(provider)}
</option>
)}
</For>
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 2bf277b0cf..033c3fe555 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -318,7 +318,7 @@ describe('Recovery', () => {
expect(await screen.findByText('VM 123')).toBeInTheDocument();
- fireEvent.change(screen.getByLabelText('Provider'), { target: { value: 'truenas' } });
+ fireEvent.change(screen.getByLabelText('Platform'), { target: { value: 'truenas' } });
await waitFor(() => {
expect(navigateSpy).toHaveBeenCalledWith('/recovery?provider=truenas', { replace: true });