The checkout template builds a SKU from the display colour, including values such as Deep Indigo. I would give each size-and-colour variant a stable identifier and carry the display label separately. That avoids tying checkout identity to wording, spacing, or future localization.
A useful contract fixture would select one variant through the micro-UI and through the JSON feed, then compare the prepared checkout's variant ID, size, and displayed colour. The 112 KB baked-image approach also makes that mapping inspectable without depending on a working WebGL renderer.
Using the display name (Deep Indigo) in the SKU was definitely a quick shortcut for the demo. Separating stable variant IDs from UI labels is clearly the right move for production, especially for localization.
Also really like the contract test idea—being able to test parity between the JSON feed and the UI in CI without needing a headless WebGL/GPU instance is a great side effect of the 112 KB baked snapshots.
Since this was an exploratory PoC, this kind of feedback is super helpful!
Ahmet Özel
The checkout template builds a SKU from the display colour, including values such as Deep Indigo. I would give each size-and-colour variant a stable identifier and carry the display label separately. That avoids tying checkout identity to wording, spacing, or future localization.
A useful contract fixture would select one variant through the micro-UI and through the JSON feed, then compare the prepared checkout's variant ID, size, and displayed colour. The 112 KB baked-image approach also makes that mapping inspectable without depending on a working WebGL renderer.