Skip to content
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

Migrate components to TS: Button #18890

Closed
georgewrmarshall opened this issue Apr 29, 2023 · 9 comments · Fixed by #20492
Closed

Migrate components to TS: Button #18890

georgewrmarshall opened this issue Apr 29, 2023 · 9 comments · Fixed by #20492
Assignees
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.0 team-design-system All issues relating to design system in Extension

Comments

@georgewrmarshall
Copy link
Contributor

georgewrmarshall commented Apr 29, 2023

Description

Migrate Button component to TypeScript

Dependencies

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 georgewrmarshall added the team-design-system All issues relating to design system in Extension label Apr 29, 2023
@sumitshinde-84
Copy link
Contributor

i would like to work on this issue @georgewrmarshall

@georgewrmarshall
Copy link
Contributor Author

Hi @sumitshinde-84, #18886 would be a dependency of this ticket I think this would be appropriate to take on first

@sumitshinde-84
Copy link
Contributor

sumitshinde-84 commented May 2, 2023

Hello @georgewrmarshall Additionally, please assign me the following related issues for a comprehensive approach: #18882, #18883, #18884, #18885, #18886, #18887, #18888, #18889, and #18890. Thank you for your consideration.

@georgewrmarshall
Copy link
Contributor Author

Removing good-first-issue label until we close the Box dependency #19239

@dhruvv173
Copy link
Contributor

hello @garrettbear if you have not started working on this can I work on it?

@georgewrmarshall
Copy link
Contributor Author

georgewrmarshall commented Aug 4, 2023

Hey @dhruvv173, I'm going to assign you as @garrettbear and I will be away next week but will be able to support the following week. It has a dependency of #18888 which I would suggest you work on first. You should be able to use @garrettbear's PR for ButtonPrimary as a reference #20390

@dhruvv173
Copy link
Contributor

Hey @dhruvv173, I'm going to assign you as @garrettbear and I will be away next week but will be able to support the following week. It has a dependency of #18888 which I would suggest you work on first. You should be able to use @garrettbear's PR for ButtonPrimary as a reference #20390

Sure, thank you for the update, I will work on that issue over the weekend.

@garrettbear garrettbear self-assigned this Aug 4, 2023
@dhruvv173
Copy link
Contributor

hey @georgewrmarshall can I work on this now?

@georgewrmarshall
Copy link
Contributor Author

georgewrmarshall commented Aug 15, 2023

Hey @dhruvv173, I believe @garrettbear is working on this issue but feel free to take a look at others. All the dependencies for #19126 have been resolved. It might be a good one to take on. Thanks

@metamaskbot metamaskbot added the release-11.1.0 Issue or pull request that will be included in release 11.1.0 label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-11.1.0 Issue or pull request that will be included in release 11.1.0 team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants