Skip to content

Wire the tire finder to a product catalogue and add product pages#20

Merged
benpeter merged 1 commit into
mainfrom
conti-products
Jul 25, 2026
Merged

Wire the tire finder to a product catalogue and add product pages#20
benpeter merged 1 commit into
mainfrom
conti-products

Conversation

@benpeter

@benpeter benpeter commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Fix #21

Capture the product line into a catalogue and make the tire finder use it.

products.json holds 13 products from the live site: name, category, season, vehicle types, image, description, features, and tire sizes. It is served from the code bus at /products.json. Eight products carry real size lists scraped from the source. The rest carry representative sizes for their category, flagged in the data.

The perfect-fit tire finder now searches the catalogue. By Tire Size has cascading width, aspect, and rim menus built from the real sizes, and returns every product available in the chosen size. By Vehicle maps a curated make and model set to a vehicle class and returns the fitting tires. By Plate recommends the all-weather range. Results are product cards linking to /tires/.

A new size-list block renders sizes as chips on the product pages. The product pages were generated from products.json with json2html and carry hero, overview, features, sizes, and page metadata.

Testing: npm test covers size parsing, the option builder, size and vehicle matching, the modal, and size-list. Live-tested on a local aem up server: By Tire Size 225/35R19 returns ExtremeContact Sport 02, By Vehicle Ford Explorer returns 9 SUV tires, and the product page renders correctly.

Test URLs:

…port

Add products.json, a 13-product catalogue captured from the live site with
name, category, season, vehicle types, image, description, features, and tire
sizes. It is served from the code bus at /products.json.

Rewrite the perfect-fit tire finder to search that catalogue. By Tire Size
offers cascading width, aspect, and rim menus built from the real sizes, and
returns every product available in the chosen size. By Vehicle maps a curated
make and model set to a vehicle class and returns the tires that fit it. By
Plate recommends the all-weather range. Results render as product cards that
link to /tires/<slug>.

Add a size-list block that renders authored tire sizes as chips, used by the
product pages.

Tested: npm test covers size parsing, the cascading option builder, size and
vehicle-class matching, the modal, and the size-list block. Live-tested on a
local aem up server. By Tire Size 225/35R19 returns ExtremeContact Sport 02,
By Vehicle Ford Explorer returns 9 SUV-fitting tires, and a product page
renders hero, overview, features, and size chips.
@aem-code-sync

aem-code-sync Bot commented Jul 25, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Jul 25, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
📱 /tires/crosscontact-lx25 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /tires/crosscontact-lx25 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@benpeter
benpeter merged commit d10da57 into main Jul 25, 2026
3 checks passed
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.

Product pages and a working tire finder driven by a product catalogue

1 participant