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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Remove recovery drawer restore action path
rcourtman8632e3959514
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 9f5cfe312d..e6a32423cb 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1976,14 +1976,15 @@ inside a provider-neutral detail shell throughdatastore and verification enrichments remain available without presenting thedetails drawer as a PBS-only surface.The point-details drawer also owns restore-safe operator guidance. It may-surface a next action path, verification provenance, and chain coverage for the+surface restore readiness, verification provenance, and chain coverage for theselected point, but it must stay read-side until the backend exposes a governed-restore execution contract; UI copy should guide verification, target-confirmation, and isolated test-restore planning without inventing local-restore buttons or implying an unsafe action has been approved. Chain context-must be derived from the current recovery result set so mixed PVE/PBS/TrueNAS-history can explain adjacent local snapshot, local copy, and remote copy-stages without requiring all stages to land in the same day group.+restore execution contract. The drawer must not present a freestanding restore+runbook or next-action path that reads as an approved restore workflow; target+confirmation and isolated test-restore planning belong in a future governed+action or restore flow, not in the evidence drawer. Chain context must be+derived from the current recovery result set so mixed PVE/PBS/TrueNAS history+can explain adjacent local snapshot, local copy, and remote copy stages without+requiring all stages to land in the same day group.Provider-specific metadata must not recast the event drawer itself as if PBSwere the native recovery model. Operator-facing detail labels in that drawershould prefer neutral target wording such as `Target Ref`, `Target Resource`,diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsxindex 18a5460447..dbacf8f99e 100644--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.test.tsx@@ -89,8 +89,9 @@ describe('RecoveryPointDetails', () => {expect(screen.getByText('Platform Details')).toBeInTheDocument();expect(screen.queryByText('PBS Details')).not.toBeInTheDocument();expect(screen.getByText('Platform-specific recovery metadata, verification state, and target health.')).toBeInTheDocument();- expect(screen.getByText('Restore action path')).toBeInTheDocument();- expect(screen.getByText('Ready for restore planning')).toBeInTheDocument();+ expect(screen.queryByText('Restore action path')).not.toBeInTheDocument();+ expect(screen.getByText('Restore readiness')).toBeInTheDocument();+ expect(screen.getByText('Verified candidate')).toBeInTheDocument();expect(screen.getByText('Verification provenance')).toBeInTheDocument();expect(screen.getByText('PBS catalog verification')).toBeInTheDocument();expect(screen.getAllByText('High confidence').length).toBeGreaterThan(0);@@ -141,10 +142,9 @@ describe('RecoveryPointDetails', () => {/>));- expect(screen.getByText('Restore action path')).toBeInTheDocument();- expect(screen.getByText('Verify before restore use')).toBeInTheDocument();- expect(screen.getByText('Run artifact verification')).toBeInTheDocument();- expect(screen.getByText('Confirm target and chain')).toBeInTheDocument();+ expect(screen.queryByText('Restore action path')).not.toBeInTheDocument();+ expect(screen.getByText('Restore readiness')).toBeInTheDocument();+ expect(screen.getByText('Available candidate')).toBeInTheDocument();expect(screen.getByText('Verification provenance')).toBeInTheDocument();expect(screen.getAllByText('Needs verification').length).toBeGreaterThan(0);expect(screen.getByText('No verification timestamp recorded')).toBeInTheDocument();@@ -254,8 +254,8 @@ describe('RecoveryPointDetails', () => {expect(screen.getAllByText(/Inspect the platform task log for the failing step/i).length,).toBeGreaterThan(0);- expect(screen.getByText('Investigate source task')).toBeInTheDocument();- expect(screen.getByText('Open source task evidence')).toBeInTheDocument();+ expect(screen.getByText('Not restorable')).toBeInTheDocument();+ expect(screen.queryByText('Investigate source task')).not.toBeInTheDocument();expect(screen.queryByText('VMID')).not.toBeInTheDocument();expect(screen.queryByText('0')).not.toBeInTheDocument();});diff --git a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsxindex 2902717f52..d2e35fb21e 100644--- a/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx@@ -82,7 +82,6 @@ const labelForRef = (ref: RecoveryExternalRef | null | undefined): string => {};type RecoveryChainStage = 'snapshot' | 'local' | 'remote';-type RestoreActionTone = 'success' | 'warning' | 'danger' | 'info';const CHAIN_STAGES: Array<{ id: RecoveryChainStage; label: string }> = [{ id: 'snapshot', label: 'Local snapshot' },@@ -99,18 +98,6 @@ interface ProtectionChainStageSummary {detail: string;}-interface RestoreActionStep {- label: string;- detail: string;-}--interface RestoreActionPath {- label: string;- detail: string;- tone: RestoreActionTone;- steps: RestoreActionStep[];-}-const normalizeDetailText = (value: unknown): string => {if (typeof value === 'string') return value.trim();if (typeof value === 'number' && Number.isFinite(value)) return String(value);@@ -295,146 +282,6 @@ const getVerificationConfidence = (};};-const getRestoreActionPath = (- p: RecoveryPoint,- targetLabel: string,- platformLabel: string,- chain: ProtectionChainStageSummary[],- failureDetail: string,-): RestoreActionPath => {- const outcome = normalizeRecoveryOutcome(p.outcome);- const presentStages = chain.filter((stage) => stage.point !== null);- const chainDetail =- presentStages.length > 1- ? `${presentStages.map((stage) => stage.label).join(', ')} present in current results.`- : presentStages.length === 1- ? `${presentStages[0].label} present in current results.`- : 'No adjacent chain stages are visible in the current results.';-- if (outcome === 'failed') {- return {- label: 'Investigate source task',- detail: 'This event did not produce a usable recovery point.',- tone: 'danger',- steps: [- {- label: 'Open source task evidence',- detail: failureDetail || 'Inspect the source platform task or job log for the failing step.',- },- {- label: 'Re-run protection before restore planning',- detail: 'Use a newer successful point or complete a fresh protection run before relying on this item.',- },- ],- };- }-- if (outcome === 'running') {- return {- label: 'Wait for completion',- detail: 'The event is still collecting recovery metadata.',- tone: 'info',- steps: [- {- label: 'Keep this point out of restore plans',- detail: 'Use the completed event row once the platform reports a terminal outcome.',- },- {- label: 'Check chain coverage after completion',- detail: chainDetail,- },- ],- };- }-- if (p.verified === false) {- return {- label: 'Do not restore from this point yet',- detail: 'Verification failed, so the artifact should be treated as suspect.',- tone: 'warning',- steps: [- {- label: 'Rerun platform verification',- detail: 'Verify the artifact from the source platform before promoting it to a restore candidate.',- },- {- label: 'Prefer an older verified point',- detail: 'Use a known-good point if restore pressure is high.',- },- ],- };- }-- if (p.verified === true) {- return {- label: 'Ready for restore planning',- detail: 'The recovery point is verified; restore still needs an operator-approved target and isolation decision.',- tone: 'success',- steps: [- {- label: 'Confirm target and retention',- detail: `${targetLabel} · ${chainDetail}`,- },- {- label: 'Plan an isolated test restore',- detail: 'Restore to an alternate location first when replacing production would be destructive.',- },- {- label: 'Execute from the source platform',- detail: `Use ${platformLabel || 'the source platform'} with this point's item and target identifiers.`,- },- ],- };- }-- if (outcome === 'success' || outcome === 'warning') {- return {- label: 'Verify before restore use',- detail: 'The event completed, but no successful verification result is recorded.',- tone: 'warning',- steps: [- {- label: 'Run artifact verification',- detail: 'Use the platform verifier or a non-destructive test restore before treating this as a restore candidate.',- },- {- label: 'Confirm target and chain',- detail: `${targetLabel} · ${chainDetail}`,- },- ],- };- }-- return {- label: 'Review before restore planning',- detail: 'The event outcome is not enough to trust this point automatically.',- tone: 'warning',- steps: [- {- label: 'Inspect platform details',- detail: 'Check the source platform state, target location, and any technical metadata before restore use.',- },- {- label: 'Prefer a verified point',- detail: 'Use a verified successful point where one exists for the same item.',- },- ],- };-};--const getRestoreActionToneClass = (tone: RestoreActionTone): string => {- switch (tone) {- case 'success':- return 'border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-200';- case 'danger':- return 'border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-200';- case 'info':- return 'border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-200';- default:- return 'border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-200';- }-};-const computeDatastoreUsagePercent = (datastore: PBSDatastore): number => {if (Number.isFinite(datastore.total) && datastore.total > 0 && Number.isFinite(datastore.used)) {const calculated = (datastore.used / datastore.total) * 100;@@ -550,41 +397,41 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (propsif (outcome === 'failed') {return {label: 'Not restorable',- detail: 'This event did not produce a usable recovery point.',+ detail: 'No usable recovery point was produced.',className: 'text-rose-600 dark:text-rose-400',};}if (outcome === 'running') {return {label: 'In progress',- detail: 'Recovery metadata is still being collected.',+ detail: 'Recovery metadata is still running.',className: 'text-blue-600 dark:text-blue-400',};}if (point().verified === true) {return {label: 'Verified candidate',- detail: 'Verification completed for this recovery point.',+ detail: 'Verification completed for this point.',className: 'text-emerald-600 dark:text-emerald-400',};}if (point().verified === false) {return {label: 'Verification failed',- detail: 'Treat this artifact as suspect until verification is rerun.',+ detail: 'Use another point until verification passes.',className: 'text-amber-600 dark:text-amber-400',};}if (outcome === 'success') {return {label: 'Available candidate',- detail: 'The event succeeded, but no verification result was recorded.',+ detail: 'Succeeded; verification is not recorded.',className: 'text-emerald-600 dark:text-emerald-400',};}return {label: 'Review required',- detail: 'The event needs an operator review before restore use.',+ detail: 'Review the evidence before restore use.',className: 'text-amber-600 dark:text-amber-400',};});@@ -693,15 +540,6 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (propsvalueClass: verificationConfidence().className,},]);- const restoreActionPath = createMemo(() =>- getRestoreActionPath(- point(),- targetLabel(),- platformLabel(),- protectionChain(),- failureDetail(),- ),- );const operatorSummaryPairs = createMemo(() => [{k: 'Outcome',@@ -903,29 +741,6 @@ export const RecoveryPointDetails: Component<RecoveryPointDetailsProps> = (props</div></div></Show>- <div- class={`mt-3 rounded border px-3 py-2 text-xs ${getRestoreActionToneClass(- restoreActionPath().tone,- )}`}- >- <div class="flex flex-wrap items-start justify-between gap-2">- <div>- <div class="font-semibold">Restore action path</div>- <div class="mt-0.5 text-[13px] font-semibold">{restoreActionPath().label}</div>- <div class="mt-1 text-[11px] leading-4">{restoreActionPath().detail}</div>- </div>- </div>- <div class="mt-2 grid gap-2 md:grid-cols-2">- <For each={restoreActionPath().steps}>- {(step) => (- <div class="rounded border border-current/15 bg-surface/70 px-2.5 py-2">- <div class="font-medium">{step.label}</div>- <div class="mt-1 text-[11px] leading-4">{step.detail}</div>- </div>- )}- </For>- </div>- </div></div><div class="grid grid-cols-1 md:grid-cols-2 gap-2">diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex bd749b1b62..914e46c980 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -960,6 +960,20 @@ describe('Recovery', () => {expect(await screen.findByText('Recovery Point Details')).toBeInTheDocument();const detailsPanel = screen.getByText('Recovery Point Details').closest('td');expect(detailsPanel).not.toBeNull();+ expect(+ within(detailsPanel as HTMLTableCellElement).queryByText('Restore action path'),+ ).not.toBeInTheDocument();+ expect(+ within(detailsPanel as HTMLTableCellElement).getByText('Restore readiness'),+ ).toBeInTheDocument();+ expect(+ within(detailsPanel as HTMLTableCellElement).getByText('Available candidate'),+ ).toBeInTheDocument();+ expect(+ within(detailsPanel as HTMLTableCellElement).getByText(+ 'Succeeded; verification is not recorded.',+ ),+ ).toBeInTheDocument();expect(within(detailsPanel as HTMLTableCellElement).getByText('Item Type')).toBeInTheDocument();expect(within(detailsPanel as HTMLTableCellElement).getByText('VM')).toBeInTheDocument();expect(