Skip to content

fix: stop the shares panel loader when loading the shares fails - #4203

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/shares-panel-load-error
Nov 4, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/shares-panel-load-error

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

When loading the shares of a resource fails, the Shares panel no longer spins forever: the loader stops, an error toast shows, and no shares of a previously selected resource are left over. Closing and reopening the sidebar loads the shares again.

Choosing "Share" again while the sidebar is still open doesn't retry yet, since the action doesn't change the sidebar state. Reopening the sidebar or selecting another item does.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: useLoadShares resets loading and clears the shares on failure; FileSideBar shows the error, allows loading the same resource again and stays quiet for cancelled loads
  • test case 2: browser: failing/aborted permissions request (desktop and Pixel 7), recovery by reopening the sidebar, quick switching between resources, inherited shares after a failure

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 7bc2d25 into main Nov 4, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/shares-panel-load-error branch November 4, 2026 13:23
@openclouders openclouders mentioned this pull request Nov 4, 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.

Shares panel keeps loading forever when loading the shares fails

2 participants