How rafaelafujii/loctaxa works
Loctaxa is a React interface for freelancers to find temporary hospitality shifts, inspect offers, manage an active shift, and view earnings and profile settings. The principal flow starts in the app shell, which filters mock opportunities and presents a map dashboard; users can select a gig and proceed to its offer or active-shift view. Authentication and registration screens are present, but the README and sampled code show no backend or persistent storage. Connections reflect the app’s shown state and imports; unsampled screen behavior is not inferred.
Main entry points: App.tsx App shell · PrimaryButton.tsx Primary button · MapPlaceholder.tsx Gig map · ActiveGigScreen.tsx Active shift
Components 22
App orchestration
- App shell
src/App.tsx - Mock gigs
src/data/mockGigs.ts - Domain types
src/types/index.ts
Gig discovery
- Map dashboard
src/screens/MapDashboardScreen.tsx - Gig map
src/components/map/MapPlaceholder.tsx - Gig marker
src/components/map/GigMarker.tsx - Gig offer
src/screens/GigOfferBottomSheet.tsx
Shift lifecycle
- Active shift
src/screens/ActiveGigScreen.tsx - Maps config
src/constants/maps.ts
Access and account
- Login
src/screens/LoginScreen.tsx - Registration
src/screens/CadastroScreen.tsx - Profile
src/screens/ProfileScreen.tsx - Earnings
src/screens/EarningsScreen.tsx - Settings
src/screens/SettingsScreen.tsx
Shared UI
- Bottom navigation
src/components/navigation/BottomNavigation.tsx - Code viewer
src/components/CodeViewerModal.tsx - Primary button
src/components/ui/PrimaryButton.tsx - Text input
src/components/ui/TextInput.tsx - Profession toggle
src/components/ui/ProfessionToggle.tsx - Social button
src/components/ui/SocialButton.tsx
Other components
- Freelancer
- Google Maps
Connections 28
- Freelancer → App shell: uses
- App shell → Mock gigs: filters
src/App.tsx - App shell → Map dashboard: renders
src/App.tsx - App shell → Gig offer: renders
src/App.tsx - App shell → Active shift: renders
src/App.tsx - App shell → Login: renders
src/App.tsx - App shell → Registration: renders
src/App.tsx - App shell → Profile: renders
src/App.tsx - App shell → Earnings: renders
src/App.tsx - App shell → Settings: renders
src/App.tsx - App shell → Bottom navigation: renders
src/App.tsx - App shell → Code viewer: renders
src/App.tsx - Map dashboard → Gig map: renders
src/screens/MapDashboardScreen.tsx - Gig map → Gig marker: renders
src/components/map/MapPlaceholder.tsx - Gig map → Maps config: reads key
src/components/map/MapPlaceholder.tsx - Gig map → Google Maps: renders map
src/components/map/MapPlaceholder.tsx - Active shift → Maps config: reads key
src/screens/ActiveGigScreen.tsx - Active shift → Google Maps: requests route
src/screens/ActiveGigScreen.tsx - Login → Text input: uses
src/screens/LoginScreen.tsx - Login → Social button: uses
src/screens/LoginScreen.tsx - Login → Primary button: uses
src/screens/LoginScreen.tsx - Registration → Text input: uses
src/screens/CadastroScreen.tsx - Registration → Profession toggle: uses
src/screens/CadastroScreen.tsx - Registration → Primary button: uses
src/screens/CadastroScreen.tsx - Profile → Primary button: uses
src/screens/ProfileScreen.tsx - Gig offer → Primary button: uses
src/screens/GigOfferBottomSheet.tsx - Active shift → Primary button: uses
src/screens/ActiveGigScreen.tsx - Settings → Primary button: uses
src/screens/SettingsScreen.tsx