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-11-30] [$250] Migrate AvatarWithImagePicker.js to function component #16119

Closed
1 task
marcaaron opened this issue Mar 20, 2023 · 37 comments
Closed
1 task
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 Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Mar 20, 2023

Class Component Migration

Filenames

  • src/components/AvatarWithImagePicker.js
    • type: React.Component
    • has state values: true
    • has refs: false
    • has context: false
    • lifecycle methods: componentDidMount,componentWillUnmount,componentDidUpdate

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/~01d53fbc9f79a94c05
  • Upwork Job ID: 1707284642930675712
  • Last Price Increase: 2023-09-28
@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 AvatarWithImagePicker.js to function component [HOLD][$250] Migrate AvatarWithImagePicker.js to function component Apr 13, 2023
@kuluruvineeth

This comment was marked as spam.

@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 30, 2023
@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot added the Overdue label May 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 5, 2023

Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

10 days overdue. Is anyone even seeing these? Hello?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 16, 2023

This issue has not been updated in over 14 days. eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label May 16, 2023
@muxriddinmuqimov77
Copy link

I'd like to work on this issue

@melvin-bot melvin-bot bot added Overdue Monthly KSv2 and removed Weekly KSv2 labels Jun 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 8, 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!

@melvin-bot melvin-bot bot removed the Overdue label Jun 8, 2023
@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 issue?

@mkhutornyi
Copy link
Contributor

I'd like to work on this.

@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2023
@ghost
Copy link

ghost commented Jul 12, 2023

dibs?

@jczekalski
Copy link
Contributor

Hey! I’m from Software Mansion, an expert agency, and I’d like to work on this issue.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Overdue labels Sep 28, 2023
@ishpaul777
Copy link
Contributor

Dibs

@ghost
Copy link

ghost commented Sep 28, 2023

Dibs. Please give me 1 issue please

@Youhy
Copy link

Youhy commented Sep 28, 2023

I can work on this issue

@joeysherman
Copy link

joeysherman commented Sep 28, 2023

@eVoloshchak So from what I'm understanding, we need to change from a react class to a function component utilizing the function component paradigms for state, effects and lifecycle methods. While keeping the same functionality. Pretty straightforward 😀

I'll create a expensify account in the morning.
Applied on Upwork here's my profile - upwork.com/freelancers/~01c18ef089038ec853

@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

📣 @joeysherman! 📣
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

@mountiny Could you give me a bit of context why the previous PR was closed and the issue got reassigned?

Progress of the original PR is still blocked due to this (Form refactor issue), and until Form isn't refactored in WorkspaceSettingsPage, AvatarWithImagePicker as a functional component causes app to crash.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@mountiny
Copy link
Contributor

mountiny commented Oct 5, 2023

BTW, discussed ith @blazejkustra 1:1, it was because it was stale. new approach showed we can create a new pr

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

melvin-bot bot commented Nov 23, 2023

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

Copy link

melvin-bot bot commented Nov 23, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-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 2023-11-30. 🎊

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:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 30, 2023
@eVoloshchak
Copy link
Contributor

This is ready for payment, @mountiny, could you post a payment summary please?

@mountiny
Copy link
Contributor

@eVoloshchak getting $250 for review and testing. Since paid through newDot, I am going to close this issue now. @eVoloshchak can you note here when you request the reward in ND?

@eVoloshchak
Copy link
Contributor

Requested the payment, thx!

@JmillsExpensify
Copy link

$250 payment approved for @eVoloshchak based on comment 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 Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests