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

MBS-13838: Convert class forms to component syntax #3420

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

reosarevok
Copy link
Member

Implement MBS-13838

Description

The first forms we converted to React (ApplicationForm, PreferencesForm and EditProfileForm) use class syntax, which we are trying to get rid of for consistency. This converts them to use component syntax like all the other forms.

Testing

Manually.

@reosarevok reosarevok added the Refactoring Refactoring-only PRs (eslint fixes etc) label Nov 28, 2024
This also removes the <p> surrounding form rows since <div>s
shouldn't be inside <p>s and they're not really needed.
The only case where it looked worse after the change was for the period
change select, where I inserted a line break above to keep the separation.
@mwiencek
Copy link
Member

This worked well, but there were a lot of fields that didn't need to be controlled, which added a lot of unnecessary code; so I changed those to uncontrolled. I also updated the area field to use Autocomplete2. Both of these changes could use more testing, so I'm leaving the PR in draft form.

@reosarevok
Copy link
Member Author

Tested locally, seemed to work fine on all three forms. Not quite sure what is the problem that flow had in the circleci tests, flow passes locally...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Refactoring-only PRs (eslint fixes etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants