From 4d2b7c37a0f6b56aca7af33cb737dd9825fe2363 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sat, 17 Dec 2022 13:11:28 -0800 Subject: [PATCH] feat: Display labels in the conversation card (#6088) Co-authored-by: Nithin David Thomas --- .../dashboard/components/ui/Label.vue | 4 +- .../widgets/conversation/ConversationCard.vue | 22 ++- .../conversationCardComponents/CardLabels.vue | 133 ++++++++++++++++++ .../i18n/locale/en/conversation.json | 4 + 4 files changed, 155 insertions(+), 8 deletions(-) create mode 100644 app/javascript/dashboard/components/widgets/conversation/conversationCardComponents/CardLabels.vue diff --git a/app/javascript/dashboard/components/ui/Label.vue b/app/javascript/dashboard/components/ui/Label.vue index 6a0c7de4a..7e237957e 100644 --- a/app/javascript/dashboard/components/ui/Label.vue +++ b/app/javascript/dashboard/components/ui/Label.vue @@ -199,8 +199,8 @@ export default { &.smooth { background: transparent; - border: 1px solid var(--s-75); - color: var(--s-800); + border: 1px solid var(--s-100); + color: var(--s-700); } } diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue index 3f50c5577..31f820ec0 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue @@ -91,6 +91,7 @@ {{ unreadCount > 9 ? '9+' : unreadCount }} + diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json index 37cc53c68..efb07d806 100644 --- a/app/javascript/dashboard/i18n/locale/en/conversation.json +++ b/app/javascript/dashboard/i18n/locale/en/conversation.json @@ -41,6 +41,10 @@ "NO_RESPONSE": "No response", "RATING_TITLE": "Rating", "FEEDBACK_TITLE": "Feedback", + "CARD": { + "SHOW_LABELS": "Show labels", + "HIDE_LABELS": "Hide labels" + }, "HEADER": { "RESOLVE_ACTION": "Resolve", "REOPEN_ACTION": "Reopen",