Skip to content

Conversation

felix-schwarz
Copy link
Contributor

Description

If an item is being deleted while being viewed, the viewer shows a "Item removed" message and - if it is the only file being viewed and the viewer is not the only item in the browser history - "closes" the viewer by removing it from history.

Related Issue

#1484

Screenshots (if appropriate):

"Item removed" view  
Simulator Screenshot - iPhone 16e - 2025-08-30 at 21 41 19  

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

- fix formatting and update code style in OCItem.didSet
- add .itemRemovedView and .hasBeenRemoved properties to manage showing an "Item removed" message when the item was removed while being viewed
- handle .targetHasBeenRemoved item query state and trigger:
	- displaying an "Item removed" message by setting .hasBeenRemoved
	- if its the only item and the browser history has more items to show: remove the display view controller and its host from history, effectively going back to the previous view controller
@felix-schwarz felix-schwarz requested review from hosy and jesmrec August 30, 2025 19:56
@felix-schwarz felix-schwarz self-assigned this Aug 30, 2025
@felix-schwarz felix-schwarz linked an issue Aug 30, 2025 that may be closed by this pull request
@jesmrec
Copy link
Contributor

jesmrec commented Sep 9, 2025

Approved on my side 👍

@jesmrec jesmrec added the Approved by QA Approved by QA label Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved by QA Approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Delete file from preview
3 participants