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

chore: Abstract controller selectors in confirmations dir #10309

Closed
7 of 17 tasks
Cal-L opened this issue Jul 15, 2024 · 0 comments · Fixed by #10397
Closed
7 of 17 tasks

chore: Abstract controller selectors in confirmations dir #10309

Cal-L opened this issue Jul 15, 2024 · 0 comments · Fixed by #10397
Assignees
Labels
area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. release-7.29.0 Issue or pull request that will be included in release 7.29.0 team-mobile-platform type-tech-debt Technical debt

Comments

@Cal-L
Copy link
Contributor

Cal-L commented Jul 15, 2024

What is this about?

This task is a prerequisite for abstracting controller selectors in preparation for optimizing selectors (memoization). This task focuses on files in the confirmations dir.

Scenario

No response

Design

No response

Technical Details

Abstract selectors for the following files. If the selector doesn't exist yet, we will need to create them in the selectors dir

  • app/components/Views/confirmations/Approval/index.js
    705,23: transactions: state.engine.backgroundState.TransactionController.transactions,

  • app/components/Views/confirmations/ApproveView/Approve/index.js
    920,23: transactions: state.engine.backgroundState.TransactionController.transactions,
    930,22: addressBook: state.engine.backgroundState.AddressBookController.addressBook,

  • app/components/Views/confirmations/components/ApproveTransactionReview/AddNickname/index.tsx
    270,22: addressBook: state.engine.backgroundState.AddressBookController.addressBook,

  • app/components/Views/confirmations/components/EditGasFeeLegacyUpdate/index.tsx
    90,13: state.engine.backgroundState.GasFeeController.gasEstimateType,

  • app/components/Views/confirmations/Send/index.js
    784,22: addressBook: state.engine.backgroundState.AddressBookController.addressBook,

  • app/components/Views/confirmations/SendFlow/AddressList/AddressList.tsx
    58,13: state.engine.backgroundState.AddressBookController.addressBook,

  • app/components/Views/confirmations/SendFlow/Confirm/components/CustomGasModal/CustomGasModal.tsx
    55,13: state.engine.backgroundState.GasFeeController.gasEstimateType,

  • app/components/Views/confirmations/SendFlow/SendTo/index.js
    670,22: addressBook: state.engine.backgroundState.AddressBookController.addressBook,

Threat Modeling Framework

No response

Acceptance Criteria

  • App behavior remains the same
  • Spot check the flows where changes were made to confirm consistent behavior

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

@MarioAslau MarioAslau self-assigned this Jul 18, 2024
@tommasini tommasini self-assigned this Jul 24, 2024
@tommasini tommasini linked a pull request Jul 24, 2024 that will close this issue
7 tasks
@gauthierpetetin gauthierpetetin added the type-tech-debt Technical debt label Jul 26, 2024
@metamaskbot metamaskbot added the release-7.29.0 Issue or pull request that will be included in release 7.29.0 label Jul 31, 2024
@gauthierpetetin gauthierpetetin added the area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. release-7.29.0 Issue or pull request that will be included in release 7.29.0 team-mobile-platform type-tech-debt Technical debt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants