How sajid-itinnovator/precise_quote works
PreciseQuote is a multi-tenant, white-label quotation and estimation SaaS for interior design studios. A user signs in to a tenant workspace, manages clients and product/material details, builds and saves a quotation or invoice, then reviews, prints, downloads, or shares it. The app also provides quotation history, company branding, workspace administration, and a platform super-admin console. The sampled code shows authentication, tenant-aware data access, save orchestration, and preview exports; other page-level connections are based on the route map and documented product capabilities.
Main entry points: App.jsx App router · AppContext.jsx Workspace data · AuthContext.jsx Authentication · QuotationPreview.jsx Quotation preview
Components 26
Studio workspace
- App router
src/App.jsx - Workspace data
src/context/AppContext.jsx - Dashboard
src/pages/Hub.jsx - Client directory
src/pages/Clients.jsx - Products and materials
src/pages/Products.jsx - Company branding
src/pages/CompanyProfile.jsx - Workspace administration
src/pages/Admin.jsx
Quotation workflow
- Quotation builder
src/pages/Builder.jsx - Client selection
src/components/ClientPicker.jsx - Quotation save flow
src/components/builder/useQuotationSave.js - Quotation history
src/pages/History.jsx - Quotation preview
src/components/QuotationPreview.jsx - Quotation document
src/components/QuotationDocument.jsx - PDF generation
src/utils/pdfGenerator.js - Print rendering
src/utils/printRenderer.jsx - WhatsApp sharing
src/components/WhatsAppShareModal.jsx
Identity and platform
- Domain routing
src/utils/domainRouting.js - Login
src/pages/Login.jsx - Authentication
src/context/AuthContext.jsx - Platform console
src/pages/SuperAdmin.jsx - Subscription rules
src/utils/subscription.js
Cloud and delivery
- Firebase Auth
- Firestore
- PWA install
src/hooks/usePWAInstall.js - Offline service worker
public/sw.js
Other components
- Studio user
Connections 36
- Studio user → App router: opens
- App router → Domain routing: resolves host
- App router → Login: routes unauthenticated
- App router → Dashboard: routes workspace
- App router → Client directory: routes workspace
- App router → Products and materials: routes workspace
- App router → Company branding: routes workspace
- App router → Workspace administration: routes admins
- App router → Quotation builder: routes workspace
- App router → Quotation history: routes workspace
- App router → Platform console: routes platform host
- App router → Authentication: provides auth
- App router → Workspace data: provides data
- Login → Authentication: signs in
- Authentication → Firebase Auth: authenticates
- Authentication → Firestore: reads profile
- Workspace data → Authentication: reads identity
- Workspace data → Domain routing: resolves tenant
- Workspace data → Firestore: loads and saves
- Quotation builder → Client selection: selects client
- Quotation builder → Quotation save flow: saves quotation
- Quotation save flow → Workspace data: updates records
- Quotation history → Workspace data: reads quotations
- Client directory → Workspace data: manages clients
- Products and materials → Workspace data: manages catalog
- Company branding → Workspace data: saves profile
- Workspace administration → Workspace data: manages users
- Quotation preview → Quotation document: renders quotation
- Quotation preview → PDF generation: generates download
- Quotation preview → Print rendering: builds print view
- Quotation preview → WhatsApp sharing: opens sharing
- Platform console → Authentication: checks authorization
- Platform console → Workspace data: manages platform data
- Workspace data → Subscription rules: derives limits
- App router → PWA install: offers installation
- PWA install → Offline service worker: supports offline use