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.
This commit is contained in:
Lago committed 2026-10-18 18:20:16 +02:00
1 parent 1e3c969365
commit 6bde90aac1
9 files changed
+217 -27

No files matched your search

+14 -6
View File
@@ -51,6 +51,11 @@ export function SessionDetail({
// Service sessions have no material requirement (and no mic), so the
// pending-material notice never applies to them.
const needsMaterial = isSpeaker && !session.material_path && !isService;
// Feedback never applies to a service session: attendees cannot check in to
// one (so there is nothing to rate) and every staff member is auto-assigned
// as its speaker (so staff would otherwise see a "Your session feedback"
// block on a break/lunch card).
const showFeedback = !isService;
async function togglePick() {
try {
@@ -113,7 +118,9 @@ export function SessionDetail({
</div>
<button className="btn ghost small" onClick={onClose}>✕</button>
</div>
<div className="muted small" id="sd-desc" style={{ margin: '12px 0', lineHeight: 1.55 }}>
{/* The feed (Sessionize / Excel) carries real line breaks — .sd-desc
preserves them instead of collapsing the text into one block. */}
<div className="muted small sd-desc" id="sd-desc">
{session.description}
</div>
<div className="row" style={{ gap: 8, marginBottom: 14, flexWrap: 'wrap' }}>
@@ -135,8 +142,9 @@ export function SessionDetail({
</div>
)}
{/* Speaker feedback: visible only after the session is over. */}
{isSpeaker && status === 'done' && (
{/* Speaker feedback: visible only after the session is over, and never
for a service session. */}
{isSpeaker && showFeedback && status === 'done' && (
<div className="feedback-review">
<div className="fr-title">⭐ Your session feedback</div>
{session.average_feedback != null ? (
@@ -154,19 +162,19 @@ export function SessionDetail({
{session.ai_generated_feedback && (
<div className="fr-summary">
<div className="muted small" style={{ fontWeight: 700, marginBottom: 4 }}>AI summary</div>
<div style={{ lineHeight: 1.5 }}>{session.ai_generated_feedback}</div>
<div className="fr-text">{session.ai_generated_feedback}</div>
</div>
)}
</div>
)}
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
{status === 'done' && checkedIn && onGiveFeedback && (
{showFeedback && status === 'done' && checkedIn && onGiveFeedback && (
<button className="btn primary" data-testid="give-feedback" onClick={() => onGiveFeedback(session.id)}>
Give feedback ⭐
</button>
)}
{status === 'done' && !checkedIn && (
{showFeedback && status === 'done' && !checkedIn && (
<div className="muted small" style={{ textAlign: 'center' }}>
You weren’t checked in to this session.
</div>
+1 -6
View File
@@ -50,7 +50,7 @@ function ConcurrentList({ sessions, hasPicks }: { sessions: Session[]; hasPicks:
export function Home({ go, onEventFeedback, openFeedback }: { go: (tab: string) => void; onEventFeedback?: () => void; openFeedback?: (sessionId: string) => void }) {
const { contact, registration } = useAuth();
const { event, slots, sessionById, slotById, now, clockMode, loading, reload } = useEvent();
const { event, slots, sessionById, slotById, now, loading, reload } = useEvent();
const [prefs, setPrefs] = useState<Preference[]>([]);
const [checkins, setCheckins] = useState<string[]>([]);
const [mySpeakerSessions, setMySpeakerSessions] = useState<string[]>([]);
@@ -151,11 +151,6 @@ export function Home({ go, onEventFeedback, openFeedback }: { go: (tab: string)
<div>
<div className="h1">{greeting(now)}, {firstName} 👋</div>
<div className="muted small">{event.name}</div>
{clockMode === 'simulated' && (
<div className="muted small" style={{ marginTop: 2 }}>
🎬 Demo clock
</div>
)}
</div>
<div className="row" style={{ gap: 8 }}>
{pendingMaterial.length > 0 && (
+5
View File
@@ -161,6 +161,8 @@ body {
.feedback-review .fr-stars .on { color: #f59e0b; }
.feedback-review .fr-num { font-weight: 800; font-size: 16px; }
.feedback-review .fr-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
/* The AI summary is free text written by the model with real paragraphs. */
.feedback-review .fr-text { line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: #fff; flex-shrink: 0; }
.input {
width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
@@ -312,6 +314,9 @@ textarea.input { resize: none; min-height: 96px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sheet .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
/* Session description: the Sessionize/Excel feed carries line breaks and blank
lines, so keep them instead of collapsing everything into one block. */
.sd-desc { margin: 12px 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
/* ---------- Scan: uiverse check-in type toggle (Shoh2008 / brown-bulldog-12) ---------- */
.uiverse-toggle { display: inline-flex; }