Skip to content

Conversation

@kmer2016
Copy link
Contributor

@kmer2016 kmer2016 commented Jan 23, 2026

Closes #14282

Summary

  • Wire TimeCell to "Arrival Time" / "Heure d'arrivée", "Departure Time" / "Heure de départ" and "Stop Duration" / "Temps d'arrêt" columns
  • Cell updates are saved on onBlur event

See commits

Editable columns

  • Arrival Time / Heure d'arrivée (requestedArrival)
  • Departure Time / Heure de départ (requestedDeparture)
  • Stop Duration / Temps d'arrêt (stopDuration) : component ready, not yet wired

Test plan

  • Edit arrival time on a row ==> resimulation triggers, computed times update
  • Edit departure time on a row (not first row) ==> resimulation triggers
  • Edit departure time on first row ==> updates train start_time, all other times shift accordingly
  • Edit on a PacedTrain (simple train)
  • Edit on an occurrence (exception is created/updated)
  • Clear a time field ==> value is removed from schedule

Used to compare two PathItemLocation objects when editing cells
in the times/stops table.

Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
Add fields needed for cell editing:
- isPathStep: indicates if the row is a path step or just an OP
- location: stores the PathItemLocation for creating new path items

Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
Add hook to persist arrival/departure edits to the API and trigger
re-simulation. Supports TimetableItems and PacedTrain occurrences
with exception handling.

Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 23, 2026
@achrafmohye
Copy link
Contributor

Seems like the simulation doesn't retrigger when the arrival time is changed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement the function for table editable cell

3 participants