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:
1 parent
2db22984fc
commit
a5ad9795ee
15 files changed
+878
-105
No files matched your search
@@ -22,7 +22,8 @@ export function Scan() {
|
||||
|
||||
useEffect(() => {
|
||||
if (slots.length > 0 && !sessionId) {
|
||||
const first = slots[0].sessions[0];
|
||||
// Default to the first checkable (non-service) session.
|
||||
const first = slots.flatMap((s) => s.sessions).find((s) => s.slot_type !== 'service_session');
|
||||
if (first) setSessionId(first.id);
|
||||
}
|
||||
}, [slots, sessionId]);
|
||||
@@ -128,13 +129,15 @@ export function Scan() {
|
||||
<>
|
||||
<div className="muted small" style={{ marginBottom: 7 }}>Checking in to session</div>
|
||||
<select className="input" value={sessionId} onChange={(e) => setSessionId(e.target.value)}>
|
||||
{slots.map(({ slot, sessions }) => (
|
||||
<optgroup key={slot.id} label={`${slot.name} · ${slot.start_time.slice(0, 5)}`}>
|
||||
{sessions.map((s) => (
|
||||
<option key={s.id} value={s.id}>{s.title}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
))}
|
||||
{slots
|
||||
.filter(({ slot }) => slot.type !== 'service_session')
|
||||
.map(({ slot, sessions }) => (
|
||||
<optgroup key={slot.id} label={`${slot.name} · ${slot.start_time.slice(0, 5)}`}>
|
||||
{sessions.map((s) => (
|
||||
<option key={s.id} value={s.id}>{s.title}</option>
|
||||
))}
|
||||
</optgroup>
|
||||
))}
|
||||
</select>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user