Skip to content

Conversation

@grvgoel81
Copy link
Contributor

@grvgoel81 grvgoel81 commented Sep 12, 2025

Description

Changelog

CHANGELOG entry: MarketingOptIn API added: https://consensyssoftware.atlassian.net/browse/SL-154

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

marketing_api.mp4

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

grvgoel81 and others added 30 commits September 1, 2025 14:37
Base automatically changed from feat-SL-128_remove_metametrics_screen to main September 13, 2025 07:53
@grvgoel81 grvgoel81 requested a review from a team as a code owner September 13, 2025 07:53
Copy link
Contributor

@himanshuchawla009 himanshuchawla009 left a comment

Choose a reason for hiding this comment

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

api integration to fetch existing marketing opt in status is missing

@grvgoel81
Copy link
Contributor Author

api integration to fetch existing marketing opt in status is missing

Added get API.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@himanshuchawla009 himanshuchawla009 left a comment

Choose a reason for hiding this comment

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

lgtm

@sonarqubecloud
Copy link

const fetchMarketingStatus = async () => {
try {
const data = await OAuthService.getMarketingOptInStatus();
dispatch(setDataCollectionForMarketing(data.is_opt_in));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to get false but the client have stored already a truly value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are syncing data both time at the time of updating switch state via update API and at the time of opening page.

@grvgoel81 grvgoel81 added this pull request to the merge queue Sep 15, 2025
oauthLoginError: null,
});
};

Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to create a new service for this?
I dont see these function require data from OauthService class or viceversa.

dispatch(setDataCollectionForMarketing(value));

if (isSeedlessOnboardingLoginFlow) {
OAuthService.updateMarketingOptInStatus(value).catch((error) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should update the Marketing Status to the server during the submission.
user could tick then untick the check box

Merged via the queue into main with commit 8e07c3b Sep 15, 2025
87 checks passed
@grvgoel81 grvgoel81 deleted the feat-SL-154-marketing-API branch September 15, 2025 14:45
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2025
@metamaskbot metamaskbot added the release-7.56.0 Issue or pull request that will be included in release 7.56.0 label Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.56.0 Issue or pull request that will be included in release 7.56.0 size-L team-onboarding Onboarding team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants