From 5c161e0fefd14aa1769480a78829761cf464ecb2 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Wed, 11 May 2022 13:33:24 +0530 Subject: [PATCH] chore: Split Inbox Settings Page Component (#4664) Clean up the Inbox settings page component as the logic was growing complex. - Moved subpages like collaborators and configuration to new components - Moved Assignment settings to the collaborators tab - Introduced a new inbox seeder to quickly preview setting pages of all inbox types when in development --- .../dashboard/i18n/locale/en/inboxMgmt.json | 6 +- .../dashboard/settings/inbox/Settings.vue | 185 +----------------- .../inbox/settingsPage/CollaboratorsPage.vue | 148 ++++++++++++++ .../inbox/settingsPage/ConfigurationPage.vue | 130 ++++++++++++ lib/seeders/account_seeder.rb | 62 ++++++ 5 files changed, 348 insertions(+), 183 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/inbox/settingsPage/CollaboratorsPage.vue create mode 100644 app/javascript/dashboard/routes/dashboard/settings/inbox/settingsPage/ConfigurationPage.vue diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 218d1cf95..405348058 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -341,10 +341,6 @@ "AUTO_ASSIGNMENT_SUCCESS_MESSAGE": "Auto assignment updated successfully", "ERROR_MESSAGE": "Could not update widget color. Please try again later." }, - "AUTO_ASSIGNMENT": { - "ENABLED": "Enabled", - "DISABLED": "Disabled" - }, "EMAIL_COLLECT_BOX": { "ENABLED": "Enabled", "DISABLED": "Disabled" @@ -402,6 +398,8 @@ "MESSENGER_SUB_HEAD": "Place this button inside your body tag", "INBOX_AGENTS": "Agents", "INBOX_AGENTS_SUB_TEXT": "Add or remove agents from this inbox", + "AGENT_ASSIGNMENT": "Conversation Assignment", + "AGENT_ASSIGNMENT_SUB_TEXT": "Update conversation assignment settings", "UPDATE": "Update", "ENABLE_EMAIL_COLLECT_BOX": "Enable email collect box", "ENABLE_EMAIL_COLLECT_BOX_SUB_TEXT": "Enable or disable email collect box on new conversation", diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 38a1c5e98..344ea218c 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -189,21 +189,6 @@

- -