From 51480f33b0471decf2c921ba87939d3ebc79c411 Mon Sep 17 00:00:00 2001 From: Ramiro Medina <64783088+ramedina86@users.noreply.github.com> Date: Mon, 18 Mar 2024 20:47:08 +0000 Subject: [PATCH 1/3] chore: Rename Chat to Chatbot --- e2e_tests/tests/components.spec.ts | 2 +- src/streamsync/core.py | 4 +-- ui/src/core/templateMap.ts | 4 +-- .../content/{CoreChat.vue => CoreChatbot.vue} | 28 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) rename ui/src/core_components/content/{CoreChat.vue => CoreChatbot.vue} (96%) diff --git a/e2e_tests/tests/components.spec.ts b/e2e_tests/tests/components.spec.ts index f255fb559..5add5c716 100644 --- a/e2e_tests/tests/components.spec.ts +++ b/e2e_tests/tests/components.spec.ts @@ -37,7 +37,7 @@ const fullCheck = [ { type: "metric", locator: `div.CoreMetric.component` }, { type: "message", locator: `div.CoreMessage.component` }, { type: "videoplayer", locator: `div.CoreVideoPlayer.component` }, - { type: "chat", locator: `div.CoreChat.component` }, + { type: "chatbot", locator: `div.CoreChatbot.component` }, // { type: "step", locator: `div.CoreStep.component` }, { type: "steps", locator: `div.CoreSteps.component` }, { type: "ratinginput", locator: `div.CoreRatingInput.component` }, diff --git a/src/streamsync/core.py b/src/streamsync/core.py index 7acfb3bed..2faf24588 100644 --- a/src/streamsync/core.py +++ b/src/streamsync/core.py @@ -807,11 +807,11 @@ def _transform_page_open(self, ev) -> str: payload = str(ev.payload) return payload - def _transform_chat_message(self, ev) -> str: + def _transform_chatbot_message(self, ev) -> str: payload = str(ev.payload) return payload - def _transform_chat_action_click(self, ev) -> str: + def _transform_chatbot_action_click(self, ev) -> str: payload = str(ev.payload) return payload diff --git a/ui/src/core/templateMap.ts b/ui/src/core/templateMap.ts index 6770394cb..e440b5453 100644 --- a/ui/src/core/templateMap.ts +++ b/ui/src/core/templateMap.ts @@ -11,7 +11,7 @@ import CoreText from "../core_components/content/CoreText.vue"; import CoreVegaLiteChart from "../core_components/content/CoreVegaLiteChart.vue"; import CoreVideoPlayer from "../core_components/content/CoreVideoPlayer.vue"; import CoreLink from "../core_components/content/CoreLink.vue"; -import CoreChat from "../core_components/content/CoreChat.vue"; +import CoreChatbot from "../core_components/content/CoreChatbot.vue"; import CoreTags from "../core_components/content/CoreTags.vue"; import CoreAvatar from "../core_components/content/CoreAvatar.vue"; // input @@ -104,7 +104,7 @@ const templateMap = { metric: CoreMetric, message: CoreMessage, videoplayer: CoreVideoPlayer, - chat: CoreChat, + chatbot: CoreChatbot, step: CoreStep, steps: CoreSteps, ratinginput: CoreRating, diff --git a/ui/src/core_components/content/CoreChat.vue b/ui/src/core_components/content/CoreChatbot.vue similarity index 96% rename from ui/src/core_components/content/CoreChat.vue rename to ui/src/core_components/content/CoreChatbot.vue index 6cb8b9bda..80959d3ea 100644 --- a/ui/src/core_components/content/CoreChat.vue +++ b/ui/src/core_components/content/CoreChatbot.vue @@ -1,5 +1,5 @@