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 2024-02-07] [$250] [TS migration] Migrate 'Form' component to TypeScript #31972

Closed
melvin-bot bot opened this issue Nov 27, 2023 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production NewFeature Something to build that is a new item. Reviewing Has a PR in review Task Typescript Migration Weekly KSv2

Comments

@melvin-bot
Copy link

melvin-bot bot commented Nov 27, 2023

TypeScript migration

Make sure you read through our TypeScript's style guide, cheatsheet and PropTypes conversion table before you start working on this migration issue.

Files

Path Dependencies
src/components/Form/errorsPropType.js 1
src/components/Form/InputWrapper.js 3
src/components/Form/FormWrapper.js 13
src/components/Form/FormProvider.js 15
src/components/Form/FormContext.js 1
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b00649428ca23975
  • Upwork Job ID: 1750472759181078528
  • Last Price Increase: 2024-01-25
@blazejkustra
Copy link
Contributor

Hey! This is something that was recently implemented by @kowczarz, I think he should take this one 😄

@fabioh8010
Copy link
Contributor

@blazejkustra WDYT about doing InputWrapper and in a separate PR? We can suppress this error temporally, I think it should be enough.

// src/components/Form/InputWrapper.tsx

// @ts-expect-error TODO: Remove this when FormContext is migrated to TS.
const {registerInput} = useContext(FormContext);

This way we could unblock ~47 pages. Do you think is it possible or it makes sense?

@blazejkustra
Copy link
Contributor

InputWrapper and in a separate PR?

InputWrapper and what else?

@melvin-bot melvin-bot bot added the Overdue label Dec 5, 2023
@fabioh8010
Copy link
Contributor

@blazejkustra I was thinking about this and InputWrapper is always used together with FormProvider, which would require us to migrate it and the others 😞 . The only exception seems to be DatePicker which is a component that uses it but doesn't use FormProvider. Do you think is worth it opening a PR to migrate InputWrapper in order to help unblock DatePicker?

Anyway, I tested the migration of this file yesterday and was able to do it, here is the branch.

@blazejkustra
Copy link
Contributor

This way we could unblock ~47 pages

@fabioh8010 If this really unblocks almost 50 pages, I think we should do it! Especially looking at your branch which is a fairly simple migration 😄

@blazejkustra
Copy link
Contributor

FYI I started working on this issue this week, here is a draft PR

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Dec 21, 2023
Copy link
Author

melvin-bot bot commented Dec 21, 2023

This issue has not been updated in over 15 days. eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

Copy link
Author

melvin-bot bot commented Jan 25, 2024

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

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Jan 25, 2024
@melvin-bot melvin-bot bot changed the title [TS migration] Migrate 'Form' component to TypeScript [$500] [TS migration] Migrate 'Form' component to TypeScript Jan 25, 2024
Copy link
Author

melvin-bot bot commented Jan 25, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01b00649428ca23975

@mountiny mountiny added the NewFeature Something to build that is a new item. label Jan 25, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 25, 2024
@mountiny mountiny changed the title [$500] [TS migration] Migrate 'Form' component to TypeScript [$250] [TS migration] Migrate 'Form' component to TypeScript Jan 25, 2024
@s-alves10

This comment was marked as outdated.

@allgandalf
Copy link
Contributor

i can work on this issue

@LeOndaz
Copy link

LeOndaz commented Jan 25, 2024

I can work on this issue, I applied to the Upwork job post

https://www.upwork.com/freelancers/leondaz

Copy link
Author

melvin-bot bot commented Jan 25, 2024

📣 @LeOndaz! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@blazejkustra
Copy link
Contributor

@RohanSasne @AnshuAgarwal24 @abzokhattab @LeOndaz This issue isn't external, so please do not comment for assignment 😄 (PR is almost merged)

@LeOndaz
Copy link

LeOndaz commented Jan 25, 2024

Contributor details
Your Expensify account email: ahmeddark369@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/leondaz

Copy link
Author

melvin-bot bot commented Jan 25, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 Weekly KSv2 labels Jan 31, 2024
@melvin-bot melvin-bot bot changed the title [$250] [TS migration] Migrate 'Form' component to TypeScript [HOLD for payment 2024-02-07] [$250] [TS migration] Migrate 'Form' component to TypeScript Jan 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 31, 2024
Copy link
Author

melvin-bot bot commented Jan 31, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link
Author

melvin-bot bot commented Jan 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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 2024-02-07. 🎊

For reference, here are some details about the assignees on this issue:

Copy link
Author

melvin-bot bot commented Jan 31, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@allroundexperts] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@isabelastisser
Copy link
Contributor

@allroundexperts, can you please complete the task above? Thanks!

@dangrous
Copy link
Contributor

dangrous commented Feb 5, 2024

I don't think we need any new regression steps - if this PR does what it should, there should be no change at all (for users) from the existing Form!

@isabelastisser
Copy link
Contributor

Thanks for clarifying, Daniel!

@melvin-bot melvin-bot bot added Daily KSv2 Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 Daily KSv2 labels Feb 6, 2024
Copy link
Author

melvin-bot bot commented Feb 7, 2024

Payment Summary

Upwork Job

BugZero Checklist (@isabelastisser)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1750472759181078528/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@isabelastisser
Copy link
Contributor

Reviewing.

@isabelastisser
Copy link
Contributor

isabelastisser commented Feb 7, 2024

Payment Summary

Reviewer: @allroundexperts owed $250 via NewDot

PENDING payment in NewDot.

@isabelastisser
Copy link
Contributor

Closing this, but we're still pending Payment in NewDot. cc @JmillsExpensify ^^

@JmillsExpensify
Copy link

$250 approved for @allroundexperts based on summary above.

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 NewFeature Something to build that is a new item. Reviewing Has a PR in review Task Typescript Migration Weekly KSv2
Projects
Development

No branches or pull requests

10 participants