From b998f048267a342ac2dd1474d039801f2b7d0130 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 13 Aug 2024 19:31:31 +0530 Subject: [PATCH] feat: Update the design for user management page (#9948) This PR is the part of the settings page design update series. This PR updates the design for the user management page. Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- .../dashboard/helper/featureHelper.js | 1 + .../dashboard/i18n/locale/en/agentMgmt.json | 4 +- .../dashboard/settings/agents/Index.vue | 400 +++++++++--------- .../dashboard/settings/agents/agent.routes.js | 4 +- 4 files changed, 194 insertions(+), 215 deletions(-) diff --git a/app/javascript/dashboard/helper/featureHelper.js b/app/javascript/dashboard/helper/featureHelper.js index 5a5edba6d..c3dd3d880 100644 --- a/app/javascript/dashboard/helper/featureHelper.js +++ b/app/javascript/dashboard/helper/featureHelper.js @@ -1,5 +1,6 @@ const FEATURE_HELP_URLS = { agent_bots: 'https://chwt.app/hc/agent-bots', + agents: 'https://chwt.app/hc/agents', audit_logs: 'https://chwt.app/hc/audit-logs', campaigns: 'https://chwt.app/hc/campaigns', canned_responses: 'https://chwt.app/hc/canned', diff --git a/app/javascript/dashboard/i18n/locale/en/agentMgmt.json b/app/javascript/dashboard/i18n/locale/en/agentMgmt.json index d01730ed8..442b6becd 100644 --- a/app/javascript/dashboard/i18n/locale/en/agentMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/agentMgmt.json @@ -3,7 +3,8 @@ "HEADER": "Agents", "HEADER_BTN_TXT": "Add Agent", "LOADING": "Fetching Agent List", - "SIDEBAR_TXT": "

Agents

An Agent is a member of your Customer Support team.

Agents will be able to view and reply to messages from your users. The list shows all agents currently in your account.

Click on Add Agent to add a new agent. Agent you add will receive an email with a confirmation link to activate their account, after which they can access Chatwoot and respond to messages.

Access to Chatwoot's features are based on following roles.

Agent - Agents with this role can only access inboxes, reports and conversations. They can assign conversations to other agents or themselves and resolve conversations.

Administrator - Administrator will have access to all Chatwoot features enabled for your account, including settings, along with all of a normal agents' privileges.

", + "DESCRIPTION": "An agent is a member of your customer support team who can view and respond to user messages. The list below shows all the agents in your account.", + "LEARN_MORE": "Learn about user roles", "AGENT_TYPES": { "ADMINISTRATOR": "Administrator", "AGENT": "Agent" @@ -33,7 +34,6 @@ "PLACEHOLDER": "Please select a role", "ERROR": "Role is required" }, - "EMAIL": { "LABEL": "Email Address", "PLACEHOLDER": "Please enter an email address of the agent" diff --git a/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue index 21000a6fd..cb0402e12 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/agents/Index.vue @@ -1,230 +1,208 @@ - diff --git a/app/javascript/dashboard/routes/dashboard/settings/agents/agent.routes.js b/app/javascript/dashboard/routes/dashboard/settings/agents/agent.routes.js index 854450c5d..d7f881204 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/agents/agent.routes.js +++ b/app/javascript/dashboard/routes/dashboard/settings/agents/agent.routes.js @@ -1,12 +1,12 @@ import { frontendURL } from '../../../../helper/URLHelper'; -const SettingsContent = () => import('../Wrapper.vue'); +const SettingsWrapper = () => import('../SettingsWrapper.vue'); const AgentHome = () => import('./Index.vue'); export default { routes: [ { path: frontendURL('accounts/:accountId/settings/agents'), - component: SettingsContent, + component: SettingsWrapper, props: { headerTitle: 'AGENT_MGMT.HEADER', icon: 'people',