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

@W-17405592 - DataCloud Events in PWA #2229

Open
wants to merge 16 commits into
base: feature/datacloud-events
Choose a base branch
from

Conversation

carson-campbell
Copy link
Collaborator

@carson-campbell carson-campbell commented Jan 30, 2025

Description

Initial DataCloud events implementation - to be followed by @yunakim714 unit and E2E testing, and documentation. Sends 5 types of events:

  • ViewPage
  • ViewProduct
  • ViewCategory
  • ViewSearch
  • ViewRecommendations

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • Add use-datacloud.js hook
  • Updated various pages and components to include calls to use-datacloud functions
  • Update package.json to include @salesforce/cc-datacloud-typescript
  • Update default.js to include DataCloud configurations
  • Update ssr.js for accessing DataCloud APIs

How to Test-Drive This PR

  • Navigate through various pages and components, look for calls made to .c360a.salesforce.com/web/events/, decode payload to validate information
  • Run npm run test app/hooks/use-datacloud.test.js to check all unit tests are passing for all 5 events

Checklists

General

  • Changes are covered by test cases
    • Unit tests
    • E2e tests
  • [No - to be followed up on] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

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.

2 participants