From eef70b9bd7e8467e3041201d76f9f2eac5c2704e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 19 Dec 2024 18:41:55 +0530 Subject: [PATCH] feat: integrate new bubbles (#10550) To test this, set the `useNextBubble` value to `true` in the localstorage. Here's a quick command to run in the console ```js localStorage.setItem('useNextBubble', true) ``` ```js localStorage.setItem('useNextBubble', false) ``` --------- Co-authored-by: Pranav --- .../dashboard/assets/scss/_woot.scss | 28 +- .../components-next/message/Message.vue | 228 ++++++++++----- .../components-next/message/MessageList.vue | 124 +++++++++ .../components-next/message/MessageMeta.vue | 154 +++++++---- .../message/bubbles/Activity.vue | 23 +- .../message/bubbles/Attachments.vue | 30 -- .../components-next/message/bubbles/Audio.vue | 34 +-- .../components-next/message/bubbles/Base.vue | 30 +- .../message/bubbles/BaseAttachment.vue | 88 +++--- .../message/bubbles/Contact.vue | 40 +-- .../components-next/message/bubbles/Dyte.vue | 16 +- .../message/bubbles/Email/EmailMeta.vue | 35 +-- .../message/bubbles/Email/Index.vue | 44 +-- .../components-next/message/bubbles/File.vue | 34 +-- .../components-next/message/bubbles/Image.vue | 43 +-- .../message/bubbles/InstagramStory.vue | 32 +-- .../message/bubbles/Location.vue | 79 +----- .../message/bubbles/Text/Index.vue | 44 +-- .../components-next/message/bubbles/Video.vue | 64 ++--- .../components-next/message/chips/File.vue | 2 +- .../components-next/message/provider.js | 106 +++++++ .../widgets/conversation/MessagesView.vue | 51 +++- .../dashboard/composables/useInbox.js | 141 ++++++++++ .../dashboard/composables/useTransformKeys.js | 29 +- .../dashboard/constants/localStorage.js | 1 + .../i18n/locale/en/conversation.json | 1 + .../components/MessageContextMenu.vue | 12 +- package.json | 1 - pnpm-lock.yaml | 259 ------------------ theme/colors.js | 15 + 30 files changed, 922 insertions(+), 866 deletions(-) create mode 100644 app/javascript/dashboard/components-next/message/MessageList.vue delete mode 100644 app/javascript/dashboard/components-next/message/bubbles/Attachments.vue create mode 100644 app/javascript/dashboard/composables/useInbox.js diff --git a/app/javascript/dashboard/assets/scss/_woot.scss b/app/javascript/dashboard/assets/scss/_woot.scss index c6304cf19..d736d7b5a 100644 --- a/app/javascript/dashboard/assets/scss/_woot.scss +++ b/app/javascript/dashboard/assets/scss/_woot.scss @@ -124,6 +124,19 @@ --teal-11: 0 133 115; --teal-12: 13 61 56; + --gray-1: 252 252 252; + --gray-2: 249 249 249; + --gray-3: 240 240 240; + --gray-4: 232 232 232; + --gray-5: 224 224 224; + --gray-6: 217 217 217; + --gray-7: 206 206 206; + --gray-8: 187 187 187; + --gray-9: 141 141 141; + --gray-10: 131 131 131; + --gray-11: 100 100 100; + --gray-12: 32 32 32; + --background-color: 253 253 253; --text-blue: 8 109 224; --border-container: 236 236 236; @@ -213,6 +226,19 @@ --teal-11: 11 216 182; --teal-12: 173 240 221; + --gray-1: 17 17 17; + --gray-2: 25 25 25; + --gray-3: 34 34 34; + --gray-4: 42 42 42; + --gray-5: 49 49 49; + --gray-6: 58 58 58; + --gray-7: 72 72 72; + --gray-8: 96 96 96; + --gray-9: 110 110 110; + --gray-10: 123 123 123; + --gray-11: 180 180 180; + --gray-12: 238 238 238; + --background-color: 18 18 19; --border-strong: 52 52 52; --border-weak: 38 38 42; @@ -232,7 +258,7 @@ --black-alpha-2: 0, 0, 0, 0.2; --border-blue: 39, 129, 246, 0.5; --border-container: 236, 236, 236, 0; - --white-alpha: 255, 255, 255, 0.8; + --white-alpha: 255, 255, 255, 0.1; } /* NEXT COLORS END */ diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue index 07bcc203b..90721e322 100644 --- a/app/javascript/dashboard/components-next/message/Message.vue +++ b/app/javascript/dashboard/components-next/message/Message.vue @@ -1,6 +1,12 @@