Skip to content

Commit a457737

Browse files
committed
qa
1 parent ef53870 commit a457737

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

K8S.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Change to the new folder:
4848
cd oci-generative-ai-jet-ui
4949
```
5050

51-
Install Node.js 16 on Cloud Shell.
51+
Install Node.js 18 on Cloud Shell.
5252

5353
```bash
5454
nvm install 18 && nvm use 18
@@ -130,6 +130,7 @@ Run `get deploy` a few times:
130130

131131
```bash
132132
kubectl get deploy -n backend
133+
kubectl get pods -n backend
133134
```
134135

135136
Wait for all deployments to be `Ready` and `Available`.

LOCAL.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# Run Local
1+
# Running Java Backend for Local Development
2+
3+
This guide provides step-by-step instructions for running the Java backend application locally for development purposes.
4+
5+
Prerequisites
6+
Ensure you have the following installed on your system:
7+
Java Development Kit (JDK) 11 or later
8+
Gradle 6.8 or later
9+
Oracle JDBC Driver (if using an Oracle database)
10+
Familiarize yourself with the project structure and configuration files.
211

312
## Run components
413

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "JETGenAI",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Sample Client app showing communication with OCI Generative AI services via Websocket",
55
"dependencies": {
66
"@oracle/oraclejet": "~16.1.0",

app/src/components/content/chat.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => {
6868
);
6969
};
7070

71+
const handleQuestionChange = (event: any) => {
72+
const newValue = event.detail.value.trim();
73+
if (newValue !== "") {
74+
questionChanged(event);
75+
question.current = ""; // Clear the input field after adding the question
76+
}
77+
};
78+
7179
return (
7280
<>
7381
<div class="oj-flex-item">
@@ -91,8 +99,8 @@ export const Chat = ({ testId, data, questionChanged, question }: Props) => {
9199
value={question?.current}
92100
placeholder="ask me anything..."
93101
aria-label="enter a question"
94-
onojValueAction={questionChanged}
102+
onojValueAction={handleQuestionChange}
95103
></oj-input-search>
96104
</>
97105
);
98-
};
106+
};

scripts/release.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ config.set("ocir_user_email", ocir_user_email);
5353
config.set("ocir_user_token", ocir_user_token);
5454

5555
await containerLogin(namespace, ocir_user, ocir_user_token, ocirUrl);
56-
await releaseWeb();
56+
// await releaseWeb();
5757
await releaseApp();
5858
await releaseBackend();
5959

0 commit comments

Comments
 (0)