-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2022-05-20] [$500] Refactor StatePicker to be compatible with Form #7537
Comments
Triggered auto assignment to @MitchExpensify ( |
This comment was marked as outdated.
This comment was marked as outdated.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @thienlnam ( |
Proposal |
@sig5 Do you have questions before we move forward? I would suggest to give it another look and ask questions if any. Though, I have one 😄
@luacmartins Does it need to be implemented as well or just define a prop for now? |
Hi @parasharrajat , Please correct me if I am wrong or misunderstanding the problem, But I can observe, Lines 144 to 167 in 4c48227
So adding a propType in the component along with a defaultProp should suffice to trigger it save in Onyx, which can be fetched next time it is mounted.
|
Yeah, that's correct. Thanks for pointing that. I think we can proceed with your proposal @sig5 if you don't have any questions. cc: @thienlnam 🎀 👀 🎀 C+ reviewed |
I think I do not have any questions atm :D |
@sig5 comment is correct. We have already implemented that and should only need to pass |
Sending it! @MitchExpensify could you please hire @sig5 ? |
For sure! Can you please make a proposal on the Upwork job @sig5 ? |
Done! |
Thanks, hired @sig5 ! |
Hey guys, I am coming across this error whilst adding the
This seems like a relevant issue: storybookjs/storybook#10131 |
Asked in Slack. |
@sig5 @parasharrajat Before starting on this one, we need to first merge a PR for Refactor Picker right? |
Yes Statepicker uses Picker Component under the hood, so having those changes done first would be ideal. |
Good eye @rushatgabhane. We are already waiting for some issue @sig5 is having. |
📣 @parasharrajat You have been assigned to this job by @luacmartins! |
📣 @jayeshmangwani You have been assigned to this job by @luacmartins! |
Ok Great. @jayeshmangwani this is urgent so I am hoping that PR will be ready by Monday. Thanks for taking it up. 🎀 👀 🎀 C+ reviewed |
@jayeshmangwani Can you apply to this Upwork Job please? I had to abandon the original job so we'll use this new posting to issue payment (invited you to the new job @parasharrajat) |
Sure I am applying |
Sure 👍 |
PR raised |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.57-17 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-05-20. 🎊 |
https://www.upwork.com/jobs/~0116994c22a1b60fb6 mind applying here @parasharrajat so I can issue C+ payment? |
Paid @jayeshmangwani , thank you very much! |
@MitchExpensify Thankyou |
@MitchExpensify Done. |
Done! Thanks all |
With the implementation of our new Form component we need to refactor StatePicker to be Form compatible. Here are the changes that need to be made:
isFormInput
prop.isFormInput
istrue
, require ainputID
prop. Use getInputIDPropTypes to enforce this propType rule.shouldSaveDraft
prop. Defaults tofalse
.value
prop optional.onBlur
method, callprops.onBlur()
.onChange
method toonInputChange
.onInputChange
method (or equivalent e.g. onTextChange, etc), callprops.onInputChange()
.hasError
prop.errorText
prop. Defaults to an empty string.errorText
is truthy.props.ref
is attached to the appropriate DOM node. This could involve forwarding the ref to a child component. This is important so we can callref.focus()
.npm run storybook
and testing the component in the example form.There's an example of a refactor to
TextInput
in this PR.The text was updated successfully, but these errors were encountered: