Skip to content

MWPW-203850: Add data-replaced-osi and data-locked-osi to merch-card - #1201

Draft
seanchoi0 wants to merge 7 commits into
mainfrom
MWPW-203850
Draft

MWPW-203850: Add data-replaced-osi and data-locked-osi to merch-card#1201
seanchoi0 wants to merge 7 commits into
mainfrom
MWPW-203850

Conversation

@seanchoi0

Copy link
Copy Markdown
Contributor

Decorates the merch-card element with two new data attributes to assist M@S Extension troubleshooting and reuse.

Resolves https://jira.corp.adobe.com/browse/MWPW-203850
QA Checklist: https://wiki.corp.adobe.com/display/adobedotcom/M@S+Engineering+QA+Use+Cases

Changes:

  • data-replaced-osi (new): set by wcs.js IO transformer when the Promo Project substitutes an OSI — contains the original OSI(s) before substitution, comma-separated if multiple

  • data-locked-osi (bug fix): set by hydrate.js from fields.osi — reflects the card-level locked OSI in the DOM

  • C1. Cover code with Unit Tests

  • C2. Add a Nala test (double check with #fishbags if nala test is needed)

  • C3. Verify all Checks are green (unit tests, nala tests)

  • C4. PR description contains working Test Page link where the feature can be tested

  • C5: you are ready to do a demo from Test Page in PR (bonus: write a working demo script that you'll use on Thursday, you can eventually put in your PR)

  • C.6 read your Jira one more time to validate that you've addressed all AC's and nothing is missing

Test URLs:

…merch-card

- wcs.js: track original OSIs before promo substitution, set fields.replacedOsi
- merch-card.js: add lockedOsi and replacedOsi getter/setter pairs (setAttribute/removeAttribute)
- hydrate.js: wire fields.osi → lockedOsi and fields.replacedOsi → replacedOsi on card

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Sep 2, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.47368% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.75%. Comparing base (d09c40c) to head (5770f73).

Files with missing lines Patch % Lines
web-components/src/merch-card.js 86.66% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1201      +/-   ##
==========================================
+ Coverage   90.74%   90.75%   +0.01%     
==========================================
  Files         316      316              
  Lines      101499   101534      +35     
==========================================
+ Hits        92101    92145      +44     
+ Misses       9398     9389       -9     
Files with missing lines Coverage Δ
io/studio/src/bulk-publish/bulk-publish-worker.js 100.00% <100.00%> (ø)
io/studio/src/bulk-publish/snapshot.js 97.87% <100.00%> (+0.02%) ⬆️
web-components/src/hydrate.js 91.81% <100.00%> (+0.01%) ⬆️
web-components/src/merch-card.js 89.41% <86.66%> (-0.08%) ⬇️

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d09c40c...5770f73. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant