hello-pangea / dnd

💅 Beautiful and accessible drag and drop for lists with React. ⭐️ Star to support our work!
https://dnd.hellopangea.com
Other
2.43k stars 95 forks source link

Roadmap #419

Open Xhale1 opened 2 years ago

Xhale1 commented 2 years ago

This issue will serve as a living document of our short and long-term goals for this project.

In no particular order:

100terres commented 2 years ago

Good :ok_hand:

Could we also add an item to the roadmap to improve the developper experience. We could investigate a way to introduce new hooks to create draggables and droppables instead of using render function e.g.

Current render function API

<Draggable draggableId={item.id} index={index}>
  {(
    dragProvided: DraggableProvided,
    dragSnapshot: DraggableStateSnapshot,
  ) => (
    <Item
      key={item.id}
      item={item}
      isDragging={dragSnapshot.isDragging}
      isGroupedOver={Boolean(dragSnapshot.combineTargetFor)}
      provided={dragProvided}
    />
  )}
</Draggable>

What a hooks API could look like

const {
  draggableProvided
  draggableStateSnapshot,
} = useDraggable({ draggableId: item.id, index });

<Item
  key={item.id}
  item={item}
  isDragging={dragSnapshot.isDragging}
  isGroupedOver={Boolean(dragSnapshot.combineTargetFor)}
  provided={dragProvided}
/>

EDIT: This could serves has an inspiration: https://github.com/thisbeyond/solid-dnd#how-do-i-get-started-

100terres commented 2 years ago

An other item could be to investigate how we could leverage GitHub discussions.

EDIT: Just saw that it was already open! :tada: https://github.com/hello-pangea/dnd/discussions/417

100terres commented 2 years ago

Could also be nice to observe/watch the code coverage of the library.

spheroidic commented 1 year ago

Hello - I am having trouble using @atlaskit/trees in my project. I'm a newbie coder, but the errors I'm getting are with out of date dependencies. I am already using RBD (soon switching to RFD), and I'd love to implement trees using the package. Do you folks have implementing trees as a feature anywhere on your radar?

uffou commented 1 year ago

Tree & Grid would be awesome additions

0-don commented 10 months ago

yes tree grid is a really good example

hsavit1 commented 4 months ago

What's the plan for the tree grid?