Skip to content

[Fix] 10365 My Accounts Removal#10680

Merged
danjm merged 17 commits intoMetaMask:developfrom
BboyAkers:aakers/10365_part_2
Apr 27, 2021
Merged

[Fix] 10365 My Accounts Removal#10680
danjm merged 17 commits intoMetaMask:developfrom
BboyAkers:aakers/10365_part_2

Conversation

@BboyAkers
Copy link
Copy Markdown
Contributor

@BboyAkers BboyAkers commented Mar 21, 2021

Fixes: #10365

Explanation: This PR removes
My Accounts string and flow,
CONTACT_MY_ACCOUNTS_ROUTE
CONTACT_MY_ACCOUNTS_VIEW_ROUTE
CONTACT_MY_ACCOUNTS_EDIT_ROUTE

Manual testing steps:

  • All "My Contact Account" routes should not be usable.

@BboyAkers BboyAkers requested a review from a team as a code owner March 21, 2021 02:06
@BboyAkers BboyAkers requested a review from darkwing March 21, 2021 02:06
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@BboyAkers BboyAkers changed the title [Fix] 10365 part 2 [Fix] 10365 Mar 22, 2021
@BboyAkers BboyAkers changed the title [Fix] 10365 [Fix] 10365 My Accounts Removal Mar 22, 2021
darkwing
darkwing previously approved these changes Mar 24, 2021
Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

This looks good per my understanding of the original issue description. Nice work @BboyAkers !

@darkwing darkwing requested a review from brad-decker March 24, 2021 14:51
@darkwing
Copy link
Copy Markdown
Contributor

Adding @brad-decker as a second reviewer, hopeful that he can confirm this matches his understanding of the issue, and provide more context if necessary.

@BboyAkers
Copy link
Copy Markdown
Contributor Author

Thanks for reviewing this ya'll! Just pushed updated changes! 🙂 @darkwing @Gudahtt

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Still more dead code to get rid of, and a few lint errors related to that dead code. Getting closer though!

@BboyAkers
Copy link
Copy Markdown
Contributor Author

Didn't see these changes, sorry! Working on them now 🙂

@BboyAkers
Copy link
Copy Markdown
Contributor Author

@Gudahtt let me know what you think! 🙂

@BboyAkers BboyAkers force-pushed the aakers/10365_part_2 branch from 976fe4d to 0fdb600 Compare April 7, 2021 19:14
Gudahtt
Gudahtt previously approved these changes Apr 7, 2021
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM! I don't see any more dead code, and I have confirmed that adding local accounts is still possible if you manually enter the address as a contact.

@darkwing
Copy link
Copy Markdown
Contributor

darkwing commented Apr 7, 2021

This is awesome -- great work @BboyAkers ! I did notice one side-effect that we didn't think of -- if there are no contacts, which is probably the majority of new-ish users, we just have an empty screen:

NoContacts

@rachelcope @jakehaugen -- have ideas for text you'd like to see here?

@darkwing
Copy link
Copy Markdown
Contributor

darkwing commented Apr 7, 2021

@BboyAkers One small update -- could you implement the "no contacts" language? This is really impressive!

@rachelcope
Copy link
Copy Markdown

Here's the design for the empty state.
Figma file

image

@BboyAkers
Copy link
Copy Markdown
Contributor Author

BboyAkers commented Apr 8, 2021

Thanks a ton @rachelcope I'll get crackin on this!

@darkwing
Copy link
Copy Markdown
Contributor

darkwing commented Apr 9, 2021

Awesome @BboyAkers, really solid start! A few things:

  1. There's a lint issue, should be easy to fix
  2. There's a typo in the title "Build you*r ..."
  3. We need to add some spacing between "Build your contact list" heading, the "Add friends" line, and the "Add contact" element
  4. We need to turn the "+Add contact" text into a <button> element, for the sake of accessibility
  5. In full screen mode, the content still looks too far to the left (not centered)
  6. It looks like the screenshot from design wanted to remove the big blue "+" button

Contacts

We're almost there!

@BboyAkers
Copy link
Copy Markdown
Contributor Author

BboyAkers commented Apr 10, 2021

Just pushed the changes @darkwing 🙂. Didn't fully center contact list in 'desktop' mode due to the contact container and the contact content container sharing the page. In my other PR. I can make the change to fully center it in desktop mode once this is merged, unless you'd like for me to do it in this PR. Thoughts?

Side note: I added the text but it's not in the localization objects. Should I localize it for English and leave it empty for all the other languages for the time being or just leave it as is here?

Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Hello @BboyAkers ! This PR keeps getting better! :). So the lint issue is a l10n issue, which should be easy to fix!

Per your questions:

  • Yeah, we'll need to localize the new text -- simply add it to the English file, then we'll get the remaining localizations
  • We should probably get the centering of the "No Contacts" block in this PR for the sake of quality.

@BboyAkers BboyAkers force-pushed the aakers/10365_part_2 branch from 1a30872 to 24b5c96 Compare April 16, 2021 04:36
@BboyAkers BboyAkers requested a review from darkwing April 16, 2021 04:37
@darkwing
Copy link
Copy Markdown
Contributor

This is 99% of the way there @BboyAkers! Two things:

  1. If you run yarn verify-locales:fix, that should fix all the lint issues.
  2. The E2E tests are having a problem because we deleted the big "+" button -- if we change the CSS selector to find the Add button in the test (the new add button you implemented), they should work :)
  3. One thing I tried doing was deleting the one contact I added; when I do so, the form stays up and populated, instead of redirecting back to the main contracts screen.

After we fix these I think this is good to go!

Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Very last thing we need here is:

https://gist.github.com/darkwing/c14be28bc7c3451ee60be2cf6bd9e22c

which will redirect to the list screen when the a contact is deleted.

@BboyAkers BboyAkers force-pushed the aakers/10365_part_2 branch from 72af891 to 3013976 Compare April 27, 2021 02:09
@BboyAkers
Copy link
Copy Markdown
Contributor Author

Updated! 🙂

@BboyAkers BboyAkers requested a review from darkwing April 27, 2021 02:18
Copy link
Copy Markdown
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Wow, this is really excellent @BboyAkers ! Well done!

@danjm danjm merged commit 539a2b6 into MetaMask:develop Apr 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2021
@BboyAkers BboyAkers deleted the aakers/10365_part_2 branch April 27, 2021 23:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants