-
Notifications
You must be signed in to change notification settings - Fork 5.2k
feat: Convert mmi controller to a non-controller #27983
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: Convert mmi controller to a non-controller #27983
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. |
Builds ready [ce40ec1]
Page Load Metrics (2172 ± 161 ms)
Bundle size diffs
|
The below part of the ticket is not covered at the moment because
|
Builds ready [78451b7]
Page Load Metrics (1861 ± 97 ms)
Bundle size diffs
|
Can we add the missing types, even if they would have a value of never, to accurately reflect the original issue requirements? Alternatively, should we update the requirements to exclude those types?
|
Yeah, I think it'll make sense to update the requirements to exclude these types which are irrelevant here. I'll update it now. |
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.
Nice PR. Just had some comments on improved ways we could accomplish certain things.
…r instance instead of prototype in tests
Builds ready [57c8a45]
Page Load Metrics (1670 ± 98 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…b.com:MetaMask/metamask-extension into feat/convert-mmi-controller-to-non-controller
Builds ready [843328c]
Page Load Metrics (1977 ± 97 ms)
Bundle size diffs
|
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.
Noticed one more thing but after that this should be good!
Builds ready [7f0ff01]
Page Load Metrics (1952 ± 109 ms)
Bundle size diffs
|
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.
Looks good!
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!
LGTM, Thanks @kanthesha ! |
Description
We want to bring MMIController up to date with our latest controller patterns.
After review, it turns out that MMIController does not have any state and therefore should not inherit from BaseController (or anything, for that matter).
Related issues
Fixes: #25926
Manual testing steps
N/A
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist