From 6ad52e14267735b9d9ed749f470faacea9cbdd01 Mon Sep 17 00:00:00 2001 From: Nithin David <1277421+nithindavid@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:36:58 -0800 Subject: [PATCH] Improves UX for conversation watchers --- .../dashboard/i18n/locale/en/contact.json | 7 +- .../i18n/locale/en/conversation.json | 15 ++ .../conversation/ConversationParticipant.vue | 140 +++++++++++++----- 3 files changed, 115 insertions(+), 47 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json index b7b9d458b..1a65aab56 100644 --- a/app/javascript/dashboard/i18n/locale/en/contact.json +++ b/app/javascript/dashboard/i18n/locale/en/contact.json @@ -343,11 +343,6 @@ "SUCCESS_MESSAGE": "Contact merged successfully", "ERROR_MESSAGE": "Could not merge contacts, try again!" } - }, - "CONVERSATION_WATCHERS": { - "NO_RECORDS_FOUND": "No results found", - "ADD_WATCHERS": "Select watchers", - "REMANING_WATCHERS_TEXT": "+%{count} others", - "TOTAL_WATCHERS_TEXT": "%{count} people are watching." } + } diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json index 771b5305f..c77926123 100644 --- a/app/javascript/dashboard/i18n/locale/en/conversation.json +++ b/app/javascript/dashboard/i18n/locale/en/conversation.json @@ -239,5 +239,20 @@ "BCC": "Bcc", "CC": "Cc", "SUBJECT": "Subject" + }, + "CONVERSATION_WATCHERS": { + "NO_RECORDS_FOUND": "No results found", + "ADD_WATCHERS": "Select watchers", + "REMANING_WATCHERS_TEXT": "+%{count} others", + "REMANING_WATCHER_TEXT": "+%{count} other", + "TOTAL_WATCHERS_TEXT": "%{count} people are watching.", + "TOTAL_WATCHER_TEXT": "%{count} person is watching.", + "NO_WATCHERS_TEXT": "No one is watching!.", + "WATCH_CONVERSATION": "Watch conversation", + "YOU_ARE_WATCHING": "You are watching this", + "API": { + "ERROR_MESSAGE": "Could not update, try again!", + "SUCCESS_MESSAGE": "Watchers updated!" + } } } diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ConversationParticipant.vue b/app/javascript/dashboard/routes/dashboard/conversation/ConversationParticipant.vue index 024ce6289..c2edb8f42 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ConversationParticipant.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ConversationParticipant.vue @@ -3,17 +3,16 @@
+
+ {{ $t('CONVERSATION_WATCHERS.NO_WATCHERS_TEXT') }} +
- {{ - $t('CONVERSATION_WATCHERS.TOTAL_WATCHERS_TEXT', { - count: selectedParticipants.length, - }) - }} +
+ {{ $t('CONVERSATION_WATCHERS.YOU_ARE_WATCHING') }}
+