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:
1 parent
3d4dc207ff
commit
ef0446dcdf
10 files changed
+442
-177
No files matched your search
@@ -186,8 +186,8 @@ The `Shell` is the navigation container. Render logic, in order:
|
||||
- **Leaderboard** is *not* a tab — it's reached from the Home points pill and the
|
||||
Home quick-actions. It renders as a tab in the shell but is opened via
|
||||
`go('leaderboard')`.
|
||||
- **Feedback** is a full-screen takeover (no tab bar), opened from the Agenda
|
||||
session sheet via `openFeedback(sessionId)`.
|
||||
- **Feedback** is a full-screen takeover (no tab bar), opened from the session
|
||||
detail sheet (Agenda list or Home picks) via `openFeedback(sessionId)`.
|
||||
|
||||
## Shared UI components (`components/ui.tsx`)
|
||||
|
||||
@@ -199,3 +199,17 @@ The `Shell` is the navigation container. Render logic, in order:
|
||||
| `Sheet` | Bottom-sheet modal (backdrop + grab handle) |
|
||||
| `QrImage` | Renders a string (e.g. a QR token) as a scannable QR (`qrcode.react`) |
|
||||
| `Scanner` | Camera QR scanner (`html5-qrcode`) with a **manual-entry fallback** and a `hasCamera` guard (headless/no-camera environments fall back to typing the code) |
|
||||
|
||||
## Session detail (`components/SessionDetail.tsx`)
|
||||
|
||||
`SessionDetail` is the **single session detail bottom sheet** shared by the
|
||||
Agenda list and Home's **My picks today** chips (so tapping a pick on Home
|
||||
opens the session in place instead of routing to the Agenda). It receives the
|
||||
`session` + its `slot` plus plain booleans (`checkedIn`, `isSpeaker`,
|
||||
`picked`) and callbacks (`onPickChanged`, `onGiveFeedback`,
|
||||
`onMaterialChanged`) — the owning screen keeps its own preference/check-in
|
||||
state and refreshes it through the callbacks. Renders: title + time/room
|
||||
subtitle (the slot name is prefixed only when it adds information, so an
|
||||
auto-named "Slot 10:15–11:00" never repeats the time range), description, speaker/level/area/capacity/checked-in pills, the speaker
|
||||
material upload notice, the speaker feedback review, the Give-feedback button,
|
||||
the pick / "No pick needed" control, and the material download/remove buttons.
|
||||
@@ -117,8 +117,14 @@ The landing screen. Shows:
|
||||
- **Next card** — **always shown** for the next slot (same pick / concurrent-list
|
||||
logic as the Now card, without the check-in pill).
|
||||
- **My picks today** — one row per pick the user has made **today** (in slot
|
||||
order), each showing the slot time + session title + room. "tap to change" is a
|
||||
**hyperlink** to the Agenda. With no picks, a "No picks yet" line.
|
||||
order), each showing the slot time + session title + room. Tapping a row
|
||||
opens the **same session detail sheet the Agenda shows** (description,
|
||||
speaker/level/area pills, pick/un-pick, material download, feedback entry)
|
||||
**in place over Home** — no round trip to the Agenda tab. "tap to change" is
|
||||
a **hyperlink** to the Agenda. With no picks, a "No picks yet" line.
|
||||
- The detail sheet is a shared component (`components/SessionDetail.tsx`) used
|
||||
by both Home's picks and the Agenda list, so a session looks and behaves
|
||||
identically wherever it is opened.
|
||||
- **Quick actions** — Scan & connect, Agenda, Connections, Leaderboard.
|
||||
- **No active event** — a graceful empty state ("No active event right now.
|
||||
Check back soon!").
|
||||
@@ -164,8 +170,18 @@ differently:
|
||||
- they have **no material requirement** (the pending-material notice never
|
||||
applies to them).
|
||||
|
||||
A **service slot with no session behind it** (an orphan left over from an
|
||||
earlier feed or a manual edit) is **hidden entirely** by `groupAgenda`, exactly
|
||||
like an empty talk slot. Without this it would render as a header-only card
|
||||
while every real service card shows a header **plus** its session row — the
|
||||
inconsistency the attendee reported. The rule lives in the grouping layer, so
|
||||
the agenda list, its slot count, and Home's Now/Next cards all agree.
|
||||
|
||||
- **Tap a session** → opens a bottom **sheet** with details (description,
|
||||
speakers, room, capacity, checked-in state) and actions:
|
||||
speakers, room, capacity, checked-in state) and actions. The subtitle shows
|
||||
**time · room**, prefixed with the **slot name only when it adds
|
||||
information** — auto-named talk slots ("Slot 10:15–11:00") and service slots
|
||||
named like their session are not repeated:
|
||||
- **Give feedback ⭐** — only when the session is *done* **and** the user is
|
||||
checked in. Opens the Feedback takeover (`openFeedback(sessionId)`).
|
||||
- **Speaker feedback review** — when the user is a **speaker** of the session
|
||||
|
||||
Reference in new issue
Block a user