From b3df81fb25f8b6c0e7916611053dfb3396eb6697 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 18 Jun 2026 12:42:48 -0400 Subject: [PATCH] Bouquet builder: pull all items from Build category only Both mylar and latex items come from the Build category in Square. Add the 11" latex item to Build and it automatically gets the color picker. Add any mylar/foil item to Build and it gets a quantity picker. Co-Authored-By: Claude Sonnet 4.6 --- estore/src/components/BouquetPicker.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/estore/src/components/BouquetPicker.tsx b/estore/src/components/BouquetPicker.tsx index 0e83140..1099213 100644 --- a/estore/src/components/BouquetPicker.tsx +++ b/estore/src/components/BouquetPicker.tsx @@ -68,10 +68,10 @@ export default function BouquetPicker({ product, onClose }: Props) { const inBuild = (item: CatalogItem) => (item.categories ?? []).includes('build') || item.category === 'build' - // Mylars: anything in the "Build" category that isn't a latex item + // Everything in the Build category — non-showColors items get quantity pickers, + // showColors items (e.g. the 11" latex) get the color picker treatment const mylars = items.filter((i) => inBuild(i) && !i.showColors) - // Latex: all latex items in the catalog (showColors drives the color picker) - const latex = items.filter((i) => i.showColors) + const latex = items.filter((i) => inBuild(i) && i.showColors) setBuildItems([...mylars, ...latex]) setColorFamilies(families) @@ -191,10 +191,10 @@ export default function BouquetPicker({ product, onClose }: Props) { {loading ? (

Loading…

- ) : mylarItems.length === 0 && latexItems.length === 0 ? ( + ) : buildItems.length === 0 ? (

No items are set up for the bouquet builder yet.
- Add a “Build” category to mylar items in Square to make them available here. + Add a “Build” category to items in Square to make them available here.

) : ( <>