pinacai / PINAC_Workspace

OpenSource & Cross-Platform alternative of "Copilot for Windows"
GNU General Public License v3.0
17 stars 23 forks source link

added typing animations for AI sent messages #19

Closed DevanshArora312 closed 1 month ago

DevanshArora312 commented 1 month ago

This PR was initially exclusively meant as enhancement for typing animations but since it created a separate state in AiMessage component it also fixed the duplicate message issue to some extent.

  1. Created typing animations.
  2. Added few state variables and a new useEffect hook to manage lifecycle.
  3. Duplicate text issue more or less solved , however continuously sending multiple messages without waiting for response may lead to duplicate response.
RajeshTechForge commented 1 month ago

I have added code to disable the buttons until the AI response is displayed, but it seems not to be working. We need to fix this so that users cannot send any messages until the AI response is displayed.

And if you are using PINAC-Nexus, you would report any issue you face.

DevanshArora312 commented 1 month ago

The disable issue may be easy to work out with some testing, I have some ideas about it, will update after testing it. And I am using PINAC-Nexus but I'm not really familiar with how models work, hence I was unable to set it up properly, so i was just emulating response after making the program sleep for some seconds.