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 2023-08-03] [$250] Migrate PopoverWithMeasuredContent.js to function component #16191

Closed
1 task
marcaaron opened this issue Mar 20, 2023 · 39 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 Improvement Item broken or needs improvement.

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Mar 20, 2023

Class Component Migration

Filenames

Task

  • We currently have some class components in our codebase that we would like to refactor to a function component.
  • Here's a link with some general advice on how to refactor a class component to a function component: https://react.dev/reference/react/Component#alternatives
  • If you need additional guidance, please ask in #expensify-open-source
  • Test for any regressions and verify that there are no breaking changes
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010c5cb522f6569b11
  • Upwork Job ID: 1678837431026483200
  • Last Price Increase: 2023-07-11
@marcaaron marcaaron added Engineering Improvement Item broken or needs improvement. labels Mar 20, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Mar 20, 2023
@Expensify Expensify unlocked this conversation Mar 21, 2023
@marcaaron marcaaron changed the title [HOLD] Migrate PopoverWithMeasuredContent.js to function component [HOLD][$250] Migrate PopoverWithMeasuredContent.js to function component Apr 13, 2023
@MelvinBot
Copy link

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@dummy-1111
Copy link
Contributor

I'd love to work on this.

@dayana7204
Copy link
Contributor

I am ready to work on this ticket. :)

@olexyt
Copy link
Contributor

olexyt commented Jul 7, 2023

I can work on this issue.

@rayane-d
Copy link
Contributor

rayane-d commented Jul 9, 2023

Can I work on this?

@marcaaron marcaaron changed the title [HOLD][$250] Migrate PopoverWithMeasuredContent.js to function component [$250] Migrate PopoverWithMeasuredContent.js to function component Jul 11, 2023
@marcaaron marcaaron added External Added to denote the issue can be worked on by a contributor Daily KSv2 labels Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010c5cb522f6569b11

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

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

@rayane-d
Copy link
Contributor

Can I work on this issue?

@alexxxwork
Copy link
Contributor

I would love to work on this issue

@payal-lathidadiya
Copy link
Contributor

dibs?

@yh-0218
Copy link
Contributor

yh-0218 commented Jul 11, 2023

I can work on this task. Thanks.

@crazy-coding
Copy link

I'd love to work on this.

@kmwamasali
Copy link

would like to work on this

@Talha345
Copy link
Contributor

I'd love to work on this.

@mejed-alkoutaini
Copy link

I'm able to work on this if needed!

@Vadym-33
Copy link

I hope to work on this task.

@vadymbokatov
Copy link
Contributor

I'd love to work on this issue

@PhantomOz
Copy link

Here is my proposal for how I will fix this issue:

  • I will use the React Hooks API to convert the class component to a function component. Specifically, I will use the useState hook to manage the state values, the useRef hook to create and access the refs, and the useEffect hook to replicate the componentDidMount behavior.
  • I will also use the React.memo function to wrap the function component and optimize its rendering performance. This will ensure that the component only re-renders when its props change.
  • I will test the refactored component on all platforms (iOS, Android, web, desktop) to make sure that it works as expected and does not introduce any regressions or breaking changes.

@s77rt
Copy link
Contributor

s77rt commented Jul 12, 2023

Thank you all for your interest here.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

📣 @alexxxwork 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer 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 📖

@alexxxwork
Copy link
Contributor

The PR is ready

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@bfitzexpensify bfitzexpensify added the Reviewing Has a PR in review label Jul 17, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

@alexxxwork, @s77rt, @luacmartins, @bfitzexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@s77rt
Copy link
Contributor

s77rt commented Jul 24, 2023

Not overdue. PR is ready for merge - waiting for @luacmartins review

@luacmartins
Copy link
Contributor

This is merged. Sorry for the delay, I was ooo since Thursday last week.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 27, 2023
@melvin-bot melvin-bot bot changed the title [$250] Migrate PopoverWithMeasuredContent.js to function component [HOLD for payment 2023-08-03] [$250] Migrate PopoverWithMeasuredContent.js to function component Jul 27, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.46-2 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 2023-08-03. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 3, 2023
@bfitzexpensify
Copy link
Contributor

All paid out, we're done here.

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 Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests