From cfa0bb953bd0e95490d99118019e1c5c0d682259 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 17 Dec 2025 14:30:49 +0530 Subject: [PATCH] feat: Custom attribute page redesign (#13087) Fixes https://linear.app/chatwoot/issue/CW-6096/custom-attributes-page-redesign 524664368-b92a6eb7-7f6c-40e6-bf23-6a5310f2d9c5 --------- Co-authored-by: iamsivin --- .../AttributeListItem.vue | 88 +++++++++ .../CustomAttributes/AttributeBadge.vue | 42 +++++ .../i18n/locale/en/attributesMgmt.json | 4 + .../dashboard/settings/attributes/Index.vue | 173 +++++++++++++++--- 4 files changed, 280 insertions(+), 27 deletions(-) create mode 100644 app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue create mode 100644 app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue diff --git a/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue b/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue new file mode 100644 index 000000000..f5822f67d --- /dev/null +++ b/app/javascript/dashboard/components-next/ConversationWorkflow/AttributeListItem.vue @@ -0,0 +1,88 @@ + + + diff --git a/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue b/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue new file mode 100644 index 000000000..fb0c9867a --- /dev/null +++ b/app/javascript/dashboard/components-next/CustomAttributes/AttributeBadge.vue @@ -0,0 +1,42 @@ + + + diff --git a/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json b/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json index cea6359de..78886f451 100644 --- a/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/attributesMgmt.json @@ -129,6 +129,10 @@ "ENABLE_REGEX": { "LABEL": "Enable regex validation" } + }, + "BADGES": { + "PRE_CHAT": "Pre-chat", + "RESOLUTION": "Resolution" } } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue index 636892005..bf93ffa1f 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue @@ -1,27 +1,49 @@ - { :on-close="hideAddPopup" :selected-attribute-model-tab="selectedTabIndex" /> + + + +