App icon indicating copy to clipboard operation
App copied to clipboard

[Pay Jan 24] [$250] [TS migration] Migrate 'ReportActionItemTaskPreview.js' component to TypeScript

Open melvin-bot[bot] opened this issue 1 year ago β€’ 47 comments
trafficstars

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/ReportActionItem/TaskPreview.js 31
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c68691eb92360ad3
  • Upwork Job ID: 1736777434713346048
  • Last Price Increase: 2023-12-25
Issue OwnerCurrent Issue Owner: @mallenexpensify

melvin-bot[bot] avatar Nov 27 '23 16:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Dec 18 '23 15:12 melvin-bot[bot]

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

melvin-bot[bot] avatar Dec 18 '23 15:12 melvin-bot[bot]

Upwork job price has been updated to $250

melvin-bot[bot] avatar Dec 18 '23 15:12 melvin-bot[bot]

I'd like to do this migration.

unidev727 avatar Dec 18 '23 16:12 unidev727

i would love to take it!

ishpaul777 avatar Dec 18 '23 16:12 ishpaul777

Like to work on it

Pujan92 avatar Dec 18 '23 16:12 Pujan92

Proposal

Please re-state the problem that we are trying to solve in this issue.

[TS migration] Migrate 'ReportActionItemTaskPreview.js' component to TypeScript

What is the root cause of that problem?

Not problem (Technical ticket )

What changes do you think we should make in order to solve the problem?

We need to update the file using best practices using TS guide

https://github.com/Expensify/App/blob/main/contributingGuides/TS_STYLE.md

What alternative solutions did you explore? (Optional)

NA

ZhenjaHorbach avatar Dec 18 '23 16:12 ZhenjaHorbach

I would like to work on this issue

rayane-d avatar Dec 18 '23 16:12 rayane-d

I would like to work on this issue

yh-0218 avatar Dec 18 '23 16:12 yh-0218

I would like to work on this issue

DylanDylann avatar Dec 18 '23 16:12 DylanDylann

I would like to work on this

djabdou avatar Dec 18 '23 16:12 djabdou

My proposal basically would be to convert prop types to a TS type, we could set the default values, destructure the props and remove prop-types from the file.

gerzonc avatar Dec 18 '23 16:12 gerzonc

πŸ“£ @gerzonc! πŸ“£ 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>

melvin-bot[bot] avatar Dec 18 '23 16:12 melvin-bot[bot]

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~01021f76b2b5cb843d

gerzonc avatar Dec 18 '23 16:12 gerzonc

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Dec 18 '23 16:12 melvin-bot[bot]

I would like to work on this issue

annscode avatar Dec 18 '23 17:12 annscode

I'm available to work on this

expertscoders avatar Dec 18 '23 17:12 expertscoders

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

melvin-bot[bot] avatar Dec 18 '23 18:12 melvin-bot[bot]

Hello, I'm Dmitry, I'd like to work on this issue.

To migrate a JavaScript file to TypeScript:

  1. Rename the file to .tsx.
  2. Define types for props using interfaces.
  3. Remove PropTypes imports and declarations.
  4. Install TypeScript definitions for libraries.
  5. Utilize TypeScript's built-in ref and style types.
  6. Use TypeScript-friendly event types.
  7. Ensure proper import paths with .tsx.
  8. Export the function component using export default.

Thank you!

Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~01bf188dd5498d1e42

Steep1692 avatar Dec 18 '23 19:12 Steep1692

βœ… Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Dec 18 '23 19:12 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

[TS migration] Migrate 'ReportActionItemTaskPreview.js' component to TypeScript

What is the root cause of that problem?

N/a, not a bug

What changes do you think we should make in order to solve the problem?

We need to update these files using best practices using TS guide https://github.com/Expensify/App/blob/main/contributingGuides/TS_STYLE.md

Contributor details Expensify account email:Β [email protected] Upwork Profile Link:Β https://www.upwork.com/freelancers/hpsurani

HpSurani1997 avatar Dec 19 '23 13:12 HpSurani1997

@thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Dec 22 '23 11:12 melvin-bot[bot]

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] avatar Dec 25 '23 16:12 melvin-bot[bot]

@thesahindia Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar Dec 26 '23 11:12 melvin-bot[bot]

@thesahindia Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] avatar Dec 28 '23 11:12 melvin-bot[bot]

@unicorndev-727 was first to comment! Let's assign them.

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed

thesahindia avatar Dec 28 '23 19:12 thesahindia

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

melvin-bot[bot] avatar Dec 28 '23 19:12 melvin-bot[bot]

@tgolen, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Jan 01 '24 11:01 melvin-bot[bot]

@tgolen, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Jan 01 '24 17:01 melvin-bot[bot]

πŸ“£ @unicorndev-727 You have been assigned to this job! Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs! Keep in mind: Code of Conduct | Contributing πŸ“–

melvin-bot[bot] avatar Jan 02 '24 16:01 melvin-bot[bot]