Skip to content

feat(settings): let users pick original images over previews - #174

Merged
skjnldsv merged 1 commit into
mainfrom
feat/original-images-setting
Oct 23, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
feat/original-images-setting

Conversation

@skjnldsv

Copy link
Copy Markdown
Contributor

A switch in the viewer settings to show images from the file itself instead of their preview. It only applies to formats the browser can show, and only when the share allows downloading. Everything else keeps its preview.

The setting is saved by the server (nextcloud/server#65802). On a server without it the switch is hidden, since saving would fail.

Fixes #152

After
settings

Builds on #172. Not tried by hand against a real server yet.

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

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.03%. Comparing base (0780383) to head (81e7e95).

Files with missing lines Patch % Lines
lib/utils/previewUtils.ts 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   91.99%   92.03%   +0.03%     
==========================================
  Files          54       54              
  Lines        4587     4609      +22     
  Branches      997     1002       +5     
==========================================
+ Hits         4220     4242      +22     
  Misses        342      342              
  Partials       25       25              

☔ 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 marked this pull request as ready for review October 23, 2026 08:23
@skjnldsv
skjnldsv merged commit a9f253a into main Oct 23, 2026
22 checks passed
@skjnldsv
skjnldsv deleted the feat/original-images-setting branch October 23, 2026 13:51
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.

Option to show the original image instead of its preview

1 participant