-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Better program separation for different channels #37
Comments
Hi @stichiboi, I plan to add DnD to the component. I have some ideas for that but also I need to think about your solution. |
Also, I have some ideas about functionalities which can be provided by Planby |
@stichiboi can you send the link to Codesandbox? |
The original issue is not relevant anymore, I manage to solve the movement on different rows by:
You can recreate the bug by changing the collision detection to I still think, from a user point of view, that having the channel rows separated into different components makes more sense than having just a huge list. Having a wrapper component means that you can also style every row differently. |
Small note: the scrolling while dragging the element is very bad. Probably it's |
Online I see a lot of examples for dnd libraries that implement Kanban Boards: I'm thinking that Examples (think of them as horizontal instead of vertical: each section is a channel, each task is a program) Every row is a different board, and you can move programs between different boards. But you need row separation to do this. There is actually another option with |
I'm implementing a sortable drag and drop on the timeline, using dnd-kit
I want to be able to reorded my timeline items in the channel row (not across channels)
This is how I currently implemented it:
TimelineItem
is a simple component that follows thednd-kit
docs, with theuseSortable
hookThe problem is that I can only create one
SortableContext
, that includes the entireepg
: so when I try to rearrange one item, it jumps the items from the other channelsHere is an image of my timeline, with no interaction:
Here is an image when I'm moving an item from the second channel. Note how the items from the first channel jumped to the beginning:
Note: all the items have different
ids
Basically if I could implement a per-channel wrapper, to which I pass in the
TimelineItems
as children, I would be able to create one context per channel.Around the same lines as the other
render
props on layout, arenderChannelRow
:What do you think?
The text was updated successfully, but these errors were encountered: