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

[ABW-2206] Merge AccountList into Home, clean up Export/Import mnemonic prompts and display #878

Merged
merged 79 commits into from
Nov 13, 2023

Conversation

CyonAlexRDX
Copy link
Contributor

@CyonAlexRDX CyonAlexRDX commented Oct 31, 2023

ABW-2206

Description

The intended behaviour was not to import/export mnemonics from AccountDetails, but to navigate to Seed Phrases screen in Settings.

Changes

  • Clicking "Import" button in Seed Phrases starts import Mnemonics (plural) Flow as intended
  • Added a "Imported Seed Phrase" HUD (overlayWindowClient) when we import mnemonics
  • Merge AccountList feature into Home (calling the row reducers: Home.AccountRow)
  • Introduce a protocol impl by AccountDetails.State and Home.AccountRow for shared stated using AccountWithInfo struct, sharing logic like exportMnemonicNeeded and importMnemonicNeeded etc
  • EXTRA: Bring back changeToMainnetIfNeeded functionality part of import profile, which was accidentally removed in previous [ABW-2427] ProfileStore sync init #860 PR

Demo

Import Mnemonic

RPReplay_Final1699370103.MP4

Export Mnemonc

RPReplay_Final1699370142.MP4

Assert we show export mnemonic when XRD -> >0

RPReplay_Final1699370194.MP4

Seed Phrases screen import works as expected

RPReplay_Final1699443241.MP4

Seed Phrases screen export works as expected

RPReplay_Final1699443352.MP4

Import mnemonic by doing Legacy wallet import

trim.978CA600-D58C-4214-81C1-1E4EC855452B.MOV

Export prompt after faucet usage on Account Details

trim.8EE6899B-2F8A-493F-A1F6-5F9DF9DF7C6D.MOV

…ENTED toolbar from being shown in ImportMnemonic
…ose_focus # Conflicts: RadixWallet.xcodeproj/project.pbxproj
…_not_keepIcloud__THEN__profile_gets_removed_from_saved_headerlist
@CyonAlexRDX CyonAlexRDX changed the base branch from main to no_error_import_legacy October 31, 2023 13:50
@@ -438,6 +439,8 @@ public struct ImportOlympiaWalletCoordinator: Sendable, FeatureReducer {
saveIntoProfile: true
))

overlayWindowClient.scheduleHUD(.seedPhraseImported)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shown when a seed phrase has successfully been saved into keychain

@CyonAlexRDX CyonAlexRDX changed the title [ABW-2206] Import/Export mnemonics from Settings, not AccountDetails [ABW-2206] Merge AccountList into Home, clean up Export/Import mnemonic prompts and display Nov 8, 2023
Copy link
Contributor

@GhenadieVP GhenadieVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CyonAlexRDX CyonAlexRDX merged commit 45d09fa into main Nov 13, 2023
6 checks passed
@CyonAlexRDX CyonAlexRDX deleted the ABW-2206_import_mnemonic_from_settings branch November 13, 2023 13:50
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants