From 69ebdc63e300f2d7626d3e11299f0347af832ecf Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 5 Apr 2024 11:45:05 +0530 Subject: [PATCH] feat: better empty state for SLA (#9198) * feat: better empty state * feat: better create CTA * feat: use text-sm --- .../dashboard/i18n/locale/en/sla.json | 9 +++- .../routes/dashboard/settings/sla/Index.vue | 45 ++++++++++++++++--- .../settings/sla/components/SLAHeader.vue | 9 +++- 3 files changed, 54 insertions(+), 9 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/sla.json b/app/javascript/dashboard/i18n/locale/en/sla.json index d9670eb06..34f65c8a9 100644 --- a/app/javascript/dashboard/i18n/locale/en/sla.json +++ b/app/javascript/dashboard/i18n/locale/en/sla.json @@ -2,11 +2,18 @@ "SLA": { "HEADER": "SLA", "ADD_ACTION": "Add SLA", + "ADD_ACTION_LONG": "Create a new SLA Policy", "DESCRIPTION": "Service Level Agreements (SLAs) are contracts that define clear expectations between your team and customers. They establish standards for response and resolution times, creating a framework for accountability and ensures a consistent, high-quality experience.", "LEARN_MORE": "Learn more about SLA", "LOADING": "Fetching SLAs", "LIST": { "404": "There are no SLAs available in this account.", + "EMPTY": { + "TITLE_1": "Enterprise P0", + "DESC_1": "Issues raised by enterprise customers, that require immediate attention.", + "TITLE_2": "Enterprise P1", + "DESC_2": "Issues raised by enterprise customers, that needs to be acknowledged quickly." + }, "BUSINESS_HOURS_ON": "Business hours on", "BUSINESS_HOURS_OFF": "Business hours off", "RESPONSE_TYPES": { @@ -78,4 +85,4 @@ } } } -} +} \ No newline at end of file diff --git a/app/javascript/dashboard/routes/dashboard/settings/sla/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/sla/Index.vue index 278927d33..80b0fbbc1 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/sla/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/sla/Index.vue @@ -4,18 +4,49 @@ :loading-message="$t('SLA.LOADING')" >