Skip to content

fix(artboard): prevent accidental duplicates when dragging placed cards - #105

Merged
Go2Engle merged 2 commits into
mainfrom
feature/prevent-artboard-drag-duplicates
Oct 10, 2026
Merged

Go2Engle merged 2 commits into
mainfrom
feature/prevent-artboard-drag-duplicates

Conversation

@Go2Engle

@Go2Engle Go2Engle commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Clicking and dragging a card already on the artboard could start a browser image drag. Dropping that image onto the artboard could upload it again and add an accidental duplicate. Placed cards now stay on the sheet when dragged, while clicking still opens the artwork preview and dropping external image files still adds artwork.

Type of change

  • Feature
  • Bug fix
  • Refactor
  • Documentation
  • Infrastructure/CI

Technical details

  • Cancel drag-start events from placed card buttons so their artwork cannot become an upload drag.
  • Disable selection within placed cards to prevent selection while clicking and dragging.
  • Update the feature reference and Cricut workflow guide with the card click behavior and external artwork drop workflow.

Testing performed

npm test
npm run build

All 188 tests passed, and the production build completed successfully.

Playwright browser validation confirmed that a mouse drag on a placed image was canceled, the card count remained unchanged, and the upload overlay did not appear. A normal click opened the artwork dialog. A simulated external PNG file drop displayed the upload overlay, added one card, and cleared the overlay afterward. After merging the latest main, browser checks reconfirmed canceled image drags and artwork clicks, and verified that right-button dragging over a card still pans the preview and stops on release.

Breaking changes

None.

Checklist

  • The PR title follows Conventional Commits.
  • I ran npm test and npm run build.
  • I added or updated tests for behavior changes. (Validated the browser interactions with Playwright; no new automated test file.)
  • I updated documentation for user-facing changes.
  • I updated the README feature summary if this feature belongs on the website overview. (Not applicable to this bug fix.)
  • I did not manually edit release versions or CHANGELOG.md.

@Go2Engle
Go2Engle merged commit 3d0924b into main Oct 10, 2026
7 of 10 checks passed
@Go2Engle
Go2Engle deleted the feature/prevent-artboard-drag-duplicates branch October 10, 2026 01:04
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