MWPW-198237: Fix OST and checkout links in compare-chart feature columns#962
MWPW-198237: Fix OST and checkout links in compare-chart feature columns#962yesil wants to merge 5 commits into
Conversation
|
SNOW Change Request Transaction ID [STUDIO]: 0000019c1eec85a3-12e0fd06 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #962 +/- ##
==========================================
+ Coverage 89.17% 89.30% +0.12%
==========================================
Files 263 263
Lines 82679 82722 +43
==========================================
+ Hits 73729 73873 +144
+ Misses 8950 8849 -101
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Axelcureno
left a comment
There was a problem hiding this comment.
Hydrate refactor looks good, and the removed @rte-focusout was genuinely dead.
One blocker: the guard's flags can get stuck. showOfferSelector only clears on select (rte-field.js:1558) — closing OST via Escape/backdrop/Cancel leaves it true, so the cell never deactivates and Escape gets swallowed. Link/icon editors' Cancel dispatches close, but rte-field only binds @save. Suggest clearing the flag on every OST close and binding @close.
Smaller: Escape-revert leaves referencedFragmentStoresHaveChanges stuck true; spectrum="swc" CTAs lose their listener through the innerHTML→unsafeHTML round-trip.
Fixes the Offer Selector Tool (OST) and checkout links in mas-compare-chart feature columns.
#rteFieldHasOpenModalguards#deactivateRteCell, so opening OST inside a feature column keeps the cell alive. Removes the now-redundant@rte-focusouthandler.data-wcs-osicheckout links in thefeaturesslot are now transformed into buttons, matching description-slot behavior, via a new sharedprocessLinkshelper reused by bothprocessDescriptionLinksandprocessFeaturesLinks.hydrate.test.js).dist/mas.js+dist/merch-card.jsrebuilt and committed.Resolves https://jira.corp.adobe.com/browse/MWPW-198237
QA Checklist: https://wiki.corp.adobe.com/display/adobedotcom/M@S+Engineering+QA+Use+Cases
Please do the steps below before submitting your PR for a code review or QA
Test URLs:
Before: https://main--mas--adobecom.aem.live/
After: https://mwpw-198237--mas--adobecom.aem.live/
Express demo page:
Before: https://main--da-express-milo--adobecom.aem.page/drafts/ilyas/pricing?milolibs=stage
After: https://main--da-express-milo--adobecom.aem.page/drafts/ilyas/pricing?milolibs=stage&maslibs=mwpw-198237--mas--adobecom