diff --git a/app/main.py b/app/main.py index 40b5141..4320489 100644 --- a/app/main.py +++ b/app/main.py @@ -647,6 +647,7 @@ PAGE_HTML = """ .gpill.ok { background: #eaf3ea; color: #2f5c30; } .gpill.done { background: #f1e8da; color: #a97a4a; } .gpill.bad { background: #f6e9e5; color: var(--danger); } + .gpill.invited { background: #e7edf5; color: #4a6a8a; } footer { border-top: 1px solid var(--border); @@ -954,6 +955,7 @@ function renderGuestEnded(g) { const GUEST_STATUS_LABELS = { rejected: ['not approved', 'bad'], + invited: ['Invited โ awaiting setup', 'invited'], active: ['active guest', 'ok'], converted: ['became a member', 'done'], expired: ['ended โ time ran out', 'done'], @@ -1012,10 +1014,13 @@ function renderGuests(d) { $('guest-trail').innerHTML = trail.map(t => { const who = t.name ? escapeHtml(t.name) + ' ยท ' + escapeHtml(t.recipient) : escapeHtml(t.recipient); const when = t.decided_at ? 'Decided ' + fmtDay(t.decided_at) : 'Sent ' + fmtDay(t.created_at); + // `state` carries the portal's derived display state โ 'invited' while the + // guest has not accepted their setup invite (never 'active' before that). + // Older payloads carry status only; fall back to it. return '