Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Ruby actioncablechat-widgetconversationcustomer-supportdashboarddesigndockerdocker-imageherokuintercomjavascriptlivechatopensourcerailsrubysassvuejswhatsappzendesk
fix(whatsapp): clarify unavailable messages and link to meta guidance (#16269)
Muhsin Keloth081bd68ab22a
diff --git a/app/javascript/dashboard/components-next/message/bubbles/Unsupported.vue b/app/javascript/dashboard/components-next/message/bubbles/Unsupported.vueindex 5f654473832..45eeebf5f43 100644--- a/app/javascript/dashboard/components-next/message/bubbles/Unsupported.vue+++ b/app/javascript/dashboard/components-next/message/bubbles/Unsupported.vue@@ -1,9 +1,13 @@<script setup>import { computed } from 'vue';+import { I18nT } from 'vue-i18n';import { useMessageContext } from '../provider.js';import { useInbox } from 'dashboard/composables/useInbox';import BaseBubble from './Base.vue';+const WHATSAPP_UNSUPPORTED_MESSAGE_HELP_URL =+ 'https://developers.facebook.com/documentation/business-messaging/whatsapp/embedded-signup/onboarding-business-app-users#linked-devices';+const { inboxId } = useMessageContext();const {@@ -19,14 +23,37 @@ const unsupportedMessageKey = computed(() => {if (isAnInstagramChannel.value)return 'CONVERSATION.UNSUPPORTED_MESSAGE_INSTAGRAM';if (isATiktokChannel.value) return 'CONVERSATION.UNSUPPORTED_MESSAGE_TIKTOK';- if (isAWhatsAppChannel.value)- return 'CONVERSATION.UNSUPPORTED_MESSAGE_WHATSAPP';return 'CONVERSATION.UNSUPPORTED_MESSAGE';});</script><template><BaseBubble class="px-4 py-3 text-sm" data-bubble-name="unsupported">- {{ $t(unsupportedMessageKey) }}+ <template v-if="isAWhatsAppChannel">+ <p class="m-0 font-semibold">+ {{ $t('CONVERSATION.UNSUPPORTED_MESSAGE_WHATSAPP_TITLE') }}+ </p>+ <p class="mt-2 mb-0">+ {{ $t('CONVERSATION.UNSUPPORTED_MESSAGE_WHATSAPP') }}+ </p>+ <I18nT+ keypath="CONVERSATION.UNSUPPORTED_MESSAGE_WHATSAPP_DETAILS"+ tag="p"+ scope="global"+ class="mt-2 mb-0"+ >+ <template #documentation>+ <a+ :href="WHATSAPP_UNSUPPORTED_MESSAGE_HELP_URL"+ target="_blank"+ rel="noopener noreferrer"+ class="text-current underline underline-offset-2 hover:no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"+ >+ {{ $t('CONVERSATION.UNSUPPORTED_MESSAGE_WHATSAPP_LEARN_MORE') }}+ </a>+ </template>+ </I18nT>+ </template>+ <p v-else class="m-0">{{ $t(unsupportedMessageKey) }}</p></BaseBubble></template>diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.jsonindex e659234da27..24f95bbd655 100644--- a/app/javascript/dashboard/i18n/locale/en/conversation.json+++ b/app/javascript/dashboard/i18n/locale/en/conversation.json@@ -88,7 +88,10 @@"UNSUPPORTED_MESSAGE_FACEBOOK": "This message is unsupported. You can view this message on the Facebook Messenger app.","UNSUPPORTED_MESSAGE_INSTAGRAM": "This message is unsupported. You can view this message on the Instagram app.","UNSUPPORTED_MESSAGE_TIKTOK": "This message is unsupported. You can view this message on the TikTok app.",- "UNSUPPORTED_MESSAGE_WHATSAPP": "This message is unsupported. You can view this message on the WhatsApp app.",+ "UNSUPPORTED_MESSAGE_WHATSAPP_TITLE": "Message content unavailable",+ "UNSUPPORTED_MESSAGE_WHATSAPP": "We’re unable to display this message because Meta hasn’t provided its content. This can happen with WhatsApp Coexistence setups. To view the message, please check it in your WhatsApp Business app.",+ "UNSUPPORTED_MESSAGE_WHATSAPP_DETAILS": "For more details, refer to {documentation}.",+ "UNSUPPORTED_MESSAGE_WHATSAPP_LEARN_MORE": "Meta’s documentation","WHATSAPP_FLOW_RESPONSE": "Submitted a flow response","WHATSAPP_REFERRAL": {"AD": "Ad"