From 77fb1f2cdb13d6d07f0eb6a61b70b2145805fd9a Mon Sep 17 00:00:00 2001 From: Lion Arar Date: Mon, 20 Oct 2025 08:21:20 -0400 Subject: [PATCH] style: made changes to the translations --- src/i18n/en-ca/index.ts | 2 +- src/i18n/fr-ca/index.ts | 2 +- .../chatbot/components/conversation-box.vue | 16 ++++++++++++++++ src/modules/chatbot/services/messageService.ts | 6 ++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index 43db3d8..ce823cb 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -2,7 +2,7 @@ export default { chatbot: { chat_header: "AI Assistant", chat_initial_message: - "Welcome to your technical assistant.\nPlease provide the Client ID and \na description of the problem.", + "Welcome to your technical assistant.\nPlease provide the Customer ID to get a diagnostic report", chat_placeholder: "Enter a Message", chat_thinking: "Thinking...", }, diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 1d4246d..43c82fc 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -2,7 +2,7 @@ export default { chatbot: { chat_header: "Agent IA", chat_initial_message: - "Bienvenue à votre assistant technique.\nVeuillez fournir le ID du Client et \nune description du problème.", + "Bienvenue à votre assistant technique.\nVeuillez fournir le ID du Client pour avoir un diagnostique", chat_placeholder: "Entré un Message", chat_thinking: "Réflexion en cours...", }, diff --git a/src/modules/chatbot/components/conversation-box.vue b/src/modules/chatbot/components/conversation-box.vue index 79c869c..c028b40 100644 --- a/src/modules/chatbot/components/conversation-box.vue +++ b/src/modules/chatbot/components/conversation-box.vue @@ -139,6 +139,14 @@ watch([currentContext, userEmail, userRole], async ([ctx, email, role]) => { ); +const custId = ref('') +const handleCustomerId = async () => { + const cId = custId.value; + custId.value = ''; + await chatbotService.retrieveCustomerDiagnostics(cId); +} + + @@ -174,6 +182,14 @@ watch([currentContext, userEmail, userRole], async ([ctx, email, role]) => { style="margin-left: 8px;" @keyup.enter="handleSend" /> +
=> { + console.log("Frontend Service id retreived"); + const response = await api.get(`/chat/customer/${id}`); + return response.data; + }, };