geovistory/design-system

Explorer > Add preferred classes

Closed this issue · 3 comments

Current situation

The entity explorer shows a class filter to the left, in which the classes are ordered by number of entities found for this class, in descending order.

The classes shown on top of the list are usually not the ones, expected by users (like Appellation in a language or Annotation in Text).
image

Solution

The class filter is split in two lists:

  • a list with preferred classes
  • a list with all classes

To define the list of preferred classes, the component accepts a comma separate list of class ids.
The order of the ids is respected in the display.

Only preferred classes visible; no class selected
MacBook Air - 2

All classes visible; no class selected
MacBook Air - 3

All classes visible; Class Person selected
MacBook Air - 4

Interactions

  • On click on Show all classes all classes are shown. The all classes list contains all classes, including the preferred.

  • On click on Hide the list with all classes is hidden.

  • On click on a class, a checkmark appears and the chip with the selected class appears. The chip ensures the selected filter is visible, even if the selected class is not visible to the left.

  • On click on the Chip, the filter is deactivated (class unselected).

@KleiolabDK please review

Thank you, this is perfectly in line with the suggestions. Review closed.

I added PR#56 which adds the preferred list. It does not add the "tags" since I have an open question to that.
Adding tags at the top like so
grafik
implies that you can select multiple filters. Is that the case?