From 3c93cdb8b22ffa1039aebb30389d86b248e69022 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:11:54 +0530 Subject: [PATCH] feat(v4): Update Inbox view card design (#10599) --- .../CardMessagePreviewWithMeta.vue | 20 +- .../ConversationCard/ConversationCard.vue | 16 +- .../ConversationCard/SLACardLabel.vue | 21 +- .../components-next/Inbox/InboxCard.vue | 244 +++++++++++++++++ .../components-next/sidebar/Sidebar.vue | 1 + .../components/widgets/BackButton.vue | 13 +- .../conversation/ConversationHeader.vue | 2 +- .../dashboard/helper/snoozeHelpers.js | 29 +++ .../helper/specs/snoozeHelpers.spec.js | 43 +++ .../dashboard/i18n/locale/en/inbox.json | 15 +- .../dashboard/i18n/locale/en/settings.json | 2 +- .../dashboard/inbox/InboxEmptyState.vue | 6 +- .../routes/dashboard/inbox/InboxList.vue | 78 +++++- .../routes/dashboard/inbox/InboxView.vue | 4 +- .../dashboard/inbox/components/InboxCard.vue | 245 ------------------ .../inbox/components/InboxContextMenu.vue | 2 +- .../inbox/components/InboxDisplayMenu.vue | 69 +++-- .../inbox/components/InboxItemHeader.vue | 70 +++-- .../inbox/components/InboxListHeader.vue | 55 ++-- .../inbox/components/InboxNameAndId.vue | 45 ---- .../inbox/components/InboxOptionMenu.vue | 2 +- .../dashboard/inbox/components/MenuItem.vue | 2 +- .../inbox/components/PaginationButton.vue | 31 ++- .../inbox/components/PriorityIcon.vue | 80 ------ .../dashboard/inbox/components/StatusIcon.vue | 86 ------ .../inbox/helpers/InboxViewHelpers.js | 16 ++ .../store/modules/notifications/getters.js | 8 + app/models/notification.rb | 18 +- .../notifications/index.json.jbuilder | 1 + spec/models/notification_spec.rb | 8 + tailwind.config.js | 1 + 31 files changed, 618 insertions(+), 615 deletions(-) create mode 100644 app/javascript/dashboard/components-next/Inbox/InboxCard.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/InboxNameAndId.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/PriorityIcon.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/inbox/components/StatusIcon.vue create mode 100644 app/javascript/dashboard/routes/dashboard/inbox/helpers/InboxViewHelpers.js diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue index 19dc7008a..63d014cf7 100644 --- a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue @@ -1,5 +1,5 @@