How slayer-10/kishwar works
KISHWAR is a Next.js event-registration and management system. Participants and teams browse events, register, submit payment evidence, and receive invoices and QR tickets; administrators, front-desk officers, and ambassadors manage the event through role-specific dashboards. The README documents the broader role and payment capabilities, while excerpts confirm authentication lookup, public event rendering, and registration-review behavior. Unsampled subsystems are included at their supported tree paths; their internal wiring is not inferred beyond README statements.
Main entry points: prisma.ts PostgreSQL via Prisma · registration-review-actions.ts Registration review · (dashboard) Role dashboards · dispatch.ts Notification dispatch
Components 23
Public experience
- Event discovery
app/(public)/page.tsx - Event catalog
app/(public)/events/page.tsx - Event details
app/(public)/events/[id]/page.tsx - Registration forms
components/public - Registration handling
app/(public)/events/[id]/actions.ts
Event operations
- Role dashboards
app/(dashboard) - Admin management
app/(dashboard)/admin/actions.ts - Ambassador management
app/(dashboard)/ambassador/actions.ts - Front desk operations
app/(dashboard)/fdo - Participant account
app/(dashboard)/participant - Registration review
app/(dashboard)/registration-review-actions.ts
Identity and workflow
- Sign in / sign up
app/(auth)/actions.ts - Current-user lookup
lib/auth.ts - Review and seat rules
lib/registration-review.ts - Status transitions
lib/registrations/transition-rules.ts - Notification dispatch
lib/notifications/dispatch.ts - Health endpoint
app/api/health/route.ts
External services
- Supabase session client
lib/supabase/server.ts - PostgreSQL via Prisma
lib/prisma.ts - Email provider
lib/notifications/providers/email.ts - WhatsApp provider
lib/notifications/providers/whatsapp.ts - Supabase admin services
lib/supabase/admin.ts
Other components
- Visitor / participant
Connections 33
- Visitor / participant → Event discovery: browses
app/(public)/page.tsx - Visitor / participant → Event catalog: finds events
- Event discovery → Event catalog: links to events
app/(public)/page.tsx - Event catalog → Event details: opens event
- Event details → PostgreSQL via Prisma: reads event
app/(public)/events/[id]/page.tsx - Event details → Registration forms: renders forms
app/(public)/events/[id]/page.tsx - Registration forms → Registration handling: submits registration
components/public/public-team-registration-form.tsx - Registration handling → PostgreSQL via Prisma: creates registration
app/(public)/events/[id]/actions.ts - Registration handling → Supabase admin services: uses admin services
app/(public)/events/[id]/actions.ts - Registration handling → Notification dispatch: dispatches notice
app/(public)/events/[id]/actions.ts - Visitor / participant → Sign in / sign up: authenticates
- Sign in / sign up → Supabase session client: creates session
app/(auth)/actions.ts - Sign in / sign up → PostgreSQL via Prisma: stores user profile
app/(auth)/actions.ts - Current-user lookup → Supabase session client: gets auth user
lib/auth.ts - Current-user lookup → PostgreSQL via Prisma: loads role profile
lib/auth.ts - Visitor / participant → Role dashboards: uses assigned dashboard
- Role dashboards → Current-user lookup: checks role
app/(dashboard)/registration-review-actions.ts - Role dashboards → Admin management: admin manages
app/(dashboard)/admin/payments/page.tsx - Role dashboards → Ambassador management: ambassador manages
app/(dashboard)/ambassador/payments/page.tsx - Role dashboards → Front desk operations: FDO handles
- Role dashboards → Participant account: participant views
- Admin management → PostgreSQL via Prisma: manages records
app/(dashboard)/admin/actions.ts - Ambassador management → PostgreSQL via Prisma: manages teams
- Registration review → Current-user lookup: checks reviewer
app/(dashboard)/registration-review-actions.ts - Registration review → Review and seat rules: reserves approved seat
app/(dashboard)/registration-review-actions.ts - Registration review → PostgreSQL via Prisma: updates registration
app/(dashboard)/registration-review-actions.ts - Registration review → Supabase admin services: signs evidence links
app/(dashboard)/registration-review-actions.ts - Registration review → Notification dispatch: notifies decision
app/(dashboard)/registration-review-actions.ts - Registration review → Status transitions: applies status rules
app/(dashboard)/registration-review-actions.ts - Notification dispatch → PostgreSQL via Prisma: loads notification data
lib/notifications/dispatch.ts - Notification dispatch → Email provider: sends email
lib/notifications/dispatch.ts - Notification dispatch → WhatsApp provider: sends WhatsApp
lib/notifications/dispatch.ts - Visitor / participant → Health endpoint: checks service