-
Notifications
You must be signed in to change notification settings - Fork 5.4k
refactor: cp-13.13.0 gate ProfileMetricsController with pna25Acknowledged
#38562
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
refactor: cp-13.13.0 gate ProfileMetricsController with pna25Acknowledged
#38562
Conversation
Builds ready [b5c6270]
UI Startup Metrics (1242 ± 103 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Co-authored-by: Jongsun Suh <[email protected]>
MajorLift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Builds ready [1424dce]
UI Startup Metrics (1224 ± 97 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ProfileMetricsController with pna25AcknowledgedProfileMetricsController with pna25Acknowledged
Gudahtt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
The PR adds an additional check to the
assertUserOptedInfunction passed to theProfileMetricsControllerto ensure that profile metrics are only collected after the user has acknowledged the PNA25 notice.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Gates profile metrics collection behind
pna25Acknowledgedand updates E2E tests to cover acknowledgment and other gating conditions.assertUserOptedIninapp/scripts/controller-init/profile-metrics-controller-init.tsto also requireAppStateController.state.pna25Acknowledged === truealongside the feature flag and MetaMetrics opt-in.test/e2e/tests/profile-metrics/profile-metrics.spec.ts):.withAppStateController({ pna25Acknowledged: true })when MetaMetrics is enabled and the feature flag is on; verify existing and new accounts trigger API calls.Written by Cursor Bugbot for commit 1424dce. This will update automatically on new commits. Configure here.