Skip to content

fix: update the current folder when changing a resource field - #3948

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/current-folder-field-update
Oct 21, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/current-folder-field-update

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Current folder: updateResourceField in the resources store now also updates currentFolder when its id matches. Before, only the resource in the list was updated, so actions on the open folder itself kept their old state.
  • Result: Hide/Unhide and Add to/Remove from favorites in the breadcrumb menu show the new state right after the action, for personal folders, received shares (root and subfolders) and project spaces, on desktop and mobile. The sidebar star of the open folder follows too.
Before After
Hide Before: still Hide after hiding After: Unhide
Favorite Before: still Add to favorites After: Remove from favorites

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: resources store updates currentFolder for a matching id and leaves it alone otherwise; hide/unhide and favorite actions update the open folder
  • test case 2: browser: reproduced on main, fixed on this branch: hide/unhide of a received share and favorites of personal, share and space folders via the breadcrumb, desktop and Pixel 7; server state checked via Graph and WebDAV
  • test case 3: browser regression (same as main): row and batch hide/favorite, sync, tags, sharing from the sidebar, previews, version restore, quota, SSE updates in a second session; no console errors or failed requests

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 d46f099 into main Oct 21, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/current-folder-field-update branch October 21, 2026 10:17
@openclouders openclouders mentioned this pull request Oct 21, 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.

Breadcrumb actions on the open folder keep their old state after Hide or Add to favorites

2 participants