feat: add per-event badge editor, pretix company import, smart guides

Badge Designer (admin): per-event WYSIWYG badge/PDF layout editor with mm canvas, text/QR/image elements, multi-select, Word+PowerPoint alignment, PowerPoint-style smart guides with snapping, Delete-key, preview and JSON views. Migration 20261015194531_badge_editor (badge_layouts + admin-only save/set-default/delete RPCs).

Company import: migration 20261015200719_events_company adds events.company; the sidecar pretix sync now fetches the organizer display name and stores it (best-effort). Bindable on badges as Company/organizer.

Tests: 15 SQL rollback assertions + 13 mocked browser tests. Docs synced.

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:
committed 2026-10-15 22:25:15 +02:00
1 parent 4ec03410ff
commit 5cb67afb5e
16 files changed
+1914 -9

No files matched your search

File diff suppressed because it is too large. Load diff
+9
View File
@@ -286,6 +286,7 @@ function EventModal({
const [startDate, setStartDate] = useState(event ? event.start_date.slice(0, 10) : '');
const [endDate, setEndDate] = useState(event ? event.end_date.slice(0, 10) : '');
const [location, setLocation] = useState(event?.location ?? '');
const [company, setCompany] = useState(event?.company ?? '');
const [endpoint, setEndpoint] = useState(event?.sessionize_endpoint ?? '');
const [endpointError, setEndpointError] = useState<string | null>(null);
const [pretixApiKey, setPretixApiKey] = useState(event?.pretix_api_key ?? '');
@@ -345,6 +346,7 @@ function EventModal({
start_date: startDate,
end_date: endDate,
location: location.trim() || null,
company: company.trim() || null,
sessionize_endpoint: source,
pretix_organizer: pretixOrganizer.trim() || null,
pretix_event_slug: pretixEventSlug.trim() || null,
@@ -394,6 +396,13 @@ function EventModal({
<label>Location</label>
<input className="input" value={location} onChange={(e) => setLocation(e.target.value)} placeholder="—" />
</div>
<div className="field">
<label>Company / organizer</label>
<input className="input" value={company} onChange={(e) => setCompany(e.target.value)} placeholder="e.g. Austrian Power Platform Enthusiasts" />
<div className="muted small" style={{ marginTop: 4 }}>
The owning organisation. Auto-filled from Pretix on sync; bindable on badges.
</div>
</div>
<div className="section">
<div className="section-head">
<span className="ico">📅</span>