Skip to content

feat: migrate to @nextcloud/viewer - #19504

Draft
Antreesy wants to merge 3 commits into
mainfrom
feat/63954/viewer-library
Draft

Antreesy wants to merge 3 commits into
mainfrom
feat/63954/viewer-library

Conversation

@Antreesy

Copy link
Copy Markdown
Contributor

☑️ Resolves

AI (if applicable)

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

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
Screenshot before Screenshot after

🚧 Tasks

  • Check actual compatibilty of nc/files and nc/viewer with previous server releases (up to 27?)

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

Bring in the npm package to migrate off the OCA.Viewer global, which
Viewer 2.0 drops (nextcloud/server#63954).

Assisted-by: ClaudeCode:claude-sonnet-4-6
OCA.Viewer.open() took loose file-info objects; the package's
getViewer().open() wants real IFile node instances instead, so
useViewer now builds them from Files/Talk file objects (dav source
URL for members, public download link for guests).

Talk's own pages never load Files' init script, so register the
default image/video/audio handlers here instead.

Drop the OCA.Viewer global type, which Viewer 2.0 removes.

Assisted-by: ClaudeCode:claude-sonnet-4-6
FilePreview's isViewerAvailable now uses canView() on a built node
instead of checking OCA.Viewer.mimetypes. ViewerOverlayCallView closes
through getViewer().close(). NewMessageNewFileDialog follows
useViewer's new openViewer(list, fileInfo) signature.

Assisted-by: ClaudeCode:claude-sonnet-4-6
@Antreesy Antreesy added this to the ☃️ Next Major (36) milestone Sep 22, 2026
@Antreesy Antreesy self-assigned this Sep 22, 2026
@Antreesy Antreesy added technical debt feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings labels Sep 22, 2026
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants