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

fix: all circular imports fixed #1358

Merged
merged 9 commits into from
Apr 1, 2022
Merged

Conversation

stackedq
Copy link
Contributor

@stackedq stackedq commented Mar 31, 2022

Description

fixed all remaining circular imports and migrates KeepkeyPin, KeepkeyPassphrase, and native PasswordModal into the WalletModal and using the state in useWallet.

Notice

  • Have you followed the guidelines in our Contributing guide?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

  • 🐛 Bug fix (Non-breaking Change: Fixes an issue)
  • 🛠️ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • 💅 New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

Circular imports were littered throughout web. This was causing some optimization issues on load, but overall did not present itself until recently. A certain PR had caused the app to get stuck in an infinite refresh loop on iPhone only. Investigating the cause, we decided to start removing circular imports to see if we could get the app to load on iPhone and it worked, validating our idea that circular imports had gotten inefficient enough to cause an issue on iPhone load.

This PR removes all circular imports and put's into CI that a circular import will fail the build, ensuring that no more will be added in the future.

Risk

There is overall regression risk throughout the application. There are also higher regression risks to the native password entry, the keepkey pin entry, and the keepkey passphrase entry. The app did seem to be working pretty well locally, and in our manual testing no regressions were found.

Testing

Testing the keepkey pin entry, keepkey passphrase entry and native wallet password entry for bugs is needed. Also overall regression testing will be needed since 128 files were touched in removing the circular dependencies.

Screenshots (if applicable)

@stackedq stackedq requested review from a team and 0xApotheosis as code owners March 31, 2022 12:41
@stackedq stackedq changed the title fix: all circular imports fixed. fix: all circular imports fixed Mar 31, 2022
@stackedq stackedq marked this pull request as draft March 31, 2022 12:44
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 31, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d16706a
Status: ✅  Deploy successful!
Preview URL: https://341a0035.web-29e.pages.dev

View logs

@0xdef1cafe 0xdef1cafe marked this pull request as ready for review March 31, 2022 16:09
@0xdef1cafe 0xdef1cafe marked this pull request as draft March 31, 2022 16:34
stackedq and others added 2 commits April 1, 2022 00:40
* chore: WIP moving modals to WalletProvider

* fix: native password and kk pin modal migrated

* fix: migrated the keepkey passphrase modal to live under wallet context

Co-authored-by: theoboldfrazier <theobold.frazier@gmail.com>
Co-authored-by: stackedQ <stackedQ@gmail.com>
@theoboldfrazier theoboldfrazier marked this pull request as ready for review April 1, 2022 17:31
@theoboldfrazier theoboldfrazier merged commit 5c5fe55 into develop Apr 1, 2022
@theoboldfrazier theoboldfrazier deleted the circular-imports-fix branch April 1, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants