Fixes & Refinements: QR token on registration, role caps, connection detail + red dot, admin schedule/sponsors
Datamodel: - Move qr_token from contacts to registrations (per event); new migration 20260826000000. lanyard_lookup / create_connection_request / checkin_attendee resolve via registrations + active event. - reset_qr_token -> reset_registration_qr_token (fixes ambiguous 'email' col). - upsert_contact drops the token arg; create_registration generates + syncs it. - Pretix sync writes the token to the registration (keeps it on re-sync). Registration types: - Distinct pill colors; red reserved for Staff (both apps). - Roles capitalized everywhere (Attendee/Speaker/Sponsor/Staff); 'Attendee' hidden only at the Home footer. - Reset-token button moved from Contacts to Registrations (per registration). Sessions (APPE Admin): - Slot types capitalized; material submitted/not-submitted state. - Speaker selection = multi-select search dropdown. - Fix 'a session must have a speaker' on edit (diff-based setSessionSpeakers) and the file-upload bug (speaker save no longer aborts first). APPE Admin: - Sponsors contact lookup = search field (filter + pick). Convivo App: - Other people's QR codes hidden; connection detail sheet shows public info + points. - Connect red dot recalculates immediately on accept/decline/send. - 'My picks today' = 2 rows (current + next); 'tap to change' links to Agenda. Docs updated across backend + frontend. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
3fd8feca53
commit
2f3952dc71
30 files changed
+1083
-232
No files matched your search
@@ -186,8 +186,19 @@ function SponsorModal({
|
||||
const [paid, setPaid] = useState(sponsor?.paid ?? false);
|
||||
const [amount, setAmount] = useState(sponsor?.amount_eur != null ? String(sponsor.amount_eur) : '');
|
||||
const [contactEmail, setContactEmail] = useState(sponsor?.contact_email ?? '');
|
||||
const [contactQuery, setContactQuery] = useState('');
|
||||
const [busy, setBusy] = useState(false);
|
||||
|
||||
const contactMatches = (() => {
|
||||
const q = contactQuery.trim().toLowerCase();
|
||||
const list = q
|
||||
? contacts.filter(
|
||||
(c) => c.full_name.toLowerCase().includes(q) || c.email.toLowerCase().includes(q),
|
||||
)
|
||||
: contacts;
|
||||
return list.slice(0, 6);
|
||||
})();
|
||||
|
||||
async function save() {
|
||||
if (!name.trim()) return;
|
||||
setBusy(true);
|
||||
@@ -259,14 +270,42 @@ function SponsorModal({
|
||||
</div>
|
||||
<div className="field">
|
||||
<label>Contact (lookup)</label>
|
||||
<select className="input" value={contactEmail} onChange={(e) => setContactEmail(e.target.value)}>
|
||||
<option value="">— none —</option>
|
||||
{contacts.map((c) => (
|
||||
<option key={c.email} value={c.email}>
|
||||
{c.full_name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
{contactEmail ? (
|
||||
<div className="row" style={{ gap: 8 }}>
|
||||
<span className="input" style={{ flex: 1, display: 'flex', alignItems: 'center' }}>
|
||||
{contacts.find((c) => c.email === contactEmail)?.full_name ?? contactEmail}
|
||||
</span>
|
||||
<button className="btn small" onClick={() => { setContactEmail(''); setContactQuery(''); }}>
|
||||
Clear
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<input
|
||||
className="input"
|
||||
placeholder="Search name or email…"
|
||||
value={contactQuery}
|
||||
onChange={(e) => setContactQuery(e.target.value)}
|
||||
/>
|
||||
{contactMatches.length > 0 && (
|
||||
<div className="contact-pick">
|
||||
{contactMatches.map((c) => (
|
||||
<button
|
||||
key={c.email}
|
||||
className="contact-pick-item"
|
||||
onClick={() => {
|
||||
setContactEmail(c.email);
|
||||
setContactQuery('');
|
||||
}}
|
||||
>
|
||||
<span className="n">{c.full_name}</span>
|
||||
<span className="e">{c.email}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
|
||||
Reference in new issue
Block a user