fix(ci): align packing parity and simplify offline sync

Describe bringer input in the shared packing contract and check its trip event against the REST contributor operation. Keep offline map preparation in its own step without changing the order or the sign-out checks.
This commit is contained in:
Maurice
2026-12-05 12:45:31 +01:00
parent 09567d32c4
commit f3bbd1a268
4 changed files with 43 additions and 25 deletions
@@ -178,6 +178,21 @@ export const money: CaseGroup = {
},
expect: ['packing:deleted', { event: 'packing:created', only: 'viewers' }],
},
{
tool: 'set_packing_item_bringers',
needs: ['packingItem', 'member'],
args: (s) => ({
tripId: s.trip.id,
itemId: s.packingItem.id,
user_ids: s.packingItem.owner_id ? [s.packingItem.owner_id, s.member.id] : [s.member.id],
}),
rest: {
method: 'post',
path: (s) => packing(s, '/' + s.packingItem.id + '/contributors'),
body: (s) => ({ user_id: s.member.id }),
},
expect: ['packing:updated'],
},
{
// The route used to save the order and tell nobody (G14).
tool: 'reorder_packing_items',