From b9ceecd11b7348fe1b9415ba55ae7011f957acf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20V=C4=A9nh=20Thi=E1=BB=87n=20Ph=C3=BAc?= Date: Fri, 6 Dec 2024 10:42:28 +0700 Subject: [PATCH] MARP-1546 Handle Feedbacks --- .../vertexai/chatWithAi/chatWithAi.xhtml | 17 ++++++++++++++--- .../webContent/layouts/styles/chatwithai.css | 16 +++++++++++++++- .../utils/GeminiDataRequestServiceUtils.java | 2 +- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml b/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml index b82357a..2ae4425 100644 --- a/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml +++ b/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml @@ -13,9 +13,20 @@ - - + +
+ + +
+
+
+ +
diff --git a/vertexai-google-demo/webContent/layouts/styles/chatwithai.css b/vertexai-google-demo/webContent/layouts/styles/chatwithai.css index ef81f0c..2a22670 100644 --- a/vertexai-google-demo/webContent/layouts/styles/chatwithai.css +++ b/vertexai-google-demo/webContent/layouts/styles/chatwithai.css @@ -55,4 +55,18 @@ display: flex; justify-content: space-between; margin-top: 10px; -} \ No newline at end of file +} + +.cancel-error-dialog-button { + display: flex; + justify-content: flex-end; +} + +.icon-error-message { + display: flex; + align-items: center; + gap: 10px; +} + +.error-message { + font-size: 14px; \ No newline at end of file diff --git a/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java b/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java index c57d13a..546abc3 100644 --- a/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java +++ b/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java @@ -31,7 +31,7 @@ public class GeminiDataRequestServiceUtils { public static InputStream getInputStream(String keyFilePath) throws IOException { if (StringUtils.isBlank(keyFilePath)) { - throw new IOException("VertexAi credential file path is empty"); + throw new IOException("Vertex AI credential file path is missing. Please provide it and try again!"); } try {