From d0ea5f9c8da5183c80e25e26aebfe85ad54a6dfb Mon Sep 17 00:00:00 2001 From: Stephen Hand Date: Thu, 28 May 2026 13:50:59 +0100 Subject: [PATCH] WIP - hardcode adding the userway widget for evaluation purposes --- aselo-webchat-react-app/package.json | 1 + plugin-hrm-form/src/HrmFormPlugin.tsx | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/aselo-webchat-react-app/package.json b/aselo-webchat-react-app/package.json index ef4686ccdc..050a350afc 100644 --- a/aselo-webchat-react-app/package.json +++ b/aselo-webchat-react-app/package.json @@ -100,6 +100,7 @@ "start:e2e_dev": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/e2e/development.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p dev:merge-configs dev:local-config-server dev:local-form-definition-server start", "start:mt_stg": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/mt/staging.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p staging:merge-configs dev:local-config-server dev:local-form-definition-server start", "start:jm_stg": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/jm/staging.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p staging:merge-configs dev:local-config-server dev:local-form-definition-server start", + "start:zw_stg": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/zw/staging.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p staging:merge-configs dev:local-config-server dev:local-form-definition-server start", "start:uscr_stg": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/uscr/staging.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p staging:merge-configs dev:local-config-server dev:local-form-definition-server start", "start:ca_stg": "cross-env REACT_APP_CONFIG_URL='http://localhost:9090/ca/staging.json' REACT_APP_FORM_DEFINITIONS_BASE_URL='http://localhost:8091' run-p staging:merge-configs dev:local-config-server dev:local-form-definition-server start", "build": "react-app-rewired build", diff --git a/plugin-hrm-form/src/HrmFormPlugin.tsx b/plugin-hrm-form/src/HrmFormPlugin.tsx index d97c2d366d..b05c6385d9 100644 --- a/plugin-hrm-form/src/HrmFormPlugin.tsx +++ b/plugin-hrm-form/src/HrmFormPlugin.tsx @@ -192,6 +192,13 @@ export default class HrmFormPlugin extends FlexPlugin { * Use this to modify any UI components or attach to the actions framework */ async init(flex: typeof Flex, manager: Flex.Manager) { + const script = document.createElement('script'); + + script.src = 'https://cdn.userway.org/widget.js'; + script.dataset.account = 'wrsnwawFhK'; + script.async = true; + + document.body.appendChild(script); loadCSS('https://use.fontawesome.com/releases/v5.15.4/css/solid.css'); setUpFullStory(manager.workerClient, manager.serviceConfiguration);