Skip to content

Conversation

Mathieu-Deharbe
Copy link
Contributor

No description provided.

Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Copy link
Contributor Author

@Mathieu-Deharbe Mathieu-Deharbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the naming as requested.

But you are talking about other extra things (uuid, and some null and udnefined behavior) while also asking for less changes in the discussion. Can you say clearly if you want me to change those things or only change the bare minimum for the bug correction ? (and let the other errors here)

Maybe I should also remove the renaming BTW, because it is not needed either ?

Simplified version with only the bug correction : #3279
(typescript complains like expected)

modificationUuid: editData?.uuid ?? '',
lineId: selectedId,
lineName: sanitizeString(line[EQUIPMENT_NAME]?.value) ?? '',
equipmentName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
equipmentName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''),
lineName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''),

To be more homogeneous with the other modifications ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK done. But I had to put it back into LineModificationInfos. And I saw it only in LineCreationInfo : 1289927

modificationUuid,
lineId,
lineName,
equipmentName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And revert this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep done.


export interface LineModificationEditData {
uuid?: string;
export interface LineModificationDialogForm {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface LineModificationDialogForm {
export interface LineModificationFormInfos {

This nomenclature looks more used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK done.

@etiennehomer
Copy link
Contributor

Tests ok

Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Mathieu-Deharbe and others added 2 commits September 17, 2025 17:07
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Copy link

@Mathieu-Deharbe Mathieu-Deharbe changed the title more rigorous LineModificationForm typing Fix line name modification + rework LineModification dialog Sep 17, 2025
@Mathieu-Deharbe Mathieu-Deharbe merged commit 2e71558 into main Sep 17, 2025
5 checks passed
@Mathieu-Deharbe Mathieu-Deharbe deleted the more-rigorous-LineModificationForm-typing branch September 17, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants