fix(mobile): a stay chip in the timeline header opens the stay, not the day (#2210)

The hotel chips next to the day pill shared its target, so tapping a stay
opened the day sheet. A chip now carries its stay and opens it the way the
stay card in the day sheet does: the accommodation editor for members who
may edit days, otherwise the hotel's place, and the day sheet only when
neither applies. Closing the editor returns to the timeline it was opened
from instead of surfacing the day sheet, and the chip's accessible name
says whether it is a check-in, a check-out or an ongoing stay.
This commit is contained in:
Maurice
2026-09-03 09:15:27 +02:00
parent ffb6546e51
commit a2cb6a12d1
8 changed files with 98 additions and 23 deletions
@@ -133,7 +133,7 @@ describe('useMPlanTimeline', () => {
expect(result.current.hotelLegs.top?.seg).toBe(out)
expect(result.current.hotelLegs.bottom?.seg).toBe(back)
expect(result.current.hotelChips).toEqual([
{ key: 'stay-71', variant: 'stay', name: 'Hotel Sacher', time: null },
{ key: 'stay-71', variant: 'stay', name: 'Hotel Sacher', time: null, accId: 71, placeId: null },
])
})