You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand this is a user story and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
User Story
As someone who has some images stored on an Opencloud instance, I want to view them in the image viewer and delete them directly in the viewer so that I can e. g. compare similar images and just keep the best of them.
User Value
A more direct way to delete images while viewing them avoids accidental wrong deletions that could happen when I had to leave the viewer, then find the image and delete it.
file gets removed from activeFiles in app wrapper (technical note: computed as wrapper around activeResources in useAppFolderHandling.ts, where delete queue and deleted files are filtered out)
If another file exists that can be opened via the preview app, open that file (next file, which automatically cycles to the first if there is no next file anymore).
If no such file exists, close the preview app and return to the file list / search results page
e2e happy path test:
upload 3 images
open second image in preview app
delete current image
check that preview app navigates to third image and only 2 images are left
delete current image
check that preview app navigates to first image and only 1 image is left
delete current image
check that preview app closes and navigates back to folder in files app
I tried to implement that some weeks ago. Quite hard archivable as a clean solution, since we can't await the delete operation (web workers), the result is that we can't quite react on the result and call the aftermath actions synchronously, e.G close the app after(!) the file has been successfully deleted and render the files list without the deleted file.
Thinking about this, can't we just trigger the deletion and then leave the editor/navigate to another image? There is a deletion queue in the resource store, we just need to make sure the file gets added there so its properly marked in the resource table/excluded in the preview app.
Activity
tbsbdr commentedon Apr 22, 2025
User Story
User Value
Acceptance Criteria
Add a delete option to:
the bottom toolbar (as the last item)<- to be discussed, as every other action in the toolbar is not persistentAfter clicking delete:
activeFilesin app wrapper (technical note: computed as wrapper aroundactiveResourcesinuseAppFolderHandling.ts, where delete queue and deleted files are filtered out)e2e happy path test:
Visuals
AlexAndBear commentedon Apr 22, 2025
I tried to implement that some weeks ago. Quite hard archivable as a clean solution, since we can't await the delete operation (web workers), the result is that we can't quite react on the result and call the aftermath actions synchronously, e.G close the app after(!) the file has been successfully deleted and render the files list without the deleted file.
JammingBen commentedon Apr 23, 2025
Thinking about this, can't we just trigger the deletion and then leave the editor/navigate to another image? There is a deletion queue in the resource store, we just need to make sure the file gets added there so its properly marked in the resource table/excluded in the preview app.
AlexAndBear commentedon Apr 23, 2025
As fas as I remember correctly we don't have a current folder in the app context, that's why the deleted resource wasn't tracked in the files list
JammingBen commentedon Apr 23, 2025
But that's where the delete queue comes in, I don't think this needs a folder context.