Skip to content

feat(viewer): say what to expect on Nextcloud 35 and older - #148

Merged
skjnldsv merged 1 commit into
mainfrom
feat/legacy-server-warning
Oct 16, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
feat/legacy-server-warning

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

The library runs on Nextcloud 35 next to the viewer app, but nothing said what that means. Checked on 35.0.2 with an app bundling the library: pictures, videos and sounds open in the library's viewer, from the app and from Files. The handlers other apps register with OCA.Viewer, HEIC and TIFF previews, and saved settings are not there. So the viewer hides its settings there: no button, and ? does nothing.

The README gets a "Nextcloud 35 and older" section with that list. The viewer logs a warning when it mounts on such a server, found by the viewer app's OCA.Viewer.registerHandler (the shim of 36 has none) or by OC.config.version.

Only images, video and audio were checked.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

@skjnldsv skjnldsv added this to the 2.0.0 milestone Oct 16, 2026
@skjnldsv skjnldsv self-assigned this Oct 16, 2026
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.44%. Comparing base (4e2c04a) to head (4f61388).

Files with missing lines Patch % Lines
lib/mount.ts 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   92.42%   92.44%   +0.02%     
==========================================
  Files          49       50       +1     
  Lines        4103     4119      +16     
  Branches      898      903       +5     
==========================================
+ Hits         3792     3808      +16     
+ Misses        290      289       -1     
- Partials       21       22       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@skjnldsv
skjnldsv requested a review from CarlSchwan October 16, 2026 05:33
@skjnldsv
skjnldsv force-pushed the feat/legacy-server-warning branch from 650d124 to 65869b9 Compare October 16, 2026 07:00
The library runs next to the viewer app of older servers, which nothing
warned about. The README says what was checked on 35, and the viewer
logs a warning when it finds the viewer app, or a server that says it
is older.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv force-pushed the feat/legacy-server-warning branch from 65869b9 to 4f61388 Compare October 16, 2026 07:44
@skjnldsv
skjnldsv merged commit 56b053c into main Oct 16, 2026
20 of 21 checks passed
@skjnldsv
skjnldsv deleted the feat/legacy-server-warning branch October 16, 2026 09:12
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.

2 participants