Merge dev into fix/prettier

Brings in the Tours addon and the MikroORM follow-ups. Conflicts were
resolved to dev's content, then every file dev brought in was run through
prettier and eslint --fix so the branch stays uniformly formatted.
This commit is contained in:
Maurice
2026-10-07 15:43:13 +02:00
242 changed files with 22952 additions and 731 deletions
@@ -54,6 +54,8 @@ function makeRow(overrides: Partial<AssignmentWithPlaceRow> = {}): AssignmentWit
phone: '+33 1 2345 6789',
stop_type: null,
fill_percent: null,
tour_place_id: null,
tour_route_geometry: null,
...overrides,
};
}
@@ -106,6 +108,16 @@ describe('formatAssignmentWithPlace', () => {
expect(result.place.category).toBeNull();
});
it('keeps the Tour facet fields at the assignment level, null for an ordinary place', () => {
expect(formatAssignmentWithPlace(makeRow(), [], [])).toMatchObject({
tour_place_id: null,
tour_route_geometry: null,
});
const geometry = '[[48.1,11.5],[48.2,11.6]]';
const tour = formatAssignmentWithPlace(makeRow({ tour_place_id: 100, tour_route_geometry: geometry }), [], []);
expect(tour).toMatchObject({ tour_place_id: 100, tour_route_geometry: geometry });
});
it('passes tags and participants through untouched', () => {
const result = formatAssignmentWithPlace(makeRow(), sampleTags, sampleParticipants);
expect(result.place.tags).toEqual(sampleTags);