How bhupesh-debug/staffpilot works
StaffPilot is a B2B staffing-operations platform, with a separate static marketing site. The application is a Phase 3 scaffold: its landing and login pages are present, but live sign-in and operational workflows are not yet wired. The intended product flow covers assignments, timesheet submission and approvals, billing, and payroll-preparation estimates; reports and C2C vendor tracking are documented capabilities. Workflow edges reflect the README or the sampled landing page, not inspected operational handlers or migrations.
Main entry points: app/page.tsx Application home · state-machines.ts Timesheets · migrations Assignments · login/page.tsx Sign-in placeholder
Components 16
Staffing operations
- Assignments
app/supabase/migrations - Timesheets
app/src/lib/state-machines.ts - Clients and workers
app/supabase/migrations - C2C vendor tracking
app/supabase/migrations
Billing and payroll prep
- Invoices and billing
app/supabase/migrations - Payroll estimates
app/src/lib/state-machines.ts - Margin and utilization
app/src/lib/money.ts
Application foundation
- Application home
app/app/page.tsx - Sign-in placeholder
app/app/login/page.tsx - Decimal money math
app/src/lib/money.ts - Roles and permissions
app/src/lib/permissions.ts - Tenant database and RLS
app/supabase/migrations - Supabase clients
app/src/lib/supabase.ts - Health endpoint
app/app/api/health/route.ts
Public presence
- Marketing website
website/index.html
Other components
- Firm user
Connections 18
- Firm user → Application home: opens
app/app/page.tsx - Firm user → Sign-in placeholder: signs in
app/app/login/page.tsx - Application home → Assignments: documents capability
app/app/page.tsx - Application home → Timesheets: documents capability
app/app/page.tsx - Application home → Invoices and billing: documents capability
app/app/page.tsx - Application home → Payroll estimates: documents capability
app/app/page.tsx - Assignments → Timesheets: timesheet workflow
README.md - Timesheets → Invoices and billing: approved hours feed
- Timesheets → Payroll estimates: approved hours feed
README.md - Assignments → C2C vendor tracking: tracks vendors
README.md - Assignments → Margin and utilization: reports margin
README.md - Timesheets → Margin and utilization: reports utilization
README.md - Invoices and billing → Decimal money math: uses exact decimals
- Payroll estimates → Decimal money math: uses exact decimals
app/src/lib/money.ts - Roles and permissions → Tenant database and RLS: RLS enforced
app/src/lib/permissions.ts - Supabase clients → Tenant database and RLS: connects to
app/src/lib/supabase.ts - Sign-in placeholder → Supabase clients: planned auth
app/app/login/page.tsx - Firm user → Marketing website: visits
README.md