Service sessions + Home redesign + feedback loop

Service sessions (new slot semantics):
- Sidecar maps isServiceSession OR isPlenumSession -> service_session
  (Excel path also matches 'plenum' in Session Format).
- checkin_attendee rejects service sessions; Scan check-in dropdown
  excludes them.
- New _assign_service_session_speakers helper links every registered
  staff member as a speaker of a service session; both sync RPCs call
  it (and the API sync now actually types slots from is_service_session).
- No material requirement + no mic emoji for service sessions.

Home redesign:
- Now/Next cards show all concurrent sessions as sub-sections when
  there's no pick (1/2/3 sessions -> 1/2/3 sub-sections), with a
  "Nothing scheduled" fallback for empty slots.
- My picks today lists every pick (slot order) + empty state.
- Demo clock EVENT_DATE fixed to 2026-02-20 (matches seed) so a slot
  is live at 10:20.

Feedback loop:
- Attendee pending-feedback pill on Home (checked into an over session,
  not its speaker, no feedback yet); clears on submit.
- Speaker sees rating + AI summary for their own session in the Agenda
  sheet only after it's over.

Migration 20260833000000_service_sessions_feedback.sql. Docs updated.
This commit is contained in:
Lago committed 2026-08-25 08:58:16 +02:00
1 parent 2db22984fc
commit a5ad9795ee
15 files changed
+878 -105

No files matched your search

+23
View File
@@ -77,6 +77,17 @@ body {
border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px;
}
.material-notice .mn-title { font-weight: 800; font-size: 14px; }
/* speaker's post-session feedback review (rating + AI summary) */
.feedback-review {
background: rgba(124,58,237,.07); border: 1px solid rgba(124,58,237,.35); border-left: 3px solid #7c3aed;
border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px;
}
.feedback-review .fr-title { font-weight: 800; font-size: 14px; }
.feedback-review .fr-rating { display: flex; align-items: center; gap: 10px; }
.feedback-review .fr-stars { font-size: 18px; letter-spacing: 2px; color: #d6d3d1; }
.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; }
.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);
@@ -168,6 +179,18 @@ textarea.input { resize: none; min-height: 96px; }
color: #d50000; font-weight: 800; font-size: 14px; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.now-card { background: linear-gradient(135deg, rgba(213,0,0,.1), rgba(32,178,170,.08)); border: 1px solid rgba(213,0,0,.35); }
/* Concurrent-session list inside the Now/Next card (shown when there's no pick). */
.now-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.now-item { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.now-item .t { font-weight: 700; font-size: 14px; }
/* Pending-feedback nudge (attendees who attended a session that's now over). */
.feedback-pill {
display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px;
padding: 12px 14px; border-radius: 14px; cursor: pointer; font-family: inherit;
background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.4);
color: #6d28d9; font-weight: 800; font-size: 14px; text-align: left;
}
.feedback-pill:active { transform: scale(.99); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa {
display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; cursor: pointer;