Skip to content

fix: clamp shared link item coordinates to valid range#11

Merged
jonathan-beebe merged 1 commit into
mainfrom
fix/008-share-import-no-item-range-validation
Mar 29, 2026
Merged

fix: clamp shared link item coordinates to valid range#11
jonathan-beebe merged 1 commit into
mainfrom
fix/008-share-import-no-item-range-validation

Conversation

@jonathan-beebe
Copy link
Copy Markdown
Owner

Summary

  • Clamp x/y values in hydratePayload to the valid 2-85 range (matching useDragAndDrop)
  • Prevents items from rendering outside visible quadrant boundaries when importing via shared links
  • Resolves BUG-008

Test plan

  • New test: verifies coordinates are clamped for too-high (9999), too-low (-500), and in-range (50) values
  • Full test suite passes (213 tests)

🤖 Generated with Claude Code

hydratePayload now clamps x/y values to the same 2-85 range used by
useDragAndDrop, preventing items from rendering outside visible
quadrant boundaries when importing via shared links.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 29, 2026

Deploy Preview for golden-scone-6bfeb1 ready!

Name Link
🔨 Latest commit faede7f
🔍 Latest deploy log https://app.netlify.com/projects/golden-scone-6bfeb1/deploys/69c94fe85a0efd000891e7f7
😎 Deploy Preview https://deploy-preview-11--golden-scone-6bfeb1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jonathan-beebe jonathan-beebe merged commit db232ef into main Mar 29, 2026
5 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.

1 participant