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

[HOLD for payment 2022-05-24] [$1000] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form #7535

Closed
luacmartins opened this issue Feb 2, 2022 · 93 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Task

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Feb 2, 2022

With the implementation of our new Form component we need to refactor Picker to be Form compatible. Here are the changes that need to be made:

  1. An optional isFormInput prop.
  2. If isFormInput is true, require a inputID prop. Use getInputIDPropTypes to enforce this propType rule.
  3. Add an optional shouldSaveDraft prop. Defaults to false.
  4. Make the value prop optional.
  5. In the input’s onBlur method, call props.onBlur().
  6. In the input’s onChange method (or equivalent e.g. onTextChange, etc), call props.onChange().
  7. Remove the hasError prop.
  8. Add an optional errorText prop. Defaults to an empty string.
  9. Update the error message to display if errorText is truthy.
  10. Update the inline error display style so it is left aligned with the label and input value. See example image for TextInput:
    Screen Shot 2022-02-02 at 10 37 38 AM
  11. Make sure that 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 call ref.focus().
  12. Add the input to the test Form stories and make sure that it works. You can check this by running npm run storybook and testing the component in the example form.
  13. Remove any unused code.

There's an example of a refactor to TextInput in this PR.

@luacmartins luacmartins added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Feb 2, 2022
@MelvinBot
Copy link

Triggered auto assignment to @sonialiap (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Feb 2, 2022
@luacmartins luacmartins added Engineering External Added to denote the issue can be worked on by a contributor Task labels Feb 2, 2022
@MelvinBot
Copy link

Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@laurenreidexpensify
Copy link
Contributor

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 3, 2022
@MelvinBot
Copy link

Triggered auto assignment to @stitesExpensify (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@LucioChavezFuentes
Copy link
Contributor

This issue looks self explanatory. May I take it as my task?

@rushatgabhane
Copy link
Member

Sure, that'd be great. Looks like you're a new contributor, as a reminder make sure you go through CONTRIBUTING.md.

You could also #expensify-open-source slack channel if you like.

🎀👀🎀 C+ reviewed
@LucioChavezFuentes wants to volunteer for this task.

cc: @stitesExpensify

@LucioChavezFuentes
Copy link
Contributor

Thank you for the opportunity! In a few moments I will send my request to be invited to slack channel. I plan to post an update on issue progress on Monday 7th Frebuary 2022, is that ok?

@rushatgabhane
Copy link
Member

rushatgabhane commented Feb 4, 2022

@LucioChavezFuentes
If @ stitesExpensify, gives you a go ahead for the PR. You can proceed with one

@LucioChavezFuentes
Copy link
Contributor

My bad, I will proceed if approval.

@stitesExpensify
Copy link
Contributor

Go for it @LucioChavezFuentes! Please apply for the job on Upwork and then @laurenreidexpensify will accept you

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 7, 2022
@MelvinBot
Copy link

📣 @LucioChavezFuentes You have been assigned to this job by @laurenreidexpensify!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@LucioChavezFuentes
Copy link
Contributor

Thank you! I submitted my proposal on Upwork. I plan to finish the issue on Wednesday, 9th February.

@melvin-bot
Copy link

melvin-bot bot commented Apr 26, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 26, 2022

Current assignee @stitesExpensify is eligible for the Exported assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title [HOLD for payment after regression testing] Refactor Picker to be compatible with Form [$250] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form Apr 26, 2022
@luacmartins
Copy link
Contributor Author

@Santhosh-Sellavel assigning you as C+ for this issue, since @rushatgabhane is OOO. I also assigned you to the corresponding PR.

@laurenreidexpensify laurenreidexpensify removed Help Wanted Apply this label when an issue is open to proposals by contributors Awaiting Payment Auto-added when associated PR is deployed to production labels May 3, 2022
@kadiealexander
Copy link
Contributor

Just noting for the record that @parasharrajat needs a reporting bonus for reporting the regression here. The regression issue is here, but we decided to use this issue to manage everything to avoid confusion.

cc: @laurenreidexpensify @stitesExpensify

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 17, 2022
@melvin-bot melvin-bot bot changed the title [$250] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form [HOLD for payment 2022-05-24] [$250] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form May 17, 2022
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.61-3 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-24. 🎊

@LucioChavezFuentes
Copy link
Contributor

LucioChavezFuentes commented May 18, 2022

I have a question, I requested a rise on cost to this issue to $1000 and it was accepted . Is it normal to still show $250 on the title?

@kadiealexander kadiealexander changed the title [HOLD for payment 2022-05-24] [$250] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form [HOLD for payment 2022-05-24] [$1000] [HOLD for payment after regression testing] Refactor Picker to be compatible with Form May 18, 2022
@kadiealexander
Copy link
Contributor

Ah, yes! That title doesn't update automatically. I've updated this to reflect the correct amount.

@Santhosh-Sellavel
Copy link
Collaborator

@laurenreidexpensify Can you set up a job on Upwork or send an invite for this issue! Its payment is due tomorrow. Thanks!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 23, 2022
@laurenreidexpensify
Copy link
Contributor

@Santhosh-Sellavel sent you a proposal, ignore the per hour bit - I'll issue payment as a bonus as soon as you accept today

@laurenreidexpensify
Copy link
Contributor

@LucioChavezFuentes payment has been issued 👍🏽

@Santhosh-Sellavel
Copy link
Collaborator

Accepted the offer, @laurenreidexpensify!

@laurenreidexpensify
Copy link
Contributor

Paid @Santhosh-Sellavel 🙌🏽

@parasharrajat
Copy link
Member

@laurenreidexpensify I am eligible for a bonus here #7535 (comment).

@laurenreidexpensify
Copy link
Contributor

Sorry @parasharrajat will sort you out now!

@laurenreidexpensify
Copy link
Contributor

@parasharrajat created a new job here https://www.upwork.com/ab/applicants/1529457532430389248/job-details - I'll issue payment as soon as you're hired

@laurenreidexpensify
Copy link
Contributor

@parasharrajat all done - sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Task
Projects
None yet
Development

No branches or pull requests