Skip to content

Delete images from within the viewer #576

Closed

Description

@fwinn

Initial Checklist

  • 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.

Acceptance Criteria

The image can be deleted within the image viewer.

Activity

  1. tbsbdr commented on Apr 22, 2025

    @tbsbdr
    Member

    User Story

    • As a user who sorts out photos I want to delete photos from within the preview so that I don't need to switch back to the files list.

    User Value

    • increase efficiency
    • improve user flow

    Acceptance Criteria

    • Add a delete option to:

    • After clicking delete:

      • 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

    Visuals

    Image

  2. moved this from Qualification to Backlog in OpenCloud Team Boardon Apr 22, 2025
  3. AlexAndBear commented on Apr 22, 2025

    @AlexAndBear
    Member

    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.

  4. JammingBen commented on Apr 23, 2025

    @JammingBen
    Member

    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.

  5. AlexAndBear commented on Apr 23, 2025

    @AlexAndBear
    Member

    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

  6. JammingBen commented on Apr 23, 2025

    @JammingBen
    Member

    But that's where the delete queue comes in, I don't think this needs a folder context.

  7. self-assigned this
    on Apr 23, 2025
  8. moved this from Backlog to In Progress in OpenCloud Team Boardon Apr 30, 2025
  9. self-assigned this
    on Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions