Skip to content

fix(images): page through images with video and audio again - #86

Merged
skjnldsv merged 1 commit into
mainfrom
fix/handler-peers
Oct 2, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/handler-peers

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

A video never showed the picture of the same name beside it as its poster (nextcloud/viewer#80), and images paged on their own instead of through the videos and sounds in the same folder.

The old viewer put images, video and audio in one media group (src/models/images.js in nextcloud/viewer). The image handler here was written without it, so a video's list, which is its handler group, never held the picture findLivePhotoPeerFromName looks for. This puts the image handler back in media. Navigation follows the group again across images, video and audio, and handlers keep receiving that navigation list as files, nothing more.

The navigation e2e now pages from the first image through the video and sounds and round again, and checks that the sheet music, which has no group, still pages only among itself. The model test asserts the group. #87 builds on this for the poster after a replay, with an e2e test that has a video and its poster side by side.

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

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.74%. Comparing base (76f651a) to head (88999c9).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
+ Coverage   89.59%   89.74%   +0.14%     
==========================================
  Files          39       39              
  Lines        2855     2955     +100     
  Branches      599      635      +36     
==========================================
+ Hits         2558     2652      +94     
- Misses        290      295       +5     
- Partials        7        8       +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.

The old viewer put images, video and audio in one 'media' group, so a
folder of photos and films paged through all of them, and a video found
the picture of the same name beside it in its list, to show as its
poster. The image handler lost the group in the move to this library:
images paged on their own and videos never had a poster.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv changed the title fix(viewer): hand handlers every file the viewer was opened with fix(images): page through images with video and audio again Oct 2, 2026
@skjnldsv
skjnldsv merged commit f014d37 into main Oct 2, 2026
20 checks passed
@skjnldsv
skjnldsv deleted the fix/handler-peers branch October 2, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted status: review Waiting for reviews type: bug 🐛 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants