fmaclen / hollama

A minimal web-UI for talking to Ollama servers
https://hollama.fernando.is
MIT License
299 stars 24 forks source link

Delete confirmation has to be clicked twice #29

Closed fmaclen closed 1 month ago

fmaclen commented 4 months ago

It might be being fired twice. Actually, pressing ENTER once also confirms the alert once. The test is technically also confirming the alert once so 🤷‍♂️

image

binarynoise commented 2 months ago

I liked the way HuggingChat solved the deletion. Not easy to do on accident but easy to do on purpose.

also allows quick bulk deleting

fmaclen commented 2 months ago

@binarynoise I think I understand what you described but would you mind pasting a screenshot/s of HugginFace's delete flow so I can have as a reference? I'm not familiar with it.

binarynoise commented 2 months ago

grafik

grafik

grafik

grafik

and gone... as is my cursor in the screenshots, but I think you can still see where it hovers

fmaclen commented 2 months ago

I think this concept works, we should also probably replicate this behavior on the existing delete button.

If there's any chance you might be interested in submitting a PR, here's where the existing delete functionality exists:

binarynoise commented 1 month ago

No, sorry, I'm not familiar with your framework

fmaclen commented 1 month ago

Understood, I'll try to get it out soon

binarynoise commented 1 month ago

Thank you. It's not urgent though, the old button just works fine enough for now

fmaclen commented 1 month ago

:tada: This issue has been resolved in version 0.3.9 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

binarynoise commented 1 month ago

Looks and works great. Thanks for your work!

fmaclen commented 1 month ago

@binarynoise Thank you for the suggestion