How mayank-dhawad/quick-hire works
QuickHire is a web platform for worker profiles, discovery, jobs, payments, and work history, with an administrative sub-application. The principal user flow is browser access, phone-based authentication, worker lookup or profile management, then job-related activity backed by Supabase. The graph includes major capabilities named in the README and product-facing subsystems in the tree. Some feature components were not sampled, so their internal calls and data flows are not asserted; edges reflect excerpted references or README documentation.
Main entry points: App.tsx Application Shell · supabase.ts Supabase Client · WorkersTab.tsx Worker Workspace · Auth.tsx Authentication
Components 22
Worker Platform
- Application Shell
src/App.tsx - Authentication
src/components/Auth.tsx - Worker Discovery
src/components/WorkerDiscoveryModal.tsx - Worker Workspace
src/components/WorkersTab.tsx - Worker Profile
src/components/WorkerProfileModal.tsx - Worker Map
src/components/WorkersMapView.tsx - Jobs and History
src/components/DashboardTab.tsx - Job Posting
src/components/PostJobTab.tsx - Payment Workflow
src/components/DirectPaymentModal.tsx - Equipment Rental
src/components/EquipmentRentalTab.tsx - Safety Services
src/components/SafetyTab.tsx
Shared Services
- Supabase Client
src/lib/supabase.ts - Location Services
src/lib/geocoding.ts - Translations
src/lib/translations.ts - SMS Function
supabase/functions/send-sms/index.ts
Administration
- Admin Routing
src/lib/adminRouter.ts - Admin Authorization
src/lib/adminAuth.ts - Admin Login
src/components/admin/AdminLogin.tsx - Admin Management
src/components/admin
Offline Access
- PWA Registration
src/lib/pwaRegister.ts - Install Prompt
src/hooks/usePwaInstall.ts
Other components
- Worker or Employer
Connections 25
- Worker or Employer → Application Shell: uses
README.md - Application Shell → Authentication: renders
src/App.tsx - Application Shell → Worker Discovery: renders
src/App.tsx - Application Shell → Worker Profile: renders
src/App.tsx - Application Shell → Location Services: resolves locations
src/App.tsx - Worker Workspace → Worker Discovery: opens
src/components/WorkersTab.tsx - Worker Workspace → Worker Map: renders
src/components/WorkersTab.tsx - Worker Workspace → Location Services: saves locations
src/components/WorkersTab.tsx - Worker Profile → Location Services: looks up locations
src/components/WorkerProfileModal.tsx - Worker Profile → Translations: gets translations
src/components/WorkerProfileModal.tsx - Authentication → Admin Authorization: checks admin
src/components/Auth.tsx - Authentication → Translations: gets translations
src/components/Auth.tsx - Admin Login → Admin Authorization: authenticates
src/components/admin/AdminLogin.tsx - Admin Login → Admin Routing: uses routes
src/components/admin/AdminLogin.tsx - Admin Authorization → Supabase Client: queries and verifies
src/lib/adminAuth.ts - Application Shell → Supabase Client: stores and retrieves data
README.md - Application Shell → Admin Routing: reads route
src/App.tsx - Jobs and History → Supabase Client: uses backend
- Job Posting → Supabase Client: uses backend
- Payment Workflow → Supabase Client: uses backend
- Equipment Rental → Supabase Client: uses backend
- Safety Services → Supabase Client: uses backend
- Admin Management → Supabase Client: uses backend
src/components/admin/AdminLogin.tsx - Application Shell → PWA Registration: registers service worker
src/main.tsx - Install Prompt → Worker or Employer: offers installation