From 7f81691ee0fe39be0748a652b64a44639ce55def Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Thu, 2 Mar 2023 08:03:38 +0530 Subject: [PATCH 1/4] fixes 3 from Nick's list --- frontend/src/Hero.tsx | 6 ++-- frontend/src/conversation/Conversation.tsx | 32 ++++++++++++---------- frontend/tailwind.config.cjs | 3 +- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index ed2db207..63840b96 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -4,15 +4,15 @@ export default function Hero({ className = '' }: { className?: string }) {

DocsGPT 🦖

-

+

Welcome to DocsGPT, your technical documentation assistant!

-

+

Enter a query related to the information in the documentation you selected to receive and we will provide you with the most relevant answers.

-

+

Start by entering your query in the input field below and we will do the rest!

diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index fffe012d..b6230f19 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -31,20 +31,24 @@ export default function Conversation() { return (
-
- {messages.map((message, index) => { - return ( - - ); - })} - {messages.length === 0 && } -
+ {messages.length && ( +
+ {messages.map((message, index) => { + return ( + + ); + })} +
+ )} + {messages.length === 0 && }
Date: Thu, 2 Mar 2023 08:42:42 +0530 Subject: [PATCH 2/4] 6 from nick's list --- frontend/src/About.tsx | 5 ++++- frontend/src/Hero.tsx | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/About.tsx b/frontend/src/About.tsx index 84123b52..93548460 100644 --- a/frontend/src/About.tsx +++ b/frontend/src/About.tsx @@ -6,7 +6,10 @@ export default function About() { //Parent div for all content shown through App.tsx routing needs to have this styling. Might change when state management is updated.
-

About DocsGPT 🦖

+
+

About DocsGPT

+

🦖

+

Find the information in your documentation through AI-powered -

- DocsGPT 🦖 -

+
+

DocsGPT

+

🦖

+

Welcome to DocsGPT, your technical documentation assistant!

From dae6fa32c73331f4dbca12b082adad171df941b4 Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Thu, 2 Mar 2023 08:58:52 +0530 Subject: [PATCH 3/4] fixes 7 from Nick's list --- frontend/src/About.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/About.tsx b/frontend/src/About.tsx index 93548460..13d18a25 100644 --- a/frontend/src/About.tsx +++ b/frontend/src/About.tsx @@ -3,9 +3,8 @@ export default function About() { return ( - //Parent div for all content shown through App.tsx routing needs to have this styling. Might change when state management is updated.
-
+

About DocsGPT

🦖

From 9b668e1b13a824dcb9d9f57549484d5b5718ef15 Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Thu, 2 Mar 2023 09:10:35 +0530 Subject: [PATCH 4/4] typo bug fix --- 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 b6230f19..f9763665 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -31,7 +31,7 @@ export default function Conversation() { return (
- {messages.length && ( + {messages.length > 0 && (
{messages.map((message, index) => { return (