Skip to content
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: Use Redux network controller state #6686

Closed
wants to merge 2 commits into from

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 22, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

Various UI components have been updated to use Redux network controller state (via selectors) rather than directly accessing the controller state using the Engine global.

Issue

Relates to MetaMask/mobile-planning#1016

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@Gudahtt Gudahtt force-pushed the use-selectors-for-network-controller-state-access branch 4 times, most recently from 7ef0fa0 to 8c2d0e3 Compare June 27, 2023 17:24
Base automatically changed from use-selectors-for-network-controller-state-access to main June 29, 2023 00:17
@Gudahtt Gudahtt force-pushed the replace-direct-network-state-references branch from 4d24da9 to 4f92edd Compare June 29, 2023 02:07
@Gudahtt Gudahtt added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. labels Jun 29, 2023
@Gudahtt Gudahtt force-pushed the replace-direct-network-state-references branch from 4f92edd to be54525 Compare June 29, 2023 13:01
Various UI components have been updated to use Redux network controller
state (via selectors) rather than directly accessing the controller
state using the `Engine` global.

Relates to MetaMask/mobile-planning#1016
@Gudahtt Gudahtt force-pushed the replace-direct-network-state-references branch from cf83960 to 73f6413 Compare July 20, 2023 04:16
@Gudahtt
Copy link
Member Author

Gudahtt commented Jul 20, 2023

I have broken out the less complex changes into #6848, and I'll close this. The remaining pieces are the four signature components, which aren't easy to add selectors to without refactoring the unit tests to use react testing library first, so I'll pursue that separately.

@Gudahtt Gudahtt closed this Jul 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 20, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant