Skip to content

Grouping in ViewManager should allow unlimited depth #4469

Description

@cnrudd

The ViewManager component currently allows putting a view into a group, but it does not allow nested groups.

Users are requesting nested groups.

After discussion with @lbwexler, we felt these implementation choices were a good start:

  1. Keep the group value a string under the JsonBlob's meta column (json), but interpret forward slashes in the string as group name delimiters.
  2. Modify the grids in the Manage Views dialog to display the nested groups in tree grids.
  3. Maybe enable drag and drop in the grids to allow users to move views between groups
  4. In the Manage Views dialog's right side edit panel, replace the Group select field with an "Edit" button/popover. The popover would contain a textInput where a user can edit the group name, and a select input with a custom renderer to display all groups in an indented hierarchy, allowing a user to move his group to a new parent group, if desired.
  5. The ViewManager menu items would display views using nested menuItems.
  6. JsonBlobService's updateInternal method needs to be enhanced so that when a JsonBlob is saved, if the update includes a group edit, some logic must be run to update JsonBlobs of the same type, in which the meta column group values start with the group value that was edited - test string is from start up to and including the slash count that was edited.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions