From b7a7e5a0d393d76cb526aaeb15c019e365fa99eb Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 1 Feb 2024 12:10:58 +0530 Subject: [PATCH] feat: Inbox list API integration (#8825) * feat: Inbox view * feat: Bind real values * chore: code cleanup * feat: add observer * fix: Inbox icon * chore: more code cleanup * chore: Replace conversation id * chore: Minor fix * chore: Hide from side bar * chore: Fix eslint * chore: Minor fix * fix: dark mode color * chore: Minor fix * feat: Add description for each notification types * chore: remove commented code * Update InboxList.vue * Update InboxView.vue * chore: fix specs * fix: specs * Update InboxView.vue --------- Co-authored-by: iamsivin Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- .../dashboard/components/ChatList.vue | 2 +- .../i18n/locale/en/generalSettings.json | 3 - .../dashboard/i18n/locale/en/inbox.json | 17 +++ .../dashboard/i18n/locale/en/index.js | 2 + .../dashboard/i18n/locale/en/settings.json | 1 + .../dashboard/mixins/specs/time.spec.js | 80 ++++++++++++-- app/javascript/dashboard/mixins/time.js | 45 +++++--- .../conversation/conversation.routes.js | 8 ++ .../routes/dashboard/dashboard.routes.js | 2 - .../routes/dashboard/inbox/InboxCard.vue | 70 ------------ .../routes/dashboard/inbox/InboxList.vue | 103 ++++++++++++++++++ .../routes/dashboard/inbox/InboxView.vue | 45 ++++++++ .../dashboard/inbox/components/InboxCard.vue | 102 +++++++++++++++++ .../inbox/components/InboxItemHeader.vue | 39 +++---- .../inbox/components/InboxNameAndId.vue | 44 +++++--- .../dashboard/inbox/components/InboxView.vue | 5 - .../inbox/components/PriorityIcon.vue | 29 +++-- .../dashboard/inbox/components/StatusIcon.vue | 38 ++++--- .../routes/dashboard/inbox/routes.js | 25 ----- app/javascript/dashboard/routes/index.js | 11 -- .../store/modules/notifications/actions.js | 21 ++++ .../store/modules/notifications/index.js | 1 + .../store/modules/notifications/mutations.js | 4 + .../specs/notifications/actions.spec.js | 39 +++++++ .../specs/notifications/mutations.spec.js | 13 ++- .../dashboard/store/mutation-types.js | 1 + .../FluentIcon/dashboard-icons.json | 1 + 27 files changed, 541 insertions(+), 210 deletions(-) create mode 100644 app/javascript/dashboard/i18n/locale/en/inbox.json delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/InboxCard.vue create mode 100644 app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue create mode 100644 app/javascript/dashboard/routes/dashboard/inbox/InboxView.vue create mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/InboxView.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/routes.js diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 31fe6110d..7fcc58127 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -1,6 +1,6 @@