How kailash45s/trackpro.eu works
Worke is a field-service platform for recording work, coordinating teams, and turning completed jobs into client-facing financial and compliance records. The main workflow runs from employee session or timer entry, through team oversight and monthly closing, to reports, invoices, or quotes. Administrators also manage clients, services, work orders, planning, and staff; employees can complete assigned orders and export their work. Supabase/Postgres is authoritative for tenant data and permissions, while offline reads and queued writes support field use. Relationships beyond the excerpts are shown only where the README documents the capability or flow.
Main entry points: repositories Domain repositories · client.ts Supabase and Postgres · AddSession.tsx Time sessions · App.tsx Routes and access
Components 22
App and identity
- Routes and access
src/App.tsx - Auth and membership
src/contexts/auth - Plan entitlements
src/services/subscription/subscription-service.ts
Field operations
- Time sessions
src/pages/AddSession.tsx - Work timer
src/hooks/useWorkTimer.ts - GPS and geofence
src/lib/geo.ts - Offline queue and cache
src/lib/offline
Team and planning
- Work orders
src/components/admin/AdminWorkOrdersManager.tsx - Planning and absences
src/pages/Planning.tsx - Workplaces
src/components/workplaces/WorkplacesManager.tsx - Clients and services
src/pages/Clients.tsx
Billing and records
- Monthly closing
src/pages/MonthlyClosing.tsx - Reports and exports
src/pages/Reports.tsx - Invoices and quotes
src/pages/Invoices.tsx - Client service report
src/lib/services/sendServiceReport.ts
Data and services
- Domain repositories
src/lib/repositories - Supabase and Postgres
src/integrations/supabase/client.ts - Edge functions
supabase/functions - Stripe
Other components
- Employee
- Administrator
- End client
Connections 32
- Employee → Routes and access: uses app
README.md - Administrator → Routes and access: uses app
README.md - Routes and access → Auth and membership: guards routes
src/App.tsx - Routes and access → Plan entitlements: checks access
src/App.tsx - Employee → Time sessions: records work
README.md - Employee → Work timer: tracks time
README.md - Time sessions → GPS and geofence: uses GPS
README.md - Work timer → GPS and geofence: uses GPS
src/hooks/useWorkTimer.ts - Work timer → Offline queue and cache: queues writes
src/hooks/useWorkTimer.ts - Time sessions → Offline queue and cache: queues writes
README.md - Offline queue and cache → Supabase and Postgres: syncs writes
README.md - Administrator → Work orders: assigns work
README.md - Employee → Work orders: completes assigned
README.md - Administrator → Planning and absences: plans team
README.md - Administrator → Workplaces: manages sites
README.md - Administrator → Clients and services: manages records
README.md - Administrator → Monthly closing: closes month
README.md - Monthly closing → End client: requests validation
README.md - Administrator → Reports and exports: exports work
README.md - Employee → Reports and exports: exports own work
README.md - Administrator → Invoices and quotes: creates documents
README.md - Invoices and quotes → Stripe: takes payments
README.md - Employee → Client service report: sends report
README.md - Client service report → End client: delivers PDF
README.md - Time sessions → Domain repositories: stores records
- Work orders → Domain repositories: stores orders
- Workplaces → Domain repositories: reads and writes
src/components/workplaces/WorkplacesManager.tsx - Clients and services → Domain repositories: accesses records
- Domain repositories → Supabase and Postgres: accesses Postgres
README.md - Auth and membership → Supabase and Postgres: loads membership
src/services/auth/membershipService.ts - Plan entitlements → Supabase and Postgres: loads subscription
src/services/subscription/subscription-service.ts - Supabase and Postgres → Edge functions: hosts functions
README.md