fix(convivo): consistent service cards, in-place pick details, no duplicated slot time

- groupAgenda drops orphan service slots (no session row), so every Service Session card consistently shows header + session row; list, slot count and Home Now/Next agree
- Extract the session detail bottom sheet into shared components/SessionDetail.tsx; Home's My-picks chips now open it in place instead of routing to the Agenda (App passes openFeedback so Give-feedback works there too)
- Sheet subtitle shows the slot name only when it adds information: auto-named 'Slot 10:15-11:00' no longer repeats the time range, and service names equal to the session title are skipped
- e2e: orphan-slot test + Home session picks test (exact subtitle assertion) in convivo-admin-entry.spec.ts, 41/41 green; speaker-portal 19/19; docs + release record 2026-10-16.md
This commit is contained in:
Lago committed 2026-10-16 16:11:12 +02:00
1 parent 3d4dc207ff
commit ef0446dcdf
10 files changed
+442 -177

No files matched your search

+9 -1
View File
@@ -83,7 +83,15 @@ export function groupAgenda(rows: AgendaRow[]): { slot: Slot; sessions: Session[
});
}
}
return [...map.values()].sort((first, second) =>
// A service slot is only meaningful with a session behind it (break / lunch /
// closing …). An orphan service slot — left over from an earlier feed or a
// manual edit with no session row — would render as a header-only card,
// inconsistent with every other service card. Drop those (mirroring how the
// agenda already hides empty talk slots) so the list, its slot count, and
// Home's Now/Next all agree.
return [...map.values()]
.filter(({ slot, sessions }) => slot.type !== 'service_session' || sessions.length > 0)
.sort((first, second) =>
first.slot.slot_date.localeCompare(second.slot.slot_date)
|| first.slot.start_time.localeCompare(second.slot.start_time)
|| first.slot.end_time.localeCompare(second.slot.end_time)