Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

DEV: Hierarchical areas #835

Closed
catrobson opened this issue Jan 21, 2018 · 2 comments
Closed

DEV: Hierarchical areas #835

catrobson opened this issue Jan 21, 2018 · 2 comments
Assignees
Milestone

Comments

@catrobson
Copy link
Collaborator

Change areas list view to a hierarchical list view that shows parent/child relationships. Ideally add a filter bar that allows me to keyword search the areas. All other elements can stay the same, or you can work with one of the designers for some tidying up of the page if there needs to be discussion on where filter bar, title, and add belong together.

@dlabrecq
Copy link

dlabrecq commented Mar 13, 2018

I replaced the list with a tree list, added a toolbar with filter/sort/add controls and set the toggles to expand by default. Unfortunately, the APIs do not provide descriptions, nor any way to delete an area, or change its name.

Full tree
tree

I wasn't quite certain how filtering should behave for a tree list, but believe the remaining items should still represent a hierarchy -- minus the items that were filtered-out. The problem is that remaining items may no longer have a direct parent (it was filtered-out), so its closest ancestor is used to represent the hierarchy. This is shown by the screen shots below.

Filter "area"
filter-area

Above only items matching "area" are shown. This still represents a hierarchy, but "area1a" is not the parent of "area1c" -- this is its ancestor. That's because items beginning with "test" have been filtered-out.

Below, only items matching "test" are shown. These items don't have any matching children, so they appear at the same level.

Filter "test"
fiter-test

dlabrecq added a commit to dlabrecq/fabric8-ui that referenced this issue Mar 14, 2018
- Replaced the existing list with pfng-tree-list.
- Added a toolbar with filter/sort/add controls and spec.

Fixes: fabric8-ui/fabric8-ux#835
@dlabrecq
Copy link

Created a PR with changes here: fabric8-ui/fabric8-ui#2638

dlabrecq added a commit to dlabrecq/fabric8-ui that referenced this issue Mar 15, 2018
- Replaced the existing list with pfng-tree-list.
- Added a toolbar with filter/sort/add controls and spec.

Fixes: fabric8-ui/fabric8-ux#835
dlabrecq added a commit to dlabrecq/fabric8-ui that referenced this issue Mar 15, 2018
- Replaced the existing list with pfng-tree-list.
- Added a toolbar with filter/sort/add controls and spec.

Fixes: fabric8-ui/fabric8-ux#835
dlabrecq added a commit to dlabrecq/fabric8-ui that referenced this issue Mar 16, 2018
- Replaced the existing list with pfng-tree-list.
- Added a toolbar with filter/sort/add controls and spec.

Fixes: fabric8-ui/fabric8-ux#835
joshuawilson pushed a commit to fabric8-ui/fabric8-ui that referenced this issue Mar 16, 2018
- Replaced the existing list with pfng-tree-list.
- Added a toolbar with filter/sort/add controls and spec.

Fixes: fabric8-ui/fabric8-ux#835
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants