How glazia2025/glazia-quotation works
Glazia Quotation is a tenant-aware fenestration ERP, with quotation creation and product configuration as its clearest workflow: users build a quotation, configure window/door items, and save quotation data through the quotation service to the backend. The tree also exposes CRM, dashboard, and operational ERP areas for survey, production, inventory, orders, dispatch, installation, and invoicing. Auth state and the session guard support protected access. Connections for unsampled pages and operational modules are intentionally limited to their documented route presence; the README is empty and the excerpts do not establish their internal wiring.
Main entry points: quotation-builder.tsx Quotation builder · page.tsx Lead management · auth-guard.tsx Auth guard · quotation-service.ts Quotation service
Components 25
Access and shell
- Login
app/(auth)/login/page.tsx - Auth guard
components/providers/auth-guard.tsx - Auth state
store/auth-store.ts - ERP shell
app/(erp)/layout.tsx
Sales workflow
- Lead management
app/(erp)/crm/leads/page.tsx - Lead detail
app/(erp)/crm/leads/[id]/page.tsx - Quotation list
app/(erp)/quotations/page.tsx - New quotation
app/(erp)/quotations/new/page.tsx - Quotation builder
modules/quotation/components/quotation-builder.tsx - Quotation detail
modules/quotation/components/quotation-detail-page.tsx - Item configurator
modules/product-configurator/components/window-door-configurator.tsx - Design geometry
modules/product-configurator/utils/window-door-design.ts - Builder state
modules/quotation/store/use-quotation-builder-store.ts
ERP operations
- Dashboard
app/(erp)/dashboard/page.tsx - Survey
app/(erp)/survey/page.tsx - Production
app/(erp)/production/page.tsx - Inventory
app/(erp)/inventory/page.tsx - Orders
app/(erp)/orders/page.tsx - Dispatch
app/(erp)/dispatch/page.tsx - Installation
app/(erp)/installation/page.tsx - Invoices
app/(erp)/invoices/page.tsx
Shared services
- CRM service
services/crm-service.ts - Quotation service
services/quotation-service.ts
Other components
- ERP user
- Quotation backend
Connections 25
- ERP user → Login: signs in
- ERP user → ERP shell: opens ERP
- Auth guard → Auth state: checks session
- Auth guard → Quotation backend: validates session
- ERP shell → Auth guard: protects access
- ERP user → Lead management: manages leads
- Lead management → Lead detail: opens lead
- Lead management → CRM service: loads leads
- ERP user → Quotation list: manages quotes
- Quotation list → New quotation: starts quote
- New quotation → Quotation builder: builds quote
- Quotation builder → Item configurator: configures item
- Item configurator → Design geometry: uses geometry
- Quotation builder → Builder state: updates state
- Quotation builder → Quotation service: saves quote
- Quotation service → Quotation backend: reads and writes
- Quotation detail → Quotation service: loads quote
- ERP user → Dashboard: views metrics
- ERP user → Survey: records survey
- ERP user → Production: manages production
- ERP user → Inventory: checks inventory
- ERP user → Orders: manages orders
- ERP user → Dispatch: manages dispatch
- ERP user → Installation: tracks installation
- ERP user → Invoices: manages invoices