rubyforgood / homeward-tails

Homeward Tails is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
69 stars 117 forks source link

Deleting a pet task does not update the list asap. #422

Closed atbalaji closed 10 months ago

atbalaji commented 10 months ago

Deleting a pet task does not update the list asap. It requires a page reload for UI to update. This may delete to user confusion and also cause double delete of a same task thus resulting in Content missing appear on the page (See at the end of the attached video)

https://github.com/rubyforgood/pet-rescue/assets/18101543/0089498b-8f42-472c-98b2-54ed0492dff8

Tomaszabc commented 10 months ago

Hi. I want to work on this issue.

atbalaji commented 10 months ago

Would it be good to have a controller testcase that pass only after this fix ?

Tomaszabc commented 10 months ago

Would it be good to have a controller testcase that pass only after this fix ?

Yes. That will be good. I will work on this and add tests also.

kasugaijin commented 10 months ago

Ah something has gone wrong with the turbo stream. Please keep this functionality dynamic i.e. fix the turbo stream.