MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.9k stars 4.85k forks source link

Replace deprecated ErrorMessage component with BannerAlert from the component-library #20394

Open georgewrmarshall opened 1 year ago

georgewrmarshall commented 1 year ago

Description

Currently, the extension is using an outdated ErrorMessage component, which needs to be replaced with the new BannerAlert component.

This is a massive undertaking by itself and creating a single PR would be too large. Smaller PRs can be submitted against this issue to ensure easier review and gradual improvements.

Technical Details

Acceptance Criteria

If the acceptance criteria is not met, PRs may be closed.

Difficulty: Intermediate

Good first issue for: External contributors who are familiar with running the extension locally, have knowledge of React, component props, Jest tests, linting, and Storybook, and want to contribute to improving the cohesiveness of UI in the extension

Outcastoct commented 1 year ago

I was working on filling out signature page for this, ugh lol

lazyfuhrer commented 1 year ago

Assign me @georgewrmarshall

Sah314 commented 1 year ago

If no one is working on this issue, I can start working on it if assigned.

Outcastoct commented 1 year ago

fine with me. go!

lebe24 commented 1 year ago

Pls is the issue closed or assigned

georgewrmarshall commented 1 year ago

Hi all, I appreciate your interest in contributing to MetaMask! This issue represents work that should be broken up into multiple PRs. Therefore, it will not be assigned to a single contributor but rather represent the work of many. Feel free to submit a PR to replace an instance of ErrorMessage with BannerAlert you can find all the instances by searching ErrorMessage in the code base

Screenshot 2023-08-14 at 3 51 36 PM

praveesh91 commented 2 months ago

Hi @georgewrmarshall Let me know if I can be a part of this

georgewrmarshall commented 2 months ago

Hey @praveesh91, thanks for you interest in contributing to MetaMask. It looks like there are 2 instances of the <ErrorMessage /> component left that need to be replaced. Feel free to create a PR for each instance replacement. Remember to meet all acceptance criteria to prevent the PR from being closed.

Screenshot 2024-07-15 at 9 03 42 AM

https://github.com/MetaMask/metamask-extension/blob/7b3450a294a2fe5751726a9c33d6fa0b564f03dd/ui/pages/confirmations/components/confirm-page-container/confirm-page-container.component.js#L320

https://github.com/MetaMask/metamask-extension/blob/7b3450a294a2fe5751726a9c33d6fa0b564f03dd/ui/pages/confirmations/components/edit-gas-fee-popover/edit-gas-fee-popover.js#L58

praveesh91 commented 2 months ago

Sure @georgewrmarshall , you can assign this issue to me.

georgewrmarshall commented 2 months ago

We leave these types of issues unassigned in case others would like to contribute, as it's intended to be multiple PRs.