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 Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
8e38052f4c
commit
84d39224ba
10 files changed
+442
-177
No files matched your search
@@ -175,6 +175,26 @@ retained no-pick/no-upload service behavior even for an assigned staff speaker.
|
||||
A separate case checks exact date/time matching and keeps unrelated services
|
||||
separate. See the [deployment record](../releases/2026-10-11.md).
|
||||
|
||||
# Agenda Consistency + Home Picks Regression
|
||||
|
||||
Two further API-mocked checks run in the same spec:
|
||||
|
||||
```sh
|
||||
CONVIVO_BASE_URL=http://127.0.0.1:3000 npm test --prefix e2e -- convivo-admin-entry.spec.ts --project=chromium --grep 'Service agenda|Home session picks'
|
||||
```
|
||||
|
||||
- **Orphan service slot** — a `get_agenda` row whose slot is a
|
||||
`service_session` with a null session (the LEFT JOIN shape a slot with no
|
||||
session row produces) must render **no card at all**, so every service card
|
||||
consistently shows a header plus its session row. The rule lives in
|
||||
`groupAgenda`, so the list, the displayed slot count and Home's Now/Next all
|
||||
agree.
|
||||
- **Home session picks** — tapping a "My picks today" chip opens the shared
|
||||
`SessionDetail` sheet **over Home** (title, description, time/room/speaker,
|
||||
level pill, and the "Remove my pick" control) and leaves the active tab on
|
||||
Home; closing the sheet returns to the pick list. This replaces the old
|
||||
behavior of routing to the Agenda tab.
|
||||
|
||||
# Session Persistence Regression
|
||||
|
||||
Run the rollback-only fixture after applying
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# Attendee Agenda Polish (2026-10-16)
|
||||
|
||||
Three presentation-only fixes to the attendee app (Convivo), all local-first
|
||||
and deployed together as an attendee-only rebuild (no migrations, no sidecar,
|
||||
no admin changes).
|
||||
|
||||
## 1. Service Session card consistency
|
||||
|
||||
**Symptom:** some Service Session agenda cards rendered a header plus a detail
|
||||
row, while one (11:15–12:00) rendered header-only.
|
||||
|
||||
**Root cause:** an orphan service slot — a `slots` row typed
|
||||
`service_session` with no `sessions` row behind it (a leftover from an earlier
|
||||
feed state or manual edit). `get_agenda` LEFT JOINs sessions onto slots, so
|
||||
the orphan arrives as a row with slot fields and a null session; the Agenda
|
||||
rendered the header with zero session rows. Nothing referenced the slot
|
||||
(0 preferences / check-ins / feedback).
|
||||
|
||||
**Fix:** `groupAgenda` (`apps/convivo/src/lib/api.ts`) drops service slots
|
||||
with no sessions, mirroring the existing rule that hides empty talk slots.
|
||||
Placed in the grouping layer so the agenda list, its displayed slot count, and
|
||||
Home's Now/Next cards all agree. Presentation-only — no data was deleted.
|
||||
|
||||
## 2. Home picks open the session detail in place
|
||||
|
||||
**Request:** tapping a pick under "My picks today" routed to the Agenda tab;
|
||||
it should open the session's details directly.
|
||||
|
||||
**Fix:** the Agenda's session bottom sheet was extracted verbatim into a
|
||||
shared component `apps/convivo/src/components/SessionDetail.tsx` (title,
|
||||
time/room subtitle, description, speaker/level/area/capacity/checked-in pills,
|
||||
pick / "Remove my pick", speaker material upload/download/remove, speaker
|
||||
feedback review, Give-feedback entry). Home's pick chips now open it over
|
||||
Home; the Agenda renders the same component (~100 lines of duplicated markup
|
||||
removed). `App.tsx` passes `openFeedback` into Home so feedback works from the
|
||||
Home sheet too. The "tap to change" link to the Agenda remains.
|
||||
|
||||
## 3. Session detail subtitle no longer repeats the time
|
||||
|
||||
**Symptom:** the sheet subtitle showed the time twice, e.g.
|
||||
"Slot 10:15–11:00 · 10:15–11:00 · Room A".
|
||||
|
||||
**Root cause:** talk slots are auto-named `Slot <start>–<end>`, and the
|
||||
subtitle rendered `{slot.name} · {range} · {room}`.
|
||||
|
||||
**Fix:** the slot name is shown only when it adds information — skipped when
|
||||
it equals the auto-generated `Slot <range>` or repeats the session title
|
||||
(common for services like "Lunch").
|
||||
|
||||
## Verification
|
||||
|
||||
- `convivo-admin-entry.spec.ts` (API-mocked): **41/41** green, including the
|
||||
new orphan-service-slot test and the new "Home session picks" test (sheet
|
||||
opens over Home, tab stays active, exact subtitle `10:15–11:00 · Room A`,
|
||||
close returns to the pick list).
|
||||
- `speaker-portal.spec.ts`: 19/19 green (regression).
|
||||
- Attendee production build clean.
|
||||
- Docs synced: `docs/frontend/screens.md`, `docs/frontend/app-structure.md`
|
||||
(new "Session detail" section), `docs/backend/tests.md` ("Agenda
|
||||
Consistency + Home Picks Regression").
|
||||
Reference in new issue
Block a user