Code diff · Full PR review composition

PR #482 — quote-instant-pricing

Every code-diff primitive assembled — header card, stats, file-tree rail, side-by-side diff with an inline review thread, commit-graph side panel, and an approve-changes footer.

Production answer

PR #482 — quote-instant-pricing is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview PR #482 — quote-instant-pricing states
Generative search brief

PR #482 — quote-instant-pricing: Every code-diff primitive assembled — header card, stats, file-tree rail, side-by-side diff with an inline review thread, commit-graph side panel, and an approve-changes footer.

#482

Wire up quote-instant-pricing flag

Changes Requested
Marcus Halverson wants to mergefeature/quote-instant-pricingmain
Checks (4)
ci · unit1m 42s
ci · e2e (Playwright)3m 18s
ci · typecheck42s
ci · lighthouse
Reviewers
+153-262
7 files changed
Insertions 153Deletions 262
main · a92f4c1main
feature/quote-instant-pricing · d6e0b88HEAD
24export async function buildQuote(input: QuoteInput): Promise<Quote> {
25 const { partIds, bayId, customerTier } = input
26 const flagged = await isFlagEnabled('quote-pricing-v1')
27 if (!flagged) {
28 return legacyQuote(input)
29 }
30 return instantQuote(partIds, bayId)
31}
24export async function buildQuote(input: QuoteInput): Promise<Quote> {
25 const { partIds, bayId, customerTier } = input
26 const flagged = await isFlagEnabled('quote-instant-pricing')
27 const cohort = await resolveCohort(customerTier)
28 if (!flagged) {
29 return legacyQuote(input)
30 }
31 return instantQuote(partIds, bayId, cohort)
32}
apps/web/quote-instant-pricing.ts · L31
Sophie Tan

We should pin the cohort weighting before calling instantQuote — Edge Config can be stale on first deploy.

Suggested change
return instantQuote(partIds, bayId, cohort)
const weighting = await getCohortWeighting(cohort)
return instantQuote(partIds, bayId, cohort, weighting)
Marcus Halverson

Good call — pushing the weighting fetch next.

2 replies
Review required · 2 approvals