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

feat(2184): modify dapp visited event in terms of isFirstVisited #23659

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

DDDDDanica
Copy link
Contributor

@DDDDDanica DDDDDanica commented Mar 22, 2024

Description

Modifty is_first_visit property in dapp viewed events to remove the haradcoded value.

  • When we track the first time a dapp visit is recorded, it will be set as true
  • When user completely disconnects and connects again to a given dapp, this property will be set as false.
  • The rest logic remains the same

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2184

Manual testing steps

  1. Open background.html from extension management page
  2. Disconnect from a previous connected dapp
  3. Connect again and check events in networks starting from batch
  4. The one under Dapp_viewed should have property is_first_visit as false

Screenshots/Recordings

Before

After

Screen.Recording.2024-03-24.at.01.28.43.mov

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@DDDDDanica DDDDDanica self-assigned this Mar 22, 2024
@DDDDDanica DDDDDanica requested a review from a team as a code owner March 22, 2024 20:56
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@DDDDDanica DDDDDanica force-pushed the feature/2184-dapp-visit branch from fa30e5e to 9ded093 Compare March 24, 2024 01:22
@DDDDDanica DDDDDanica changed the title WIP: feat(2184): modify dapp visited event in terms of isFirstVisited feat(2184): modify dapp visited event in terms of isFirstVisited Mar 24, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [9ded093]
Page Load Metrics (599 ± 426 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint761961173718
domContentLoaded116730157
load632212599887426
domInteractive116730157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 47 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@DDDDDanica DDDDDanica added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 25, 2024
@DDDDDanica DDDDDanica force-pushed the feature/2184-dapp-visit branch from 9ded093 to 8bdabf2 Compare March 25, 2024 16:41
@metamaskbot
Copy link
Collaborator

Builds ready [8bdabf2]
Page Load Metrics (719 ± 457 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint681961173215
domContentLoaded117632199
load542328719952457
domInteractive117632199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 47 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@NiranjanaBinoy NiranjanaBinoy left a comment

Choose a reason for hiding this comment

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

LGTM

@DDDDDanica DDDDDanica merged commit 8284b9c into develop Mar 25, 2024
65 of 66 checks passed
@DDDDDanica DDDDDanica deleted the feature/2184-dapp-visit branch March 25, 2024 17:19
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Mar 25, 2024
@metamaskbot metamaskbot added release-11.14.1 Issue or pull request that will be included in release 11.14.1 release-11.14.0 Issue or pull request that will be included in release 11.14.0 and removed release-11.14.1 Issue or pull request that will be included in release 11.14.1 labels Mar 25, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.14.0 on PR. Adding release label release-11.14.0 on PR and removing other release labels(release-11.14.1), as PR was added to branch 11.14.0 when release was cut.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.14.0 Issue or pull request that will be included in release 11.14.0 team-extension-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants