eyra / mono

Next platform repo
https://eyra.co
GNU Affero General Public License v3.0
7 stars 5 forks source link

High risk of accidental deletion of second project study #959

Open TjerkNan opened 2 months ago

TjerkNan commented 2 months ago

Describe the bug When deleting a study/project item, the second study on the right will slide under your cursor, and since the project item edit mode is activated on this second item, you are one click away from deleting this second item. Video explains it better.

To Reproduce Steps to reproduce the behavior:

  1. Create multiple studies in a project
  2. Press the tripple dots and delete the left-most project
  3. Observe that the project to the right is now under your cursor and if you click, you'll hit the delete button again, deleting the second project.

Expected behavior After deleting a project item, the project item 'edit mode' is reset so you won't accidentally delete a second item.

PLEASE NOTE THAT deleting a project doesn't ask for confirmation still and I consider this high-risk myself. I know we want to archive projects, not delete them (with exceptions) but in the mean time I would advocate to add the dialog unless the archive feature is implemented within this release.

Screenshots https://github.com/user-attachments/assets/dc8ea0d1-7d18-4bdf-a9e9-fc55ffd98a81