How danrasett/shiftreport works
ShiftReport guides staff through shift handover and inventory, then supports report review and payroll. SmartShell supplies operational data; the app stores reports and related records through its Supabase adapter, with local storage also used for caching and drafts. The graph follows documented capabilities and visible imports/calls; some screen internals and the database migration were not sampled, so their detailed interactions are not inferred.
Main entry points: storage.ts Reports and records · App.tsx Navigation and access · ShiftScreen.tsx Shift handover · smartshell.ts SmartShell client
Components 20
App workflow
- Navigation and access
App.tsx - Sign-in and roles
src/utils/AuthContext.tsx - Dashboard
src/screens/DashboardScreen.tsx - Shift handover
src/screens/ShiftScreen.tsx - Inventory
src/screens/GoodsScreen.tsx - Report history
src/screens/HistoryScreen.tsx - Edit report
src/screens/EditReportScreen.tsx - Payroll
src/screens/SalaryScreen.tsx - App settings
src/screens/SettingsScreen.tsx - Worker pay settings
src/screens/WorkersSettingsScreen.tsx - Search picker
src/components/PickerModal.tsx
External integrations
- SmartShell client
src/utils/smartshell.ts - SmartShell
- Supabase REST
Persistence and exports
- Shift calculations
src/utils/calculations.ts - Reports and records
src/utils/storage.ts - Supabase adapter
src/utils/supabase.ts - Device storage
- Report exports
src/utils/export.ts
Other components
- Staff user
Connections 35
- Staff user → Navigation and access: opens
README.md - Navigation and access → Sign-in and roles: wraps access
App.tsx - Navigation and access → Dashboard: routes to
App.tsx - Navigation and access → Shift handover: routes to
App.tsx - Navigation and access → Inventory: routes to
App.tsx - Navigation and access → Report history: routes to
App.tsx - Navigation and access → Edit report: routes to
App.tsx - Navigation and access → Payroll: routes to
App.tsx - Navigation and access → App settings: routes to
App.tsx - Navigation and access → Worker pay settings: routes to
App.tsx - Sign-in and roles → SmartShell client: authenticates with
src/utils/AuthContext.tsx - Sign-in and roles → Reports and records: loads credentials
src/utils/AuthContext.tsx - Sign-in and roles → Reports and records: syncs workers
src/utils/AuthContext.tsx - Dashboard → Reports and records: loads summaries
src/screens/DashboardScreen.tsx - Shift handover → Reports and records: saves drafts
src/screens/ShiftScreen.tsx - Shift handover → Reports and records: records fines
src/screens/ShiftScreen.tsx - Shift handover → SmartShell client: loads shift data
src/screens/ShiftScreen.tsx - Shift handover → Shift calculations: calculates totals
src/screens/ShiftScreen.tsx - Shift handover → Search picker: renders selectors
src/screens/ShiftScreen.tsx - Inventory → Reports and records: loads and saves
src/screens/GoodsScreen.tsx - Inventory → SmartShell client: loads catalog
src/screens/GoodsScreen.tsx - Report history → Reports and records: loads reports
src/screens/HistoryScreen.tsx - Report history → Report exports: exports history
src/screens/HistoryScreen.tsx - Edit report → Reports and records: updates report
src/screens/EditReportScreen.tsx - Edit report → Shift calculations: recalculates totals
src/screens/EditReportScreen.tsx - Edit report → Search picker: renders selectors
src/screens/EditReportScreen.tsx - Payroll → Reports and records: loads and marks paid
src/screens/SalaryScreen.tsx - Payroll → SmartShell client: checks roles
src/screens/SalaryScreen.tsx - Payroll → Report exports: exports payroll
src/screens/SalaryScreen.tsx - Worker pay settings → Reports and records: reads and saves settings
src/screens/WorkersSettingsScreen.tsx - App settings → Supabase adapter: uses configuration
src/screens/SettingsScreen.tsx - Reports and records → Supabase adapter: reads and writes
src/utils/storage.ts - Reports and records → Device storage: caches and drafts
src/utils/storage.ts - Supabase adapter → Supabase REST: calls REST API
src/utils/supabase.ts - SmartShell client → SmartShell: queries SDK service
src/utils/smartshell.ts