How erzamadana-ui/antarkita works
AntarKita is a Supabase-backed, three-app super-app for customer bookings, partner fulfillment, and administrative operations. The main flow is service discovery and booking, payment, partner acceptance and status updates, then customer tracking and operational oversight. The README documents the broader service and role capabilities; sampled source and the SOURCE INDEX support selected client and payment-handler relationships. Some screen-to-backend wiring is not shown, so those links are omitted rather than inferred.
Main entry points: pelanggan/app Customer app · index.tsx Shop and market · mitra/app Mitra app · ingest.ts Event ingestion
Components 33
Customer services
- Customer app
apps/pelanggan/app - Ride booking
src/screens/ride/index.tsx - Food ordering
src/screens/food/index.tsx - Send booking
src/screens/send/index.tsx - Shop and market
src/screens/shop/index.tsx - Travel booking
src/screens/travel/index.tsx - Booking sheet
src/components/BookingSheet.tsx - Order tracking
src/screens/order/detail.tsx
Partner fulfillment
- Mitra app
apps/mitra/app - Driver operations
src/screens/driver/order.tsx - Merchant operations
src/screens/merchant/tabs/index.tsx - Travel partner
src/screens/driver/travel.tsx
Operations
- Admin app
apps/admin/app - Operations panel
src/screens/admin/index.tsx - Executive portal
src/screens/exec/index.tsx
Shared client
- Identity and profile
src/store/auth.ts - Service settings
src/hooks/useAppSettings.ts - City availability
src/hooks/useCityStatus.ts - Places and routing
src/lib/geo.ts - Supabase client
src/lib/supabase.ts - Payment client
src/lib/payments.ts
Payment backend
- Payment handlers
supabase/functions/pay-create/handler.ts - Payment webhook
supabase/functions/pay-webhook/handler.ts - Disbursement handler
supabase/functions/pay-disburse/handler.ts - Reconciliation handler
supabase/functions/pay-reconcile/handler.ts - Refund handler
supabase/functions/pay-refund/handler.ts - Payment providers
supabase/functions/_shared/providers/index.ts - Event ingestion
supabase/functions/_shared/ingest.ts - Redaction and logs
supabase/functions/_shared/log.ts
Other components
- Customer
- Driver and merchant
- Admin
- Supabase services
Connections 45
- Customer → Customer app: uses
README.md - Customer app → Ride booking: books rides
README.md - Customer app → Food ordering: orders food
README.md - Customer app → Send booking: books delivery
README.md - Customer app → Shop and market: shops
README.md - Customer app → Travel booking: books travel
README.md - Ride booking → Booking sheet: uses
- Food ordering → Booking sheet: uses
- Shop and market → Booking sheet: uses
src/screens/shop/index.tsx - Travel booking → Booking sheet: uses
src/screens/travel/index.tsx - Driver and merchant → Mitra app: uses
README.md - Mitra app → Driver operations: fulfills rides
README.md - Mitra app → Merchant operations: fulfills orders
README.md - Mitra app → Travel partner: handles travel
README.md - Customer app → Order tracking: tracks orders
README.md - Admin → Admin app: uses
README.md - Admin app → Operations panel: operates
README.md - Admin app → Executive portal: opens portal
README.md - Customer app → Identity and profile: shares account
README.md - Mitra app → Identity and profile: shares account
README.md - Admin app → Identity and profile: admin sign-in
README.md - Ride booking → Service settings: reads settings
- Shop and market → Service settings: reads settings
src/screens/shop/index.tsx - Shop and market → City availability: checks availability
src/screens/shop/index.tsx - Travel booking → City availability: checks availability
src/screens/travel/index.tsx - Shop and market → Places and routing: uses places
src/screens/shop/index.tsx - Travel booking → Places and routing: uses routing
src/screens/travel/index.tsx - Identity and profile → Supabase client: queries
src/store/auth.ts - Service settings → Supabase client: calls RPC
src/hooks/useAppSettings.ts - City availability → Supabase client: calls RPC
src/hooks/useCityStatus.ts - Supabase client → Supabase services: connects
README.md - Booking sheet → Payment client: uses
src/components/BookingSheet.tsx - Payment client → Payment handlers: invokes
- Payment handlers → Payment providers: selects provider
supabase/functions/pay-create/handler.ts - Payment handlers → Event ingestion: records events
supabase/functions/pay-create/handler.ts - Payment webhook → Payment providers: uses provider
supabase/functions/pay-webhook/handler.ts - Payment webhook → Event ingestion: ingests events
supabase/functions/pay-webhook/handler.ts - Disbursement handler → Payment providers: selects provider
supabase/functions/pay-disburse/handler.ts - Disbursement handler → Event ingestion: records events
supabase/functions/pay-disburse/handler.ts - Reconciliation handler → Payment providers: uses provider
supabase/functions/pay-reconcile/handler.ts - Reconciliation handler → Refund handler: imports handler
supabase/functions/pay-reconcile/handler.ts - Refund handler → Payment providers: selects provider
supabase/functions/pay-refund/handler.ts - Payment handlers → Redaction and logs: logs events
supabase/functions/pay-create/handler.ts - Event ingestion → Redaction and logs: redacts data
supabase/functions/_shared/ingest.ts - Event ingestion → Supabase services: writes RPC
supabase/functions/_shared/ingest.ts