How amarnath2007/project-zipbi works
ZipBi is a cafe-discovery and business-management platform with public, owner-admin, and super-admin portals. Visitors explore approved listings; owners create and update listings, menus, and operating details, then submit them for review; super admins review submissions, manage businesses and admins, and monitor activity. The React routes lead to feature pages, which use a shared Supabase client for data operations. The README documents the wider Supabase/PostgreSQL and Google Maps/Drive capabilities; source excerpts show selected client calls and utility usage, not every feature’s implementation or database operation.
Main entry points: client.ts Supabase Client · index.tsx Role-based Routes · NormalAdminWizardPage.tsx Listing Wizard · AuthContext.tsx Authentication
Components 24
App and Access
- Application Root
src/App.tsx - Role-based Routes
src/routes/index.tsx - Authentication
src/features/auth/AuthContext.tsx
Public Discovery
- Public Directory
src/features/directory/PublicDirectoryPage.tsx
Owner Administration
- Owner Portal
src/features/normal-admin - Listing Wizard
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Location Picker
src/components/map/LocationPickerMap.tsx
Super Admin
- Admin Overview
src/features/super-admin/overview/OverviewPage.tsx - Business Registry
src/features/super-admin/businesses - Review Queue
src/features/super-admin/reviews/ReviewQueuePage.tsx - Review Detail
src/features/super-admin/reviews/ReviewDetailPage.tsx - Team Management
src/features/super-admin/team/AdminTeamPage.tsx - Activity Logs
src/features/super-admin/activity/ActivityLogsPage.tsx - Platform Settings
src/features/super-admin/settings/SettingsPage.tsx
Data and Utilities
- Menu Parser
src/lib/utils/menuParser.ts - Supabase Client
src/lib/supabase/client.ts - Query Cache
src/lib/cache/queryCache.ts - Domain Formatters
src/lib/utils/formatters.ts - Invite Edge Function
supabase/functions/invite-admin/index.ts
Other components
- Visitor
- Admin User
- Google Drive
- Google Maps
- Supabase Database
Connections 36
- Application Root → Authentication: provides auth
src/App.tsx - Application Root → Role-based Routes: renders routes
src/App.tsx - Role-based Routes → Public Directory: routes to
src/routes/index.tsx - Role-based Routes → Owner Portal: routes to
src/routes/index.tsx - Role-based Routes → Admin Overview: routes to
src/routes/index.tsx - Role-based Routes → Business Registry: routes to
src/routes/index.tsx - Role-based Routes → Review Queue: routes to
src/routes/index.tsx - Role-based Routes → Review Detail: routes to
src/routes/index.tsx - Role-based Routes → Team Management: routes to
src/routes/index.tsx - Role-based Routes → Activity Logs: routes to
src/routes/index.tsx - Role-based Routes → Platform Settings: routes to
src/routes/index.tsx - Visitor → Public Directory: explores listings
README.md - Admin User → Authentication: authenticates
README.md - Admin User → Owner Portal: manages listings
README.md - Authentication → Supabase Client: loads session
src/features/auth/AuthContext.tsx - Authentication → Invite Edge Function: invokes function
src/features/auth/AuthContext.tsx - Public Directory → Supabase Client: loads listings
src/features/directory/PublicDirectoryPage.tsx - Owner Portal → Supabase Client: uses data API
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Owner Portal → Listing Wizard: hosts wizard
- Listing Wizard → Supabase Client: saves listing
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Listing Wizard → Location Picker: uses picker
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Listing Wizard → Menu Parser: parses menu
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Listing Wizard → Google Drive: parses media links
README.md - Listing Wizard → Google Maps: validates map links
README.md - Listing Wizard → Domain Formatters: formats timings
src/features/normal-admin/wizard/NormalAdminWizardPage.tsx - Admin Overview → Supabase Client: loads metrics
src/features/super-admin/overview/OverviewPage.tsx - Admin Overview → Query Cache: caches queries
src/features/super-admin/overview/OverviewPage.tsx - Business Registry → Supabase Client: manages records
src/features/super-admin/businesses/BusinessDetailsPage.tsx - Review Queue → Supabase Client: loads submissions
src/features/super-admin/reviews/ReviewQueuePage.tsx - Review Detail → Supabase Client: updates reviews
src/features/super-admin/reviews/ReviewDetailPage.tsx - Team Management → Supabase Client: manages admins
src/features/super-admin/team/AdminTeamPage.tsx - Activity Logs → Supabase Client: loads audit trail
- Platform Settings → Supabase Client: uses data API
src/features/super-admin/settings/SettingsPage.tsx - Supabase Client → Supabase Database: reads and writes
README.md - Supabase Client → Query Cache: deduplicates requests
src/lib/supabase/client.ts - Invite Edge Function → Supabase Database: uses backend