From 5cbf4cf352048761527c717caf9addc946bb4e2a Mon Sep 17 00:00:00 2001 From: utin-francis-peter Date: Fri, 28 Jun 2024 14:24:34 +0100 Subject: [PATCH 1/7] style fix: padding and radius of question bubble --- frontend/src/conversation/ConversationBubble.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 3a3842b2..3e515bf6 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -42,7 +42,7 @@ const ConversationBubble = forwardRef< bubble = (
-
+
{message} From d4375217109f4eea74e907ac99ef37268c9a043d Mon Sep 17 00:00:00 2001 From: utin-francis-peter Date: Fri, 28 Jun 2024 14:45:14 +0100 Subject: [PATCH 2/7] style fix: response bubble padding and radius --- frontend/src/conversation/ConversationBubble.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 3e515bf6..c82b5e69 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -68,7 +68,7 @@ const ConversationBubble = forwardRef< />
Date: Fri, 28 Jun 2024 15:16:55 +0100 Subject: [PATCH 3/7] style fix: gap between conversations wrapper and prompts input wrapper --- frontend/src/conversation/Conversation.tsx | 6 +++--- frontend/src/conversation/ConversationBubble.tsx | 2 +- frontend/src/index.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 4fb34186..d9088153 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -191,11 +191,11 @@ export default function Conversation() { }; return ( -
+
{queries.length > 0 && !hasScrolledToLast && (
-
+
Date: Fri, 28 Jun 2024 20:19:01 +0100 Subject: [PATCH 4/7] style: spacings... --- frontend/src/Hero.tsx | 2 +- frontend/src/conversation/Conversation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 904dd279..b74d22f2 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -19,7 +19,7 @@ export default function Hero({ }>; return (
diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index d9088153..964c5c8f 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -191,7 +191,7 @@ export default function Conversation() { }; return ( -
+
Date: Tue, 2 Jul 2024 19:48:19 +0100 Subject: [PATCH 5/7] gap between y-borders and prompts input + border-radius reduction as prompts input grows --- frontend/src/conversation/Conversation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 964c5c8f..487e8ea7 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -235,7 +235,7 @@ export default function Conversation() {
-
+
Date: Wed, 3 Jul 2024 13:25:47 +0530 Subject: [PATCH 6/7] fix: lint error - semantic ambiguity --- frontend/package-lock.json | 4 +++- frontend/package.json | 1 + frontend/src/upload/Upload.tsx | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 295713e6..83e0a930 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -11,6 +11,7 @@ "@reduxjs/toolkit": "^1.9.2", "@vercel/analytics": "^0.1.10", "i18next": "^23.11.5", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-copy-to-clipboard": "^5.1.0", "react-dom": "^18.2.0", @@ -1488,7 +1489,7 @@ "version": "18.0.10", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.10.tgz", "integrity": "sha512-E42GW/JA4Qv15wQdqJq8DL4JhNpB3prJgjgapN3qJT9K2zO5IIAQh4VXvCEDupoqAwnz0cY4RlXeC/ajX5SFHg==", - "devOptional": true, + "dev": true, "dependencies": { "@types/react": "*" } @@ -6606,6 +6607,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "license": "MIT", "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", diff --git a/frontend/package.json b/frontend/package.json index ebcbb3fe..5f7a11d8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,6 +22,7 @@ "@reduxjs/toolkit": "^1.9.2", "@vercel/analytics": "^0.1.10", "i18next": "^23.11.5", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-copy-to-clipboard": "^5.1.0", "react-dom": "^18.2.0", diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 0360e2e5..2a1b51a9 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -55,7 +55,7 @@ function Upload({ } }, []); - function ProgressBar({ progress }: { progress: number }) { + function ProgressBar({ progressPercent }: { progressPercent: number }) { return (
- {progress >= 5 && `${progress}%`} + {progressPercent >= 5 && `${progressPercent}%`}
@@ -93,7 +93,7 @@ function Upload({ {/*

{progress?.percentage || 0}%

*/} {/* progress bar */} - +