From 7298002da73daf6eee7d857ceaffaf1af95bffb1 Mon Sep 17 00:00:00 2001
From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Date: Wed, 14 Feb 2024 03:01:32 -0800
Subject: [PATCH 01/96] fix: Adds forgot password link for login form (#8927)
- focus ring not appearing issue
- missing forgot password link
Fixes: https://linear.app/chatwoot/issue/CW-3090/fix-fixes-issues-with-login-form
---
app/javascript/v3/components/Form/Input.vue | 15 ++++++++++++---
app/javascript/v3/components/Form/WithLabel.vue | 3 +++
app/javascript/v3/views/login/Index.vue | 9 ++++++++-
3 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/app/javascript/v3/components/Form/Input.vue b/app/javascript/v3/components/Form/Input.vue
index b9e73387d..753157ab0 100644
--- a/app/javascript/v3/components/Form/Input.vue
+++ b/app/javascript/v3/components/Form/Input.vue
@@ -6,24 +6,29 @@
:has-error="hasError"
:error-message="errorMessage"
>
+
+
-
SLA
Think of Service Level Agreements (SLAs) like friendly promises between a service provider and a customer.
These promises set clear expectations for things like how quickly the team will respond to issues, making sure you always get a reliable and top-notch experience!
", + "LIST": { + "404": "There are no SLAs available in this account.", + "TITLE": "Manage SLA", + "DESC": "SLAs: Friendly promises for great service!", + "TABLE_HEADER": ["Name", "Description", "FRT", "NRT", "RT", "Business Hours"] + }, + "FORM": { + "NAME": { + "LABEL": "SLA Name", + "PLACEHOLDER": "SLA Name", + "REQUIRED_ERROR": "SLA name is required", + "MINIMUM_LENGTH_ERROR": "Minimum length 2 is required", + "VALID_ERROR": "Only Alphabets, Numbers, Hyphen and Underscore are allowed" + }, + "DESCRIPTION": { + "LABEL": "Description", + "PLACEHOLDER": "SLA for premium customers" + }, + "FIRST_RESPONSE_TIME": { + "LABEL": "First Response Time(Seconds)", + "PLACEHOLDER": "300 for 5 minutes" + }, + "NEXT_RESPONSE_TIME": { + "LABEL": "Next Response Time(Seconds)", + "PLACEHOLDER": "600 for 10 minutes" + }, + "RESOLUTION_TIME": { + "LABEL": "Resolution Time(Seconds)", + "PLACEHOLDER": "86400 for 1 day" + }, + "BUSINESS_HOURS": { + "LABEL": "Business Hours", + "PLACEHOLDER": "Only during business hours" + }, + "EDIT": "Edit", + "CREATE": "Create", + "DELETE": "Delete", + "CANCEL": "Cancel" + }, + "ADD": { + "TITLE": "Add SLA", + "DESC": "SLAs: Friendly promises for great service!", + "API": { + "SUCCESS_MESSAGE": "SLA added successfully", + "ERROR_MESSAGE": "There was an error, please try again" + } + }, + "EDIT": { + "TITLE": "Edit SLA", + "API": { + "SUCCESS_MESSAGE": "SLA updated successfully", + "ERROR_MESSAGE": "There was an error, please try again" + } + } + } +} diff --git a/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js b/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js index 48ef316ef..98b81f47c 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js +++ b/app/javascript/dashboard/routes/dashboard/settings/settings.routes.js @@ -16,6 +16,7 @@ import macros from './macros/macros.routes'; import profile from './profile/profile.routes'; import reports from './reports/reports.routes'; import store from '../../../store'; +import sla from './sla/sla.routes'; import teams from './teams/teams.routes'; export default { @@ -47,6 +48,7 @@ export default { ...macros.routes, ...profile.routes, ...reports.routes, + ...sla.routes, ...teams.routes, ], }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue b/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue new file mode 100644 index 000000000..772ec4bcd --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/sla/AddSLA.vue @@ -0,0 +1,50 @@ + ++ {{ $t('SLA.LIST.404') }} +
+| + {{ thHeader }} + | + + +||||||
|---|---|---|---|---|---|---|
| + + {{ sla.name }} + + | +{{ sla.description }} | ++ + {{ sla.first_response_time_threshold }} + + | ++ + {{ sla.next_response_time_threshold }} + + | ++ + {{ sla.resolution_time_threshold }} + + | ++ + {{ sla.only_during_business_hours }} + + | +
+ |
+