Commit Graph

49 Commits

Author SHA1 Message Date
Eng Zer Jun
0efc2277dd refactor(frontend): simplify JSX conditional rendering
JSX conditional rendering can be simplified to use the logical AND
operator (&&) [1] instead of ternary operator (? :) if we want to render
something only when the conditon is true, and nothing otherwise.

[1]: https://react.dev/learn/conditional-rendering#logical-and-operator-

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-14 13:39:23 +08:00
hariraghav10
f835b14902 added autofocus for user chat input 2023-10-10 17:22:10 +05:30
hariraghav10
e48df87e06 added autofocus feature for chat input div 2023-10-10 17:04:05 +05:30
Alex
e95bc82b8e Update Conversation.tsx 2023-10-08 23:30:21 +01:00
Alex
e108833db2 Merge branch 'main' into input-hidden-issue-#474 2023-10-08 23:19:35 +01:00
Soumyadipto Pal
823b41b7ec Merge branch 'main' into newBranch2 2023-10-08 23:53:35 +05:30
SoumyadiptoPal
16a2b3b19b Rounded the components to 3xl 2023-10-08 23:48:49 +05:30
staticGuru
396697ead2 Query overlay text input issues 2023-10-08 17:36:57 +05:30
staticGuru
36528fceab add issue fixes 2023-10-07 12:20:47 +05:30
staticGuru
8323b8af4d Reset the input hidden issues 2023-10-07 12:13:05 +05:30
staticGuru
0e496181a1 Fix the question input hidden issue 2023-10-07 12:03:43 +05:30
staticGuru
f47fc7a484 add the additional div in the chat sections 2023-10-07 11:39:51 +05:30
ratishjain
f0e87094d6 fixed homepage 2023-10-05 23:24:09 +05:30
Alex
30299a9f04 Merge pull request #434 from QuantuM410/quantum410/frontend-placeholder
Added css attribute placeholder for search div
2023-10-05 15:55:00 +01:00
QuantuM410
70aa3b1ff1 Added css attribute placeholder for search div 2023-10-05 20:01:30 +05:30
Arnab Ghosh
e95e084956 Fixed Empty Spaces Passed in the Input Field 2023-10-04 20:54:25 +05:30
Alex
af0e6481f8 Update Conversation.tsx 2023-10-01 21:57:12 +01:00
Hiren Chauhan
153b5c028b feat(ui): add scroll to bottom button
This will show the scroll to bottom button when user scrolls to top from the last message.

Closes #170
2023-10-02 00:15:31 +05:30
Alex
87cc3cf168 fix the styling in a box 2023-08-05 21:58:54 +01:00
Alex
610adcbefc Sources in responses 2023-06-11 22:56:34 +01:00
Alex
f8910ba136 Added history in streaming convo + fixed little bug with message margins on loading state 2023-05-31 23:47:16 +01:00
Alex
e6f1c7d0c3 mobile more space 2023-03-27 21:50:54 +01:00
ajaythapliyal
a888f38afb wires up the feedback event handler with redux storie 2023-03-06 23:02:15 +05:30
ajaythapliyal
533053f66f adds click event to the like/dislike icon 2023-03-06 08:32:57 +05:30
ajaythapliyal
19f807b6c4 refactors the conversation model from singular messages to queries
consisting of prompt and response
2023-03-05 16:29:10 +05:30
TaylorS15
d14438bf54 navigation changes/bugfix
fixed chats being visible under text below chat box
2023-03-03 16:15:35 -05:00
ajaythapliyal
9b668e1b13 typo bug fix 2023-03-02 09:10:35 +05:30
ajaythapliyal
7f81691ee0 fixes 3 from Nick's list 2023-03-02 08:03:38 +05:30
ajaythapliyal
998c4688b0 hover effect on send icon 2023-02-28 09:07:45 +05:30
ajaythapliyal
34fb20ce12 increases the bottom margin of conversation UI so that latest message
shows up above the input
2023-02-27 07:49:18 +05:30
ajaythapliyal
f703b89c00 disables chat scroll when nav state is modified 2023-02-27 07:31:02 +05:30
ajaythapliyal
b4a4007f66 word wrap fix 2023-02-26 20:04:55 +05:30
ajaythapliyal
2348848c18 this fixes 5 from nick's list 2023-02-26 17:19:35 +05:30
ajaythapliyal
df9472d04c increases line height to center the text in input 2023-02-26 08:49:53 +05:30
Alex
6eef53cb1b API conversation 2023-02-25 13:36:03 +00:00
Alex
1c10c95114 Merge branch 'main' into fe-fixed 2023-02-25 11:43:53 +00:00
TaylorS15
2571a12d1e points 14 and 15 2023-02-25 04:13:12 -05:00
ajaythapliyal
63af495693 incorporates 13 from Nicks list 2023-02-25 11:11:15 +05:30
ajaythapliyal
4bc1a87fcf preserves whitespaces and newlines in message 2023-02-25 08:43:00 +05:30
Alex
e465daf848 small fixes 2023-02-24 14:34:02 +00:00
ajaythapliyal
9d13034b7a pushing Hero down a bit and adding active states in routed links 2023-02-24 16:41:58 +05:30
ajaythapliyal
d1d478ea29 fixes chatbubble padding 2023-02-24 09:33:18 +05:30
ajaythapliyal
3e20e4dc67 fixes .6 from nicks list 2023-02-24 09:25:03 +05:30
ajaythapliyal
2bfba4cce8 fixes 2 from nicks list 2023-02-24 08:13:21 +05:30
ajaythapliyal
a036a6b979 Adds mock conversation api layer, adds reducers to handle various asyc
state and wires it with conversation UI
2023-02-20 09:04:24 +05:30
ajaythapliyal
e40eb53b7a hooks up the redux conversation state with conversation UI 2023-02-19 11:55:38 +05:30
ajaythapliyal
5b456cda16 adds conversation slice and acomoddates conversation component with the
data types
2023-02-19 10:36:26 +05:30
ajaythapliyal
10ac36ee7b simplifies the APIKeyModal communication and state management, adds
conversation components
2023-02-18 16:52:14 +05:30
ajaythapliyal
cb50795ac1 reorganizes the code, introduces preference slice 2023-02-18 00:58:04 +05:30