Skip to content

fix: deselect hidden files when they get hidden - #3870

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/hidden-files-selection
Oct 20, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/hidden-files-selection

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Selection follows the visible list: turning "Show hidden files" off now removes hidden items from the selection, so the app bar count and batch actions only cover what is visible. Before, a batch delete after hiding also deleted the hidden files.
  • Keyboard and shift-click state: if the latest selected item or the shift-click anchor was a hidden item, both are reset, so arrow keys, Space and shift-click keep working after hiding.
  • One place for all views: the change lives in the resources store setter that the view options toggle calls, so folder views, the search results page and the trash bin are covered.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: hiding hidden files removes them from the selection, resets the latest selected item if it is hidden (and keeps it otherwise) and resets the shift-click anchor (fail without the fix)
  • test case 2: browser: select all with hidden files shown, hide them: main keeps 3 selected and a batch delete also removes the hidden file; with the fix 2 are selected and only the visible files are deleted (checked via WebDAV); same on the search results page
  • test case 3: browser: selection, keyboard navigation and shift-click after hiding, tiles view, Shared with me (hidden shares), trash bin

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)

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@AlexAndBear
AlexAndBear merged commit 65de2fc into main Oct 20, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/hidden-files-selection branch October 20, 2026 10:39
@openclouders openclouders mentioned this pull request Oct 20, 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.

Hidden files stay selected after hiding them

2 participants