Conversation
These enables users to preview and reference previous chat messages easily by fetching the names of previous chats and allowing users to select a chat from the list. Once a chat is selected, the code fetches and displays the messages of the selected chat, allowing users to review and refer to earlier parts of the conversation.
jwafu
left a comment
There was a problem hiding this comment.
looking great, going to test really quick before merging but then should be good. looks great from this end
| const [chatSelected, setChatSelected] = useState('-- no chat selected --'); | ||
| const [chatInputData, setData] = useState(''); | ||
| const [message, setMessage] = useState<string>(''); | ||
| const [chats, setChats] = useState<string[]>([]); // State variable to store chat names |
|
Looks like there is a bit of visual challenge here, would you mind looking into this? @RohanMishra315 |
| // Function to handle chat selection | ||
| const handleChatSelection = (index: number) => { | ||
| setCurrentChatIndex(index); | ||
| setChatSelected(chats[index]); |
There was a problem hiding this comment.
it looks like this is working properly, but we need to do a little bit of work to the UI so that all of the other chats are are not showing with buttons as well. let me know what you are able to find 😄
There was a problem hiding this comment.
OK,I'll look into that
There was a problem hiding this comment.
I'd recommend just making the top bar that shows all the conversations scrollable. Set a max width and then allow a user to scroll horizontally 👍
|
Hey @RohanMishra315 could I get an update from you on the status of this pr? |

PULL REQUEST
DESCRIPTION
These enables users to preview and reference previous chat messages easily by fetching the names of previous chats and allowing users to select a chat from the list. Once a chat is selected, the code fetches and displays the messages of the selected chat, allowing users to review and refer to earlier parts of the conversation.
CHANGES MADE
This PR fixes ##59