Skip to content

Conversation

@Caracol3
Copy link
Contributor

@Caracol3 Caracol3 self-assigned this Jan 22, 2026
@Caracol3 Caracol3 requested a review from a team as a code owner January 22, 2026 20:18
@Caracol3 Caracol3 added kind:enhancement Improvement of existing features area:front Work on Standard OSRD Interface modules labels Jan 22, 2026
@Caracol3 Caracol3 moved this to Awaiting merge in Board PI 18 Jan 22, 2026
@Caracol3 Caracol3 changed the title Sync timetable hover with space-time chart one Sync timetable hover on train with space-time chart one Jan 23, 2026
@kmer2016 kmer2016 self-requested a review January 23, 2026 09:14
@Caracol3 Caracol3 force-pushed the mcy/operational-studies-hover-train-in-std-when-hovering-in-timetable branch from 9513702 to d246925 Compare January 23, 2026 09:22
pathfindingHasFailed
);

const hoveredPathId = useMemo(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rename this constant now it relates to path ids and train ids ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although the chart calls it pathId, it’s the same TrainId in our code, so i renamed it hoveredTrainIdForChart which is clearer and doesn’t suggest two ID types.

Copy link
Contributor

@achrafmohye achrafmohye left a comment

Choose a reason for hiding this comment

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

LGTM and tested thanks

Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

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

LGTM some nit

dragging: boolean,
selectedTrainId?: TrainId
selectedTrainId?: TrainId,
hoveredTrainId?: TrainId
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: just to clarify the source of the hover.

Suggested change
hoveredTrainId?: TrainId
hoveredTrainIdFromTimetable?: TrainId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! done

Signed-off-by: Mathieu <mathieu.coulibaly@sncf.fr>
@Caracol3 Caracol3 force-pushed the mcy/operational-studies-hover-train-in-std-when-hovering-in-timetable branch from d246925 to c3a0634 Compare January 23, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules kind:enhancement Improvement of existing features

Projects

Status: Awaiting merge

Development

Successfully merging this pull request may close these issues.

4 participants