From a4577378d9619e6f1423c3a71338eb0eb78c5565 Mon Sep 17 00:00:00 2001 From: Wojciech Pluta <60693402+WSPluta@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:08:51 +0000 Subject: [PATCH 1/5] qa --- K8S.md | 3 ++- LOCAL.md | 11 ++++++++++- app/package.json | 2 +- app/src/components/content/chat.tsx | 12 ++++++++++-- scripts/release.mjs | 2 +- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/K8S.md b/K8S.md index 910fb93e..ba4e3bc8 100644 --- a/K8S.md +++ b/K8S.md @@ -48,7 +48,7 @@ Change to the new folder: cd oci-generative-ai-jet-ui ``` -Install Node.js 16 on Cloud Shell. +Install Node.js 18 on Cloud Shell. ```bash nvm install 18 && nvm use 18 @@ -130,6 +130,7 @@ Run `get deploy` a few times: ```bash kubectl get deploy -n backend +kubectl get pods -n backend ``` Wait for all deployments to be `Ready` and `Available`. diff --git a/LOCAL.md b/LOCAL.md index d97c2359..0c3f1134 100644 --- a/LOCAL.md +++ b/LOCAL.md @@ -1,4 +1,13 @@ -# Run Local +# Running Java Backend for Local Development + +This guide provides step-by-step instructions for running the Java backend application locally for development purposes. + +Prerequisites +Ensure you have the following installed on your system: +Java Development Kit (JDK) 11 or later +Gradle 6.8 or later +Oracle JDBC Driver (if using an Oracle database) +Familiarize yourself with the project structure and configuration files. ## Run components diff --git a/app/package.json b/app/package.json index 53c11b5a..3efef792 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "JETGenAI", - "version": "1.0.0", + "version": "1.0.1", "description": "Sample Client app showing communication with OCI Generative AI services via Websocket", "dependencies": { "@oracle/oraclejet": "~16.1.0", diff --git a/app/src/components/content/chat.tsx b/app/src/components/content/chat.tsx index 2ad52692..cfa51684 100644 --- a/app/src/components/content/chat.tsx +++ b/app/src/components/content/chat.tsx @@ -68,6 +68,14 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => { ); }; + const handleQuestionChange = (event: any) => { + const newValue = event.detail.value.trim(); + if (newValue !== "") { + questionChanged(event); + question.current = ""; // Clear the input field after adding the question + } + }; + return ( <>