How redhoven/tectum works
Tectum is an installer-facing solar planning and offer platform. Its main workflow runs from installer login and customer/site intake through 3D roof and panel planning, proposal generation, and a branded PDF offer; the Python API computes offer options and BOMs. The repository also contains a separate Next.js planner prototype and a datasheet-enrichment utility. Edges reflect shown imports/calls or README-documented workflow; some integration details are not visible in the excerpts.
Main entry points: App.tsx App Router · SolarPlanner.jsx Solar Planner · Proposals.tsx Offer Proposals · Dashboard.tsx Project Dashboard
Components 21
Installer Web App
- App Router
tectum-pro/src/App.tsx - Installer Login
tectum-pro/src/pages/Login.tsx - Project Dashboard
tectum-pro/src/pages/Dashboard.tsx - Customer Intake
tectum-pro/src/components/IntakePro.tsx - Local Auth
tectum-pro/src/taim/lib/auth.js - Project Persistence
tectum-pro/src/taim/lib/projects.js
Roof Planning
- Solar Planner
tectum-pro/src/taim/components/SolarPlanner.jsx - 3D Roof Scene
tectum-pro/src/taim/components/Scene.jsx - Roof Geometry
tectum-pro/src/taim/lib/roof.js - Planner State
tectum-pro/src/taim/lib/store.js - Roof Templates
tectum-pro/src/taim/components/TemplatesPanel.jsx
Offers and Reports
- Offer Proposals
tectum-pro/src/pages/Proposals.tsx - Panel Catalogue
tectum-pro/src/taim/lib/catalogue-panels.js - Solar Calculations
tectum-pro/src/lib/solar.ts - PDF Report
tectum-pro/src/taim/components/SolarReportPDF.jsx - Pipeline Client
tectum-pro/src/taim/lib/pipelineClient.js
Offer Backend
- Pipeline API
solar-pipeline/server.py - Offer Engine
solar-pipeline/pipeline.py - AI Sales Explanation
solar-pipeline/ai_salesperson.py
Catalogue Enrichment
- Datasheet Enricher
extractor/datasheet_enricher.py
Other components
- Solar Installer
Connections 25
- Solar Installer → App Router: uses
README.md - App Router → Installer Login: shows
tectum-pro/src/App.tsx - App Router → Project Dashboard: routes to
tectum-pro/src/App.tsx - App Router → Customer Intake: routes to
tectum-pro/src/App.tsx - App Router → Solar Planner: opens
tectum-pro/src/App.tsx - App Router → Offer Proposals: shows
tectum-pro/src/App.tsx - App Router → Local Auth: signs in
tectum-pro/src/App.tsx - App Router → Project Persistence: loads
tectum-pro/src/App.tsx - Customer Intake → Solar Calculations: uses
tectum-pro/src/components/IntakePro.tsx - Project Dashboard → Project Persistence: lists projects
tectum-pro/src/pages/Dashboard.tsx - Project Dashboard → Local Auth: reads installer
tectum-pro/src/pages/Dashboard.tsx - Solar Planner → 3D Roof Scene: renders
tectum-pro/src/taim/components/SolarPlanner.jsx - Solar Planner → Roof Templates: renders
tectum-pro/src/taim/components/SolarPlanner.jsx - Solar Planner → Planner State: updates
tectum-pro/src/taim/components/SolarPlanner.jsx - Solar Planner → Project Persistence: saves projects
tectum-pro/src/taim/components/SolarPlanner.jsx - 3D Roof Scene → Roof Geometry: layouts panels
tectum-pro/src/taim/components/Scene.jsx - 3D Roof Scene → Planner State: reads and writes
tectum-pro/src/taim/components/Scene.jsx - Offer Proposals → Planner State: reads planner state
tectum-pro/src/pages/Proposals.tsx - Offer Proposals → Panel Catalogue: reads catalogue
tectum-pro/src/pages/Proposals.tsx - Offer Proposals → PDF Report: generates report
tectum-pro/src/pages/Proposals.tsx - Offer Proposals → Pipeline Client: requests offers
README.md - Pipeline Client → Pipeline API: calls API
README.md - Pipeline API → Offer Engine: invokes
solar-pipeline/server.py - Offer Engine → AI Sales Explanation: produces explanation
solar-pipeline/ai_salesperson.py - Solar Installer → Datasheet Enricher: enriches datasheets
README.md