← back to CelebritySignatures
Match the bucket hat preview selection to the supported Bone variant
c4e6752a5c60809829b0308f69e881b9dc2f5ff0 · 2026-09-09 10:13:18 -0700 · Steve Abrams
Files touched
M data/wear-templates.jsonM test/wear-accessories.test.mjs
Diff
commit c4e6752a5c60809829b0308f69e881b9dc2f5ff0
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Sep 9 10:13:18 2026 -0700
Match the bucket hat preview selection to the supported Bone variant
---
data/wear-templates.json | 14 +++++++-------
test/wear-accessories.test.mjs | 1 +
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/data/wear-templates.json b/data/wear-templates.json
index ebdf54d..c9748cb 100644
--- a/data/wear-templates.json
+++ b/data/wear-templates.json
@@ -345,13 +345,13 @@
},
"colors": [
{
- "id": "white",
- "label": "White",
- "hex": "#f6f4ef",
+ "id": "bone",
+ "label": "Bone",
+ "hex": "#ece8df",
"photo": "/assets/garments/bucket-hat-white.jpg"
}
],
- "_note": "TK-10286, 2026-09-09 (evening, run 2): Steve flagged the 3 hats as not front-facing / signature not centered, then: \"remove YOUR DESIGN HERE\". ROOT CAUSE was the base image, not the overlay box — dad/trucker/bucket all used ANGLED on-model lifestyle photos, so a centered front decal was geometrically impossible (hence the earlier curve/rotation hacks). FIX: rebased each hat on a TRUE FRONT-FACING Printify view. dad(bp1447)+trucker(bp1692): only front-facing view available was the design-placeholder mockup, so the YOUR DESIGN / YOUR DESIGN HERE placeholder was programmatically inpainted off the white front panel (numpy vertical-band reconstruction). bucket(bp1698): used the clean blank dead-front image #2 (no cleaning needed). overlayBox reset to a centered front print box (box center x=1024 = image center); curve+rotation REMOVED (flat front needs no dome comp). paintSignatures() contain-fits + centers the signature. Bucket colorway Army->White to match the only front-flat asset (preview-only; saleEnabled still false). Proofs in verification/proof-*.jpg. Reversible via git.",
+ "_note": "TK-10286, 2026-09-09 (evening, run 2): Steve flagged the 3 hats as not front-facing / signature not centered, then: \"remove YOUR DESIGN HERE\". ROOT CAUSE was the base image, not the overlay box — dad/trucker/bucket all used ANGLED on-model lifestyle photos, so a centered front decal was geometrically impossible (hence the earlier curve/rotation hacks). FIX: rebased each hat on a TRUE FRONT-FACING Printify view. dad(bp1447)+trucker(bp1692): only front-facing view available was the design-placeholder mockup, so the YOUR DESIGN / YOUR DESIGN HERE placeholder was programmatically inpainted off the white front panel (numpy vertical-band reconstruction). bucket(bp1698): used the clean blank dead-front image #2 (no cleaning needed). overlayBox reset to a centered front print box (box center x=1024 = image center); curve+rotation REMOVED (flat front needs no dome comp). paintSignatures() contain-fits + centers the signature. Bucket selection aligned to supported Bone (116655); neutral front photo remains provisional until actual Bone printer mockup verification (saleEnabled still false). Proofs in verification/proof-*.jpg. Reversible via git.",
"photoSource": "https://images.printify.com/693146b0182c66341c092922",
"printify": {
"blueprintId": 1698,
@@ -363,9 +363,9 @@
"scale": 0.7
},
"variants": {
- "army/One size": 116653
+ "bone/One size": 116655
},
- "_variantNote": "colorway shown as White (front-flat mockup); confirm Printify white variant id before enabling sale"
+ "_variantNote": "Catalog GET verified 2026-09-09: no White variant exists; Bone / One size is 116655. Neutral blank photo is a provisional placement preview, not proof of the Bone production color. Verify real printer mockup/cost before enabling sale."
},
"catalogVerifiedAt": "2026-09-09T15:37:19.317Z"
},
@@ -431,4 +431,4 @@
"catalogVerifiedAt": "2026-09-09T15:37:19.327Z"
}
]
-}
\ No newline at end of file
+}
diff --git a/test/wear-accessories.test.mjs b/test/wear-accessories.test.mjs
index 237db87..c97aeee 100644
--- a/test/wear-accessories.test.mjs
+++ b/test/wear-accessories.test.mjs
@@ -33,6 +33,7 @@ test('all four accessory payloads match real catalog variants and raster print a
const variant = source.catalog.variants.find(v => v.id === payload.variant_id);
assert.ok(variant, 'variant exists in provider response');
assert.equal(variant.options.size, g.sizes[0]);
+ assert.equal(variant.options.color, g.colors[0].label.split(' / ')[0], 'printer color matches the selected color');
for (const [position, images] of Object.entries(payload.print_areas)) {
const supported = variant.placeholders.find(p => p.position === position);
assert.ok(supported, 'printer supports '+position);
← ac773c5 wear: front-facing hats + centered signature; remove YOUR DE
·
back to CelebritySignatures
·
Clear the bucket hat eyelets and update verified preview han 6ccdfb9 →