Skip to content

feat(mobile): add confirmation dialogs to delete action buttons - #25113

Closed
ByteSizedMarius wants to merge 4 commits into
immich-app:feat/html-textfrom
ByteSizedMarius:feat/mobile-delete-confirmation-dialogs
Closed

ByteSizedMarius wants to merge 4 commits into
immich-app:feat/html-textfrom
ByteSizedMarius:feat/mobile-delete-confirmation-dialogs

Conversation

@ByteSizedMarius

@ByteSizedMarius ByteSizedMarius commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds confirmation dialogs to DeletePermanentActionButton to prevent accidental deletion. Addresses #19775.

When deleting photos/videos from grid view (multiselect), there's no confirmation dialog. This is particularly dangerous for locked folder content where deletion is permanent and irreversible. This is an opinionated change and open to discussion, but in my opinion, deletions (especially permanent, but also when sent to trash) should always have a confirmation.

Ref #25111

Changes

Add confirmation dialog to DeletePermanentActionButton. Permanent deletions should always shows a confirmation, so there is no parameter to toggle it off.

How Has This Been Tested?

  • Manual testing: Grid view multiselect → Delete Permanently → Confirmation dialog appears

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • [N/A] All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • [N/A] All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Please describe to which degree, if any, an LLM was used in creating this pull request.

Claude Code was used to assist with implementation.

@immich-push-o-matic

immich-push-o-matic Bot commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

Label error. Requires exactly 1 of: changelog:.*. Found: 📱mobile. A maintainer will add the required label.

Comment thread mobile/lib/presentation/widgets/action_buttons/delete_action_button.widget.dart Outdated
Comment thread i18n/en.json Outdated
Comment thread i18n/en.json Outdated
@ByteSizedMarius

This comment was marked as outdated.

@shenlong-tanwen

Copy link
Copy Markdown
Member

@ByteSizedMarius You can rebase this branch on top of #25739 which adds the ImmichHtmlText widget

@ByteSizedMarius
ByteSizedMarius changed the base branch from main to feat/html-text February 10, 2026 17:49
@ByteSizedMarius
ByteSizedMarius force-pushed the feat/mobile-delete-confirmation-dialogs branch 2 times, most recently from b86e854 to d96e0dc Compare February 10, 2026 17:55
@ByteSizedMarius
ByteSizedMarius force-pushed the feat/mobile-delete-confirmation-dialogs branch from d96e0dc to a5abd60 Compare February 10, 2026 18:01
shenlong-tanwen and others added 3 commits February 12, 2026 16:36
* feat: mobile ui showcase

* remove showcase from main app

* update fonts

* update code to be loaded from asset

* fix ci

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
@shenlong-tanwen

Copy link
Copy Markdown
Member

@ByteSizedMarius You might have to rebase this again. But probably best to do it after the html PR is merged onto main

@ByteSizedMarius
ByteSizedMarius force-pushed the feat/mobile-delete-confirmation-dialogs branch from a5abd60 to 4913569 Compare February 12, 2026 14:22
@ByteSizedMarius

Copy link
Copy Markdown
Contributor Author

@ByteSizedMarius You might have to rebase this again. But probably best to do it after the html PR is merged onto main

I may be reading your mind, was already in the process of doing this. That's ok, I can update again when it's merged :)

@alextran1502
alextran1502 deleted the branch immich-app:feat/html-text February 19, 2026 18:27
@ByteSizedMarius

Copy link
Copy Markdown
Contributor Author

Im guessing this was closed automatically with the base branch being merged? Please reopen @shenlong-tanwen

@shenlong-tanwen

shenlong-tanwen commented Feb 20, 2026 •

Copy link
Copy Markdown
Member

@ByteSizedMarius Not sure what happened there, As the PR was fairly small, Can you just open a new PR with the changes? Apologies and Thanks for the contribution

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants