How architectural-flashing-supply/afs-platform works
AFS is a metal-roofing fabrication and project-services platform. Customers configure products or upload plans for AI takeoff, submit quote requests, and receive approvals that can enter production; account and tracking tools support fulfillment. Staff use command-center and admin workflows to review requests, manage pricing and jobs, and dispatch production. Architects, field users, bid monitoring, HailView, and profile design are distinct capabilities. Source excerpts establish several key calls; the README is empty, so broader page/API connections are represented conservatively from indexed references.
Main entry points: approve-quote-request/route.ts Request approval · quote/page.tsx Quote builder · chat/route.ts Chat assistant · draft/page.tsx FlashDraft studio
Components 28
Customer experience
- Quote builder
app/quote/page.tsx - Quote requests
app/api/quote-requests/route.ts - Customer account
app/account - Order tracking
app/track/[orderId]/page.tsx - HailView
app/hailview/page.tsx - Chat assistant
app/api/chat/route.ts
Design and estimating
- Plan takeoff
app/upload/page.tsx - AI takeoff
app/api/takeoff/route.ts - FlashDraft studio
app/studio/draft/page.tsx - Profile viewer
components/studio/ProfileViewer3D.tsx - Product catalog
lib/data/catalog.ts - Material color rules
lib/data/material-color-requirement.ts - Architect resources
app/(public)/architects - Specification writer
app/(public)/architects/spec-writer/page.tsx
Sales and operations
- Command center
app/admin/command-center - Request approval
app/api/admin/command-center/approve-quote-request/route.ts - Admin operations
app/admin - Bid monitoring
app/admin/bid-monitor/page.tsx - Pricing ledger
lib/pricing/ledger.ts
Fabrication and delivery
- Production queue
lib/data/shop-queue.ts - Machine integration
app/api/machine-bridge/pending-jobs/route.ts - Delivery and dispatch
lib/delivery/auto-schedule.ts
Shared services
- Knowledge search
lib/chatbot/knowledge/index.ts - Supabase services
lib/supabase/admin.ts - Email delivery
lib/resend/send.ts
Other components
- Customer
- Anthropic AI
- Pathfinder service
Connections 33
- Customer → Quote builder: configures items
app/quote/page.tsx - Quote builder → Product catalog: loads catalog
app/quote/page.tsx - Quote builder → Material color rules: checks finish
app/quote/page.tsx - Quote builder → Quote requests: submits request
app/quote/page.tsx - Quote requests → Supabase services: stores request
app/api/quote-requests/route.ts - Quote requests → Email delivery: sends receipt
app/api/quote-requests/route.ts - Customer → Plan takeoff: uploads plans
app/upload/page.tsx - Plan takeoff → AI takeoff: requests analysis
app/upload/page.tsx - AI takeoff → Supabase services: reads file, saves results
app/api/takeoff/route.ts - AI takeoff → Anthropic AI: analyzes plan
app/api/takeoff/route.ts - Customer → FlashDraft studio: designs profile
app/studio/draft/page.tsx - FlashDraft studio → Profile viewer: renders geometry
app/studio/draft/page.tsx - FlashDraft studio → Product catalog: loads materials
app/studio/draft/page.tsx - FlashDraft studio → Material color rules: checks material rules
app/studio/draft/page.tsx - Customer → Architect resources: uses design resources
- Architect resources → Specification writer: opens specification tool
- Customer → Customer account: manages orders
- Customer account → Order tracking: views fulfillment
- Admin operations → Command center: reviews work
- Command center → Request approval: approves request
- Admin operations → Bid monitoring: monitors opportunities
- Admin operations → Pricing ledger: maintains pricing
- Request approval → Supabase services: records approval
app/api/admin/command-center/approve-quote-request/route.ts - Request approval → Pathfinder service: pushes job
app/api/admin/command-center/approve-quote-request/route.ts - Request approval → Email delivery: notifies customer
app/api/admin/command-center/approve-quote-request/route.ts - Request approval → Production queue: creates production job
- Production queue → Machine integration: feeds machine jobs
- Production queue → Delivery and dispatch: coordinates fulfillment
- Customer → HailView: checks storm exposure
app/hailview/page.tsx - Customer → Chat assistant: asks product questions
- Chat assistant → Knowledge search: searches knowledge
app/api/chat/route.ts - Chat assistant → Anthropic AI: streams response
- Chat assistant → Supabase services: loads context
app/api/chat/route.ts