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: split approvals into separate files #6687

Merged
merged 20 commits into from
Jul 24, 2023

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Jun 22, 2023

Description

Split all approval logic and rendering currently in RootRPCMethodsUI into separate components relying on a new useApprovalRequest hook which reads the ApprovalController state from Redux rather than using an additional event listener.

Also adds an ApprovalModal component to encapsulate the approval modal configuration currently duplicated for many different approvals.

Reduces the RootRPCMethodsUI size by ~400 lines (~50%).

E2E Test Run

Checklist

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

@github-actions
Copy link
Contributor

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.

@matthewwalsh0 matthewwalsh0 marked this pull request as ready for review July 11, 2023 11:26
@matthewwalsh0 matthewwalsh0 requested a review from a team as a code owner July 13, 2023 09:12
@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

91.4% 91.4% Coverage
0.0% 0.0% Duplication

@matthewwalsh0 matthewwalsh0 added the QA Passed A successful QA run through has been done label Jul 24, 2023
@matthewwalsh0 matthewwalsh0 merged commit f2bcaee into main Jul 24, 2023
12 checks passed
@matthewwalsh0 matthewwalsh0 deleted the refactor/modular-approvals branch July 24, 2023 07:18
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-7.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants