From f1a07657e996934f932c107ac4ef691a977a3282 Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 15 Jul 2026 23:58:30 -0700 Subject: [PATCH] fix(whatsapp): restore embedded signup reauthorization banner (#15035) Show the reauthorization banner whenever an embedded signup inbox has a reauthorization error instead of suppressing it when the manual migration flow is enabled. Reword the manual migration banner and dialog as a recommendation to reconnect with your own Meta app, and switch their styling from amber warning to blue info. --- app/javascript/dashboard/i18n/locale/en/inboxMgmt.json | 8 ++++---- .../routes/dashboard/settings/inbox/Settings.vue | 4 +--- .../inbox/components/WhatsappManualMigrationBanner.vue | 8 ++++---- .../inbox/components/WhatsappManualMigrationDialog.vue | 4 ++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 50d8ba3f9..07506c20f 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -848,8 +848,8 @@ "WHATSAPP_TEMPLATES_SYNC_SUCCESS": "Templates sync initiated successfully. It may take a couple of minutes to update.", "WHATSAPP_MANUAL_MIGRATION": { "BANNER": { - "TITLE": "WhatsApp setup action required", - "DESCRIPTION": "Meta restrictions are affecting WhatsApp setup and management features. Reconnect this inbox manually to keep your WhatsApp configuration up to date.", + "TITLE": "Manual setup recommended", + "DESCRIPTION": "This inbox connects through the shared Meta app used for embedded signup, which recent Meta restrictions have affected. To avoid similar issues in the future, we recommend reconnecting it with your own Meta app.", "START": "Start manual migration", "GUIDE": "View guide" }, @@ -857,8 +857,8 @@ "EYEBROW": "WhatsApp manual migration", "TITLE": "Reconnect WhatsApp inbox", "CLOSE": "Close", - "ACTION_REQUIRED_TITLE": "Action required for this WhatsApp inbox", - "ACTION_REQUIRED_DESCRIPTION": "Meta restrictions are affecting setup and management features. This guided flow updates the WhatsApp API connection without creating a new inbox.", + "ACTION_REQUIRED_TITLE": "Reconnect with your own Meta app", + "ACTION_REQUIRED_DESCRIPTION": "Inboxes connected through your own Meta app are not affected by restrictions on the shared embedded signup app. This guided flow updates the WhatsApp API connection without creating a new inbox.", "GUIDE_LINK": "Open the manual setup guide", "PRESERVED_TITLE": "Preserved", "PRESERVED_DESCRIPTION": "Conversations, contacts, collaborators, routing, business hours, and inbox settings.", diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 8e42d0c27..222d238a8 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -387,12 +387,10 @@ export default { return this.inbox.provider_config?.source === 'embedded_signup'; }, whatsappUnauthorized() { - // The manual migration banner supersedes the embedded-signup reauthorize flow when the feature is enabled. return ( this.isAWhatsAppCloudChannel && this.isEmbeddedSignupWhatsApp && - this.inbox.reauthorization_required && - !this.showWhatsAppManualMigration + this.inbox.reauthorization_required ); }, whatsappRegistrationIncomplete() { diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WhatsappManualMigrationBanner.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WhatsappManualMigrationBanner.vue index bc80d867a..26c5c7d78 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WhatsappManualMigrationBanner.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WhatsappManualMigrationBanner.vue @@ -21,14 +21,14 @@ const copy = computed(() => ({