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

feat: new receive flow #26148

Merged
merged 48 commits into from
Aug 22, 2024
Merged

feat: new receive flow #26148

merged 48 commits into from
Aug 22, 2024

Conversation

jonybur
Copy link
Contributor

@jonybur jonybur commented Jul 26, 2024

Description

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2383

Manual testing steps

  1. Got to the home menu
  2. A "Portfolio" button should be on top of the main token display
  3. Click on the "Receive" button
  4. A QR code should pop up, showing the logo in the middle
  5. A new copy address button should be present
  6. The address of the account should be displayed (please check video underneath)

Screenshots/Recordings

demo.mp4

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@jonybur jonybur requested a review from a team as a code owner July 26, 2024 02:33
Copy link
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.

@jonybur jonybur marked this pull request as draft July 26, 2024 02:40
@jonybur jonybur marked this pull request as ready for review August 14, 2024 23:49
@metamaskbot
Copy link
Collaborator

Builds ready [57abcd1]
Page Load Metrics (84 ± 8 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint811751132411
domContentLoaded4111281209
load4711284178
domInteractive105730105
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: -2.34 KiB (-0.03%)
  • common: -8 Bytes (-0.00%)

vinnyhoward
vinnyhoward previously approved these changes Aug 21, 2024
}

&__message {
@include design-system.H7;
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize we need to add some stylelinting to deprecated these but the typography mixins have been deprecated in favor of the text component can we use it here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just removed &__message since it is unused

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Great use of component library components! Left some non-blocking comments.

Copy link
Member

@NidhiKJha NidhiKJha left a comment

Choose a reason for hiding this comment

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

LGTM! But it shouldn't conflict with the existing import account test?

@@ -162,40 +161,6 @@ describe('Import flow @no-mmi', function () {
);
});

it('Import wallet using Secret Recovery Phrase with pasting word by word', async function () {
Copy link
Member

Choose a reason for hiding this comment

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

Why did we remove this test

@jonybur jonybur requested a review from NidhiKJha August 21, 2024 22:11
@jonybur jonybur dismissed NidhiKJha’s stale review August 21, 2024 22:12

Resolved, please re review

Copy link

sonarcloud bot commented Aug 21, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [36fc160]
Page Load Metrics (78 ± 7 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint69142103209
domContentLoaded5412275157
load5612278157
domInteractive18482784
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: -2.34 KiB (-0.03%)
  • common: -8 Bytes (-0.00%)

@jonybur jonybur merged commit 82eb13e into develop Aug 22, 2024
78 checks passed
@jonybur jonybur deleted the jb-receive-flow branch August 22, 2024 11:46
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Aug 22, 2024
@gauthierpetetin gauthierpetetin added release-12.4.0 Issue or pull request that will be included in release 12.4.0 and removed release-12.5.0 Issue or pull request that will be included in release 12.5.0 labels Sep 11, 2024
@@ -38,7 +38,7 @@ describe('BTC Account - Overview', function (this: Suite) {
assert.equal(await buySellButton.isEnabled(), false);

const portfolioButton = await driver.waitForSelector(
'[data-testid="coin-overview-portfolio"]',
'[data-testid="coin-overview-receive"]',
Copy link
Contributor

Choose a reason for hiding this comment

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

this spec is called has portfolio button enabled for BTC accounts however, here we are checking if the receive button is enabled (not the portfolio).
The portfolio link doesn't appear anymore. Is this expected? If so, the title for the test should be changed, otherwise we should open a bug, indicating that the portfolio link doesn't appear anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, PR to fix this:
#28184

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.4.0 Issue or pull request that will be included in release 12.4.0 team-wallet-ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants