From 4478fb22ba832f5a0a879e130f2b88b8a7bc6b91 Mon Sep 17 00:00:00 2001 From: Jesse Merhi <79823012+jesse-merhi@users.noreply.github.com> Date: Mon, 10 Aug 2026 15:40:35 +1000 Subject: [PATCH] perf(ui): stabilize install warning bundle --- ui/src/i18n/locales/en.ts | 5 -- ui/src/pages/plugins/view.ts | 121 +++++++++++++---------------------- ui/src/styles/plugins.css | 65 ++++++++----------- 3 files changed, 71 insertions(+), 120 deletions(-) diff --git a/ui/src/i18n/locales/en.ts b/ui/src/i18n/locales/en.ts index 99a00c64e41f..a17ff5f65284 100644 --- a/ui/src/i18n/locales/en.ts +++ b/ui/src/i18n/locales/en.ts @@ -2798,14 +2798,9 @@ export const en: TranslationMap = { acknowledgeRisk: "Acknowledge risk and install", defaultRiskWarning: "Review the ClawHub warning before installing this plugin.", policyReviewTitle: "Security review needed", - policyReviewBodyUnknown: "Policy flagged this plugin. Not installed.", policyReviewBodyKnown: "Policy warnings: {count}. Not installed.", policyReviewFindings: "Findings", policyReviewTechnicalDetails: "Details", - policyReviewPolicyResponse: "Reason", - policyReviewRule: "Rule {count}", - policyReviewLocation: "Location", - policyReviewEvidence: "Evidence", installAnyway: "Install anyway", connectToChange: "Connect to the gateway to change plugins.", adminRequired: "Browsing only. Plugin changes require operator.admin access.", diff --git a/ui/src/pages/plugins/view.ts b/ui/src/pages/plugins/view.ts index 2d0161ce7611..42d9a4800a0d 100644 --- a/ui/src/pages/plugins/view.ts +++ b/ui/src/pages/plugins/view.ts @@ -389,7 +389,7 @@ function renderRowMessage( const findings = details.findings ?? []; const reviewBody = findings.length === 0 - ? t("pluginsPage.policyReviewBodyUnknown") + ? details.reason : t("pluginsPage.policyReviewBodyKnown", { count: String(findings.length) }); return html`