MetaMask / metamask-extension

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

Replace deprecated Box component with new Box component #19526

Open georgewrmarshall opened 1 year ago

georgewrmarshall commented 1 year ago

Description

Currently, the extension is using an outdated Box component, which needs to be replaced with the new Box component. The new Box component is available from ui/components/component-library.

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. PRs should contain no more than 3 files

Technical Details

Acceptance Criteria

If the acceptance criteria are 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

SamantaTarun commented 1 year ago

I'd like to work on this issue. Please assign it to me

georgewrmarshall commented 1 year ago

Hey @tarunsamanta2k20, thanks for your interest! Feel free to create a PR that meets all of the acceptance criteria against this issue and tag me as a reviewer. This issue encompasses a task that is quite large and I think would be best if we left it unassigned to encourage others to contribute. It would be great to start on the ui/components/component-library folder first

dhruvv173 commented 1 year ago

hey @georgewrmarshall, just had a question related to this issue while adding props, is this correct? image

Jah2233 commented 1 year ago

І ти теж вибач але я нічого не маю)) я на війні і щей ви типу зробили мене відомим) добре!! Але я не знав що так !! Лише казали можна!! А як виводити я читав питав но толком ніхто не міг пояснити!! Бувай друже!! З Богом

сб, 10 черв. 2023 р., 19:04 користувач Dhruv @.***> пише:

hey @georgewrmarshall https://github.com/georgewrmarshall, just had a question related to this issue while adding props, is this correct? [image: image] https://user-images.githubusercontent.com/79097544/244880608-18e2ebb9-c2a6-4da8-9ed9-b5cf7196c47c.png

— Reply to this email directly, view it on GitHub https://github.com/MetaMask/metamask-extension/issues/19526#issuecomment-1585715340, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5VAND7NN3L44NOMX5BY7TDXKSLHLANCNFSM6AAAAAAY7WKH3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

georgewrmarshall commented 1 year ago

Hey @dhruvv173, not quite there is some rearchitecting needed for all of our TS components for the polymorphic as type to work properly. I have a PR open for the Text component you can use https://github.com/MetaMask/metamask-extension/pull/19572

legobeat commented 1 year ago

If anyone is picking components from the bucket, ui/components/component-library/badge-wrapper/badge-wrapper.tsx seems to exhibit type errors when upgrading TypeScript so it might warrant some looking at.