coursemology2 icon indicating copy to clipboard operation
coursemology2 copied to clipboard

Allow reordering forum topics

Open RussellDash332 opened this issue 3 years ago • 2 comments

Upon duplicating a course, the order of the forum topics might be shuffled, however one cannot simply reorder it by dragging and instead has to do delete/add/edit.

Left: duplicated course Right: original course

image

RussellDash332 avatar Dec 30 '22 16:12 RussellDash332

Hi, I'm interested in contributing to this issue, so I took a look at the code and found that the forum display uses ForumTopicTable, which uses the MUIDataTable component:

https://github.com/Coursemology/coursemology2/blob/3f343b1eb4d285e1f4901d201bf204c5c562d11c/client/app/bundles/course/forum/pages/ForumShow/index.tsx#L136

https://github.com/Coursemology/coursemology2/blob/3f343b1eb4d285e1f4901d201bf204c5c562d11c/client/app/lib/components/core/layouts/DataTable.jsx#L136-L141

Unfortunately, MUIDataTable only supports draggableColumns, and not draggable rows. It doesn't look like there's a way to implement dragging of the topics to shuffle without rewriting this component.

Any advice?

leslieyip02 avatar Feb 03 '23 15:02 leslieyip02

Hi @leslieyip02 thanks a lot for your interest in this issue. Actually, we are currently working on resolving this issue. Should you be interested, you might also look into this issue https://github.com/Coursemology/coursemology2/issues/4972. This is also interesting issue and we think you might take a look at this one.

bivanalhar avatar Feb 16 '23 07:02 bivanalhar