-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page #18207
Replace ActionableMessage components with BannerAlerts in SIWE Sign-in with Ethereum page #18207
Conversation
- apply to SIWE actionable-message - .mm-icon is a <span>
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. |
This reverts commit c80a4a2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could deprecate ActionableMessage
for BannerAlert
would it be possible to add a deprecation message above the component as well as this fix?
in ui/components/ui/actionable-message/actionable-message.js
/**
* @deprecated `<ActionableMessage />` has been deprecated in favour of the `<BannerAlert />` component in ./ui/components/component-library/banner-alert/banner-alert.js
*
* See storybook documentation for Text here https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-banneralert--default-story#banneralert
*
* Help to replace `ActionableMessage` with `BannerAlert` by submitting a PR
*/
Builds ready [e65a1a1]
Page Load Metrics (1670 ± 65 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
…update-siwe-actionable-msg-and-support-mm-icon-in-icon-comp
…-icon-in-icon-comp
Thanks @georgewrmarshall! BannerAlerts are looking much better in the UI and code 👍 I added the deprecation warning to the ActionableMessage component |
Builds ready [893ee6f]
Page Load Metrics (1596 ± 35 ms)
Bundle size diffs
|
Codecov Report
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Builds ready [c627db5]
Page Load Metrics (1791 ± 78 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! One small suggestion
ui/components/app/signature-request-siwe/signature-request-siwe.js
Outdated
Show resolved
Hide resolved
<Text variant={TextVariant.bodyMdBold}> | ||
{t('SIWEDomainInvalidTitle')} | ||
</Text>{' '} | ||
<Text variant={TextVariant.bodyMd}>{t('SIWEDomainInvalidText')}</Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to DS team to allow for ` tags cc @garrettbear so we could do something like
<Text>
<strong>{t('SIWEDomainInvalidTitle')}</strong> {t('SIWEDomainInvalidText')}
</Text>
ui/components/app/signature-request-siwe/signature-request-siwe.js
Outdated
Show resolved
Hide resolved
…e.js Co-authored-by: George Marshall <[email protected]>
…e.js Co-authored-by: George Marshall <[email protected]>
…-icon-in-icon-comp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just need to fix a linting issue that was probably introduced by my suggestions apologies!
Thanks @georgewrmarshall! fixed de6a131 |
…-icon-in-icon-comp
Builds ready [d7ab254]
Page Load Metrics (1602 ± 57 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Explanation
Fixes #18206
@deprecate
jsdoc comment to ActionableMessageScreenshots/Screencaps
Before (v10.26.1)
(actually, the icon locations were temp fixed in this hotfix #18200 just before this PR.)
After
Manual Testing Steps
Login to the extension
Navigate to the test dapp
Click Sign In With Ethereum (Bad Account)
Scroll to the bottom and observe the warning
Check other ActionableMessage components
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.