How mohomad-ahnaf/odan-construction-estimates works
Odan is a construction estimating workspace. Users sign in, manage clients and projects, create and approve estimates, and produce PDF or Excel exports; project workflows also cover client-facing estimate compilations, documents, and plan takeoffs. The graph preserves the documented dashboard, audit, designer, site-photo, unit-conversion, and Google Drive capabilities. Source excerpts show selected frontend, authentication, and service relationships; unsampled controller and route wiring is represented only where supported by the README or index.
Main entry points: App.tsx Application routes · app.ts Express API · api.ts API client · export.service.ts Estimate exports
Components 23
Workspace UI
- Application routes
frontend/src/App.tsx - Session UI
frontend/src/auth.tsx - Client and project workspace
frontend/src/pages/ClientDetail.tsx - Estimate workspace
frontend/src/pages/EstimateEditor.tsx - Client estimate form
frontend/src/components/ClientEstimateForm.tsx - Dashboard and audit
frontend/src/pages/Dashboard.tsx - Site photos
frontend/src/pages/SitePhotos.tsx - Unit converter
frontend/src/pages/UnitConverter.tsx - Designer workspace
frontend/src/components/DesignerWorkspace.tsx - Plan measurement workspace
frontend/src/components/PlanMeasurementWorkspace.tsx - Project documents
frontend/src/components/ProjectDocuments.tsx
API and access
- API client
frontend/src/lib/api.ts - Express API
backend/src/app.ts - Authentication service
backend/src/services/auth.service.ts
Estimating
- Estimate service
backend/src/services/estimate.service.ts - Estimate exports
backend/src/services/export.service.ts - Estimate totals
backend/src/services/totals.ts - PDF browser rendering
backend/src/services/pdf-browser.ts
Project tools
- Plan measurement service
backend/src/services/plan-measurement.service.ts - Google Drive integration
backend/src/services/google-drive.service.ts
Persistence
- Authentication repository
backend/src/repositories/auth.repository.ts - PostgreSQL database
backend/src/db.ts
Other components
- Staff user
Connections 28
- Staff user → Application routes: uses
frontend/src/App.tsx - Application routes → Session UI: checks session
frontend/src/App.tsx - Application routes → Client and project workspace: routes to
frontend/src/App.tsx - Application routes → Estimate workspace: routes to
frontend/src/App.tsx - Application routes → Client estimate form: routes to
frontend/src/App.tsx - Application routes → Dashboard and audit: routes to
frontend/src/App.tsx - Application routes → Site photos: routes to
frontend/src/App.tsx - Application routes → Unit converter: routes to
frontend/src/App.tsx - Application routes → Designer workspace: routes to
frontend/src/App.tsx - Application routes → Plan measurement workspace: routes to
frontend/src/App.tsx - Application routes → Project documents: routes to
frontend/src/App.tsx - Session UI → API client: requests session
frontend/src/auth.tsx - Client and project workspace → API client: requests client data
frontend/src/pages/ClientDetail.tsx - Client estimate form → API client: requests estimates
frontend/src/components/ClientEstimateForm.tsx - API client → Express API: calls API
README.md - Express API → Authentication service: loads session
backend/src/app.ts - Authentication service → Authentication repository: reads and writes
backend/src/services/auth.service.ts - Authentication repository → PostgreSQL database: queries
backend/src/repositories/auth.repository.ts - Estimate service → Estimate totals: calculates totals
backend/src/services/estimate.service.ts - Estimate exports → Estimate service: loads estimates
backend/src/services/export.service.ts - Estimate exports → Estimate totals: uses totals
backend/src/services/export.service.ts - Estimate exports → PDF browser rendering: renders PDF
backend/src/services/export.service.ts - Plan measurement workspace → Express API: uses API
- Project documents → Express API: uses API
- Site photos → Express API: uses API
- Designer workspace → Express API: uses API
- Express API → Plan measurement service: serves measurements
- Express API → Google Drive integration: serves Drive integration