Skip to content

VSN 1897 : Adapting previous individual selection actions related to multiple addresses to the new crossed selection & similarly in the case of multiple establishments in the Passenger Usager form section

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

Description of Changes

New Features

Definition of the unpermitted choices array (trajectories calendar)

  • Implemented an array to store already selected periods.

Added the logic for calculating prohibited options (trajectories schedules)

  • Calculated the different options already selected in other trajectory schedules.
  • Defined the variable as the output of the checkScheduleHook.

Effective update of already selected options (trajectory schedules)

  • Extracted the variable from the custom schedConflict hook.
  • Defined a new state to describe prohibited options in the main component.
  • Updated the state during change events.

Passing the prohibited choices variable to the RepresentantForm component (trajectory schedules)

  • Defined a parameter in the child component.
  • Passed the value from the parent component.

Added the "representatives" parameter in UnifiedRepresentativeForm (trajectories schedules)

  • Passed the representatives parameter to calculate selectable schedules during selection changes.

Recalculation of prohibited schedules during change events (trajectory schedules)

  • Recalculated already selected periods during change events based on previous transportation data.

Post-test corrections (trajectories schedule)

  • Added condition tabId !== undefined to avoid confusion with null indexes.

Fixes

Improved handleChangeSelection function (trajectory schedules)

  • Implemented logic for selection handling based on transported prohibited values.

Cleanup and Refactoring

Code cleanup (converters)

  • Removed debugging consoles.
  • Removed commented code.

General refactoring (converters - representant-tabs - unified-representant-form)

  • Removed unnecessary variables and their transmissions.

Closes VSN-1897

Modification effectuée par yassine.elazami

Rapports de requête de fusion