Skip to content

VSN 1897 : handling the compatibility between trajectory schedules and transoport schedules.

yassine.elazami a demandé de fusionner feature/VSN-1897 vers develop

Handling the reactive analogy between transport schedules & trajectories schedules in suitable forms modes.

Shared State Setup

  • Define shared schedules state in UsagerNewView
  • Propagate state updater through UsagerForm → EtablissementJoursField → TransportScheduleField
  • Ensure updates occur at the final field where actual changes happen

Synchronization & Conversions

  • Add synchronization useEffect to reflect local schedule modifications
  • Implement conversion utility for transport → trajectory schedules
  • Define trajectoryScheds state and recalculate on transport updates

Data Propagation

  • Pass computed trajectoryScheds from UsagerNewFormRepresentantTabsUnifiedRepresentantForm

Analogy Logic & Display

  • Implement analogy logic between transport and trajectory schedules
  • Bind analogy values for display states

Field & Mode Handling

  • Protect week identifiers assignment in TransportScheduleField
  • Fortify fetching logic using mode param to specify edit action
  • Add mode param to destructured inputs
  • Make analogic treatments exclusive to edit mode

Cleanup & Maintenance

  • Remove commented code and debug logs

CLOSE VSN-1897

Modification effectuée par yassine.elazami

Rapports de requête de fusion