spacemeshos / smapp-lite

The light wallet application for Spacemesh network
2 stars 1 forks source link

[Create New Wallet] / [Open Existing Wallet] accessible even if another Wallet already connected #12

Closed monikasmolarek closed 2 months ago

monikasmolarek commented 4 months ago

Create New Wallet and Open Existing Wallet (Restore from Mnemonics and Import from File)

should be accessible from the login page and the wallet settings.

When the users want to create or open another wallet, they will look for this option in the settings or will try to log out from the current Wallet. As of now, only wipe out helps to get the chance to open another wallet.

brusherru commented 3 months ago

Do you think the wallet should support more than one wallet at once?

I follow the standard practices of wallets, which usually does not support more than one wallet. And usually they even does not provide ability to export wallet file leaving the only possibility to back up mnemonics and restore from it :) Examples: MetaMask, TronLink, Keplr...

If we need it — I can add it later.

monikasmolarek commented 3 months ago

It is actually important in case we lose the password, we are stuck on this screen with no option to import another file or use mnemonics to recover the wallet. And to be honest, I don't think the users will be able to clear the cache/unlink the wallet to start over. Screenshot 2024-05-23 at 23 10 13

monikasmolarek commented 3 months ago

I don’t necessarily think this app should handle more than 1 wallet. It's more about the convenience of navigating through the options, screens and features. We could even have the disclaimer saying that "if you connect another wallet, the previous will be kicked out, you can;t have more than one wallet imported at once". But the user should always have a (any) way out of any screen. Currently, there are some traps with no exit 🤐