Custom operations platform for a door & window manufacturer covering lead capture, proposals, logistics, container tracking, and client portals in one system.
The challenge
Sightline Steel Doors managed quotes, container logistics, and installation scheduling across separate systems. The fragmented workflow caused delays, pricing errors, and no single source of truth from sale to install.
What we built
A centralized, role-gated operations platform that handles the full lifecycle of every door and window order—from the first inbound email through proposal, production, container shipment, field installation, payment, and warranty.
In plain English
- Incoming sales emails are read automatically and turned into tracked leads—no manual data entry.
- Customers receive a live web link to review and sign their proposal and pay invoices without logging in.
- The field crew gets a mobile-friendly view for time logs, punch lists, and client sign-off on-site.
- Every project milestone, payment, and document is visible to the right person the moment it changes.
How it works (technical)
Frontend
React 18 single-page app built with Vite, React Router 6 (all routes lazy-loaded), TanStack Query for data caching, Tailwind CSS with Sightline's brass/navy/forest/crimson design tokens, and shadcn/ui components. Typography uses Playfair Display and DM Sans.
Access control
An auth gate inside the router enforces four roles: admin, user, sales, and field. Each role lands on its own home screen. Row-level security is defined on every data table in the backend. Public-facing pages (proposal, payment, change order, builder status, client portal, lead intake) open without login, each protected by a secure access token that calls a backend function to perform privileged operations.
Backend
A managed cloud backend (database with row-level security, serverless Deno functions, scheduled and event-driven workflows, Google connectors for Gmail, Calendar, and Drive). Approximately 55 Deno serverless functions with shared modules for email templates, test mode, and Eastern Time handling. Approximately 15 workflows triggered by schedules or record changes.
Gmail polling pipeline
Gmail is polled every 5 minutes during business hours and every 2 hours off-hours and on weekends. A ProcessedEmail log ensures each message is handled exactly once. A pattern filter discards spam before any AI cost is incurred. Replies in the same thread merge into the existing lead or payment record rather than creating duplicates. Webhook-based parsing was disabled to prevent double-processing.
AI
LLM calls parse incoming Gmail into leads and payment records, and parse lead text into priced proposal line items. A read-only in-app assistant answers questions using the current page as context. AI credit usage is logged for a credits dashboard.
Sequential IDs
A sequence counter issues gap-free numbers (L-#### for leads, P-#### for projects). A project inherits the number of its originating lead so every deal is traceable from first email to install.
Price-book proposal engine
Proposals are priced per square foot (profile, color, glass, and muntin tiers) or per door—single or double—covering hardware, install, temp door, and trim. Catalog categories can be added without code changes. Tax logic follows client type: builders pay tax on product only, homeowners on product plus install, trim is tax-exempt for both. All monetary values are displayed to exactly two decimals in US format.
Live web proposals
Customers receive a hosted proposal link instead of a PDF. The system tracks views, records an e-signature on acceptance, and maintains a full send history (To, CC, BCC). On acceptance, a workflow advances the project and creates the deposit record—idempotency guards prevent a re-run from creating a duplicate deposit.
Payment requests
A single shared copy file drives deposit, progress, and final-balance emails in both the backend send function and the in-app preview. Each payment stores its send history, view counts, and the payment instructions sent (ACH, card, check) so it can be re-sent exactly as before.
Email test-mode guardrail
While test mode is active, all outgoing email—including CC and BCC—is redirected to safe test inboxes. Approved company domains and admins can be allowlisted. Internal-only emails carry a banner advising against external sharing.
Milestone sync
Workflows populate project checklist dates from proposals, payments, and CAD records. Each auto-filled date is flagged until a project manager confirms or overrides it, keeping the checklist and status board consistent.
Calendar sync
Jobs and pre-install visits are pushed to Google Calendar. Workflows remove calendar events when records are deleted. All times are standardized on Eastern Time.
Field mobile view
Stripped-down field pages cover time logs, punch lists, material checklists, client sign-off, and photo capture. Admins can preview field pages using a ?preview=field URL parameter.
Shared UI patterns
Shared components—notes, attachments, single-file upload, list toolbar, collapsible list sections—give every list and detail page consistent search, sort, filter, and editing behavior.
Client reporting and scope billing
An AI-generated weekly report goes through an internal approval and Q&A thread before delivery to the client. A feature status tracker flags work beyond the original scope for billing and records sign-off for each project phase.
Why it matters
One platform connecting every team eliminates the errors and delays that come from juggling separate tools. Sightline can trace any deal from the first email to the final payment, with the right information surfaced to the right person at every step.