arc53 / DocsGPT

Chatbot for documentation, that allows you to chat with your data. Privately deployable, provides AI knowledge sharing and integrates knowledge into your AI workflow
https://app.docsgpt.cloud/
MIT License
14.95k stars 1.59k forks source link

[feature]: add option to stop/cancel a processing request #379

Open adeyinkaezra123 opened 1 year ago

adeyinkaezra123 commented 1 year ago

Description

The DocsGPT web app does not currently offer the option to cancel a question that is currently being processed, without the need to wait for one request to finish before making another.

Implementation

I have gone through the Figma design file and unfortunately, there is currently no existing design for the feature specified above. For improved user experience, (and for the conservation of valuable screen real estate), I am proposing to convert the text input box into the stop button as seen in these images below 👇

Input state image

Cancel request state image

I'd start working on this feature as soon as this issue is approved

dartpain commented 1 year ago

@tenokami Check this out please, what do you think. Think it will be useful to be able to cancel a request, what are your thoughts on UI

tenokami commented 1 year ago

image

tenokami commented 1 year ago

By the way. I would like for the "..." at the end of "generating" to be animated and moving like: . .. ... . .. ...

tenokami commented 1 year ago

@adeyinkaezra123 I've updated figma with hover states:

https://www.figma.com/file/OXLtrl1EAy885to6S69554/DocsGPT?type=design&node-id=0%3A1&mode=design&t=Ua5UVmNvlLdOmhIb-1

image image

adeyinkaezra123 commented 1 year ago

Okay cool, Would factor in these changes 👍