Closed LyubomirT closed 8 months ago
Alright, thanks for pointing me in the right direction. I'll get to implement the changes when I return home (might take a little while since I'm a bit busy at the moment).
Alternatively, I can commit those changes for you (on your forked repo). They will be included in this PR.
Alternatively, I can commit those changes for you (on your forked repo). They will be included in this PR.
There is no need to do that. I've just created a new commit with the requested changes.
As stated in #4, a reset button will improve the overall experience and let the user wipe the chat without having to refresh the page. This Pull Request implements the button. You can find it close to the message box (on the left side), it looks like this:
It uses an icon from Material Icons Outlined. To wipe the chat, it removes all messages from the
messagesContainer
and clears thechatHistory
variable, while re-setting the chat to the default one in thechat
variable as well.Here's a little preview that shows how the button works:
https://github.com/faetalize/zodiac/assets/127299159/5c173126-e65c-40e6-b275-d2a07b304fbe
Please let me know if you have any questions or if you'd like anything to be changed!