← All 34 tasks · Navigation · Subcategory taxonomy
NAV-2Chat ASophieData laneP1done

Website subcategory naming

Element: Subcategory labels used by dropdown (NAV-3) + filters (NAV-4)
Source: Sophie Nagano · Jun 11, 4:08 PMTarget build: v234 (shipped)Depends on: Feeds NAV-3 + NAV-4

● Current state — verified on live v230

No subcategory layer exists anywhere on the live site — shop only knows top-level categories.

◎ Target outcome

Subcategory renames: Cartridges→510 Cartridges, Pre-Ground→Pre-Milled, Glassware→Bongs & Pipes, Drinks→Beverages, Oil→Dispenser Oils, Lotions→Creams & Lotions, Papers/Rolling Supplies→Papers & Rolling Supplies.

✓ Output — closed & verified

CLOSED & VERIFIED. Shipped v234. Subcategory labels normalized from the catalog's UPPER_SNAKE enums to website labels (WHOLE_FLOWER→Whole Flower, PRE_GROUND→Pre-Milled), DEFAULT hidden. Subcategory facet shows clean labels on /v234/shop?cat=flower.

Assets, colours & references

Reference: Sophie's Website Product Mapping sheet, subcategory columns (see index mapping table).

Technical steps to achieve it

  1. Extend taxonomy.js with SUBCATEGORY_MAP keyed by (category → [subcategory labels]).
  2. Tag each product with website_subcategory in transformDutchieProduct (from Dutchie subcategory).
  3. Expose the per-category subcategory list for the dropdown + facet builder.

Files to change

src/config/taxonomy.js (SUBCATEGORY_MAP)src/hooks/useProducts.jssrc/utils/computeFacets.js

Testing

  1. Unit: every Dutchie subcategory → website subcategory label.
  2. Canary: Flower shows Whole Flower / Pre-Milled / Seeds.

Milestones

Spec'd from feedback
Source located
Code change
Local test (vitest + vite preview)
Canary verify + ship v234 (shipped)

Verify live

Progress URL updates here when this task ships to its target /vN/. Current column always points at the live baseline.

← NAV-1indexNAV-3 →