From 1d0697cc6b15bfe5721ee51eb118e4b4a064b492 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Mon, 30 Nov 2026 09:24:31 +0100 Subject: [PATCH] fix(dashboard): the target-limit texts say delete, not archive A customer has no archive action, only delete, which takes the target's results with it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 --- compliance-dashboard/src/i18n/texts.rs | 16 +++++++++------- compliance-dashboard/src/pages/onboarding.rs | 4 ++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/compliance-dashboard/src/i18n/texts.rs b/compliance-dashboard/src/i18n/texts.rs index 7685217..5983317 100644 --- a/compliance-dashboard/src/i18n/texts.rs +++ b/compliance-dashboard/src/i18n/texts.rs @@ -5786,20 +5786,22 @@ pub mod metering { /// The plan's refusal of a new target (`target_limit`): its places are /// all taken. pub const TARGET_LIMIT: Text = Text { - de: "Ihr Tarif enthält keine weiteren Prüfobjekte. Archivieren Sie ein Prüfobjekt, \ - um ein neues anzulegen, oder wechseln Sie den Tarif.", - en: "Your plan includes no further targets. Archive a target to add a new one, \ - or change your plan.", + de: "Ihr Tarif enthält keine weiteren Prüfobjekte. Löschen Sie ein Prüfobjekt, \ + um ein neues anzulegen (seine Ergebnisse werden mit gelöscht), oder wechseln \ + Sie den Tarif.", + en: "Your plan includes no further targets. Delete a target to add a new one \ + (its results are deleted with it), or change your plan.", }; /// The plan's refusal to make a demo target the tenant's own /// (`target_limit`): other sources would make it count, and its places /// are all taken. pub const DEMO_LIMIT: Text = Text { de: "Mit eigenen Dateien oder Quellen zählt ein Demo-Prüfobjekt wie Ihre anderen, \ - und Ihr Tarif enthält keine weiteren Prüfobjekte. Archivieren Sie ein \ - Prüfobjekt oder wechseln Sie den Tarif.", + und Ihr Tarif enthält keine weiteren Prüfobjekte. Löschen Sie ein anderes \ + Prüfobjekt (seine Ergebnisse werden mit gelöscht) oder wechseln Sie den Tarif.", en: "With your own files or sources a demo target counts like your other targets, \ - and your plan includes no further targets. Archive a target or change your plan.", + and your plan includes no further targets. Delete another target (its results \ + are deleted with it) or change your plan.", }; /// A failed creation of a target in words: the plan's refusal as /// [`TARGET_LIMIT`], anything else as it came. diff --git a/compliance-dashboard/src/pages/onboarding.rs b/compliance-dashboard/src/pages/onboarding.rs index 496f9f3..c27734f 100644 --- a/compliance-dashboard/src/pages/onboarding.rs +++ b/compliance-dashboard/src/pages/onboarding.rs @@ -998,8 +998,8 @@ mod tests { let error = "error running server function: target_limit (409) (details: None)"; assert_eq!( metering::target_refusal(error, Lang::En), - "Your plan includes no further targets. Archive a target to add a new one, \ - or change your plan." + "Your plan includes no further targets. Delete a target to add a new one \ + (its results are deleted with it), or change your plan." ); assert_eq!(metering::target_refusal("x (500)", Lang::De), "x (500)"); } -- 2.54.1