How keyboard-cyber/fronttest works
Taxe Mobile Agent is an offline-first collection app for field agents. The main workflow is agent sign-in, recording a payment into a local queue, then synchronizing queued payments and reference data with the backend; agents can review payment history and access receipts. The repository also contains controller scan/search routes and receipt printing/QR capabilities. The graph reflects documented features and source-index references; some route and service internals were not sampled, so uncertain connections are omitted.
Main entry points: repositories.ts Local repositories · AuthContext.tsx Authentication context · new.tsx New payment route · SyncContext.tsx Sync context
Components 23
Agent app
- Controller scan
app/(controller)/scan.tsx - Controller search
app/(controller)/search.tsx - Login screen
src/screens/auth/LoginScreen.tsx - Home screen
src/screens/home/HomeScreen.tsx - Profile screen
src/screens/profile/ProfileScreen.tsx - Authentication context
src/contexts/AuthContext.tsx
Payments and receipts
- New payment route
app/payment/new.tsx - Payment history
app/(tabs)/history.tsx - Receipt routes
app/payment/receipt/[uuid].tsx - Payment preview
app/payment/preview/[uuid].tsx - Payment screen
src/screens/payment/NewPaymentScreen.tsx - History screen
src/screens/history/HistoryScreen.tsx - Receipt screen
src/screens/receipt/ReceiptScreen.tsx - Receipt printer
src/services/printer.service.ts - QR generation
src/services/qrcode.service.ts
Offline and sync
- Sync context
src/contexts/SyncContext.tsx - Sync service
src/services/sync.service.ts
Local and remote services
- API client
src/services/api.service.ts - Local repositories
src/database/repositories.ts - SQLite database
src/database/database.ts - Notifications
src/services/notification.service.ts
Other components
- Field agent
- Backend API
Connections 36
- Field agent → New payment route: records payment
- Field agent → Payment history: reviews payments
- Field agent → Login screen: signs in
- New payment route → Authentication context: uses context
app/payment/new.tsx - New payment route → Local repositories: stores locally
app/payment/new.tsx - New payment route → Notifications: uses notifications
app/payment/new.tsx - New payment route → Sync context: uses sync hook
app/payment/new.tsx - Payment history → Local repositories: reads payments
app/(tabs)/history.tsx - Payment history → Sync service: requests sync
app/(tabs)/history.tsx - Payment history → Receipt printer: uses printer
app/(tabs)/history.tsx - Receipt routes → Local repositories: loads payment
app/payment/receipt/[uuid].tsx - Payment preview → Receipt printer: uses printer
app/payment/preview/[uuid].tsx - Payment preview → Local repositories: loads payment
app/payment/preview/[uuid].tsx - Controller scan → Local repositories: uses local data
app/(controller)/scan.tsx - Controller search → Local repositories: uses local data
app/(controller)/search.tsx - Login screen → Authentication context: uses context
src/screens/auth/LoginScreen.tsx - Home screen → Authentication context: uses context
src/screens/home/HomeScreen.tsx - Home screen → Local repositories: reads local data
src/screens/home/HomeScreen.tsx - Payment screen → Local repositories: uses local data
src/screens/payment/NewPaymentScreen.tsx - Payment screen → Authentication context: uses context
src/screens/payment/NewPaymentScreen.tsx - History screen → Local repositories: uses local data
src/screens/history/HistoryScreen.tsx - History screen → Authentication context: uses context
src/screens/history/HistoryScreen.tsx - Receipt screen → Local repositories: loads payment
src/screens/receipt/ReceiptScreen.tsx - Receipt screen → Authentication context: uses context
src/screens/receipt/ReceiptScreen.tsx - Profile screen → Authentication context: uses context
src/screens/profile/ProfileScreen.tsx - Authentication context → Local repositories: reads and saves
src/contexts/AuthContext.tsx - Authentication context → API client: authenticates
src/contexts/AuthContext.tsx - Sync context → Authentication context: checks session
src/contexts/SyncContext.tsx - Sync context → Sync service: starts sync
src/contexts/SyncContext.tsx - Sync context → Local repositories: loads queue and cache
src/contexts/SyncContext.tsx - Sync context → Notifications: reports sync
src/contexts/SyncContext.tsx - Sync service → API client: sends payments
src/services/sync.service.ts - Sync service → Local repositories: reads queue; updates status
src/services/sync.service.ts - API client → Backend API: HTTP requests
- Local repositories → SQLite database: executes data operations
src/database/index.ts - Receipt printer → QR generation: uses QR data
src/services/printer.service.ts