-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: snaps dynamic UI #12429
base: main
Are you sure you want to change the base?
feat: snaps dynamic UI #12429
Conversation
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. |
app/components/Approvals/Snaps/SnapUIRenderer/SnapInterfaceContext.tsx
Outdated
Show resolved
Hide resolved
Bitrise❌❌❌ Commit hash: 04876a5 Note
Tip
|
import { FormTextFieldProps, FormTextFieldSize } from './form-text-field.types'; | ||
import Text from '../../../component-library/components/Texts/Text'; | ||
|
||
export const FormTextField = ({ |
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.
Did this not exist on mobile? Is there an alternative we should be using instead?
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.
We don't really handle 'forms' on mobile. It's just basic text inputs that need to be wrapped in divs
so they can be styled.
} | ||
|
||
// Component that maps Snaps UI JSON format to MetaMask Template Renderer format | ||
const SnapUIRendererComponent = ({ |
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.
We should make sure that all of the CSS rules from the extension are applied to the renderer content: https://github.com/MetaMask/metamask-extension/blob/main/ui/components/app/snaps/snap-ui-renderer/index.scss
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.
Not really sure how to implement this but we can discuss it.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12429 +/- ##
==========================================
- Coverage 58.85% 58.78% -0.07%
==========================================
Files 1851 1879 +28
Lines 41739 42089 +350
Branches 5397 5485 +88
==========================================
+ Hits 24566 24743 +177
- Misses 15502 15672 +170
- Partials 1671 1674 +3 ☔ View full report in Codecov by Sentry. |
Bitrise❌❌❌ Commit hash: 125e2da Note
Tip
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] |
Quality Gate failedFailed conditions |
Description
This PR integrates the Snaps Dynamic UI controller and components to allow different dialog prompts to show on the screen.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist