From 201724bf41b1372215c63c8de451107fd86433be Mon Sep 17 00:00:00 2001 From: varodv <72568818+alvarodE@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:40:26 +0200 Subject: [PATCH 1/4] fix: Update Backroom context after user login if there was a query previously --- src/App.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.vue b/src/App.vue index 716f9236..fb8a0f21 100644 --- a/src/App.vue +++ b/src/App.vue @@ -78,6 +78,7 @@ if (window.wysiwyg) { await window.wysiwyg?.requestAuth(); window.InterfaceX?.search(); + window.wysiwyg?.setContext({ query: payload.query }); } } catch (_) { // No error handling From d57211b077e1ddb83d328724b7e13fbb80504cc5 Mon Sep 17 00:00:00 2001 From: varodv <72568818+alvarodE@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:41:29 +0200 Subject: [PATCH 2/4] fix: Add Playboard URL on Backroom menu --- public/snippet-script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/snippet-script.js b/public/snippet-script.js index 77b01884..840efb01 100644 --- a/public/snippet-script.js +++ b/public/snippet-script.js @@ -116,9 +116,10 @@ window.addEventListener('load', () => { analytics: { baseUrl: 'https://api.staging.empathy.co/statistics/v2' }, - lang, instance, + lang, audience: 'enterprise', + playboardUrl: 'https://playboard-platform.staging.empathy.co/empathy', appContainerSelector: '.x-root-container', searchLayerSelector: '.x' }); From da9cbfdda08d816f6379a8544bf90c5647bd64f6 Mon Sep 17 00:00:00 2001 From: varodv <72568818+alvarodE@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:03:09 +0200 Subject: [PATCH 3/4] refactor: Simplify Playboard link --- public/snippet-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/snippet-script.js b/public/snippet-script.js index 840efb01..b59a4474 100644 --- a/public/snippet-script.js +++ b/public/snippet-script.js @@ -119,7 +119,7 @@ window.addEventListener('load', () => { instance, lang, audience: 'enterprise', - playboardUrl: 'https://playboard-platform.staging.empathy.co/empathy', + playboardUrl: `https://playboard-platform.staging.empathy.co/${instance}`, appContainerSelector: '.x-root-container', searchLayerSelector: '.x' }); From 1ae00f63d98c6b9c9d4543fcb6f08865b506aa99 Mon Sep 17 00:00:00 2001 From: varodv <72568818+alvarodE@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:03:36 +0200 Subject: [PATCH 4/4] refactor: Remove unnecessary code --- src/App.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index fb8a0f21..903962c9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -72,7 +72,6 @@ } @XOn(['ParamsLoadedFromUrl']) - // eslint-disable-next-line @typescript-eslint/no-unused-vars async requestAuthWysiwyg(payload: UrlParams): Promise { try { if (window.wysiwyg) {