From f574802340627e7f2d6c47879a7b40f183b3b996 Mon Sep 17 00:00:00 2001 From: Assaf Elovic Date: Tue, 29 Oct 2024 21:00:54 +0200 Subject: [PATCH 01/47] modified margins --- frontend/nextjs/app/page.tsx | 2 +- frontend/nextjs/components/Header.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/nextjs/app/page.tsx b/frontend/nextjs/app/page.tsx index 5af811970..899f0b6f5 100644 --- a/frontend/nextjs/app/page.tsx +++ b/frontend/nextjs/app/page.tsx @@ -395,7 +395,7 @@ export default function Home() { return ( <>
-
+
{!showResult && ( { return ( -
+
From 173e832e96868ebdec0fd1d2af38ef604ff8f877 Mon Sep 17 00:00:00 2001 From: Assaf Elovic Date: Thu, 31 Oct 2024 12:06:29 +0200 Subject: [PATCH 02/47] added starting boilderplate to ux --- frontend/nextjs/app/page.tsx | 2 +- frontend/nextjs/components/Footer.tsx | 6 ++++-- frontend/nextjs/components/Hero.tsx | 4 ++-- frontend/styles.css | 1 - 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/nextjs/app/page.tsx b/frontend/nextjs/app/page.tsx index 899f0b6f5..6ac6869b3 100644 --- a/frontend/nextjs/app/page.tsx +++ b/frontend/nextjs/app/page.tsx @@ -395,7 +395,7 @@ export default function Home() { return ( <>
-
+
{!showResult && ( { return ( - <> +
@@ -49,7 +51,7 @@ const Footer = ({ setChatBoxSettings, chatBoxSettings}: ChatBoxProps) => {
- +
); }; diff --git a/frontend/nextjs/components/Hero.tsx b/frontend/nextjs/components/Hero.tsx index eb21ddb83..2eee7acd5 100644 --- a/frontend/nextjs/components/Hero.tsx +++ b/frontend/nextjs/components/Hero.tsx @@ -21,7 +21,7 @@ const Hero: FC = ({
-

+

Say Goodbye to
= ({

{/* Input section */} -
+
Date: Fri, 1 Nov 2024 10:04:53 +0200 Subject: [PATCH 03/47] updated margins --- frontend/nextjs/components/Hero.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/nextjs/components/Hero.tsx b/frontend/nextjs/components/Hero.tsx index b25e2819a..9a75357eb 100644 --- a/frontend/nextjs/components/Hero.tsx +++ b/frontend/nextjs/components/Hero.tsx @@ -19,7 +19,7 @@ const Hero: FC = ({ return (
-
+

Say Goodbye to
From 8b525224fa097e8e943fb9c54ebb9d19b37e8a5a Mon Sep 17 00:00:00 2001 From: Assaf Elovic Date: Fri, 1 Nov 2024 10:25:05 +0200 Subject: [PATCH 04/47] fixed some ux issues --- frontend/nextjs/app/page.tsx | 2 +- frontend/nextjs/components/Footer.tsx | 8 +++----- frontend/nextjs/components/Header.tsx | 2 +- frontend/nextjs/components/Hero.tsx | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/nextjs/app/page.tsx b/frontend/nextjs/app/page.tsx index 86a310fb7..e60ffb3ec 100644 --- a/frontend/nextjs/app/page.tsx +++ b/frontend/nextjs/app/page.tsx @@ -414,7 +414,7 @@ export default function Home() { return ( <>
-
+
{!showResult && ( { return ( -
-
+ <> +
© {new Date().getFullYear()} GPT Researcher. All rights reserved. @@ -51,7 +49,7 @@ const Footer = ({ setChatBoxSettings, chatBoxSettings}: ChatBoxProps) => {
-
+ ); }; diff --git a/frontend/nextjs/components/Header.tsx b/frontend/nextjs/components/Header.tsx index 7ce3d8744..2ba6caff9 100644 --- a/frontend/nextjs/components/Header.tsx +++ b/frontend/nextjs/components/Header.tsx @@ -2,7 +2,7 @@ import Image from "next/image"; const Header = () => { return ( -
+
diff --git a/frontend/nextjs/components/Hero.tsx b/frontend/nextjs/components/Hero.tsx index 9a75357eb..997a45aff 100644 --- a/frontend/nextjs/components/Hero.tsx +++ b/frontend/nextjs/components/Hero.tsx @@ -19,7 +19,7 @@ const Hero: FC = ({ return (
-
+

Say Goodbye to
From b168e7ff8111cdf425394847fc8b3661758e8cbf Mon Sep 17 00:00:00 2001 From: Assaf Elovic Date: Fri, 1 Nov 2024 10:49:53 +0200 Subject: [PATCH 05/47] updated ux --- frontend/nextjs/components/InputArea.tsx | 33 +--- frontend/nextjs/components/Task/ImageModal.js | 90 ----------- .../nextjs/components/Task/ImageModal.jsx | 35 +++++ .../nextjs/components/Task/ImagesCarousel.js | 142 ------------------ .../nextjs/components/Task/ImagesCarousel.jsx | 73 +++++++++ .../nextjs/components/Task/ImagesGrid.jsx | 83 ++++++++++ .../nextjs/components/Task/LogMessage.tsx | 2 +- frontend/nextjs/tsconfig.json | 2 +- 8 files changed, 194 insertions(+), 266 deletions(-) delete mode 100644 frontend/nextjs/components/Task/ImageModal.js create mode 100644 frontend/nextjs/components/Task/ImageModal.jsx delete mode 100644 frontend/nextjs/components/Task/ImagesCarousel.js create mode 100644 frontend/nextjs/components/Task/ImagesCarousel.jsx create mode 100644 frontend/nextjs/components/Task/ImagesGrid.jsx diff --git a/frontend/nextjs/components/InputArea.tsx b/frontend/nextjs/components/InputArea.tsx index 783f6ba0a..1459dd94f 100644 --- a/frontend/nextjs/components/InputArea.tsx +++ b/frontend/nextjs/components/InputArea.tsx @@ -33,7 +33,7 @@ const InputArea: FC = ({ reset, }) => { const placeholder = handleSecondary - ? "Follow up questions..." + ? "Have any follow up questions?" : "What would you like to research next?"; const textareaRef = useRef(null); @@ -83,37 +83,6 @@ const InputArea: FC = ({ resetHeight(); }} > - {handleSecondary && ( -
{ - if (!disabled) { - e.preventDefault(); - if (reset) reset(); - handleSecondary(promptValue); - setPromptValue(''); // Clear prompt value - resetHeight(); - } - }} - > - {disabled && ( -
- -
- )} - - search -
- )}