metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

Replace deprecated Popover component with Modal from the component-library

Open georgewrmarshall opened this issue 3 years ago • 11 comments

Description

Currently, the extension is using an outdated Popover component, which needs to be replaced with the new Modal 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

  • Replace instances of Popover component (ui/components/ui/popover/popover.component.js) with Modal component (ui/components/component-library/modal/modal.tsx)
  • Component architecture and APIs are different so ensure all components and props have been migrated appropriately

Acceptance Criteria

  • Instances of Popover component are completely replaced with the new Modal component
  • The component APIs are updated to reflect the changes in the new Popover component and there is no functional changes or visual regression
  • Each Pull Request (PR) should include no more than 3 files
  • The code changes should pass Jest tests, linting, and Storybook without any errors.
  • The PR must include before and after screenshots of the UI to ensure there are no visual regressions.

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

georgewrmarshall avatar Jun 09 '23 20:06 georgewrmarshall

Hey! Can I work on it?

elrakabawi avatar Jun 16 '23 12:06 elrakabawi

Hey @ElRakabawi, sure you can submit a PR against this issue ensuring that all the acceptance criteria is met! Thanks

georgewrmarshall avatar Jun 19 '23 17:06 georgewrmarshall

hey can contribute on it ?

panditdhamdhere avatar Jul 05 '23 12:07 panditdhamdhere

Hey @panditdhamdhere, you sure can! Just submit a PR against this issue ensuring that all the acceptance criteria are met! Thanks

georgewrmarshall avatar Jul 12 '23 16:07 georgewrmarshall

Hey! Can I help ??

shivam-puri avatar Jul 14 '23 11:07 shivam-puri

Hey @shivm29, Yes! Just submit a PR against this issue ensuring that all the acceptance criteria are met! Thanks

georgewrmarshall avatar Jul 17 '23 19:07 georgewrmarshall

Hey can i work on it?

Macky151203 avatar Oct 11 '24 05:10 Macky151203

Hi @georgewrmarshall,

I've submitted a PR for the migration in permission-cell-options.js: #39451 I've accepted the CLA, but the check needs to be manually rerun.

Would appreciate your review when you get a chance. Thanks! :)

fapiper avatar Jan 22 '26 12:01 fapiper

I'd like to take this one — I'll follow up with a PR. (claiming via @LeonxLJX)

LeonxLJX avatar Sep 01 '26 06:09 LeonxLJX

Hi! I'd like to replace deprecated Popover with Modal. Plan: swap, test. May I be assigned?

LeonxLJX avatar Sep 01 '26 10:09 LeonxLJX

Closing as no longer needed, thanks for all the contributions!

georgewrmarshall avatar Sep 14 '26 16:09 georgewrmarshall