Metamask-extension: Feature - Add remove account button

Created on 22 Jun 2017  ·  19Comments  ·  Source: MetaMask/metamask-extension

@flyswatter
I pretty much figured out how to add such button with all necessary hooks.
I would add a button in Account-list-item.js view, then add action on the UI that would dispatch to background by passing identity.address and then need to figure out how to properly destoy the item.

My question is: which branch should I use?
Is there something similar going on in development?
How do you enable Redux/React chrome debugging while in development for better Inspection for elements and watching for Redux store

L03-UI N00-needsDesign P3-soon T01-enhancement

Most helpful comment

Raising priority on this because a lot of developers want it.

All 19 comments

It's fairly safe to use the master branch to make your changes. There currently isn't a long-running dev branch, so you should be able to work off of master and then make a PR from there! Fair warning though--right now we have set up our CI such that it does not run on outside PRs, so we'd have to close and resubmit under one of our names to get it merged in.

For Redux/React chrome debugging, if you run the npm run dev command, you should be able to see whenever an action is executed on the UI side and what effect it has on the state tree.

thanks! @Zanibas

👍 +1 for this request

Just a friendly +1 on this feature. Is anyone currently working on this one?

cc @rstormsf @Zanibas @kumavis

Simple, but very needed feature to start love using Metamask. Really. I do have 10+ accounts that I don't need anymore

Seed phrases always generate the same accounts in the same order, and so there is not really a concept of deleting accounts. We could hide them, though.

Can someone who wants this feature describe what you think would ideally happen when restoring your vault from your seed phrase after deleting accounts? We would not have the data for which accounts you had "deleted", so you would still re-generate the accounts in the same order.

I guess hide feature should be there. When restoring all accounts should be
there

On Thu, Nov 30, 2017, 17:24 Dan Finlay notifications@github.com wrote:

Seed phrases always generate the same accounts in the same order, and so
there is not really a concept of deleting accounts. We could hide them,
though.

Can someone who wants this feature describe what you think would ideally
happen when restoring your vault from your seed phrase after deleting
accounts? We would not have the data for which accounts you had "deleted",
so you would still re-generate the accounts in the same order.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MetaMask/metamask-extension/issues/1658#issuecomment-348374179,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI7Vu6S6c1TuwkHB-2f4ovBN_sNJ-0qJks5s71VHgaJpZM4OB3cp
.

@danfinlay in my use case I want to delete "loose" addresses, where I imported my own private key. So for generating accounts again from passphrase that's all smooth, it's more about removing unused "loose" addresess for me.

@nieldlr That's an easy one to satisfy, I'll open that as its own issue because it's so trivial. #2638

If we add "hide account", we probably need a way to reveal hidden accounts, so that's another reason seed phrase hiding is more complicated than it sounds.

I agree it's a valuable tool, because long term, people will probably go through many accounts, but we still need to refine how we identify "spent" accounts, and only re-generate accounts that the user still cares about.

I have an account that I dont want to have in metamask. I want to remove it so its not there and accessible. Reasonable ? Ideally I would like a session based account option that allows me to import an account and once the session is closed the account is removed. But a remove button will suffice until then.

@rstormsf Hello, are you working on this feature? Would really love to see it, I'm tired of scrolling down loose accounts which I don't need any more

Raising priority on this because a lot of developers want it.

Question about Imported Ether wallet accounts... Those are not restored when you restore from seed... good! However, I attempted to restore my metamask wallet from seed, and only the first account is visible. My wallet had 2 "native" accounts. What's interesting is that I created another account, after restoring, and it labeled it "account 3", suggesting it knows I have a second account but is not pulling it. Good thing I had no funds on it!!!! I don't know if that's user error, but either way, it could be a major issue for someone, very quickly...

@freedomfryz For usage questions, please email [email protected]

The answer to your question: clicking "add account" re-generates accounts in the same order, but we currently still keep previous account nicknames, which can be confusing. We are fixing this soon in #3566.

I'm closing this issue because our new UI (Beta) has this feature already implemented, we don't plan to add it to the "old" UI.

Where is it implemented in the beta? I just switched over to it and don't see it obviously in the mini popup GUI or in the web GUI @danfinlay

I specifically want to remove imported accounts. Why is the solution explained earlier to risk restoring from seed just so the HD addresses are generated again, think about users with poor OPSEC....

Anyway, I imagine being able to just hide addresses that are part of the sequence, and delete addresses that were imported.

Oh I'm sorry, we added remove token to the new UI. We have not added remove account to the new UI.

+1

@brunobar79's PR for Trezor support (#4625) also includes the ability to remove loose/imported accounts (as described in #2638) in the new UI. This will be released early next week.

Leaving this open to discuss more sophisticated management of HD accounts, but lowering priority. As Dan mentions above, there are some UX issues to sort out and thoughts are welcome.

Removing loose accounts was added in https://github.com/MetaMask/metamask-extension/pull/4625

More specific feature story for removing / archiving HD accounts is filed here #5078

Was this page helpful?
0 / 5 - 0 ratings

Related issues

estebanmino picture estebanmino  ·  3Comments

kumavis picture kumavis  ·  3Comments

BMillman19 picture BMillman19  ·  3Comments

dpazdan picture dpazdan  ·  3Comments

beether picture beether  ·  4Comments