Repository navigation
feat(TD-16254): show the selected barcode in the storefront product details - #1043
Conversation
…tails Fix the English barcode label, which shipped as the Arabic string and rendered "الباركود" on English storefronts. Key the identifier rows on the new product.shows_sku / product.shows_barcode flags rather than on the value, so a row that the parent product leaves empty still exists (hidden) and can be revealed when the customer picks a variant that carries a value. product.js now updates the barcode alongside the SKU on every variant change, hiding the whole row instead of leaving a labelled empty one, and long values wrap instead of overflowing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MtMatBNJ4msTomRC9SReY
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | ✅ 0 (≤ 2 duplication) |
AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
|
@greptile review |
|
@greptile-apps review |
Codacy flagged the innerHTML assignment carried over from the SKU update path as an XSS vector for merchant-supplied values. textContent is also what the ticket specifies: the identifier renders as plain text exactly as recorded, with nothing added by the system. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MtMatBNJ4msTomRC9SReY
This repo commits its built assets alongside the sources, so the JS change would never have reached the storefront without them: public/product.js carries the barcode row update and public/app.js the multiSelectors entry that makes app.element() return a NodeList for .product-barcode. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MtMatBNJ4msTomRC9SReY
|
/utest |
Unit Test Trigger SummaryTriggered PRs:
|
|
/utest --no-recursive |
Unit Test Trigger SummaryTriggered PRs:
|
|
@greptile-apps review |
|
/utest --no-recursive |
Unit Test Trigger SummaryTriggered PRs:
|
The toggled wrapper carried `flex sm:grid` alongside `hidden`. All three are display rules of equal specificity, and `sm:grid` sits in a media query far later in the stylesheet, so above 640px it beat `hidden` and the row rendered as an empty labelled card. The card's layout classes move to an inner element, leaving `hidden` unopposed on the wrapper the twig and product.js toggle. Rows are also keyed on the reworked shows_* flags, which now drop a row entirely when neither the product nor any variant can fill it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016MtMatBNJ4msTomRC9SReY
|
/canmerge |
🧪 Dry Run Successful✅ This pull request has passed all merge requirements and would be accepted into the merge queue.
If this were a real merge request, the PR would now be enqueued for merge. Let me know if you'd like to simulate other scenarios. 🤖 🧬 PR's Dependencies |
|
/autoupdate |
Auto Update SummaryUpdated PRs:
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | ✅ 0 (≤ 2 duplication) |
AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
|
/canmerge |
🧪 Dry Run Successful✅ This pull request has passed all merge requirements and would be accepted into the merge queue.
If this were a real merge request, the PR would now be enqueued for merge. Let me know if you'd like to simulate other scenarios. 🤖 🧬 PR's Dependencies |
|
/merge |
⏳ Enqueued for MergeYour pull request has been added to the merge queue. It will be merged automatically once it reaches the front of the queue ✅ 🔄 Queue Status🚦 QueueThe queue is empty. Good luck! 🧬 PR's Dependencies |
🔄 Merge In ProgressThis pull request has reached the front of the queue and is now being processed for merge. |
Fixes the English barcode label, which shipped as the Arabic string and rendered "الباركود" on English storefronts.
Keys the SKU and barcode rows on the new
product.shows_sku/product.shows_barcodeflags rather than on the value, so a row the parent product leaves empty still exists (hidden) and is revealed when the customer picks a variant that carries a value.product.jsnow updates the barcode alongside the SKU on every variant change, hiding the whole row instead of leaving a labelled empty one, and long values wrap instead of overflowing on mobile.Must deploy after the Store PR below —
product.shows_skuresolves to null until that whitelist is live, which would drop the SKU row.Ticket: TD-16254