Skip to content

Commit

Permalink
refactor(statistics): update portfolio statistics
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Jan 28, 2024
1 parent 37f0462 commit 00088b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"inherited_risk_score": "Inherited Risk Score",
"risk_score": "Risk Score",
"vulnerable_projects": "Vulnerable Projects",
"findings": "Findings",
"total_findings": "Total Findings",
"findings_audited": "Findings Audited",
"auditing_progress": "Auditing Progress",
Expand Down
20 changes: 18 additions & 2 deletions src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<b-col md="12">
<b-card v-bind:header="$t('message.portfolio_statistics')">
<b-row>
<b-col sm="12" lg="6">
<b-col sm="12" lg="4">
<b-row>
<b-col sm="6">
<Callout variant="info">
Expand All @@ -162,14 +162,30 @@
</b-col>
</b-row>
</b-col>
<b-col sm="12" lg="6">
<b-col sm="12" lg="4">
<b-row>
<b-col sm="6">
<Callout variant="danger">
<small class="text-muted">{{ $t('message.portfolio_vulnerabilities') }}</small><br>
<strong class="h4">{{vulnerabilities}}</strong>
</Callout>
</b-col>
<b-col sm="6">
<Callout variant="danger">
<small class="text-muted">{{ $t('message.policy_violations') }}</small><br>
<strong class="h4">{{totalViolations}}</strong>
</Callout>
</b-col>
</b-row>
</b-col>
<b-col sm="12" lg="4">
<b-row>
<b-col sm="6">
<Callout variant="info">
<small class="text-muted">{{ $t('message.findings') }}</small><br>
<strong class="h4">{{totalFindings}}</strong>
</Callout>
</b-col>
<b-col sm="6">
<Callout variant="info">
<small class="text-muted">{{ $t('message.suppressed') }}</small><br>
Expand Down

0 comments on commit 00088b6

Please sign in to comment.