Skip to content

Commit 40b1cbb

Browse files
ipirogbasseche
andauthored
Adjust some labels in modification filters (#3159)
Signed-off-by: Igor PIROG <[email protected]> Co-authored-by: basseche <[email protected]>
1 parent 6f8ed90 commit 40b1cbb

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

src/components/dialogs/network-modifications/by-filter/by-assignment/assignment/assignment-constants.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ export const FIELD_OPTIONS = {
4848
},
4949
ACTIVE_POWER_SET_POINT: {
5050
id: FieldType.ACTIVE_POWER_SET_POINT,
51-
label: 'ActivePowerText',
51+
label: 'ActivePowerSetPointText',
5252
unit: MEGA_WATT,
5353
dataType: DataType.DOUBLE,
5454
},
5555
REACTIVE_POWER_SET_POINT: {
5656
id: FieldType.REACTIVE_POWER_SET_POINT,
57-
label: 'ReactivePowerText',
57+
label: 'ReactivePowerSetPointText',
5858
unit: MEGA_VAR,
5959
dataType: DataType.DOUBLE,
6060
},
@@ -72,7 +72,7 @@ export const FIELD_OPTIONS = {
7272
},
7373
MARGINAL_COST: {
7474
id: FieldType.MARGINAL_COST,
75-
label: 'marginalCost',
75+
label: 'MarginalCost',
7676
dataType: DataType.DOUBLE,
7777
},
7878
PLANNED_OUTAGE_RATE: {
@@ -192,37 +192,37 @@ export const FIELD_OPTIONS = {
192192
},
193193
G: {
194194
id: FieldType.G,
195-
label: 'G',
195+
label: 'ShuntConductanceText',
196196
unit: MICRO_SIEMENS,
197197
dataType: DataType.DOUBLE,
198198
},
199199
G1: {
200200
id: FieldType.G1,
201-
label: 'G1',
201+
label: 'ShuntConductanceText1',
202202
unit: MICRO_SIEMENS,
203203
dataType: DataType.DOUBLE,
204204
},
205205
G2: {
206206
id: FieldType.G2,
207-
label: 'G2',
207+
label: 'ShuntConductanceText2',
208208
unit: MICRO_SIEMENS,
209209
dataType: DataType.DOUBLE,
210210
},
211211
B: {
212212
id: FieldType.B,
213-
label: 'B',
213+
label: 'ShuntSusceptanceText',
214214
unit: MICRO_SIEMENS,
215215
dataType: DataType.DOUBLE,
216216
},
217217
B1: {
218218
id: FieldType.B1,
219-
label: 'B1',
219+
label: 'ShuntSusceptanceText1',
220220
unit: MICRO_SIEMENS,
221221
dataType: DataType.DOUBLE,
222222
},
223223
B2: {
224224
id: FieldType.B2,
225-
label: 'B2',
225+
label: 'ShuntSusceptanceText2',
226226
unit: MICRO_SIEMENS,
227227
dataType: DataType.DOUBLE,
228228
},
@@ -375,8 +375,8 @@ export const EQUIPMENTS_FIELDS = {
375375
[EquipmentType.LOAD]: [
376376
FIELD_OPTIONS.PROPERTY,
377377
FIELD_OPTIONS.LOAD_TYPE,
378-
FIELD_OPTIONS.ACTIVE_POWER,
379-
FIELD_OPTIONS.REACTIVE_POWER,
378+
FIELD_OPTIONS.ACTIVE_POWER_SET_POINT,
379+
FIELD_OPTIONS.REACTIVE_POWER_SET_POINT,
380380
],
381381
[EquipmentType.SHUNT_COMPENSATOR]: [
382382
FIELD_OPTIONS.PROPERTY,

src/components/dialogs/network-modifications/by-filter/by-formula/formula/formula-utils.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export const EQUIPMENTS_FIELDS: EquipmentFields = {
5454
{ id: 'RATED_NOMINAL_POWER', label: 'RatedNominalPowerText', unit: MEGA_WATT },
5555
{ id: 'MINIMUM_ACTIVE_POWER', label: 'MinimumActivePowerText', unit: MEGA_WATT },
5656
{ id: 'MAXIMUM_ACTIVE_POWER', label: 'MaximumActivePowerText', unit: MEGA_WATT },
57-
{ id: 'ACTIVE_POWER_SET_POINT', label: 'ActivePowerText', unit: MEGA_WATT },
58-
{ id: 'REACTIVE_POWER_SET_POINT', label: 'ReactivePowerText', unit: MEGA_VAR },
57+
{ id: 'ACTIVE_POWER_SET_POINT', label: 'ActivePowerSetPointText', unit: MEGA_WATT },
58+
{ id: 'REACTIVE_POWER_SET_POINT', label: 'ReactivePowerSetPointText', unit: MEGA_VAR },
5959
{ id: 'VOLTAGE_SET_POINT', label: 'GeneratorTargetV', unit: KILO_VOLT },
6060
{
6161
id: 'PLANNED_ACTIVE_POWER_SET_POINT',
6262
label: 'PlannedActivePowerSetPointForm',
6363
unit: MEGA_WATT,
6464
},
65-
{ id: 'MARGINAL_COST', label: 'marginalCost' },
65+
{ id: 'MARGINAL_COST', label: 'MarginalCost' },
6666
{ id: 'PLANNED_OUTAGE_RATE', label: 'plannedOutageRate' },
6767
{ id: 'FORCED_OUTAGE_RATE', label: 'forcedOutageRate' },
6868
{ id: 'DROOP', label: 'ActivePowerRegulationDroop', unit: PERCENTAGE },
@@ -77,8 +77,8 @@ export const EQUIPMENTS_FIELDS: EquipmentFields = {
7777
[EQUIPMENT_TYPES.BATTERY]: [
7878
{ id: 'MINIMUM_ACTIVE_POWER', label: 'MinimumActivePowerText', unit: MEGA_WATT },
7979
{ id: 'MAXIMUM_ACTIVE_POWER', label: 'MaximumActivePowerText', unit: MEGA_WATT },
80-
{ id: 'ACTIVE_POWER_SET_POINT', label: 'ActivePowerText', unit: MEGA_WATT },
81-
{ id: 'REACTIVE_POWER_SET_POINT', label: 'ReactivePowerText', unit: MEGA_VAR },
80+
{ id: 'ACTIVE_POWER_SET_POINT', label: 'ActivePowerSetPointText', unit: MEGA_WATT },
81+
{ id: 'REACTIVE_POWER_SET_POINT', label: 'ReactivePowerSetPointText', unit: MEGA_VAR },
8282
{ id: 'DROOP', label: 'Droop', unit: PERCENTAGE },
8383
],
8484
[EQUIPMENT_TYPES.SHUNT_COMPENSATOR]: [
@@ -103,8 +103,8 @@ export const EQUIPMENTS_FIELDS: EquipmentFields = {
103103
},
104104
],
105105
[EQUIPMENT_TYPES.LOAD]: [
106-
{ id: 'ACTIVE_POWER', label: 'ActivePowerText', unit: MEGA_WATT },
107-
{ id: 'REACTIVE_POWER', label: 'ReactivePowerText', unit: MEGA_VAR },
106+
{ id: 'ACTIVE_POWER_SET_POINT', label: 'ActivePowerSetPointText', unit: MEGA_WATT },
107+
{ id: 'REACTIVE_POWER_SET_POINT', label: 'ReactivePowerSetPointText', unit: MEGA_VAR },
108108
],
109109
[EQUIPMENT_TYPES.TWO_WINDINGS_TRANSFORMER]: [
110110
{ id: 'R', label: 'SeriesResistanceText', unit: OHM },

src/translations/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@
541541
"Auxiliary": "Auxiliary",
542542
"Fictitious": "Fictitious",
543543
"ActivePowerText": "Active power",
544+
"ActivePowerSetPointText": "Active power setpoint",
544545
"ReactivePowerText": "Reactive power",
546+
"ReactivePowerSetPointText": "Reactive power setpoint",
545547
"BusBarBus": "Bus bar section / bus",
546548
"Buses": "Buses",
547549
"Magnitude": "Voltage magnitude",
@@ -696,7 +698,7 @@
696698
"Droop": "Droop",
697699
"PlannedActivePowerSetPointForm": "Planning active power set point",
698700
"plannedActivePowerSetPoint": "Planning P (MW)",
699-
"MarginalCost": "Cost",
701+
"MarginalCost": "Generation dispatch cost",
700702
"plannedOutageRate": "Planning outage rate",
701703
"forcedOutageRate": "Forced outage rate",
702704
"MinActivePowerMustBeLessOrEqualToMaxActivePower": "Minimum active power value must be less than or equal to maximum active power value",

src/translations/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@
541541
"Auxiliary": "Auxiliaire",
542542
"Fictitious": "Fictif",
543543
"ActivePowerText": "Puissance active",
544+
"ActivePowerSetPointText": "Consigne de puissance active",
544545
"ReactivePowerText": "Puissance réactive",
546+
"ReactivePowerSetPointText": "Consigne de puissance réactive",
545547
"BusBarBus": "SJB / nœud",
546548
"Buses": "Nœuds électriques",
547549
"Magnitude": "Tension",
@@ -692,7 +694,7 @@
692694
"Droop": "Participation",
693695
"PlannedActivePowerSetPointForm": "Puissance imposée",
694696
"plannedActivePowerSetPoint": "P imposée (MW)",
695-
"MarginalCost": "Coût",
697+
"MarginalCost": "Coût de démarrage",
696698
"plannedOutageRate": "Indisponibilité programmée",
697699
"forcedOutageRate": "Indisponibilité fortuite",
698700
"MinActivePowerMustBeLessOrEqualToMaxActivePower": "La valeur de la puissance active min doit être inférieure ou égale à la valeur de la puissance active max",

0 commit comments

Comments
 (0)