-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: added pna-25 banner #38112
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
base: main
Are you sure you want to change the base?
feat: added pna-25 banner #38112
Conversation
|
|
||
| if (!onboardingDate || onboardingDate >= pna25Timestamp) { | ||
| return false; // User onboarded after PNA25 or no onboarding date | ||
| } |
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.
Bug: PNA25 banner excluded for users with no onboarding date
The condition prevents displaying the PNA25 banner to users with no onboardingDate (null), which is inconsistent with the docstring requirement "User onboarded before the PNA25 release date" and inconsistent with similar logic in selectShowPrivacyPolicyToast that explicitly includes such users. The comment suggests only blocking users who onboarded after PNA25, but the condition !onboardingDate || blocks null onboarding dates too.
|
|
||
| if (!onboardingDate || onboardingDate >= pna25Timestamp) { | ||
| return false; // User onboarded after PNA25 or no onboarding date | ||
| } |
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.
Bug: PNA25 banner excluded for users with no onboarding date
The condition prevents displaying the PNA25 banner to users with no onboardingDate (null), which is inconsistent with the docstring requirement "User onboarded before the PNA25 release date" and inconsistent with similar logic in selectShowPrivacyPolicyToast that explicitly includes such users. The condition !onboardingDate || blocks null onboarding dates when it should only block users who onboarded after the PNA25 timestamp.
Builds ready [3feccf9]
UI Startup Metrics (1168 ± 107 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
This PR is to add the updated privacy notice banner
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Introduces a LaunchDarkly-gated PNA25 MetaMetrics update banner with dismissal tracking, new app state fields/setters, selector logic, toast UI, and locale strings.
Pna25Bannertotoast-master.js; opensPRIVACY_POLICY_LINK, tracks dismiss viasetPna25BannerClickedOrClosedandsetPna25BannerDismissedDate.selectShowPna25BannerusingremoteFeatureFlags['extension-ux-pna25'],participateInMetaMetrics,onboardingDate, and dismissal state.pna25BannerClickedOrClosedandpna25BannerDismissedDatetoAppStateControllerstate, defaults, metadata, and setters.setPna25BannerClickedOrClosedandsetPna25BannerDismissedDate.pna25BannerTitleandpna25BannerActionButtonstrings inenanden_GB; normalize apostrophe innewPrivacyPolicyTitle.Written by Cursor Bugbot for commit 3feccf9. This will update automatically on new commits. Configure here.