con2 / kompassi

Kompassi Event Management System
https://kompassi.eu
Other
26 stars 27 forks source link

Dimension flags, location in scheduleItem and color in DimensionValue #484

Closed japsu closed 3 months ago

japsu commented 4 months ago

Changes to the GraphQL API:

  1. The following fields are added in ProgramType:
    • isMultiValue – Suggests to UI that this dimension is likely to have multiple values selected.
    • isListFilter – Suggests to UI that this dimension should be shown as a list filter
    • isShownInDetail – Suggests to UI that this dimension should be shown in detail view.
    • isNegativeSelection – Suggests to UI that when this dimension is not being filtered on, all values should be selected.
  2. The location field is added in ScheduleItemType.
    • location still exists on ProgramType for convenience, but using it is strongly discouraged in favour of ScheduleItemType.location as schedule items may (in the future) be in different locations.
  3. The color field is added in DimensionValueType and ProgramType.
    • The color of the program is selected arbitrarily (likely first one created in DB) if several of its dimension values try to specify a color.

The Program Guide V2 Light makes use of ProgramType.color now as follows:

image