Skip to content

Commit

Permalink
Add more fields for load expert filters. (#331)
Browse files Browse the repository at this point in the history

Signed-off-by: AAJELLAL <ali.ajellalod@gmail.com>
  • Loading branch information
AAJELLAL authored Jan 25, 2024
1 parent ff2be1d commit e148c87
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
22 changes: 21 additions & 1 deletion src/components/dialogs/filter/expert/expert-filter-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@ export const FIELDS_OPTIONS = {
label: 'vlId',
dataType: DataType.STRING,
},
P0: {
name: FieldType.P0,
label: 'p0',
dataType: DataType.NUMBER,
inputType: 'number',
},
Q0: {
name: FieldType.Q0,
label: 'q0',
dataType: DataType.NUMBER,
inputType: 'number',
},
};

export const fields: Record<string, Field[]> = {
Expand All @@ -226,5 +238,13 @@ export const fields: Record<string, Field[]> = {
FIELDS_OPTIONS.FORCED_OUTAGE_RATE,
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID,
],
LOAD: [FIELDS_OPTIONS.ID],
LOAD: [
FIELDS_OPTIONS.ID,
FIELDS_OPTIONS.NAME,
FIELDS_OPTIONS.VOLTAGE_LEVEL_ID,
FIELDS_OPTIONS.NOMINAL_VOLTAGE,
FIELDS_OPTIONS.COUNTRY,
FIELDS_OPTIONS.P0,
FIELDS_OPTIONS.Q0,
],
};
2 changes: 2 additions & 0 deletions src/components/dialogs/filter/expert/expert-filter.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export enum FieldType {
PLANNED_OUTAGE_RATE = 'PLANNED_OUTAGE_RATE',
FORCED_OUTAGE_RATE = 'FORCED_OUTAGE_RATE',
VOLTAGE_LEVEL_ID = 'VOLTAGE_LEVEL_ID',
P0 = 'P0',
Q0 = 'Q0',
}

export enum DataType {
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@
"plannedOutageRate": "Planning outage rate",
"forcedOutageRate": "Forced outage rate",
"vlId": "Voltage level ID",
"p0": "Constant P",
"q0": "Constant Q",
"downloadCases": "Download Case(s)",

"descriptionModificationError": "An error when modifying the description",
"descriptionLimitError": "Description exceeds character limit"
}
2 changes: 2 additions & 0 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@
"plannedOutageRate": "Indisponibilité programmée",
"forcedOutageRate": "Indisponibilité fortuite",
"vlId": "ID poste",
"p0": "P constant",
"q0": "Q constant",
"downloadCases": "Télécharger la(les) situation(s)",

"descriptionModificationError": "Erreur lors de la modification de la description",
Expand Down

0 comments on commit e148c87

Please sign in to comment.