VSN 1897 : handling the compatibility between trajectory schedules and transoport schedules.
Handling the reactive analogy between transport schedules & trajectories schedules in suitable forms modes.
Shared State Setup
- Define shared
schedulesstate in UsagerNewView - Propagate state updater through UsagerForm → EtablissementJoursField → TransportScheduleField
- Ensure updates occur at the final field where actual changes happen
Synchronization & Conversions
- Add synchronization
useEffectto reflect local schedule modifications - Implement conversion utility for transport → trajectory schedules
- Define
trajectorySchedsstate and recalculate on transport updates
Data Propagation
- Pass computed
trajectorySchedsfrom UsagerNewForm → RepresentantTabs → UnifiedRepresentantForm
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
modeparam to specify edit action - Add
modeparam to destructured inputs - Make analogic treatments exclusive to edit mode
Cleanup & Maintenance
- Remove commented code and debug logs
CLOSE VSN-1897