faetalize / zodiac

A ⚡lightweight⚡ frontend for Google's Gemini Pro.
https://zodiac.faetalize.dev/
GNU General Public License v3.0
68 stars 18 forks source link

"Reset" button for chats #5

Closed LyubomirT closed 8 months ago

LyubomirT commented 8 months ago

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:

image

It uses an icon from Material Icons Outlined. To wipe the chat, it removes all messages from the messagesContainer and clears the chatHistory variable, while re-setting the chat to the default one in the chat 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!

LyubomirT commented 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).

faetalize commented 8 months ago

Alternatively, I can commit those changes for you (on your forked repo). They will be included in this PR.

LyubomirT commented 8 months ago

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.