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.

Clarify recovery drawer target details

rcourtman66aa9f7c8c04
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 4b62eb8c83..0a3de37d2a 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -1992,11 +1992,12 @@ and collapsed file lists without repeating the same verification fact in
provider-specific sections or rendering empty verifier/evidence placeholders
when no verification record exists. Container recovery points should present
container ids with operator vocabulary such as `CTID`, and duplicated placement
-values should not be repeated under lower-priority location labels.
+or target values should not be repeated under lower-priority metadata labels.
Provider-specific metadata must not recast the event drawer itself as if PBS
-were the native recovery model. When target-specific technical labels are
-surfaced, they should prefer neutral wording such as `Target Ref`, `Target
-Resource`, and `Target Health`.
+were the native recovery model. Provider-owned repository data should sit under
+target-oriented wording such as `Target Details`, `Repository owner`, and
+`Target Health`; when target-specific technical labels are surfaced, they
+should prefer neutral wording such as `Target Ref` and `Target Resource`.
Those transport hooks are direct governed runtime surfaces, not just page
implementation detail: `frontend-modern/src/hooks/useRecoveryPoints.ts`,
`frontend-modern/src/hooks/useRecoveryPointsFacets.ts`,
diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
index 002ec81e26..3d3fe9c454 100644
--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx
@@ -86,10 +86,13 @@ describe('RecoveryPointDetails', () => {
/>
));
- expect(screen.getByText('Platform Details')).toBeInTheDocument();
+ expect(screen.getByText('Target Details')).toBeInTheDocument();
+ expect(screen.queryByText('Platform Details')).not.toBeInTheDocument();
expect(screen.queryByText('PBS Details')).not.toBeInTheDocument();
expect(
- screen.getByText('Provider metadata and target health for this recovery point.'),
+ screen.getByText(
+ 'Repository owner, target capacity, and file inventory for this recovery point.',
+ ),
).toBeInTheDocument();
expect(screen.queryByText('Restore action path')).not.toBeInTheDocument();
expect(screen.getByText('Restore readiness')).toBeInTheDocument();
@@ -114,7 +117,7 @@ describe('RecoveryPointDetails', () => {
expect(screen.queryByText('Target Ref')).not.toBeInTheDocument();
expect(screen.queryByText('Item Ref')).not.toBeInTheDocument();
expect(screen.getByText('VMID')).toBeInTheDocument();
- expect(screen.getByText('Datastore')).toBeInTheDocument();
+ expect(screen.getByText('Datastore: fast-store')).toBeInTheDocument();
expect(screen.queryByText('Namespace')).not.toBeInTheDocument();
expect(screen.queryByText('details.vmid')).not.toBeInTheDocument();
@@ -209,6 +212,7 @@ describe('RecoveryPointDetails', () => {
/>
));
+ expect(screen.queryByText('Target Details')).not.toBeInTheDocument();
expect(screen.queryByText('Platform Details')).not.toBeInTheDocument();
expect(screen.queryByText('PBS Details')).not.toBeInTheDocument();
expect(screen.getByText('Item Type')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
index ec099fe2ca..77c08a64e7 100644
--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx
@@ -653,6 +653,12 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props
const placementValues = new Set(
visibleLocationEntries.map((entry) => normalizeComparableText(entry.value)),
);
+ const targetDatastoreValues = [
+ typeof p.repositoryRef?.name === 'string' ? p.repositoryRef.name.trim() : '',
+ matchedDatastore()?.datastore.name || '',
+ ]
+ .filter(Boolean)
+ .map(normalizeComparableText);
if (itemType && itemType !== 'Unknown') addPair('Item Type', itemType);
for (const entry of visibleLocationEntries) {
@@ -684,6 +690,12 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props
const displayValue = normalizeDetailText(v);
if (!displayValue) continue;
if (k === 'vmid' && displayValue === '0') continue;
+ if (
+ k === 'datastore' &&
+ targetDatastoreValues.includes(normalizeComparableText(displayValue))
+ ) {
+ continue;
+ }
if (placementValues.has(normalizeComparableText(displayValue))) continue;
addPair(
k === 'vmid' ? getRecoveryPointNumericIdLabel(p) : COMMON_DETAIL_LABELS[k] || k,
@@ -856,10 +868,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">
- Platform Details
+ Target Details
</div>
<div class="mt-1 text-xs text-muted">
- Provider metadata and target health for this recovery point.
+ Repository owner, target capacity, and file inventory for this recovery point.
</div>
</div>
<Show when={platformBadge()}>
@@ -880,7 +892,7 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props
<Show when={pbsOwner()}>
<div class="rounded border border-border bg-surface px-3 py-2 text-xs">
<div class="text-[10px] font-semibold uppercase tracking-wide text-muted">
- Owner
+ Repository owner
</div>
<div class="mt-0.5 font-mono text-[11px] text-base-content break-all">
{pbsOwner()}
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index ba982878d0..878b1738ed 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -977,6 +977,9 @@ describe('Recovery', () => {
expect(
within(detailsPanel as HTMLTableCellElement).queryByText('Verification provenance'),
).not.toBeInTheDocument();
+ expect(
+ within(detailsPanel as HTMLTableCellElement).queryByText('Target Details'),
+ ).not.toBeInTheDocument();
expect(within(detailsPanel as HTMLTableCellElement).getByText('Item Type')).toBeInTheDocument();
expect(within(detailsPanel as HTMLTableCellElement).getByText('VM')).toBeInTheDocument();
expect(