How robertalim/fiix works
This appears to be a printer-maintenance and field-service application: staff manage printers and clients, schedule technician visits, record maintenance, and monitor attendance and location. The main visible workflow is dashboard access, with offline reports synchronized to maintenance APIs and persisted in the database; scheduling is a separate operational branch. Admin master data, reporting, and GPS/attendance are significant product areas in the tree, but their detailed runtime links are mostly unsampled. Dashed, uncited links mark those evidence limits.
Main entry points: index.ts Database Client · maintain/route.ts Maintenance API · schedule/route.ts Schedule API · require-role.ts Role Authorization
Components 21
Field Operations
- Operations Dashboard
app/(root)/dashboard/page.tsx - Maintenance Entry
components/pages/Maintenance.tsx - Offline Sync Engine
features/offline-sync/sync-engine.ts - Maintenance API
app/api/maintain/route.ts - Attendance
lib/attendance.ts - GPS Monitoring
components/pages/GpsMonitoring.tsx
Scheduling
- Schedule Management
components/pages/Schedule.tsx - Schedule API
app/api/schedule/route.ts - Itinerary Ordering
components/ItinerarySequenceManager.tsx
Administration
- Master Data Management
components/MasterDataManager.tsx - Client Groups
components/pages/Clients.tsx - Data Import
components/pages/DataImport.tsx - Reports
components/pages/Report.tsx - Service Monitoring
components/pages/Monitoring.tsx
Application Platform
- Role Authorization
lib/require-role.ts - Maintenance Validation
validation/maintainSchema.ts
Persistence
- Database Client
db/index.ts - Domain Schema
db/schema.ts - Attendance Queries
lib/server/attendance-report-query.ts
Other components
- Staff
- Clerk Auth
Connections 26
- Staff → Operations Dashboard: opens
- Operations Dashboard → Offline Sync Engine: hosts
app/(root)/dashboard/page.tsx - Offline Sync Engine → Maintenance API: submits reports
features/offline-sync/sync-engine.ts - Maintenance API → Database Client: reads and writes
app/api/maintain/route.ts - Maintenance API → Role Authorization: checks roles
app/api/maintain/route.ts - Role Authorization → Clerk Auth: checks identity
lib/require-role.ts - Role Authorization → Database Client: loads user
lib/require-role.ts - Database Client → Domain Schema: uses schema
db/index.ts - Maintenance API → Maintenance Validation: validates input
app/api/maintain/route.ts - Staff → Maintenance Entry: records service
- Maintenance Entry → Maintenance API: submits maintenance
- Staff → Schedule Management: plans visits
- Schedule Management → Schedule API: manages schedules
- Schedule API → Role Authorization: checks roles
app/api/schedule/route.ts - Schedule API → Database Client: reads and writes
app/api/schedule/route.ts - Itinerary Ordering → Schedule API: updates order
- Staff → Master Data Management: maintains records
- Master Data Management → Database Client: persists records
- Client Groups → Master Data Management: uses manager
components/pages/Clients.tsx - Staff → Data Import: imports records
- Staff → Reports: reviews results
- Staff → Service Monitoring: monitors service
- Operations Dashboard → Attendance: gates access
- Staff → GPS Monitoring: tracks field work
- Attendance Queries → Database Client: queries records
lib/server/attendance-report-query.ts - Attendance Queries → Attendance: uses attendance rules
lib/server/attendance-report-query.ts