poc: libsodium#33377
Conversation
PR template — items to address before "Ready for review"Blocking — these items fail the workflow until fixed:
Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 493aa06. Configure here.
| <Box | ||
| twClassName={`mt-2 p-3 rounded-lg ${ | ||
| summary.includes('failed') ? 'bg-error-muted' : 'bg-success-muted' | ||
| }`} |
There was a problem hiding this comment.
Partial failures show success banner
Medium Severity
When some cryptographic checks fail, the summary still uses bg-success-muted because styling only looks for the word failed in the summary string. Messages like 3/10 checks passed never include that substring, so failed runs can look like full success at a glance.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 493aa06. Configure here.
| name={Routes.LIBSODIUM_POC} | ||
| component={LibsodiumPoc} | ||
| options={{ headerShown: false, ...slideFromRightNativeOptions }} | ||
| /> |
There was a problem hiding this comment.
POC route lacks production guard
Low Severity
The wallet entry to LibsodiumPoc is hidden when METAMASK_ENVIRONMENT is production, but MainNavigator always registers Routes.LIBSODIUM_POC. That mismatch leaves the screen reachable in production via navigation while the adjacent FeatureFlagOverride route uses the same env guard.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 493aa06. Configure here.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: This PR introduces a libsodium proof-of-concept developer screen with the following changes:
Why SmokeWalletPlatform: The Wallet home screen ( Why not broader tags: The libsodium POC button is gated to non-production environments, so it won't appear in standard E2E test runs. The navigation change is purely additive. The metro config change is narrowly scoped. No existing user flows (confirmations, swaps, accounts, etc.) are modified. Performance Test Selection: |


Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist