Skip to content

Resolve VSN-2273 "Feature/Integration of prepared amendment passenger consultation and circuit amendment trips retrieval"

Oussama Toumi a demandé de fusionner feature/VSN-2273 vers develop

### Prepared amendment passengers

- Integrate list endpoint for prepared amendment passengers (`GET /active-or-future`)

- Integrate consultation endpoint for a prepared amendment passenger (`GET /{id}`)

- Adapt `useAmendmentPassengerCircuitTable` to use preparation endpoints when `preparation=true`

- Add `getPreparedAmendmentById` in `usePreparedAmendmentCircuitStore`

- Add `getById` in `circuitPreparationEndpoints.amendmentPassenger`

### Establishment select fix (preparation vs normal circuit)

- Handle uuid vs numeric id in establishment select

- Fix `mapAmendmentToEstablishmentSchedules` to fallback on uuid when id is missing

- Fix `useEstablishmentOptions`: generate options by id AND by uuid (`flatMap`)

- Fix `EtablissementJoursField`: use `getSelectValue` to display correct value

- Fix `establishmentNames` indexed by `number | string` to cover both cases

### Circuit amendment trips

- Retrieve trips for a prepared circuit amendment

Closes VSN-2273

Rapports de requête de fusion