Skip to content

fix: wire gallery timing URL params so playlist advances on override#113

Merged
ap0ught merged 1 commit into
masterfrom
fix/gallery-playlist-timing
Jul 7, 2026
Merged

fix: wire gallery timing URL params so playlist advances on override#113
ap0ught merged 1 commit into
masterfrom
fix/gallery-playlist-timing

Conversation

@ap0ught

@ap0ught ap0ught commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

shaderDisplayDuration, fortuneDuration, and screenshotCaptureDuration were declared in gallery.js but never mapped in config.js paramMapping, so URL overrides were silently dropped and the gallery always fell back to the 42s default shuffle.

Verification

  • npm run test: 17 passed, 2 skipped
  • Playwright repro: ?shaderDisplayDuration=5000 now observed ~5s transitions with 13 advances across 60s and 0 page errors

Files changed

  • js/config.js (+5 lines)

shaderDisplayDuration, fortuneDuration, screenshotCaptureDuration
were read in gallery.js but never mapped in config.js paramMapping,
so URL overrides were silently dropped and the gallery always fell
back to the 42s default shuffle.
Copilot AI review requested due to automatic review settings July 7, 2026 23:54
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🎬 PR Preview Deployed!

Your changes are now available for testing:

Preview URL: https://ap0ught.github.io/matrix/pr-113/

Test Links:

The preview will be updated automatically when you push new commits.


Preview deployed from commit f150576

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes gallery mode timing URL overrides by wiring shaderDisplayDuration, fortuneDuration, and screenshotCaptureDuration into js/config.js’s paramMapping, so GalleryManager can actually receive these values from URL params instead of always falling back to its internal defaults.

Changes:

  • Added URL param mappings for gallery timing overrides (shaderDisplayDuration, fortuneDuration, screenshotCaptureDuration).
  • Ensures makeConfig() includes these parsed values in the resulting config object (when provided), enabling the gallery playlist to advance according to overrides.

@ap0ught ap0ught merged commit 8a5b521 into master Jul 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants