Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ShopperInsights component #2286

Merged
merged 11 commits into from
Dec 29, 2023
Merged

Add ShopperInsights component #2286

merged 11 commits into from
Dec 29, 2023

Conversation

elizabethmv
Copy link
Contributor

@elizabethmv elizabethmv commented Dec 5, 2023

This PR adds a new Shopper Insights component which exposes a getRecommendedPaymentMethods({}) helper intended for combined use with the SPBs to present PayPal or Venmo upstream. It is also initially a protected export accessible on the PayPal domain until we open up the feature.

Right now we are using existing kraken libraries to support the requests (Belter, ZalgoPromise) but we will be creating a separate PR to use the fetch API. We wanted to break this out so that we can get more dedicated feedback on that separately.

src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/utils.js Outdated Show resolved Hide resolved
src/api/utils.js Outdated Show resolved Hide resolved
src/api/utils.js Outdated Show resolved Hide resolved
src/constants/api.js Outdated Show resolved Hide resolved
src/lib/security.js Outdated Show resolved Hide resolved
src/api/shopper-insights/component.jsx Outdated Show resolved Hide resolved
src/api/shopper-insights/validation.js Show resolved Hide resolved
src/api/shopper-insights/validation.js Outdated Show resolved Hide resolved
src/api/utils.js Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (77b7dc0) 51.18% compared to head (17a1560) 51.18%.
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2286   +/-   ##
=======================================
  Coverage   51.18%   51.18%           
=======================================
  Files         104      104           
  Lines        2032     2032           
  Branches      601      601           
=======================================
  Hits         1040     1040           
  Misses        889      889           
  Partials      103      103           
Flag Coverage Δ
jest 31.99% <ø> (ø)
karma 49.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/api/utils.js Outdated Show resolved Hide resolved
Copy link
Member

@wsbrunson wsbrunson left a comment

Choose a reason for hiding this comment

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

lookin' pretty dang slick

@elizabethmv elizabethmv changed the title [WIP] Shopper Insights Add shopper insights component Dec 27, 2023
@elizabethmv elizabethmv changed the title Add shopper insights component Add ShopperInsights component Dec 27, 2023
Copy link
Contributor

@ravishekhar ravishekhar left a comment

Choose a reason for hiding this comment

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

💯 awesome work!!

@elizabethmv elizabethmv marked this pull request as ready for review December 29, 2023 20:13
@elizabethmv elizabethmv requested a review from a team as a code owner December 29, 2023 20:13
@elizabethmv elizabethmv merged commit 57a9f69 into main Dec 29, 2023
3 checks passed
@elizabethmv elizabethmv deleted the shopper-insights branch December 29, 2023 20:13
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.

3 participants