hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Ability to drag a row in to a new position #298

Open andrewtpham opened 2 years ago

andrewtpham commented 2 years ago

Is your feature request related to a problem? Please describe.

Functionality

This could be used in dots-fe on the table list page (not the import table page) or the metrics project and configuration pages as well as the new metrics table: https://github.com/hikaya-io/hakawati/issues/286

Additional context Here are some references in a draggable row that I found:

In this gif below, a project record could be an item that is nested:

nested-sortable-example

Screenshots from the above GIF:

Screen Shot 2022-05-18 at 2 09 26 PM Screen Shot 2022-05-18 at 2 09 40 PM
TAnas0 commented 2 years ago

On nested Portfolios in the BE

Here is 2 things to do to make it possible:

And an additional question:

andrewtpham commented 2 years ago

@TAnas0 thanks for comment.

On your question:

Portfolios that have "children" portfolios, can they have Projects (as direct descendants)? Is this much like a directory structure, with Portfolios being directories and Projects being files? The Answer to the above question would require some additional considerations and implementations.

I think the main purpose of children portfolios is to have another subset of projects for organization purposes making it easy to see how they can be grouped. But I could see the appeal of having the directory structure in place to maintain a clean logic. But I think it's more important to have the ability to organize and add projects to multiple portfolios