Quotara Works
A Bubble quote calculator migrated without rewriting historical estimates
- Grow
- Service-business quoting
- Bubble
9days
Delivery
80/80
Calculation agreement
250/250
Historical quotes
390ms
67.5% lower
Quote completion, p95
Illustrative before/after figures.
The product
The calculator combined 12 service options and four adjustment rules in one currency. Visitors supplied quantities; an estimator reviewed saved submissions and maintained the rate card. Minimum charges and adjustment order affected the result. Quotes started a sales conversation rather than constituting invoices, so that distinction remained visible. The business did not need checkout, a tax engine or a new pricing strategy.
The challenge
The trigger was a rate-card update that made an older total difficult to reproduce. A new price could be correct while a historical quote changed unexpectedly. Discovery separated policy disagreements from implementation defects: the estimator first approved examples covering ordinary quantities, minimums, incompatible options and rounding. Code migration became useful because stable rules needed reviewable releases. It did not replace the commercial decision about which calculation should be authoritative.
The sales owner could not explain why the same inputs sometimes produced different indicative prices after a rule update. Staff copied old quotes into spreadsheets to reconstruct them. We turned the request into a versioned calculation contract: the approved examples must agree, old estimates must retain their original totals and a new rule must be testable before release. The work excluded new tax jurisdictions and currencies, which would have changed both validation and delivery effort.
How we tackled it
- 01
Establish the reference set. We turned the estimator's 80 examples into explicit expected inputs and outputs.
- 02
Isolate the calculation. Pricing became a pure function with a named version, precision policy and deterministic rounding.
- 03
Preserve history. Each quote retained its original inputs, displayed total and rule version; a new rate card could not silently alter it.
- 04
Gate releases. Calculation tests ran before a pricing version was enabled, and server-side validation rejected incomplete inputs with a specific explanation.
What we built
Next.js and TypeScript implemented the form and calculation module. Postgres with Drizzle stored rate-card versions and quote snapshots; Tailwind retained the existing visual language. Managed authentication protected estimator controls. The email service used the same saved representation shown in the portal. A stable submission key prevented a retried request from creating duplicate estimates. The architecture kept the pricing logic independent enough to test without rendering the page.
In the rehearsal, historical totals were copied as historical facts of the example dataset rather than recomputed using today's rates. Unknown rule versions were flagged for the estimator. Rate editing paused for the final import, followed by a demonstration of a new quote and an unchanged older quote. Recovery preserved any new estimates with their inputs and versions. The receiving engineer then released a harmless rate change in staging through the documented approval path.
Before & after — illustrative results
The comparison below uses the same approved examples and a 20-session, 15-minute submission workload. Calculation and persistence are included in response time; email dispatch is excluded. The 70-to-80 improvement represents correction of ten defined calculation discrepancies, not a general accuracy percentage for all possible inputs. No conversion increase is inferred from a faster result screen.
Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.
| Metric | Before | After | Comparison conditions |
|---|---|---|---|
| Calculation agreement | 70/80 reference examples match | 80/80 match exactly | Same approved examples and rounding policy; changes to business policy excluded. |
| Historical quotes | 250 saved estimates | 250/250 unchanged | Compare inputs, displayed totals, timestamps and known rule versions. |
| Quote completion, p95 | 1,200 ms | 390 ms — 67.5% lower | 20 concurrent submissions for 15 minutes; calculation and persistence included. |
| Calculator-page LCP, lab p75 | 3.9 s | 1.7 s — 2.3× faster | Same form and ten representative input fixtures; 40 loads each; fixed mobile profile; calculation response measured separately. |
| Investigate an old quote, median | 18 min | 5 min | Ten historical examples; same operator; identify inputs, rule version and exact total without changing the saved quote. |
The outcome
Quotara ended the story with pricing changes that could be reviewed before customers saw them and historical estimates that remained explainable. The handover combined the business rule glossary, rounding policy and executable examples. For a real migration, this is the reason to preserve business semantics before optimising performance: an instant answer is not useful if the estimator cannot defend the amount.
Why these improvements mattered
Keeping a quote's inputs and rule version together removed the need to guess how the number had been produced. The sales team gained a reproducible explanation, while the engineer gained a reference suite for future changes. The example demonstrates maintainability and auditability without claiming that migration improved the economics of the underlying offer.
Scope & timeline
Scope
Grow delivered the existing form, server validation, versioned calculation module, saved quote records and one email summary integration. The team preserved the order of adjustments and the original meaning of an indicative estimate. New discounts, currencies and tax rules stayed outside scope. A rule glossary and release checklist were included, giving the owner a concrete way to approve future pricing changes instead of relying on a visual check of the form.
Delivery timeline
Delivery schedule: 9 working days. Team: One senior full-stack engineer, shared QA and the pricing-rule owner. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.
Days 1–2: approve the calculation examples and rounding rules.
Days 3–6: rebuild the form and versioned calculation module.
Days 7–8: compare every reference example and preserved quote.
Day 9: release the agreed rule version and transfer the checklist.
FAQ
- How do you preserve quote totals when moving a Bubble calculator?
- Keep historical inputs and displayed totals, and associate new calculations with explicit rule versions and rounding policies.
- Should migration include a redesign of pricing?
- Only when agreed separately. A migration acceptance set should distinguish existing commercial rules from newly requested pricing changes.
Discuss a similar migration
Bring a normal quote, a minimum-charge example and a disputed rounding case. Bubble to Code can map the existing rules and determine whether a Grow rebuild covers the calculator. The first deliverable to agree is the set of examples that defines a correct price.
