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

Deprecating FormField and fixing console error #19739

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Jun 23, 2023

Explanation

Currently there are multiple component for form input fields. This PR deprecates the old FormField in favour of the new FormTextField component by adding a deprecation message that points to good-first-issue. It also replaces some deprecated components and constants in favor of enums as well as fixes a console error

Screenshots/Screencaps

Before

before.mov

After

after.mov
Screenshot 2023-06-23 at 10 12 21 AM

Manual Testing Steps

  • Checkout this branch
  • Search FormField in the code base
  • See strikethrough in VS code and deprecation message on hover

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@georgewrmarshall georgewrmarshall self-assigned this Jun 23, 2023
@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Jun 23, 2023
@georgewrmarshall georgewrmarshall marked this pull request as ready for review June 23, 2023 21:02
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner June 23, 2023 21:02
@metamaskbot
Copy link
Collaborator

Builds ready [0923ce0]
Page Load Metrics (1577 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1004101416632
domContentLoaded1451179015779747
load1451179015779747
domInteractive1451179015779747
Bundle size diffs
  • background: 0 bytes
  • ui: -117 bytes
  • common: 0 bytes

@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Merging #19739 (0923ce0) into develop (fc2402d) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #19739      +/-   ##
===========================================
- Coverage    69.83%   69.83%   -0.00%     
===========================================
  Files          980      980              
  Lines        36886    36886              
  Branches      9890     9890              
===========================================
- Hits         25757    25756       -1     
- Misses       11129    11130       +1     
Impacted Files Coverage Δ
ui/components/ui/form-field/form-field.js 94.59% <ø> (ø)

... and 1 file with indirect coverage changes

@georgewrmarshall georgewrmarshall merged commit 48f61dc into develop Jun 26, 2023
11 checks passed
@georgewrmarshall georgewrmarshall deleted the fix/18891/deprecate-form-field branch June 26, 2023 16:29
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2023
@metamaskbot metamaskbot added the release-10.34.0 Issue or pull request that will be included in release 10.34.0 label Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-10.34.0 Issue or pull request that will be included in release 10.34.0 team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix FormField console error Deprecate old FormField in favour of appropriate FormTextField
4 participants