From 3d066333eb495c39e93520b8d6d0d55956c82d8c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 29 Jun 2026 17:38:52 +0530 Subject: [PATCH] chore: use tabular nums --- .../captain/pageComponents/overview/CreditUsageCard.vue | 4 ++-- .../captain/pageComponents/overview/KnowledgeCard.vue | 8 ++++---- .../captain/pageComponents/overview/MetricCard.vue | 8 ++++++-- .../pageComponents/overview/ResponseQualityCard.vue | 6 ++++-- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/overview/CreditUsageCard.vue b/app/javascript/dashboard/components-next/captain/pageComponents/overview/CreditUsageCard.vue index 7a990bb9d..e164cb8e3 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/overview/CreditUsageCard.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/overview/CreditUsageCard.vue @@ -37,13 +37,13 @@ const bars = computed(() => { {{ $t('CAPTAIN.OVERVIEW.CREDITS.TITLE') }}
- + {{ creditUsage.total }} {{ $t('CAPTAIN.OVERVIEW.CREDITS.UNIT') }} - + {{ creditUsage.trend }}
diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/overview/KnowledgeCard.vue b/app/javascript/dashboard/components-next/captain/pageComponents/overview/KnowledgeCard.vue index 4136d0c14..d46288326 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/overview/KnowledgeCard.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/overview/KnowledgeCard.vue @@ -22,7 +22,7 @@ const approvedPct = computed(() => { {{ $t('CAPTAIN.OVERVIEW.KNOWLEDGE.TITLE') }} - + {{ $t('CAPTAIN.OVERVIEW.KNOWLEDGE.COVERAGE', { pct: approvedPct }) }} @@ -34,7 +34,7 @@ const approvedPct = computed(() => {
- + {{ knowledge.approved }} @@ -42,7 +42,7 @@ const approvedPct = computed(() => {
- + {{ knowledge.pending }} @@ -50,7 +50,7 @@ const approvedPct = computed(() => {
- + {{ knowledge.documents }} diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/overview/MetricCard.vue b/app/javascript/dashboard/components-next/captain/pageComponents/overview/MetricCard.vue index 6f366f66d..9f8a76f43 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/overview/MetricCard.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/overview/MetricCard.vue @@ -27,10 +27,14 @@ const trendClass = computed(() => { />
- + {{ value }} - {{ trend }} + + {{ trend }} +
diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/overview/ResponseQualityCard.vue b/app/javascript/dashboard/components-next/captain/pageComponents/overview/ResponseQualityCard.vue index 70a2d743a..2047c6da8 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/overview/ResponseQualityCard.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/overview/ResponseQualityCard.vue @@ -46,7 +46,7 @@ const rate = '1.3%'; {{ $t('CAPTAIN.OVERVIEW.FLAGGED.TITLE') }} - + {{ $t('CAPTAIN.OVERVIEW.FLAGGED.TOTAL', { count: total, rate }) }} @@ -65,7 +65,9 @@ const rate = '1.3%'; :style="{ width: `${Math.round((reason.count / total) * 100)}%` }" /> - + {{ reason.count }}