docs(dev): the viewer is a library, not an app - #15597
Open
skjnldsv wants to merge 1 commit into
Open
Conversation
Contributor
📖 Documentation Preview📄 4 changed documentation pagesLast updated: Wed, 09 Sep 2026 18:04:33 GMT |
This was referenced Sep 9, 2026
The viewer app is gone from Nextcloud 36 and ships as @nextcloud/viewer. The manual still documented the app's own API: the LoadViewer event apps dispatched to ask it to load itself, and a development setup that cloned its repository, which is no longer needed now that every alwaysEnabled app lives in the server tree. The release notes gain what an app has to change: registering a handler, opening the viewer through getViewer() rather than OCA.Viewer, and the enabled preview providers, which moved from an initial state the app provided to core.previews.enabled_providers, documented with the other capabilities. Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
skjnldsv
force-pushed
the
feat/dev/viewer-becomes-a-library
branch
from
September 9, 2026 17:58
617d2d7 to
52408a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☑️ Resolves
viewerappThe viewer ships as
@nextcloud/viewernow, so the manual documented an app that will not be there:\OCA\Viewer\Event\LoadViewerin the events list — apps dispatched it to ask the viewer app to load itself, and there is nothing to dispatch to any morenextcloud/viewerunder "Check out external shipped apps". That section existed only for the viewer, and with it gone every app underalwaysEnabledlives in the server tree, so it goes tooThe release notes gain what an app actually has to change: registering a handler,
getViewer().open([node], node)andcanView(node)in place ofOCA.Viewer, and the enabled preview providers, which moved from an initial state the app provided to thecore.previews.enabled_providerscapability. That capability is documented next to the theming one in the OCS overview, with aversionadded:: 36.🖼️ Screenshots
✅ Checklist
codespellor similar and addressed any spelling issues👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.