-
hi, i'm working on creating a new 'replaceCard' action in personalization.js which impact will mostly be to register those personalisation actions in merch-cards.js block. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I think the cleanest approach is to add a |
Beta Was this translation helpful? Give feedback.
-
Hey @chrischrischris time has passed a bit, and as we discussed how to adapt to @vivgoodrich recent changes, on exposing only "replace" action to editors that would adapt for merch-cards, i realise that initital proposal from @yesil could basically be a better fit than adding ugly "if" per selector that would pollute personalisation code with lazy import, or specific query (if selector contains merch-cards):
wdyt? |
Beta Was this translation helpful? Give feedback.
-
Sorry @npeltier , did not notice this conversation. Looks like @chrischrischris has posted stuff from our discussions already. Here's my proposal:
I needed to focus on getting the big action overhaul across the finish line last week. My plan is to code the MEP portion for you guys and either have you adapt your previous code to my updates or review with you so I can adapt it for you. |
Beta Was this translation helpful? Give feedback.
-
so i met with @vivgoodrich and we agreed on finally (quoting Vivian :) ): |
Beta Was this translation helpful? Give feedback.
so i met with @vivgoodrich and we agreed on finally (quoting Vivian :) ):
1 no new action
2 selector will be off of a keyword (maybe merchcard or merch-card-collection
3 the actions that have the right selector will be added to config.mep.custom.merchCardCollection.replace (or something like that)