Skip to content

images only and more than one - #782

Merged
SharonStrats merged 3 commits into
stagingfrom
fix/slideshow
Oct 27, 2026
Merged

SharonStrats merged 3 commits into
stagingfrom
fix/slideshow

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

Slideshow was showing when there were other files in the folder i don't think this is correct, also there was only one image.

…@5.0.2-4 pane-registry@5.0.2-1 folder-pane@4.0.1-1 profile-pane@4.1.0-0 source-pane@4.0.1-0) (latest: rdflib@2.4.1 activitystreams-pane@2.0.0 chat-pane@4.0.0 contacts-pane@4.0.0 issue-pane@4.0.0 meeting-pane@4.0.0)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Duplicate containment entries still enable the slideshow for a single distinct image.

1 open issue
What changed in this PR

This PR restricts the slideshow pane to folders containing multiple images and no other resource types.

Changes:

  • Requires more than one containment entry, all identified as images.
  • Shares image filtering between pane selection and rendering.
  • Adds tests for single-image, mixed-content, and multiple-image folders.
File Description
test/​unit/​slideshowPane.test.ts Adds tests for slideshow eligibility.
src/​slideshow/​slideshowPane.js Tightens eligibility and centralizes image filtering.

Review effort: Balanced

Comment thread src/slideshow/slideshowPane.js Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@SharonStrats
SharonStrats merged commit 6cca34c into staging Oct 27, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Oct 27, 2026
@SharonStrats
SharonStrats deleted the fix/slideshow branch October 27, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

slideshow: should only appear if more than one image and container only has images

2 participants