Phase 7+8: Pretix + Sessionize interfaces
- Migration 20260825000000_interfaces.sql: external_id on contacts/ registrations/sessions (+ partial unique indexes), slots_id_seq, sync_runs audit table, and service-role-only sync_pretix_attendees / sync_sessionize_sessions RPCs (idempotent upserts). - sync-trigger Edge Function: admin-JWT or CRON_SECRET auth, pulls from Pretix/Sessionize base URLs, normalizes, calls the service-role RPCs. - interfaces/mock-api: dependency-free Node server (:54330) + fixtures so the full pipeline is testable without real tokens. - APPE Admin 'Interfaces' view: per-source + 'Sync all' triggers, result counts, recent sync runs, and QR CSV export; /functions proxy added. - Docs: new docs/backend/interfaces.md; updated README, roadmap, next-steps, schema, rls, rpcs, architecture, admin-app, and docs index.
This commit is contained in:
1 parent
22f5f1d317
commit
16f304d145
26 files changed
+1529
-80
No files matched your search
+12
-1
@@ -9,9 +9,18 @@ import { Sponsors } from './views/Sponsors';
|
||||
import { Schedule } from './views/Schedule';
|
||||
import { Activity } from './views/Activity';
|
||||
import { Events } from './views/Events';
|
||||
import { Sync } from './views/Sync';
|
||||
import { Spinner } from './components/ui';
|
||||
|
||||
export type View = 'dashboard' | 'contacts' | 'registrations' | 'sponsors' | 'schedule' | 'activity' | 'events';
|
||||
export type View =
|
||||
| 'dashboard'
|
||||
| 'contacts'
|
||||
| 'registrations'
|
||||
| 'sponsors'
|
||||
| 'schedule'
|
||||
| 'activity'
|
||||
| 'events'
|
||||
| 'sync';
|
||||
|
||||
const NAV: { id: View; label: string; ico: string }[] = [
|
||||
{ id: 'dashboard', label: 'Dashboard', ico: '📊' },
|
||||
@@ -21,6 +30,7 @@ const NAV: { id: View; label: string; ico: string }[] = [
|
||||
{ id: 'schedule', label: 'Schedule', ico: '🗓️' },
|
||||
{ id: 'activity', label: 'Activity', ico: '⚡' },
|
||||
{ id: 'events', label: 'Events', ico: '📅' },
|
||||
{ id: 'sync', label: 'Interfaces', ico: '🔄' },
|
||||
];
|
||||
|
||||
function Shell() {
|
||||
@@ -88,6 +98,7 @@ function Shell() {
|
||||
{view === 'schedule' && <Schedule />}
|
||||
{view === 'activity' && <Activity />}
|
||||
{view === 'events' && <Events />}
|
||||
{view === 'sync' && <Sync />}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user