How sanjaykolapkar02-sys/gigworker works
GigShield is a React financial-identity app for gig workers. The main journey is phone/OTP sign-in, asset onboarding, then viewing a GigScore and income outlook; users can also access their GigID and transaction history or participate in fundraisers. Admins review workers and submit selected users to a B2B mediation endpoint. The frontend currently uses a mock-enabled API client. Edges reflect explicit README contracts or shown imports/calls; unexcerpted feature implementations are represented by their exact tree paths, without assuming internal links.
Main entry points: App.js Route application · DashboardPage.jsx Dashboard page · api.js API client · MediationPipelineTable.jsx Mediation pipeline
Components 29
Access & onboarding
- Phone login
src/components/auth/PhoneLogin.jsx - OTP verification
src/components/auth/OtpVerify.jsx - Asset wizard
src/components/onboarding/AssetWizard.jsx - Authentication state
src/hooks/useAuth.js
Score & identity
- Dashboard page
src/pages/DashboardPage.jsx - Dashboard data
src/hooks/useDashboard.js - GigScore display
src/components/dashboard/GigScoreRing.jsx - Income forecast
src/components/dashboard/IncomePredictorChart.jsx - Quick actions
src/components/dashboard/QuickActions.jsx - Profile page
src/pages/ProfilePage.jsx - GigID card
src/components/profile/GigIDCard.jsx - Transaction history
src/components/profile/TransactionTimeline.jsx
Community support
- Community page
src/pages/CommunityPage.jsx - Fundraiser feed
src/components/community/FundraiserFeed.jsx - Donation card
src/components/community/DonationCard.jsx - Fundraiser data
src/hooks/useFundraisers.js
Partner operations
- Admin panel
src/pages/AdminPanelPage.jsx - Mediation pipeline
src/components/admin/MediationPipelineTable.jsx - B2B partner API
App foundation
- Route application
src/App.js - API client
src/services/api.js - Protected layout
src/components/shared/AuthLayout.jsx - Bottom navigation
src/components/shared/BottomNav.jsx - Top bar
src/components/shared/TopBar.jsx - Empty state
src/components/shared/EmptyState.jsx - Loading spinner
src/components/shared/LoadingSpinner.jsx - INR formatting
src/utils/formatCurrency.js
Other components
- Gig worker
- Admin
Connections 40
- Gig worker → Route application: opens
README.md - Admin → Route application: opens
README.md - Route application → Phone login: routes to
src/App.js - Route application → OTP verification: routes to
src/App.js - Route application → Dashboard page: routes to
src/App.js - Route application → Community page: routes to
src/App.js - Route application → Profile page: routes to
src/App.js - Route application → Asset wizard: routes to
src/App.js - Route application → Admin panel: routes to
src/App.js - Phone login → API client: requests OTP
src/components/auth/PhoneLogin.jsx - OTP verification → API client: verifies OTP
src/components/auth/OtpVerify.jsx - Asset wizard → API client: uploads assets
README.md - Dashboard page → Dashboard data: loads data
src/pages/DashboardPage.jsx - Dashboard page → GigScore display: renders
src/pages/DashboardPage.jsx - Dashboard page → Income forecast: renders
src/pages/DashboardPage.jsx - Dashboard page → Quick actions: renders
src/pages/DashboardPage.jsx - Dashboard data → API client: fetches and refreshes
src/hooks/useDashboard.js - Profile page → GigID card: renders
src/pages/ProfilePage.jsx - Profile page → Transaction history: renders
src/pages/ProfilePage.jsx - Transaction history → API client: loads history
README.md - Community page → Fundraiser feed: renders
src/pages/CommunityPage.jsx - Fundraiser feed → Donation card: renders
src/components/community/FundraiserFeed.jsx - Fundraiser feed → Fundraiser data: uses data
src/components/community/FundraiserFeed.jsx - Fundraiser data → API client: loads and donates
src/hooks/useFundraisers.js - Admin panel → Mediation pipeline: renders
src/pages/AdminPanelPage.jsx - Mediation pipeline → API client: loads users
src/components/admin/MediationPipelineTable.jsx - Mediation pipeline → B2B partner API: sends selected users
src/components/admin/MediationPipelineTable.jsx - Phone login → Top bar: uses
src/components/auth/PhoneLogin.jsx - Asset wizard → Top bar: uses
src/components/onboarding/AssetWizard.jsx - Dashboard page → Top bar: renders
src/pages/DashboardPage.jsx - Dashboard page → Empty state: renders error state
src/pages/DashboardPage.jsx - Dashboard page → Loading spinner: renders loading state
src/pages/DashboardPage.jsx - Mediation pipeline → Empty state: renders empty state
src/components/admin/MediationPipelineTable.jsx - Mediation pipeline → Loading spinner: renders loading state
src/components/admin/MediationPipelineTable.jsx - Mediation pipeline → INR formatting: formats amounts
src/components/admin/MediationPipelineTable.jsx - Income forecast → INR formatting: formats amounts
src/pages/DashboardPage.jsx - GigID card → INR formatting: formats amounts
src/components/profile/GigIDCard.jsx - Protected layout → Bottom navigation: renders
src/components/shared/AuthLayout.jsx - Route application → Protected layout: wraps protected pages
src/App.js - Authentication state → API client: uses
src/hooks/useAuth.js