From 55949a28c5e3b03d1d06e485f4a5e01d5e734b5e Mon Sep 17 00:00:00 2001 From: Gareth George Date: Sat, 28 Jun 2025 15:20:57 -0700 Subject: [PATCH] fix(webui): clarify retention policy descriptions --- webui/src/components/OperationRow.tsx | 10 +++++----- webui/src/views/AddPlanModal.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webui/src/components/OperationRow.tsx b/webui/src/components/OperationRow.tsx index 87e9aa07..afb0b687 100644 --- a/webui/src/components/OperationRow.tsx +++ b/webui/src/components/OperationRow.tsx @@ -591,19 +591,19 @@ const ForgetOperationDetails = ({ } else if (policy.policy.case == "policyTimeBucketed") { const val = policy.policy.value; if (val.hourly) { - policyDesc.push(`Keep hourly for ${val.hourly} hours`); + policyDesc.push(`Keep ${val.hourly} hourly snapshots`); } if (val.daily) { - policyDesc.push(`Keep daily for ${val.daily} days`); + policyDesc.push(`Keep ${val.daily} daily snapshots`); } if (val.weekly) { - policyDesc.push(`Keep weekly for ${val.weekly} weeks`); + policyDesc.push(`Keep ${val.weekly} weekly snapshots`); } if (val.monthly) { - policyDesc.push(`Keep monthly for ${val.monthly} months`); + policyDesc.push(`Keep ${val.monthly} monthly snapshots`); } if (val.yearly) { - policyDesc.push(`Keep yearly for ${val.yearly} years`); + policyDesc.push(`Keep ${val.yearly} yearly snapshots`); } if (val.keepLastN) { policyDesc.push( diff --git a/webui/src/views/AddPlanModal.tsx b/webui/src/views/AddPlanModal.tsx index c24aef4e..cbe75b44 100644 --- a/webui/src/views/AddPlanModal.tsx +++ b/webui/src/views/AddPlanModal.tsx @@ -773,7 +773,7 @@ const RetentionPolicyView = () => { - + By Time Period