Skip to content

[stable35] feat(files): bring back the Sidebar API - #64581

Merged
susnux merged 3 commits into
stable35from
backport/63488/stable35
Sep 20, 2026
Merged

susnux merged 3 commits into
stable35from
backport/63488/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 20, 2026

Copy link
Copy Markdown

Backport of #63488

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot Bot added enhancement 3. to review Waiting for reviews feature: file sidebar Related to the file sidebar component AI assisted team: Files Code maintained by 📁 Files team labels Sep 20, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.1 milestone Sep 20, 2026
Some apps have made use of the Files App Sidebar within their apps,
like photots for example.
This was dropped with Nextcloud 33 breaking those apps.

Its not really feasible to implement the sidebar everytime the same,
instead make it possible for apps to reuse the files sidebar again.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
The `files-main` and `files-sidebar` bundles both contain the sidebar
modules, because the Webpack build only shares modules from `node_modules`
between entry points. The data provider registered by the files app was
therefore invisible to `initializeSidebar()` in the `files-sidebar` bundle,
which rendered a second, standalone sidebar next to the one the files app
already renders - so `#app-sidebar-vue` existed twice.

Keep the data provider, the standalone provider and the mounted instance on
`OCA.Files.Sidebar._sharedState` instead, so every entry point sees the same
state - the same approach `getPinia()` already uses for the pinia instance.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the backport/63488/stable35 branch from a14f872 to bed76d0 Compare September 20, 2026 12:19
@susnux
susnux marked this pull request as ready for review September 20, 2026 12:23
@susnux
susnux requested review from a team and skjnldsv as code owners September 20, 2026 12:23
@susnux
susnux requested review from kristian-zendato and removed request for a team September 20, 2026 12:24
@Altahrim Altahrim mentioned this pull request Sep 20, 2026
@susnux
susnux merged commit 7562778 into stable35 Sep 20, 2026
103 of 104 checks passed
@susnux
susnux deleted the backport/63488/stable35 branch September 20, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted enhancement feature: file sidebar Related to the file sidebar component team: Files Code maintained by 📁 Files team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants