Skip to content

Header component for transaction confirmation screens#15614

Merged
brad-decker merged 5 commits intodevelopfrom
header-component-for-transaction-confirmation-screens
Aug 23, 2022
Merged

Header component for transaction confirmation screens#15614
brad-decker merged 5 commits intodevelopfrom
header-component-for-transaction-confirmation-screens

Conversation

@filipsekulic
Copy link
Copy Markdown

@filipsekulic filipsekulic commented Aug 17, 2022

Explanation

Created a header component for transaction confirmation screens (network + account + balance). The component will be implemented and used in the future. However, it can be seen now within the storybook. This component has following properties:

  • networkName (type: string)
  • accountName (type: string)
  • accountBalance (type: number)
  • tokenName (type: string)
  • accountAddress (type: string)

More Information

Screenshots/Screencaps

Screenshot 2022-08-17 at 17 35 31

Screenshot 2022-08-17 at 17 35 55

Manual Testing Steps

The component can be seen and tested from the storybook (yarn storybook). Then go to the COMPONENTS tab and open it from the APP tab - NetworkAccountBalanceHeader.

@filipsekulic filipsekulic self-assigned this Aug 17, 2022
@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.

@filipsekulic filipsekulic force-pushed the header-component-for-transaction-confirmation-screens branch from 31ecc15 to 490485b Compare August 17, 2022 15:39
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [490485b]
Page Load Metrics (1749 ± 31 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint9112110694
domContentLoaded1637186717386431
load1637186717496431
domInteractive1637186717386431

highlights:

storybook

@mirjanaKukic
Copy link
Copy Markdown
Contributor

Verified by QA

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3f9e72a]
Page Load Metrics (1854 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint902144213443213
domContentLoaded16542190184114771
load16542190185414670
domInteractive16542190184114771

highlights:

storybook

@filipsekulic filipsekulic marked this pull request as ready for review August 18, 2022 11:31
@filipsekulic filipsekulic requested a review from a team as a code owner August 18, 2022 11:31
Copy link
Copy Markdown
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! Just a minor change suggestion

import NetworkAccountBalanceHeader from './network-account-balance-header';

export default {
title: 'Components/APP/NetworkAccountBalanceHeader',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
title: 'Components/APP/NetworkAccountBalanceHeader',
title: 'Components/App/NetworkAccountBalanceHeader',

Copy link
Copy Markdown
Author

@filipsekulic filipsekulic Aug 19, 2022

Choose a reason for hiding this comment

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

Fixed here: 0ee04f3

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [0ee04f3]
Page Load Metrics (1864 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint871631152110
domContentLoaded16582047182811053
load16682047186410852
domInteractive16582047182811053

highlights:

storybook

@filipsekulic filipsekulic requested a review from NidhiKJha August 23, 2022 07:52
@brad-decker brad-decker dismissed NidhiKJha’s stale review August 23, 2022 14:09

Requested changes were applied

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [7c769d1]
Page Load Metrics (1760 ± 46 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint91179115188
domContentLoaded1615191217459546
load1615191217609646
domInteractive1615191217459546

highlights:

storybook

@brad-decker brad-decker merged commit 6185cc6 into develop Aug 23, 2022
@brad-decker brad-decker deleted the header-component-for-transaction-confirmation-screens branch August 23, 2022 15:52
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2022
@SaraCheikh
Copy link
Copy Markdown

Hello, some details to adapt this to our existing components and tokens:

  • The badge seems to have a grey border that the component Avatar with Badge in the Figma file doesn't have.
  • The font of the title (network and balance) seems to be 12px in medium which doesn't exist in our text tokens. for 12px we have the token S-Body-SM in regular. For this type of title I would advice to use at least the baseline token (14px) since 12px is quite small.

Screenshot 2022-09-09 at 14 15 07

@filipsekulic
Copy link
Copy Markdown
Author

Hello, some details to adapt this to our existing components and tokens:

  • The badge seems to have a grey border that the component Avatar with Badge in the Figma file doesn't have.
  • The font of the title (network and balance) seems to be 12px in medium which doesn't exist in our text tokens. for 12px we have the token S-Body-SM in regular. For this type of title I would advice to use at least the baseline token (14px) since 12px is quite small.
Screenshot 2022-09-09 at 14 15 07

Hey @SaraCheikh!
Good catch! Thank you for pointing this out.
I made these changes in this PR: #15727

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.

Create a new network + account + balance header component for transaction confirmation screens

7 participants