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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite PollEditor to React-final-form #3591

Merged
merged 2 commits into from Mar 7, 2023
Merged

Conversation

ollfkaih
Copy link
Contributor

@ollfkaih ollfkaih commented Feb 18, 2023

Description

Literally the title

Result

No visual changes 馃

Testing

  • I have thoroughly tested my changes.

Resolves ABA-56

@github-actions github-actions bot added the review-needed Pull requests that need review label Feb 18, 2023
@ollfkaih ollfkaih added the future-was-2-years-ago Pull requests that introduce technologies which should have been "long" ago label Feb 18, 2023
@linear
Copy link

linear bot commented Feb 18, 2023

@ivarnakken ivarnakken added the chore Pull requests that does something "boring", yet important, e.g. cleaning up code label Feb 18, 2023
app/routes/polls/components/PollEditor.tsx Outdated Show resolved Hide resolved
app/routes/polls/components/PollEditor.tsx Outdated Show resolved Hide resolved
@ivarnakken ivarnakken added approved Pull requests that have been approved and removed review-needed Pull requests that need review labels Feb 19, 2023
Copy link
Member

@LudvigHz LudvigHz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 23 to 26
import type {
fieldArrayMetaPropTypes,
fieldArrayFieldsPropTypes,
} from 'redux-form';
} from 'react-final-form';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-final-form does not export these types. However, I don't seem to find them in redux-form neither ... Has this ever worked?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not 馃槙

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably existed in the flow type definitions

@github-actions github-actions bot added the review-needed Pull requests that need review label Feb 19, 2023
Add frontend validation for required fields in the poll editor
@erlingfn erlingfn merged commit 3327b88 into master Mar 7, 2023
@erlingfn erlingfn deleted the poll-editor-final-form branch March 7, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved chore Pull requests that does something "boring", yet important, e.g. cleaning up code future-was-2-years-ago Pull requests that introduce technologies which should have been "long" ago review-needed Pull requests that need review
Projects
None yet
5 participants