Skip to content

[PB-7050]: feat/move photos to the trash - #2316

Open
xabg2 wants to merge 4 commits into
feat/PB-7050-photos-select-downloadfrom
feat/PB-7050-photos-move-to-trash
Open

xabg2 wants to merge 4 commits into
feat/PB-7050-photos-select-downloadfrom
feat/PB-7050-photos-move-to-trash

Conversation

@xabg2

@xabg2 xabg2 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Description

Selected photos can now be moved to the trash from the Photos header, next to Download. A photo can also be moved to the trash from the viewer, from its menu or with the same key as in Drive, which closes the viewer. The video of a Live Photo and every photo of a burst go to the trash with it.

It works like Drive: there is no confirmation, the photos leave the gallery right away and the notification offers Undo. If every photo loaded so far is trashed, the previous month is shown instead of the empty state. If moving to the trash fails, the photos stay in the gallery and stay selected.

Undo now puts every item back in the folder it came from. Before, all of them went back to the folder of the first one; for Photos that would have mixed the day folders the mobile app relies on. In Drive nothing changes when the items come from the same folder.

Related Issues

Jira: PB-7050 (parent PB-6876)

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

  • Unit tests cover moving selected photos to the trash with their related files, the photos leaving the gallery and the selection closing, Undo putting each file back in its own day folder and showing the photos again, a failed move, trashing every loaded photo, and moving to the trash from the viewer menu and with the keyboard. Undo is also covered for items of several folders and of one folder in Drive.
  • Checked locally in the browser: the trash action in the header and in the viewer menu. Moving real photos to the trash and undoing it is still to be checked.

Additional Notes

The page is still not linked from the sidebar.

@xabg2 xabg2 added the enhancement New feature or request label Nov 10, 2026
@xabg2 xabg2 self-assigned this Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 872ee655-1412-44ba-85e2-941313a62916

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6a7c36d
Status: ✅  Deploy successful!
Preview URL: https://6c13c1df.drive-web.pages.dev
Branch Preview URL: https://feat-pb-7050-photos-move-to.drive-web.pages.dev

View logs

@xabg2
xabg2 marked this pull request as ready for review November 12, 2026 08:05
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant