Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dnd improvements #138

Draft
wants to merge 12 commits into
base: next
Choose a base branch
from
Draft

Feature/dnd improvements #138

wants to merge 12 commits into from

Conversation

jthrilly
Copy link
Member

@jthrilly jthrilly commented May 28, 2024

This PR rewrites the drag and drop functionality entirely, using the HTML Drag and Drop specification.

This should give us dramatically improved performance, due to removing the redux store. It won't support drop obstacles in the same way, but I see this as a reasonable tradeoff.

Current status:

  • Proof of concept using name generator interface
  • Implementation of zuzstand store for state
  • Custom hook for droppable, and HOC for draggable
  • Basic 'accepts', 'active', 'hover' 'valid' states.
  • Refactoring 'accepts' for more complex scenarios, where a function needs to be called.
  • Reimplement other interfaces
  • Reimplement free dragging on the sociogram

Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fresco-sandbox ❌ Failed (Inspect) Jun 10, 2024 2:11pm

@jthrilly jthrilly changed the base branch from main to next May 28, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant