Skip to content

fix: remove removed resources from the selection - #4168

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/prune-selection-on-remove
Nov 5, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/prune-selection-on-remove

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Items that another session deletes or moves away now also leave the selection, so "Select all" no longer shows as checked with nothing selected, a restored item doesn't come back already selected, and a shift-click doesn't start from a removed anchor.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: removed resources leave the selection and the latest selected / shift anchor, unselected removals keep the selection, hidden files reuse the same logic, scrollTo is still removed on local delete
  • test case 2: browser: external delete, restore and move of selected items, local delete with scrollTo, shift-click after a removed anchor, hidden files toggle, select all and batch actions, desktop and Pixel 7 (share flows skipped, the test backend can't create shares)

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 2a7162c into main Nov 5, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/prune-selection-on-remove branch November 5, 2026 06:54
@openclouders openclouders mentioned this pull request Nov 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Items removed by another session stay in the selection

2 participants