Skip to content

Re-add Shopper Insights #2354

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

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Re-add Shopper Insights #2354

merged 6 commits into from
Mar 20, 2024

Conversation

wsbrunson
Copy link
Member

No description provided.

@wsbrunson wsbrunson changed the title add fingerprint to shopper insights Re-add Shopper Insights Mar 5, 2024
Co-authored-by: elizabethmv <[email protected]>
Co-authored-by: Shane Brunson <[email protected]>
@wsbrunson wsbrunson force-pushed the shopper-insights-redux branch from 923bb9e to 20ff8a4 Compare March 6, 2024 20:53
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 87.25490% with 52 lines in your changes are missing coverage. Please review.

Project coverage is 51.20%. Comparing base (914d42d) to head (5a30a4c).
Report is 8 commits behind head on main.

Files Patch % Lines
src/lib/api.js 26.86% 46 Missing and 3 partials ⚠️
src/shopper-insights/shopperSession.js 99.11% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2354      +/-   ##
==========================================
- Coverage   58.00%   51.20%   -6.80%     
==========================================
  Files         153      154       +1     
  Lines       12232    12527     +295     
  Branches      742      726      -16     
==========================================
- Hits         7095     6415     -680     
- Misses       5041     6008     +967     
- Partials       96      104       +8     
Flag Coverage Δ
jest 32.15% <0.00%> (+0.03%) ⬆️
karma 50.05% <0.00%> (-0.13%) ⬇️
vitest 45.28% <87.25%> (-8.97%) ⬇️

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.

@wsbrunson wsbrunson marked this pull request as ready for review March 8, 2024 15:33
@wsbrunson wsbrunson requested a review from a team as a code owner March 8, 2024 15:33
Copy link
Contributor

@jshawl jshawl left a comment

Choose a reason for hiding this comment

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

🚀 The code comments were helpful! Nice job!


if (!isValidPhone) {
throw new ValidationError(
`Expected shopper information to be a valid phone number format`
Copy link
Contributor

Choose a reason for hiding this comment

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

might be helpful to end users to include the format, like:

`Expected shopper information to be a valid phone number format: /\d{5,}/`

Copy link
Contributor

Choose a reason for hiding this comment

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

Thats good suggestion. We are going to have some changes on the interface. I will take a note to update the validation message with the next PR.

...(sdkConfig.environment !== "production" && {
country_code: sdkConfig.buyerCountry,
}),
// $FlowIssue too many cases?
Copy link
Contributor

Choose a reason for hiding this comment

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

this ^ happened to me recently - frustrating! (maybe we can ignore it in the near future)

@ravishekhar ravishekhar merged commit f6d2c28 into main Mar 20, 2024
3 of 4 checks passed
@ravishekhar ravishekhar deleted the shopper-insights-redux branch March 20, 2024 16:48
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.

5 participants