diff --git a/frontend/taskdeck-web/src/components/review/ReviewProposalCard.vue b/frontend/taskdeck-web/src/components/review/ReviewProposalCard.vue index 1baf7da17..83c289842 100644 --- a/frontend/taskdeck-web/src/components/review/ReviewProposalCard.vue +++ b/frontend/taskdeck-web/src/components/review/ReviewProposalCard.vue @@ -199,6 +199,17 @@ function reviewStatusLabel(status: Proposal['status']): string { return statusLabels[normalized] ?? normalized } +const readOnlyDiffBanner = computed(() => { + const prefix = `${reviewStatusLabel(props.proposal.status)} · read-only —` + if (props.selectedDiff) { + return `${prefix} showing the stored preview from the original submission.` + } + if (storedOperationsFallback.value) { + return `${prefix} showing the proposal's recorded operations.` + } + return `${prefix} no stored preview is available.` +}) + function riskLevelClass(riskLevel: Proposal['riskLevel']): string { const normalized = normalizeProposalRiskLevel(riskLevel) if (normalized === 'Low') return 'td-risk--low' @@ -308,8 +319,7 @@ async function copyTechnicalDetails() {