From ee6f729d3cbd051b0d04c40eaa7256a37ad11e0d Mon Sep 17 00:00:00 2001 From: sseppi Date: Wed, 16 Oct 2024 16:23:54 +0200 Subject: [PATCH 1/2] echarging Accessibility config improvement --- .../config/builder/tourism/echargingdata.ts | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/databrowser/src/config/builder/tourism/echargingdata.ts b/databrowser/src/config/builder/tourism/echargingdata.ts index 2f01d3cd..0245aa3b 100644 --- a/databrowser/src/config/builder/tourism/echargingdata.ts +++ b/databrowser/src/config/builder/tourism/echargingdata.ts @@ -113,13 +113,6 @@ export const echargingdataCategory = ( ), }, }, - { - title: 'Survey Annotations', - component: CellComponent.StringCell, - objectMapping: { - text: 'AdditionalProperties.EchargingDataProperties.SurveyAnnotations.{language}', - }, - }, ], }, { @@ -141,7 +134,7 @@ export const echargingdataCategory = ( }, }, { - title: 'Horizontal road sign', + title: 'Horizontal floor road sign', component: CellComponent.ToggleTriStateCell, objectMapping: { enabled: @@ -162,14 +155,14 @@ export const echargingdataCategory = ( }, }, { - title: 'Gradient', + title: 'Gradient (%)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceNextToEachOther.Gradient', }, }, { - title: 'Lateral Inclination', + title: 'Lateral Inclination (%)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceNextToEachOther.LateralInclination', @@ -196,14 +189,14 @@ export const echargingdataCategory = ( }, }, { - title: 'Width', + title: 'Width (m)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceNextToEachOther.Width', }, }, { - title: 'Length', + title: 'Length (m)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceNextToEachOther.Length', @@ -231,14 +224,14 @@ export const echargingdataCategory = ( }, }, { - title: 'Gradient', + title: 'Gradient (%)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceBehindEachOther.Gradient', }, }, { - title: 'Lateral inclination', + title: 'Lateral inclination (%)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceBehindEachOther.LateralInclination', @@ -264,14 +257,14 @@ export const echargingdataCategory = ( }, }, { - title: 'Width', + title: 'Width (m)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceBehindEachOther.Width', }, }, { - title: 'Length', + title: 'Length (m)', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.CarParkingSpaceBehindEachOther.Length', @@ -346,6 +339,13 @@ export const echargingdataCategory = ( label_003: 'Not accessible', }, }, + { + title: 'Survey Annotations', + component: CellComponent.StringCell, + objectMapping: { + text: 'AdditionalProperties.EchargingDataProperties.SurveyAnnotations.{language}', + }, + }, ], }, ], From 27b667e656e0f8a785f5d361666a062fd9e3b353 Mon Sep 17 00:00:00 2001 From: sseppi <7909989+sseppi@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:43:19 +0200 Subject: [PATCH 2/2] Update echargingdata.ts --- databrowser/src/config/builder/tourism/echargingdata.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/databrowser/src/config/builder/tourism/echargingdata.ts b/databrowser/src/config/builder/tourism/echargingdata.ts index 0245aa3b..8e229d47 100644 --- a/databrowser/src/config/builder/tourism/echargingdata.ts +++ b/databrowser/src/config/builder/tourism/echargingdata.ts @@ -40,7 +40,7 @@ export const echargingdataCategory = ( }, }, { - title: 'AccessType', + title: 'Access type', component: CellComponent.SelectWithOptionsCell, objectMapping: { value: 'AdditionalProperties.EchargingDataProperties.AccessType', @@ -63,21 +63,21 @@ export const echargingdataCategory = ( }, }, { - title: 'AccessTypeInfo', + title: 'Access type information', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.AccessTypeInfo', }, }, { - title: 'PaymentInfo', + title: 'Payment information', component: CellComponent.StringCell, objectMapping: { text: 'AdditionalProperties.EchargingDataProperties.PaymentInfo', }, }, { - title: 'Charging Plugs Types', + title: 'Charging plugs types', component: CellComponent.ArrayEditableCell, arrayMapping: { targetPropertyName: 'items',