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

Migrate components to TS: TextFieldSearch

Open georgewrmarshall opened this issue 3 years ago • 5 comments

Description

Migrate TextFieldSearch component in ui/components/component-library to TypeScript

Dependencies

  • https://github.com/MetaMask/metamask-extension/issues/19239
  • https://github.com/metamask/metamask-extension/issues/19122
  • #19990
  • https://github.com/metamask/metamask-extension/issues/19127

Technical Details

  • Convert Objects in SNAKE_CASE to enums in PascalCase (name and keys)
  • Ensure enums use singular not plural e.g. Size not Sizes
  • Update file name from component-name.contants.js to component-name.types.ts and add types
  • Update file name from component-name.js to component-name.tsx and add types
  • Update file name from component-name.test.js to component-name.test.tsx
  • Update file name from component-name.stories.js to component-name.stories.tsx
  • Update all instances of component objects to enums
  • Update all documentation

Acceptance Criteria

  • Component has been converted to TypeScript
  • Stories, documentation and tests have been updated inside of the component-name folder
  • Before/After screen cast of component stories in storybook to show no visual regression after migration

Difficulty: Intermediate

Good first issue for: External contributors who are familiar with TypeScript and want to contribute to improving the stability of the extension

georgewrmarshall avatar May 14 '23 03:05 georgewrmarshall

hi @georgewrmarshall i want to work on it

nazrul7711 avatar May 14 '23 10:05 nazrul7711

Hey @nazrul7711, thanks for your interest this issue has a dependency on https://github.com/MetaMask/metamask-extension/issues/19122 to be completed first

georgewrmarshall avatar May 14 '23 21:05 georgewrmarshall

Most interesting 🥳 I would like to help. Please assign this issue to me, I will wait on #19122 first. 👍🏼

AliMora83 avatar May 26 '23 07:05 AliMora83

Removing good-first-issue label until we close the Box dependency https://github.com/MetaMask/metamask-extension/issues/19239

georgewrmarshall avatar Jun 05 '23 23:06 georgewrmarshall

Missing release label release-11.8.0 on issue. Adding release label release-11.8.0 on issue, as issue is linked to PR #22158 which has this release label.

metamaskbot avatar Jan 02 '24 13:01 metamaskbot