How awaismumtaz1406/gig-fair works
GigFair is a worker-facing earnings, fairness, and dispute application with verifier and advocate roles. The main workflow runs from account access through earnings logging and anomaly-aware dashboarding, then optional verification, grievance handling, and certificate generation; advocates also review aggregate fairness and complaint patterns. The source index and excerpts support the frontend routing, API-client use, and selected calculations. The README documents database and media-storage capabilities, but their implementation and wiring are not established by the sampled source, so those relationships are documented rather than asserted as code calls.
Main entry points: App.jsx Role-based routes · api.js REST API clients · EarningsLogger.jsx Earnings logging · Dashboard.jsx Worker dashboard
Components 21
Access and navigation
- Role-based routes
src/App.jsx - Sign in and register
src/pages/Login.jsx - Authentication state
src/store/authStore.js
Worker earnings
- Earnings logging
src/pages/EarningsLogger.jsx - Worker dashboard
src/pages/Dashboard.jsx - Anomaly and fairness rules
src/utils/anomalyDetection.js - Analytics charts
src/components/charts - Grievance board
src/pages/GrievanceBoard.jsx
Review and advocacy
- Earnings verification
src/pages/VerificationPanel.jsx - Advocate analytics
src/pages/AdvocateDashboard.jsx - Income certificates
src/pages/CertificatePage.jsx
Shared application services
- REST API clients
src/services/api.js - Demo mode state
src/store/demoStore.js - Demo records
src/data/demoData.js - Shared UI components
src/components/ui
Other components
- Gig worker
- Verifier
- Advocate
- Application API server
server.ts - MongoDB persistence
- Verification media storage
Connections 31
- Gig worker → Role-based routes: uses app
README.md - Verifier → Role-based routes: uses app
README.md - Advocate → Role-based routes: uses app
README.md - Role-based routes → Sign in and register: routes to
src/App.jsx - Role-based routes → Worker dashboard: routes to
src/App.jsx - Role-based routes → Earnings logging: routes to
src/App.jsx - Role-based routes → Earnings verification: routes to
src/App.jsx - Role-based routes → Grievance board: routes to
src/App.jsx - Role-based routes → Advocate analytics: routes to
src/App.jsx - Role-based routes → Income certificates: routes to
src/App.jsx - Role-based routes → Authentication state: checks roles
src/App.jsx - Sign in and register → REST API clients: uses API
src/pages/Login.jsx - Sign in and register → Authentication state: updates session
src/pages/Login.jsx - Earnings logging → REST API clients: submits earnings
src/pages/EarningsLogger.jsx - Earnings logging → Anomaly and fairness rules: checks anomalies
src/pages/EarningsLogger.jsx - Worker dashboard → REST API clients: loads metrics
src/pages/Dashboard.jsx - Worker dashboard → Analytics charts: renders trends
src/pages/Dashboard.jsx - Worker dashboard → Shared UI components: renders cards
src/pages/Dashboard.jsx - Grievance board → REST API clients: loads and files
src/pages/GrievanceBoard.jsx - Earnings verification → REST API clients: updates review
src/pages/VerificationPanel.jsx - Earnings verification → Anomaly and fairness rules: checks deductions
src/pages/VerificationPanel.jsx - Advocate analytics → Anomaly and fairness rules: scores platforms
src/pages/AdvocateDashboard.jsx - Advocate analytics → Demo records: reads examples
src/pages/AdvocateDashboard.jsx - Income certificates → REST API clients: uses API
src/pages/CertificatePage.jsx - Earnings logging → Demo mode state: supports demo
src/pages/EarningsLogger.jsx - Earnings logging → Demo records: reads examples
src/pages/EarningsLogger.jsx - Grievance board → Demo records: reads examples
src/pages/GrievanceBoard.jsx - Earnings verification → Demo records: reads examples
src/pages/VerificationPanel.jsx - REST API clients → Application API server: calls endpoints
- Application API server → MongoDB persistence: persists records
README.md - Application API server → Verification media storage: stores proof files
README.md