Skip to content

♻️ ✅ [amp story shopping] Move i18n CTA label logic into shopping-attachment component#37515

Merged
processprocess merged 1 commit intoampproject:mainfrom
processprocess:text
Jan 31, 2022
Merged

♻️ ✅ [amp story shopping] Move i18n CTA label logic into shopping-attachment component#37515
processprocess merged 1 commit intoampproject:mainfrom
processprocess:text

Conversation

@processprocess
Copy link
Contributor

This PR encapsulates shopping attachment logic by setting the cta-text attribute on the inner page-attachment element and includes a unit test.

Copy link
Contributor

@jshamble jshamble left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

nit: It may be worth playing around and refactoring some of the calls at the beginning of some of the in the unit tests into a helper function to enforce DRY.

@amp-owners-bot
Copy link

Hey @gmajoulet! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js
extensions/amp-story-shopping/0.1/amp-story-shopping-attachment.js
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-attachment.js

Hey @newmuis, @mszylkowski! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants