Skip to content

Report tabs and a Price tab (local prices and cars for sale) - #31

Merged
keptlive merged 1 commit into
mainfrom
pricing-tab
Nov 18, 2026
Merged

keptlive merged 1 commit into
mainfrom
pricing-tab

Conversation

@keptlive

Copy link
Copy Markdown
Owner

What

  • The VIN report is tabbed: Overview (car sheet), Price, Safety, Specs, All. One attribute (#results[data-tab]) and screen-only CSS pick the view; print still shows the full report.
  • New Price tab: dealer asking price near a ZIP code, rule-of-thumb private-sale (91%) and trade-in (82%, 75–85%) figures, a price-by-mileage chart, and the cars for sale, each linked to the dealer's own page and to its own VIN report. If a dealer lists this exact VIN, it is shown first.
  • POST /api/market (lib/market.mjs) asks our private price service; 3.5 s timeout, any failure is an explicit "unavailable" and the rest of the report is unaffected.
  • ZIP and mileage travel in the request body (not logged). Privacy policy updated.

Checks

  • npm test: 254 tests, 0 failures (6 new in tests/market.test.mjs).
  • Headless browser at 390 px and 1280 px: tabs, ZIP form, sorting, tooltip, print, ?tab=price deep link, no console errors, no horizontal overflow.

🤖 Generated with Claude Code

…e-sale estimates, cars for sale

The report is now tabbed (Overview, Price, Safety, Specs, All) so each view is short; print is unchanged.
The Price tab asks our own index of dealer websites (POST /api/market -> private price service) for
comparable cars near a ZIP code and shows dealer asking price, rule-of-thumb private-sale and trade-in
figures, a price-by-mileage chart and the cars for sale, each linked to the dealer's page. ZIP and mileage
travel in the request body and are not logged; the privacy policy says so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant