How yasouanew/staff-last works
StaffSaaS is a workforce scheduling and staff-management mobile app for employees. The documented user workflow is signing in, then viewing shifts and rosters, reviewing shift details, and submitting availability or leave requests. Notifications and connectivity recovery support that work; the shared API client, session persistence, and outbox provide internal infrastructure. The README establishes the product capabilities, while source-index references and excerpts support only the specific implementation links shown; several feature modules were not sampled, so their internal call paths are omitted.
Main entry points: recoveryPipeline.ts Connectivity recovery · sessionStore.ts Session state · NotificationsScreen.tsx Notification inbox · App.tsx Mobile app
Components 17
App shell
- Mobile app
App.tsx - Navigation
src/navigation/RootNavigator.tsx
Work scheduling
- Home dashboard
src/features/home/screens/HomeScreen.tsx - My roster
src/features/roster/screens/MyRosterScreen.tsx - Shift details
src/features/shifts/screens/ShiftDetailScreen.tsx
Account and requests
- Availability
src/features/availability/screens/AvailabilityScreen.tsx - Leave requests
src/features/leave/screens/LeaveListScreen.tsx - Authentication
src/features/auth/screens/LoginScreen.tsx - Session state
src/features/auth/store/sessionStore.ts
Notifications
- Notification inbox
src/features/notifications/screens/NotificationsScreen.tsx - Push service
src/services/push/pushService.ts
Runtime services
- Connectivity recovery
src/services/connectivity/recoveryPipeline.ts - Deferred writes
src/services/outbox/syncOutbox.ts - HTTP client
src/api/client.ts - Credential store
src/api/tokenStore.ts
Other components
- Employee
- StaffSaaS backend
Connections 18
- Employee → Mobile app: uses
README.md - Mobile app → Navigation: starts
App.tsx - Employee → Authentication: signs in
README.md - Navigation → Home dashboard: opens
- Employee → My roster: views roster
README.md - Employee → Shift details: reviews shifts
README.md - Employee → Availability: submits availability
README.md - Employee → Leave requests: requests leave
README.md - Employee → Notification inbox: checks updates
- Session state → Credential store: loads token
src/features/auth/store/sessionStore.ts - Session state → HTTP client: sets auth handler
src/features/auth/store/sessionStore.ts - HTTP client → StaffSaaS backend: sends requests
src/api/client.ts - Connectivity recovery → Session state: refreshes session
src/services/connectivity/recoveryPipeline.ts - Connectivity recovery → Deferred writes: flushes writes
src/services/connectivity/recoveryPipeline.ts - Connectivity recovery → Push service: registers device
src/services/connectivity/recoveryPipeline.ts - Connectivity recovery → Notification inbox: syncs inbox
src/services/connectivity/recoveryPipeline.ts - Push service → StaffSaaS backend: registers token
src/services/push/pushService.ts - Notification inbox → StaffSaaS backend: fetches updates