-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: reorder kanban columns #1699
feat: reorder kanban columns #1699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need some suggestions, thanks! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another future masterpiece, thank. you @AdityaPimpalkar
(tableColumn) => tableColumn.id === column.id, | ||
); | ||
|
||
const targetColumnArrayIndex = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like duplicated logic with Table. Can we extract it to a common hook? useMoveViewFields() you can put it into the views folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure we want to name this useMoveViewFields
? Board columns are PipelineStages, not ViewFields, unlike Table columns. Couldn't this cause confusion in the future @charlesBochet? We could perhaps name this useMoveViewColumns
for instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point!
I found a fix, but I could use your input @charlesBochet to make it better. Thanks :) Screen.Recording.2023-09-24.at.1.44.41.PM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
closes: #1641
Screen.Recording.2023-09-21.at.6.02.58.PM.mov