How matheusapaxtech-projects/prisa-logistica works
NILT is Prisa Logística’s transport-management system. Users manage people, customers, vehicles and orders, plan and dispatch freight, follow trips on a live operations board, then handle financial records and monthly results. The README identifies Supabase as the database, authentication and file platform. The graph preserves the documented product areas; several domain connections are dashed because their implementation was not sampled. Source evidence confirms the board’s calls to its query and action modules, calculator route saving, and the retentions spreadsheet’s database-backed query.
Main entry points: layout.tsx NILT web app · quadro-cliente.tsx Live operations board · financeiro Financial operations · viagens Trip execution
Components 22
Access and platform
- NILT web app
web/src/app/(app)/layout.tsx - Login and access
web/src/app/login/page.tsx - Supabase platform
People and fleet
- Person records
web/src/app/(app)/_pessoa - Customer records
web/src/app/(app)/clientes - Drivers and owners
web/src/app/(app)/motoristas - Vehicles and sets
web/src/app/(app)/veiculos
Freight operations
- Freight orders
web/src/app/(app)/pedidos - Dispatch and deals
web/src/app/(app)/despacho - Driver availability
web/src/app/(app)/disponiveis - Trip execution
web/src/app/(app)/viagens - Live operations board
web/src/app/(app)/quadro/quadro-cliente.tsx
Finance
- Financial operations
web/src/app/(app)/financeiro - OFX import
web/src/app/(app)/financeiro/importar/importar-cliente.tsx - Payables and receivables
web/src/app/(app)/financeiro/pagar/page.tsx - Tax withholdings
web/src/app/(app)/financeiro/retencoes/page.tsx - Monthly retention query
web/src/app/(app)/financeiro/retencoes/consultas.ts - CSV export
web/src/app/(app)/financeiro/retencoes/planilha/route.ts
Planning and oversight
- Freight calculator
web/src/app/(app)/calculadora/calculadora-cliente.tsx - Operations dashboard
web/src/app/(app)/(inicio)/page.tsx - Audit history
web/src/app/(app)/auditoria/page.tsx
Other components
- Prisa staff
Connections 27
- Prisa staff → NILT web app: uses
- Prisa staff → Login and access: signs in
- NILT web app → Supabase platform: uses platform
README.md - Login and access → Supabase platform: authenticates
README.md - NILT web app → Person records: manages
README.md - NILT web app → Customer records: manages
README.md - NILT web app → Drivers and owners: manages
README.md - NILT web app → Vehicles and sets: manages
README.md - NILT web app → Freight orders: records
README.md - Freight orders → Dispatch and deals: dispatched through
web/src/app/(app)/despacho/actions.ts - Dispatch and deals → Driver availability: checks
- Dispatch and deals → Trip execution: coordinates
- Trip execution → Live operations board: tracked on
README.md - Live operations board → NILT web app: renders in
- Live operations board → Supabase platform: subscribes and reads
web/src/app/(app)/quadro/quadro-cliente.tsx - Live operations board → NILT web app: calls trip actions
web/src/app/(app)/quadro/quadro-cliente.tsx - Freight calculator → Supabase platform: saves routes via
- Freight calculator → Trip execution: can prefill from
web/src/app/(app)/calculadora/calculadora-cliente.tsx - Operations dashboard → Trip execution: summarizes
web/src/app/(app)/(inicio)/page.tsx - Operations dashboard → Live operations board: uses board rules
- Financial operations → OFX import: imports statements
README.md - Financial operations → Payables and receivables: handles
README.md - Financial operations → Tax withholdings: handles
- OFX import → Financial operations: calls finance actions
web/src/app/(app)/financeiro/importar/importar-cliente.tsx - CSV export → Monthly retention query: queries month
web/src/app/(app)/financeiro/retencoes/planilha/route.ts - Monthly retention query → Supabase platform: reads
- Audit history → Supabase platform: reads history