From 8f600fcc5453bb8917a34664efb38700ea67ab7e Mon Sep 17 00:00:00 2001 From: Sina Javaheri Date: Fri, 6 Dec 2024 16:49:08 +0100 Subject: [PATCH] fix(compliance): replace control instead of checks --- src/locales/de-DE/messages.po | 9 ++++++--- src/locales/en-US/messages.po | 13 ++++++++----- src/pages/panel/compliance/ComplianceDetail.tsx | 2 +- .../compliance/ComplianceDetailCheckDetail.tsx | 2 +- .../panel/compliance/CompliancePassedChecksCard.tsx | 4 ++-- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/locales/de-DE/messages.po b/src/locales/de-DE/messages.po index 2924dbc0..df25679d 100644 --- a/src/locales/de-DE/messages.po +++ b/src/locales/de-DE/messages.po @@ -159,7 +159,7 @@ msgid "{lastScanDurStr} ago" msgstr "" #: src/pages/panel/compliance/CompliancePassedChecksCard.tsx:21 -msgid "{passedChecks} passed out of {totalChecks} checks" +msgid "{passedChecks} passed out of {totalChecks} controls" msgstr "" #: src/pages/panel/compliance/ComplianceDetailTreeItemLabel.tsx:30 @@ -450,10 +450,13 @@ msgstr "" #: src/pages/panel/benchmark-detail/BenchmarkCheckCollectionDetail.tsx:176 #: src/pages/panel/benchmark-detail/BenchmarkDetailCheckDetail.tsx:230 #: src/pages/panel/benchmark-detail/BenchmarkDetailView.tsx:187 -#: src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx:212 msgid "All resources passed the check" msgstr "" +#: src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx:212 +msgid "All resources passed the control" +msgstr "" + #: src/pages/panel/resource-detail/utils/nodeChange.tsx:50 msgid "All security issues fixed" msgstr "Alle Sicherheitsprobleme behoben" @@ -2134,7 +2137,7 @@ msgstr "" #: src/pages/panel/compliance/ComplianceDetail.tsx:195 #: src/pages/panel/compliance/CompliancePassedChecksCard.tsx:26 -msgid "Passed checks" +msgid "Passed controls" msgstr "" #: src/pages/auth/login/LoginPage.tsx:227 diff --git a/src/locales/en-US/messages.po b/src/locales/en-US/messages.po index 306a5721..9c51b02e 100644 --- a/src/locales/en-US/messages.po +++ b/src/locales/en-US/messages.po @@ -159,8 +159,8 @@ msgid "{lastScanDurStr} ago" msgstr "{lastScanDurStr} ago" #: src/pages/panel/compliance/CompliancePassedChecksCard.tsx:21 -msgid "{passedChecks} passed out of {totalChecks} checks" -msgstr "{passedChecks} passed out of {totalChecks} checks" +msgid "{passedChecks} passed out of {totalChecks} controls" +msgstr "{passedChecks} passed out of {totalChecks} controls" #: src/pages/panel/compliance/ComplianceDetailTreeItemLabel.tsx:30 msgid "{passingChecks} of {0}" @@ -450,10 +450,13 @@ msgstr "All resource kinds" #: src/pages/panel/benchmark-detail/BenchmarkCheckCollectionDetail.tsx:176 #: src/pages/panel/benchmark-detail/BenchmarkDetailCheckDetail.tsx:230 #: src/pages/panel/benchmark-detail/BenchmarkDetailView.tsx:187 -#: src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx:212 msgid "All resources passed the check" msgstr "All resources passed the check" +#: src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx:212 +msgid "All resources passed the control" +msgstr "All resources passed the control" + #: src/pages/panel/resource-detail/utils/nodeChange.tsx:50 msgid "All security issues fixed" msgstr "All security issues fixed" @@ -2134,8 +2137,8 @@ msgstr "Passed" #: src/pages/panel/compliance/ComplianceDetail.tsx:195 #: src/pages/panel/compliance/CompliancePassedChecksCard.tsx:26 -msgid "Passed checks" -msgstr "Passed checks" +msgid "Passed controls" +msgstr "Passed controls" #: src/pages/auth/login/LoginPage.tsx:227 #: src/pages/auth/register/RegisterPage.tsx:136 diff --git a/src/pages/panel/compliance/ComplianceDetail.tsx b/src/pages/panel/compliance/ComplianceDetail.tsx index 57714ea1..6ae7caf3 100644 --- a/src/pages/panel/compliance/ComplianceDetail.tsx +++ b/src/pages/panel/compliance/ComplianceDetail.tsx @@ -192,7 +192,7 @@ export const ComplianceDetail = () => { Compliance posture - Passed checks + Passed controls diff --git a/src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx b/src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx index e7160295..9252f7c6 100644 --- a/src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx +++ b/src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx @@ -209,7 +209,7 @@ export const ComplianceDetailCheckDetail = ({ check, accountName, id }: Complian - All resources passed the check + All resources passed the control diff --git a/src/pages/panel/compliance/CompliancePassedChecksCard.tsx b/src/pages/panel/compliance/CompliancePassedChecksCard.tsx index 3cf29375..fbdd8267 100644 --- a/src/pages/panel/compliance/CompliancePassedChecksCard.tsx +++ b/src/pages/panel/compliance/CompliancePassedChecksCard.tsx @@ -19,11 +19,11 @@ export const CompliancePassedChecksCard = ({ passedChecks, totalChecks }: Compli color="primary" description={ - {passedChecks} passed out of {totalChecks} checks + {passedChecks} passed out of {totalChecks} controls } percentage={percentage} - title={Passed checks} + title={Passed controls} /> ) }