From fc25f4344874faab2b97c7ce201d33aa47c2f97a Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 3 Apr 2024 03:38:19 +0530 Subject: [PATCH] feat: Add SLA reports overview component (#9167) --- .../dashboard/i18n/locale/en/report.json | 13 ++++++ .../reports/components/SLA/SLAMetricCard.vue | 46 +++++++++++++++++++ .../reports/components/SLA/SLAMetrics.vue | 40 ++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetricCard.vue create mode 100644 app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetrics.vue diff --git a/app/javascript/dashboard/i18n/locale/en/report.json b/app/javascript/dashboard/i18n/locale/en/report.json index 56ca21773..c41e8b8a1 100644 --- a/app/javascript/dashboard/i18n/locale/en/report.json +++ b/app/javascript/dashboard/i18n/locale/en/report.json @@ -505,5 +505,18 @@ "THURSDAY": "Thursday", "FRIDAY": "Friday", "SATURDAY": "Saturday" + }, + "SLA_REPORTS": { + "HEADER": "SLA Reports", + "METRICS": { + "HIT_RATE": { + "LABEL": "Hit Rate", + "TOOLTIP": "Percentage of SLAs created were completed successfully" + }, + "NO_OF_BREACHES": { + "LABEL": "Number of Breaches", + "TOOLTIP": "The total SLA breaches in a certain period." + } + } } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetricCard.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetricCard.vue new file mode 100644 index 000000000..78e068d6c --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetricCard.vue @@ -0,0 +1,46 @@ + + diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetrics.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetrics.vue new file mode 100644 index 000000000..2abc1c601 --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/components/SLA/SLAMetrics.vue @@ -0,0 +1,40 @@ + + +