diff --git a/app/javascript/dashboard/assets/images/no-chat-dark.svg b/app/javascript/dashboard/assets/images/no-chat-dark.svg new file mode 100644 index 000000000..924b07d07 --- /dev/null +++ b/app/javascript/dashboard/assets/images/no-chat-dark.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/javascript/dashboard/assets/images/no-chat.svg b/app/javascript/dashboard/assets/images/no-chat.svg new file mode 100644 index 000000000..44c5a1677 --- /dev/null +++ b/app/javascript/dashboard/assets/images/no-chat.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/javascript/dashboard/components/base/Hotkey.vue b/app/javascript/dashboard/components/base/Hotkey.vue index 2e2afa93c..ca45559f3 100644 --- a/app/javascript/dashboard/components/base/Hotkey.vue +++ b/app/javascript/dashboard/components/base/Hotkey.vue @@ -1,11 +1,21 @@ + diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue index 6540a6c4f..4ee8d35ab 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue @@ -61,7 +61,7 @@ import { mapGetters } from 'vuex'; import ContactPanel from 'dashboard/routes/dashboard/conversation/ContactPanel'; import ConversationHeader from './ConversationHeader'; import DashboardAppFrame from '../DashboardApp/Frame.vue'; -import EmptyState from './EmptyState'; +import EmptyState from './EmptyState/EmptyState'; import MessagesView from './MessagesView'; export default { diff --git a/app/javascript/dashboard/components/widgets/conversation/EmptyState.vue b/app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyState.vue similarity index 51% rename from app/javascript/dashboard/components/widgets/conversation/EmptyState.vue rename to app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyState.vue index e52165ffa..2bac2be33 100644 --- a/app/javascript/dashboard/components/widgets/conversation/EmptyState.vue +++ b/app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyState.vue @@ -10,45 +10,40 @@ class="clearfix" > -
-
- No Inboxes - - {{ $t('CONVERSATION.NO_INBOX_AGENT') }} - -
-
+ +
-
- No Chat - - {{ $t('CONVERSATION.NO_MESSAGE_1') }} -
-
-
- -
- No Chat - {{ conversationMissingMessage }} -
+ +
- diff --git a/app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyStateMessage.vue b/app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyStateMessage.vue new file mode 100644 index 000000000..b3c03c56c --- /dev/null +++ b/app/javascript/dashboard/components/widgets/conversation/EmptyState/EmptyStateMessage.vue @@ -0,0 +1,33 @@ + + + diff --git a/app/javascript/dashboard/components/widgets/conversation/EmptyState/FeaturePlaceholder.vue b/app/javascript/dashboard/components/widgets/conversation/EmptyState/FeaturePlaceholder.vue new file mode 100644 index 000000000..ca00a937e --- /dev/null +++ b/app/javascript/dashboard/components/widgets/conversation/EmptyState/FeaturePlaceholder.vue @@ -0,0 +1,51 @@ + + + diff --git a/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue b/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue index 10d02bcc2..913ae3740 100644 --- a/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue +++ b/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue @@ -4,22 +4,18 @@ -
+
{{ $t('KEYBOARD_SHORTCUTS.TOGGLE_MODAL') }}
-
-

+

+ {{ $t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY') }} -

-

+ + {{ $t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY') }} -

+
@@ -29,34 +25,26 @@
{{ $t('KEYBOARD_SHORTCUTS.TITLE.OPEN_CONVERSATION') }}
-
-
- +
+
+ {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }} - - + + J - + {{ $t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY') }}
- + {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }} - - + + K - +
@@ -64,22 +52,16 @@
{{ $t('KEYBOARD_SHORTCUTS.TITLE.RESOLVE_AND_NEXT') }}
-
- +
+ {{ $t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY') }} - - + + {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }} - - + + E - +
-
+
{{ title(shortcutKey) }}
-
- + - {{ shortcutKey.firstkey }} - - + {{ shortcutKey.secondKey }} - +
@@ -111,8 +95,12 @@ - diff --git a/app/javascript/dashboard/components/widgets/modal/constants.js b/app/javascript/dashboard/components/widgets/modal/constants.js index 5741d954e..45a261767 100644 --- a/app/javascript/dashboard/components/widgets/modal/constants.js +++ b/app/javascript/dashboard/components/widgets/modal/constants.js @@ -2,79 +2,79 @@ export const SHORTCUT_KEYS = [ { id: 1, label: 'NAVIGATE_DROPDOWN', - firstkey: 'Up', + firstKey: 'Up', secondKey: 'Down', }, { id: 2, label: 'RESOLVE_CONVERSATION', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'E', }, { id: 3, label: 'GO_TO_CONVERSATION_DASHBOARD', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'C', }, { id: 4, label: 'ADD_ATTACHMENT', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'A', }, { id: 5, label: 'GO_TO_CONTACTS_DASHBOARD', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'V', }, { id: 6, label: 'TOGGLE_SIDEBAR', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'O', }, { id: 7, label: 'GO_TO_REPORTS_SIDEBAR', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'R', }, { id: 8, label: 'MOVE_TO_NEXT_TAB', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'N', }, { id: 9, label: 'GO_TO_SETTINGS', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'S', }, { id: 10, label: 'SWITCH_CONVERSATION_STATUS', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'B', }, { id: 11, label: 'SWITCH_TO_PRIVATE_NOTE', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'P', }, { id: 13, label: 'SWITCH_TO_REPLY', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'L', }, { id: 14, label: 'TOGGLE_SNOOZE_DROPDOWN', - firstkey: 'Alt / ⌥', + firstKey: 'Alt / ⌥', secondKey: 'M', }, ]; diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json index d0deb7b1e..68c43a28d 100644 --- a/app/javascript/dashboard/i18n/locale/en/conversation.json +++ b/app/javascript/dashboard/i18n/locale/en/conversation.json @@ -12,6 +12,10 @@ "NO_INBOX_2": " to get started", "NO_INBOX_AGENT": "Uh Oh! Looks like you are not part of any inbox. Please contact your administrator", "SEARCH_MESSAGES": "Search for messages in conversations", + "EMPTY_STATE": { + "CMD_BAR": "to open command menu", + "KEYBOARD_SHORTCUTS": "to view keyboard shortcuts" + }, "SEARCH": { "TITLE": "Search messages", "RESULT_TITLE": "Search Results", diff --git a/app/javascript/shared/components/ui/label/LabelDropdown.vue b/app/javascript/shared/components/ui/label/LabelDropdown.vue index 8ac269ec3..a34eb5ccd 100644 --- a/app/javascript/shared/components/ui/label/LabelDropdown.vue +++ b/app/javascript/shared/components/ui/label/LabelDropdown.vue @@ -6,7 +6,11 @@ > {{ $t('CONTACT_PANEL.LABELS.LABEL_SELECT.TITLE') }} - L + + L +