Skip to content

fix: keep the list filters when stepping through files in the preview - #4246

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/preview-list-filters
Nov 6, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/preview-list-filters

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

A preview opened from filtered search results or a filtered Favorites list now only counts and steps through the files the list shows, instead of also showing files the filter hides. This includes searches with only a filter and no term, like clicking a tag.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: one shared mapping from the search query to the search term, the preview reruns the search with all filters (also without a term), the favorites loader uses the list's filters in the preview
  • test case 2: browser: search with media type, tag-only, scope and other filters and filtered Favorites keep the preview counter and next/previous in line with the list (desktop and Pixel 7); folder previews, the search bar dropdown and closing the preview back to the filtered list unchanged

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 80be1d3 into main Nov 6, 2026
30 checks passed
@AlexAndBear
AlexAndBear deleted the fix/preview-list-filters branch November 6, 2026 10:54
@openclouders openclouders mentioned this pull request Nov 6, 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.

Preview from a filtered list steps through files the filter hides

2 participants