openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

Additional panel - load filters by config #95

Closed stefanocudini closed 1 year ago

stefanocudini commented 2 years ago

this issue is related to: https://github.com/openmove/odh-mentor-otp/issues/82

provider,accesstype,... is name of property pass to component https://bit.ly/39TmUU1

the panel is built following the config each property is a subpanel contains list of possible values

Screenshot at 2021-09-30 13-31-44

proposal of config.yml structure for each overlays

    - type: charger
      name: charger
      api: https://charger.otp.opendatahub.testingmachine.eu/charger/stations.json
 filters:
        provider:
          enabled: true
          label: label_provider
          values:
            - value: H2 Center
              enabled: true
            - value: AER
              enabled: true
            - value: Neogy
              enabled: true
            - value: EDY
              enabled: true
            - value: Alperia Smart Mobility
              enabled: true
            - value: ASM
              enabled: true
            - value: NHP
              enabled: true
            - value: ASD
              enabled: true
            - value: DriWe
              enabled: true
            - value: Route220
              enabled: true
            - value: AP_GEN
              enabled: true
        accessType:
          enabled: true
          label: label_accesstype
          values:
            - value: PUBLIC
              enabled: true
            - value: undefined
              enabled: true
            - value: PRIVATE
              enabled: true
            - value: PRIVATE_WITHPUBLICACCESS
              enabled: true
        reservable:
          enabled: true
          label: label_reservable
          values:
            - value: 'true'
              enabled: true
            - value: undefined
              enabled: true
            - value: 'false'
              enabled: true
            - value: 'null'
              enabled: true
        state:
          enabled: true
          label: label_state
          values:
            - value: AVAILABLE
              enabled: true
            - value: MAINTENANCE
              enabled: true
            - value: ACTIVE
              enabled: true
            - value: TEMPORARYUNAVAILABLE
              enabled: true
            - value: UNKNOWN
              enabled: true
            - value: undefined
              enabled: true
            - value: FAULT
              enabled: true
            - value: UNAVAILABLE
              enabled: true
            - value: 'null'
              enabled: true
            - value: OCCUPIED
              enabled: true
stefanocudini commented 1 year ago

@Ghoster981 to do this after tests data contains filters.yml files : https://github.com/openmove/odh-mentor-otp/tree/dev/journey/tests/parking

stefanocudini commented 1 year ago

will be resolved in the furnace-ui branch