Skip to content

Commit

Permalink
fix(compliance): replace control instead of checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sijav committed Dec 6, 2024
1 parent 3a1886b commit 8f600fc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
9 changes: 6 additions & 3 deletions src/locales/de-DE/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
13 changes: 8 additions & 5 deletions src/locales/en-US/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pages/panel/compliance/ComplianceDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const ComplianceDetail = () => {
<Trans>Compliance posture</Trans>
</Typography>
<Typography variant="subtitle1" color="textSecondary" flex={0} flexShrink={0} minWidth={224}>
<Trans>Passed checks</Trans>
<Trans>Passed controls</Trans>
</Typography>
</Stack>
<Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/panel/compliance/ComplianceDetailCheckDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const ComplianceDetailCheckDetail = ({ check, accountName, id }: Complian
<Stack flex={1} justifyContent="center" alignItems="center" spacing={1} pb={2}>
<VerifiedUserFilledIcon width={48} height={48} color="success" />
<Typography color="success.main" variant="h6" textAlign="center">
<Trans>All resources passed the check</Trans>
<Trans>All resources passed the control</Trans>
</Typography>
</Stack>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/panel/compliance/CompliancePassedChecksCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export const CompliancePassedChecksCard = ({ passedChecks, totalChecks }: Compli
color="primary"
description={
<Trans>
{passedChecks} passed out of {totalChecks} checks
{passedChecks} passed out of {totalChecks} controls
</Trans>
}
percentage={percentage}
title={<Trans>Passed checks</Trans>}
title={<Trans>Passed controls</Trans>}
/>
)
}

0 comments on commit 8f600fc

Please sign in to comment.