Skip to content

feat(files): bring back the Sidebar API - #63488

Merged
susnux merged 3 commits into
masterfrom
feat/sidebar-api
Sep 20, 2026
Merged

susnux merged 3 commits into
masterfrom
feat/sidebar-api

Conversation

@susnux

@susnux susnux commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

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.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added enhancement 3. to review Waiting for reviews feature: file sidebar Related to the file sidebar component team: Files Code maintained by 📁 Files team labels Aug 22, 2026
@susnux susnux added this to the Nextcloud 35 milestone Aug 22, 2026
@susnux
susnux marked this pull request as ready for review August 22, 2026 17:46
@susnux
susnux requested review from a team and skjnldsv as code owners August 22, 2026 17:46
@susnux
susnux requested review from kristian-zendato and sorbaugh and removed request for a team August 22, 2026 17:46

@CarlSchwan CarlSchwan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice this was also an issue in maps

@AndyScherzinger AndyScherzinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💙

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>
@susnux
susnux requested a review from a team as a code owner September 19, 2026 17:28
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 merged commit d71d12e into master Sep 20, 2026
86 checks passed
@susnux
susnux deleted the feat/sidebar-api branch September 20, 2026 12:06
@susnux

susnux commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable35

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.

4 participants