From a5321376e7018799ebd6e4c10cbf772c26cedb6e Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 10 Jun 2025 16:06:22 +0530 Subject: [PATCH] chore: front end improvments --- .../dashboard/i18n/locale/en/inboxMgmt.json | 8 +- .../inbox/channels/WhatsappEmbeddedSignup.vue | 664 +++++++++--------- 2 files changed, 337 insertions(+), 335 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index c8e8183ec..51b0302b5 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -287,14 +287,18 @@ "AUTH_PROCESSING": "Authenticating with Meta...", "WAITING_FOR_BUSINESS_INFO": "Please complete business setup in the Meta window...", "PROCESSING": "Setting up your WhatsApp Business Account...", - "PROCESSING_DESC": "Please wait while we configure your WhatsApp Business Account. This may take a few moments.", "LOADING_SDK": "Loading Facebook SDK...", "CANCELLED": "WhatsApp signup was cancelled", "STEP_AUTH": "Step 1: Authenticating with Meta", "STEP_BUSINESS": "Step 2: Selecting business account", "STEP_CREATING": "Step 3: Creating WhatsApp channel", "SUCCESS_TITLE": "WhatsApp Business Account Connected!", - "SUCCESS_DESC": "Your WhatsApp Business Account has been successfully connected. Please provide a name for your inbox to complete the setup." + "SUCCESS_DESC": "Your WhatsApp Business Account has been successfully connected. Please provide a name for your inbox to complete the setup.", + "WAITING_FOR_AUTH": "Waiting for authentication...", + "INVALID_BUSINESS_DATA": "Invalid business data received from Facebook. Please try again.", + "SIGNUP_ERROR": "Signup error occurred", + "AUTH_NOT_COMPLETED": "Authentication not completed. Please restart the process.", + "SUCCESS_FALLBACK": "WhatsApp Business Account has been successfully configured" }, "API": { "ERROR_MESSAGE": "We were not able to save the WhatsApp channel" diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/WhatsappEmbeddedSignup.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/WhatsappEmbeddedSignup.vue index 739407b0c..2f215ede6 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/WhatsappEmbeddedSignup.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/channels/WhatsappEmbeddedSignup.vue @@ -1,340 +1,349 @@ -