Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
285 stars 76 forks source link

Calcite-Tree: drag-and-drop #2210

Open bpatterson88 opened 3 years ago

bpatterson88 commented 3 years ago

Description

As part of supporting responsive layouts in Dashboards, we are introducing a new UI surface for manipulating elements. This surface is essentially an expandable/collapsable tree structure that acts as an entry point for a number of editing workflows. The best component for this use case is calcite-tree, but it needs several enhancements to fully meet our needs.

Acceptance Criteria

Highlight style hover state Screen Shot 2021-05-25 at 4 39 31 PM

Expandable menu example Screen Shot 2021-05-25 at 4 40 04 PM

Drag-and-drop example Screen Shot 2021-05-25 at 4 39 38 PM

Relevant Info

Comprehensive designs can be found here, especially on the Layout Tree and Drag-and-Drop pages: https://www.figma.com/file/zmHT65VqXpldbZy4cvjZlw/?node-id=213%3A21129

Which Component

calcite-tree

Example Use Case

brittneytewks commented 1 year ago

Needs to be re-scoped

geospatialem commented 1 year ago

Reallocating to the ~May~ June release for design considerations.

ashetland commented 1 year ago

Based on current Tree behaviors, I think this can be rescoped to improving hover states and adding drag-and-drop.

ashetland commented 1 year ago

Hover states are covered in issue #6930. Drag-and-drop is this only thing left to address from this issue.

ashetland commented 1 year ago

Also linking #7096 for updated indent spacing.

ashetland commented 1 year ago

Renamed issue to clarify remaining effort.

driskull commented 1 year ago

We should consider what the bounds of calcite-tree and calcite-list are. If we add drag and drop sorting support to tree, at what point would tree and list differentiate? They are starting to overlap in functionality and UI.

Currently, calcite-list uses a tree-grid role and does sorting and nesting as well as having the actions at the end.

cc @jcfranco

jcfranco commented 10 months ago

I agree w/ @driskull about defining the bounds of both components since they are getting pretty similar. From the design-perspective, are there any guidelines that could help keep them distinct?

Also, can we reach out to the Dashboards team about this request and whether list is a viable replacement?

geospatialem commented 7 months ago

Moving to the Freezer milestone as currently tree is intended for navigating architecture and list can be used to fit the above use case when sorting is required.

github-actions[bot] commented 7 months ago

cc @geospatialem, @brittneytewks