-
Notifications
You must be signed in to change notification settings - Fork 985
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(wallet): move add-account functionality into its own folder #19476
Conversation
Jenkins BuildsClick to see older builds (40)
|
7aea67b
to
6a51448
Compare
@@ -1,4 +1,4 @@ | |||
(ns status-im.contexts.wallet.events.collectibles |
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.
moved the collectibles file to an events.cljs file within it's collectible folder to align with the other events file
@@ -58,22 +58,24 @@ | |||
[status-im.contexts.wallet.account.edit-account.view :as wallet-edit-account] | |||
[status-im.contexts.wallet.account.share-address.view :as wallet-share-address] | |||
[status-im.contexts.wallet.account.view :as wallet-accounts] | |||
[status-im.contexts.wallet.add-address-to-watch.confirm-address.view :as | |||
[status-im.contexts.wallet.add-account.create-account.edit-derivation-path.view :as |
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.
all of the account generation is now under add-account
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. 🚀
One quick question: Do we need to group events in add account flow? I see events file is growing.
yeah I think we should migrate that, I'll move these folders first in this pr as it will in someways be quicker/safer to do in 2 prs. |
6a51448
to
4999e59
Compare
4999e59
to
6e032d7
Compare
@@ -1,4 +1,4 @@ | |||
(ns status-im.contexts.wallet.events.saved-addresses | |||
(ns status-im.contexts.wallet.save-address.events |
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.
@shivekkhurana -
I believe we had been going with an events file living close to its use case folder, rather than a folder of events with files for each functionality.
I moved this save-address stuff to here as I think it can be a bit more generic than within send folder too.
The flows for save address are actually used in the wallet settings also so maybe it makes sense to have it's own folder.
wdyt? 🤔
011c292
to
2e9303f
Compare
@@ -4,11 +4,9 @@ | |||
[react-native.background-timer :as background-timer] | |||
[react-native.platform :as platform] | |||
[status-im.constants :as constants] | |||
[status-im.contexts.wallet.accounts.add-account.address-to-watch.events] |
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.
don't think these are needed here so I moved them to src/status_im/events.cljs
3093644
to
e604392
Compare
90% of end-end tests have passed
Failed tests (4)Click to expandClass TestDeepLinksOneDevice:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (47)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestWalletOneDevice:
Class TestWalletMultipleDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
|
@status-im/mobile-qa - this pr just moves code around. Can I merge it, do tests look okay? 🤔 |
@@ -0,0 +1,22 @@ | |||
(ns status-im.contexts.wallet.common.wizard.events |
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.
let's keep events in events.cljs files :)
hi @J-Son89 the e2e failures are not PR related. PR can be merged. Thanx! |
Yes, @J-Son89 - you can merge it, thank you |
dce8eda
to
7eb08ea
Compare
7eb08ea
to
9fe5e21
Compare
This pr is the last pr of a set of wallet prs to restructure the root folder directory.
It moves all account generation pieces into add-account folder to align with figma separation.
Notes:
I think this can probably skip manual QA as it just moving files around and the compiler should really catch any issues 👍