feat(ui): (optional) Protect starred media from accidental deletion - #9458
Open
FloeHetling wants to merge 1 commit into
Open
feat(ui): (optional) Protect starred media from accidental deletion#9458FloeHetling wants to merge 1 commit into
FloeHetling wants to merge 1 commit into
Conversation
- new settings option: "Protect starred media" - when protection is enabled, following features will be active: * there will be impossible to delete an image or video with Star mark. If "Confirm on delete" is enabled, a warning toast will appear on said attempt (silent otherwise) * upon attempting to use "Delete Board, Images & Videos" option, additional confirmation will be issued if said board has at least one media item with Star mark * upon agreeing, marked media will be kept and moved to "Uncategorized", while the board and unmarked media will be deleted * upon attempting to delete a group selected of images or videos, media marked with Star will not be touched and a toast about protection status will be thrown if "Confirm on delete" is enabled (silent otherwise) * same behavior should be expected from "Delete All Uncategorized Images/Videos" option * protection is disabled by default and existing deletion clients keep the old behavior
FloeHetling
marked this pull request as ready for review
August 4, 2026 07:55
FloeHetling
requested review from
JPPhoto,
Pfannkuchensack,
blessedcoolant,
dunkeroni and
lstein
as code owners
August 4, 2026 07:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related Issues / Discussions
This is a complete re-work of #8406, done from scratch relying on latest unified gallery, video deletion and multi-user board changes.
QA Instructions
Careful. This test implies some of the images and videos can or will be eventually lost. For safety of your artwork, consider using testing environment
Merge Plan
No special merge plan should be needed. The feature was completely re-done from scratch on top of latest
maininstead of reusing the old implementation. Generated OpenAPI schema and frontend API types are included in the PR.Checklist
What's Newcopy (if doing a release after this PR)