Skip to content

feat(ui): add swipe gesture to board theme presets#169

Merged
BilgeGates merged 2 commits into
masterfrom
fix/swipe-gesture-board-themes-and-ci
Jun 26, 2026
Merged

feat(ui): add swipe gesture to board theme presets#169
BilgeGates merged 2 commits into
masterfrom
fix/swipe-gesture-board-themes-and-ci

Conversation

@BilgeGates

@BilgeGates BilgeGates commented Jun 26, 2026

Copy link
Copy Markdown
Member

Closes #145

Summary

  • Board theme preset carousel now supports left/right swipe gestures on mobile, matching the existing behaviour of the piece set pager
  • Swipe is implemented via onTouchStart/onTouchEnd handlers on the theme grid — 40px threshold, wrap-around at edges, same logic as usePagedCarousel
  • touch-pan-y class added so vertical scroll is not blocked while swiping
  • Fixes PR Checks (danger ci) failing with ERR_STREAM_PREMATURE_CLOSE on Node 24: pinned the danger job to node-version: '22' (matching .nvmrc) instead of relying on node-version-file which resolved to Node 24 on ubuntu-latest

Test plan

  • Open Export page → Board Style → Presets on mobile — swipe left/right to page through themes
  • Swipe past the last page wraps back to first (and vice versa)
  • Pagination dots update correctly on swipe
  • Vertical scroll still works while swiping
  • Piece set pager swipe unaffected
  • PR Checks job passes (Node 22 pinned)

@github-actions github-actions Bot added enhancement New feature or improvement area: ci CI pipelines, hooks, and tooling labels Jun 26, 2026
@BilgeGates BilgeGates changed the title feat(ui): add swipe gesture to board theme presets; fix PR Checks CI failure feat(ui): add swipe gesture to board theme presets Jun 26, 2026
…on Node 22

danger@13 depends on node-fetch@2.7.0 which has a gzip decompression bug
on Node 22, causing PR Checks to fail. Forcing node-fetch@^3.3.2 via
pnpm.overrides resolves the stream error without changing danger itself.
@github-actions github-actions Bot added the dependencies Dependency updates (Dependabot / Renovate) label Jun 26, 2026
@BilgeGates BilgeGates merged commit 801d3ca into master Jun 26, 2026
11 checks passed
@BilgeGates BilgeGates deleted the fix/swipe-gesture-board-themes-and-ci branch June 26, 2026 20:53
@BilgeGates BilgeGates self-assigned this Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI pipelines, hooks, and tooling dependencies Dependency updates (Dependabot / Renovate) enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Swipe gesture for board theme presets

1 participant