How mahah26/globalconnect_frontend works
This is a cross-platform Expo workforce-management app. Employees and administrators sign in, then use role-specific dashboards and routed screens for attendance, leave, employee records, communications, and reporting; screens retrieve or update data through a shared API client. The graph preserves the README’s template-level description and the product capabilities visible in sampled source, without implying a backend implementation. Relationships are limited to imports and calls shown in the source index or excerpts; several route details and unsampled implementations remain unverified.
Main entry points: api.ts API client · _layout.tsx App routing shell · AuthContext.tsx Authentication state · CalendarPicker.tsx Date controls
Components 24
Access and navigation
- Landing and login
src/app - Auth components
src/components/AuthShared.tsx - Authentication state
src/context/AuthContext.tsx - App routing shell
src/app/(app)/_layout.tsx - Sidebar navigation
src/components/Sidebar.tsx
Workforce operations
- Role dashboards
src/components - Attendance
src/app/(app)/attendance.tsx - Team attendance
src/app/(app)/team-attendance.tsx - Employee records
src/app/(app) - Leave requests and review
src/app/(app) - Locations
src/app/(app)/locations.tsx
Communication
- Team chat
src/app/(app) - Notifications
src/app/(app)/notifications.tsx - Notification state
src/context/NotificationContext.tsx
Insights and administration
- Personal insights
src/app/(app)/insights.tsx - Reports and progress
src/app/(app) - Settings and profile
src/app/(app)
Shared platform
- API client
src/lib/api.ts - Token storage
src/lib/storage.ts - Shared UI components
src/components/ui.tsx - Date controls
src/components/CalendarPicker.tsx - Theme
src/theme.ts
Other components
- Employee or admin
- Application API
Connections 32
- Employee or admin → Landing and login: signs in
src/app/login.tsx - Landing and login → Auth components: renders
src/app/login.tsx - Landing and login → Authentication state: uses auth
src/app/login.tsx - Authentication state → API client: authenticates
src/context/AuthContext.tsx - API client → Token storage: stores tokens
src/lib/api.ts - API client → Application API: sends requests
src/lib/api.ts - App routing shell → Authentication state: uses auth
src/app/(app)/_layout.tsx - App routing shell → Sidebar navigation: renders
src/app/(app)/_layout.tsx - App routing shell → Shared UI components: uses components
src/app/(app)/_layout.tsx - App routing shell → API client: calls
src/app/(app)/_layout.tsx - App routing shell → Role dashboards: routes to
src/app/(app)/_layout.tsx - Role dashboards → Authentication state: reads user
src/components/EmployeeHome.tsx - Role dashboards → API client: loads data
src/components/EmployeeHome.tsx - Attendance → API client: loads and updates
src/app/(app)/attendance.tsx - Team attendance → API client: loads data
src/app/(app)/team-attendance.tsx - Employee records → API client: loads and updates
src/app/(app)/employees.tsx - Leave requests and review → API client: loads and updates
src/app/(app)/leave-review.tsx - Locations → API client: loads and updates
src/app/(app)/locations.tsx - Team chat → API client: loads and sends
src/app/(app)/chat-room.tsx - Notifications → Notification state: uses state
src/app/(app)/notifications.tsx - Notification state → Authentication state: reads user
src/context/NotificationContext.tsx - Notification state → API client: loads and updates
src/context/NotificationContext.tsx - Personal insights → API client: loads data
src/app/(app)/insights.tsx - Reports and progress → API client: loads data
src/app/(app)/reports.tsx - Settings and profile → API client: loads and updates
src/app/(app)/settings.tsx - Attendance → Date controls: uses picker
src/app/(app)/attendance.tsx - Leave requests and review → Date controls: uses picker
src/app/(app)/leave.tsx - Reports and progress → Date controls: uses picker
src/app/(app)/reports.tsx - Auth components → Shared UI components: uses components
src/components/AuthShared.tsx - Auth components → Theme: uses styles
src/components/AuthShared.tsx - Date controls → Theme: uses styles
src/components/CalendarPicker.tsx - Shared UI components → Theme: uses styles
src/components/ui.tsx