Pizzapup Productions

Software

Quoting Inspection Contracts from the Code Book

Build inspection agreements from equipment counts, code requirements, labor, visits, and three-year pricing.

NFPA requirements modeled
84
Automated tests
142
Platforms
Web and iOS
Agreement term
3 years
Status
In progress

The situation

Fire protection companies often price yearly inspection contracts by hand: count each device, look up its NFPA tests and schedule, estimate technician hours, and plan visits. This web and iOS app starts with a site and its equipment counts, calculates the required work, labor, visits, and three-year price, then produces an agreement ready for the customer to sign.

The problem

Translate two code-driven inspection standards and company-specific pricing rules into a repeatable quoting workflow, without hiding how scope and costs are calculated.

The approach

Model equipment and inspection requirements as linked data, then keep pricing in plain TypeScript functions. A structured agreement editor updates costs as equipment changes; company, team, and quote defaults can be overridden at the appropriate level.

What was built

  • Equipment catalog linked to 84 NFPA 72 fire-alarm and NFPA 25 sprinkler requirements, loaded with a custom CSV-to-SQL importer
  • Company, team, and quote-level pricing defaults that can be overridden
  • Agreement builder with spreadsheet-style tables, live pricing, and automatic standard sprinkler components
  • Scope view comparing code requirements with the customer agreement
  • Plain TypeScript pricing functions covered by 142 automated tests in GitHub Actions
  • Supabase backend with Postgres, authentication, roles, row-level security, and multi-company support
  • Customer agreement export to a signable PDF
  • iOS app built from the same codebase with Capacitor

The result

The workflow turns equipment counts into a scoped, three-year agreement, supports review against code requirements, exports a signable PDF, and runs on web and iOS from one codebase.

Plates

Equipment, systems, and live pricing
Equipment, systems, and live pricingThe agreement builder groups equipment by system and location. As quantities are entered, the app applies the linked inspection requirements and pricing, giving the estimator a running view of scope and cost.
Code requirements beside the agreed scope
Code requirements beside the agreed scopeThe scope view shows what the standards call for and what the quote includes before a proposal is sent.
A three-year pricing review
A three-year pricing reviewRecurring work and pricing across the agreement term, as a final checkpoint before the customer packet.
Customer-ready agreement
Customer-ready agreementThe reviewed scope and pricing carried into a signable customer agreement.
The builder on iOS
The builder on iOSThe same equipment workflow in the iOS app, built from the shared codebase with Capacitor.

Project details

Built with
React, TypeScript, Vite, Tailwind CSS, shadcn/ui, TanStack Query, Supabase, Postgres, Vitest, GitHub Actions, Capacitor, iOS, Vercel
Topics
Fire protection, Quoting, Mobile workflow, Data import
Note
Demo available on request. The live app is not linked because public sign-ups currently add accounts to a shared company. The repository is private.