Skip to content
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

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

Open
2 tasks
andrewtpham opened this issue May 18, 2022 · 2 comments
Open
2 tasks

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

andrewtpham opened this issue May 18, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request requires research Further information is required UI UI Components

Comments

@andrewtpham
Copy link
Member

andrewtpham commented May 18, 2022

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

Functionality

  • We would like the ability for the h-table editable component to be able to have a draggable row feature where a user can click on a row and drag it into a position of their choice.
  • We would like the ability for a row to be nested and put inside another item. For example, one or more project records could be put inside a portfolio. See Dots BE endpoints for portfolio: https://github.com/hikaya-io/dots-backend/issues/1118

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: #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:

  • A portfolio is a group of projects
  • A portfolio can be nested inside another portfolio
  • A project can be on its own or inside a portfolio

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

@andrewtpham andrewtpham added UI UI Components metrics labels May 18, 2022
@andrewtpham andrewtpham added this to the June 2022 milestone May 18, 2022
@TAnas0
Copy link
Collaborator

TAnas0 commented May 18, 2022

On nested Portfolios in the BE

Here is 2 things to do to make it possible:

  • Add a nullable relationship from a Portfolio to itself to indicate if a Portfolio does have a "parent" Portfolio, or not
  • Add an endpoint where we can move a Project from a Portfolio to another in a single call

And an additional 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.

@andrewtpham
Copy link
Member Author

@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

@andrewtpham andrewtpham added the design needed Wireframe is needed label May 20, 2022
@andrewtpham andrewtpham self-assigned this May 20, 2022
@andrewtpham andrewtpham modified the milestones: June 2022, July 2022 Jun 14, 2022
@andrewtpham andrewtpham added requires research Further information is required and removed design needed Wireframe is needed metrics labels Jan 20, 2023
@ninetteadhikari ninetteadhikari modified the milestones: November 22, March 23 Mar 6, 2023
@andrewtpham andrewtpham added the enhancement New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request requires research Further information is required UI UI Components
Projects
None yet
Development

No branches or pull requests

3 participants