Files
Convivo/docs/releases/2026-10-18.md
T
Lago 6bde90aac1 fix(convivo): readable descriptions, no feedback UI on service sessions, no demo-clock badge
Three attendee-app polish items from hands-on testing (Sabrina). All
presentation-layer: no migration, no RPC, no admin/sidecar change.

- Session detail collapsed multi-paragraph descriptions into one block. The
  feed carries real newlines (the sidecar passes Sessionize description through
  untouched), so this was pure CSS: new .sd-desc uses white-space: pre-line.
  The AI feedback summary gets the same via .feedback-review .fr-text.
- Staff saw "Your session feedback" on Break/Lunch cards, because
  _assign_service_session_speakers makes every staff member a speaker of every
  service slot. showFeedback = !isService now gates all three feedback surfaces
  (review block, Give-feedback button, "not checked in" note). The sheet itself
  stays openable for service sessions.
- Removed the "Demo clock" badge from the Home header. The simulated clock is an
  internal demo aid; attendees were never meant to see it. useEvent() still
  exposes clockMode and the admin toggle is unchanged.

Tests: three new API-mocked cases in convivo-admin-entry.spec.ts (service
feedback suppression, multi-line description via pre-line CSS + exact textContent
+ rendered-height comparison, no demo-clock badge per clock mode). 45/45 green
against the local dev server; attendee build clean.

Docs synced: screens.md, app-structure.md, backend/tests.md, next-steps.md, plus
a release record at docs/releases/2026-10-18.md noting that items 1/3/7 of the
report were already shipped (ef0446d, 999527b) and that this change is not yet
deployed.
2026-10-18 18:20:16 +02:00

4.2 KiB
Raw Blame History

Attendee Feedback Polish (2026-10-18)

Three fixes requested by Sabrina after hands-on testing of convivo.appe.at. All presentation-layer (attendee app only) — no migration, no RPC, no admin or sidecar change.

1. Session description collapsed into one block

Symptom. The session detail sheet rendered multi-paragraph descriptions as a single unreadable wall of text.

Root cause. The feed carries real line breaks: the sidecar passes Sessionize s.description through untouched (apps/sidecar/src/server.js), so the DB holds \n / \n\n (19 of the 33 seeded local sessions are multi-line). The sheet's description <div> used a plain inline style, and default CSS collapses newlines into spaces.

Fix. New .sd-desc class (apps/convivo/src/styles.css): white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere, applied to the #sd-desc block in apps/convivo/src/components/SessionDetail.tsx. The AI feedback summary got the same treatment via .feedback-review .fr-text. No markdown parser added — the feed is plain text.

2. "Your session feedback" shown on service sessions

Symptom. Staff opened a Break/Lunch card and saw the speaker feedback review ("⭐ Your session feedback", stars, AI summary) — nonsense on a break.

Root cause. _assign_service_session_speakers links every staff registration as a speaker of every service slot (by design, so service sessions have a speaker set). SessionDetail showed the review whenever isSpeaker && status === 'done', so any staff member hit it on every finished service card. Attendees can't check in to service sessions, so the "You weren't checked in" note was equally noise there.

Fix. const showFeedback = !isService; in SessionDetail.tsx; all three feedback surfaces (review block, Give feedback ⭐ button, "not checked in" note) are gated on it. The sheet itself stays — service cards remain openable (title, time, room, "No pick needed for this slot.").

3. "🎬 Demo clock" badge removed from Home

The simulated clock (use_realtime_clock = false, the default) is an internal demo aid; attendees were never meant to see it. The badge is gone from the Home header (apps/convivo/src/screens/Home.tsx, clockMode dropped from the useEvent() destructure — noUnusedLocals requires it). useEvent() still exposes clockMode; the admin Events toggle is unchanged.

Already fixed before this round (no code change)

  • Pick → detail instead of routing to Agenda and duplicated "Slot" time — shipped in ef0446d, live since the 2026-10-16 deploy.
  • Filters keep service sessions — on purpose (confirmed with the user): Level/Area filters apply to talks; service slots always show. Documented in screens.md.
  • "No picks" text next to existing picks — shipped in 999527b, live since 2026-10-17 (verified present in the served bundle index-CRttiV1E.js). The screenshot predates that deploy; index.html is served no-cache and there is no service worker, so a reload picks it up.

Verification

  • convivo-admin-entry.spec.ts: three new API-mocked cases — service session detail shows no feedback UI for a staff speaker, keeps the paragraph breaks of a multi-line description (asserts white-space: pre-line, exact textContent newlines preserved, and that the block renders taller than the same text with collapsed whitespace — toHaveText normalises whitespace and would pass trivially), and a no-"Demo clock"-badge assertion appended to each existing demo-clock scenario. 45/45 against the local dev server (:3000).
  • npm run build --prefix apps/convivo clean; bundle grep confirms Demo clock absent and .sd-desc/.fr-text in the CSS.
  • Docs synced in the same commit: screens.md, app-structure.md, tests.md, next-steps.md.

Deployment

Not deployed as of 2026-10-18. Production still serves index-CRttiV1E.js (= 999527b), so items 1–3 above are not yet visible on convivo.appe.at. Attendee-only deploy (three files: SessionDetail.tsx, Home.tsx, styles.css); follow the drift-guard + backup procedure in deployment.md.