Allow (de-)selecting a full tree-sub-branch
As Anastassia,
I want to be able to easily select a full tree-sub-branch (all children and all subsequent hierarchy levels),
So that I do not have to go inside of each branch child levels to do the selections manually, which is especially inconvenient with hierarchies that have more than two hierarchy levels.
Example
In the dataflow Test DF regions (https://de-qa.siscc.org/vis?locale=en&dataflow[datasourceId]=staging:SIS-CC-stable&dataflow[agencyId]=OECD&dataflow[dataflowId]=DF_REGION&dataflow[version]=1.0&hasDataAvailability=true) there should be an easy way to select all sub-levels of country "Germany".
Specifications
In the advanced selections dialog, after the spotlight search add a "Selection mode:" button and a text box containing the currently selected selection mode (label). When clicking on the button a drawer opens from the top to fill out the entire half of the popup with a nice tile-styled single-choice selection feature. Each tile contains the selection mode text and the related image.
The "Selection mode" items are:
- Single item
- Item and all items directly below
- Whole branch
- All items at the same level
- All items
These should cover the new need as well as all previous bulk and level selection modes.
Below the tiles, add a help hint using the help icon and the following configurable, localised text:
"Did you already know that you can select several items either
by holding the mouse button while selecting neighbored items or
by holding the 'Shift' key while selecting the last neighbored item or
by holding the 'Ctrl' key while selecting the next individual item(s)?"
Once the user clicked on one of the tiles, the drawer closes again upwards. Depending on the current selection mode, the next click on a dimension item behaves accordingly.
Also:
- The tree view occupies the whole width of the advanced selection popup to ease seeing long labels.
- There are no mouseover popups necessary.
- Everywhere (facets, filters, advanced filter, Applied filters, chart help, ...) the accordion icons move to the left (rtl: right) side, so that they are always consistent and visible. For the moment, we keep the same styles, only the arrows change direction (as currently being implemented). Please let us know if this needs to be split out into another ticket.
- The advanced filter **popup is increased in vertical size so that at least the double amount of items can be shown.
The tile images for the selection mode items are (can be remade if necessary):
The related icons are (can be remade if necessary):
Additional features:
- A new function "Expand all" is added in the advanced selection popup
- A new function "Collapse all" is added in the advanced selection popup
Previous outdated specs
If this menu is used then, similarly to the feature "Entire currently displayed list", (de)select the concerned items, add/remove them to the "Used filter" and display the corresponding data. Make also sure that, through an optimised approach, this filter is already in selected state when the bulk selection dialog is opened if all the corresponding items (complete current list including all their children up to the lowest levels) are in select state.