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

[$250] Migrate BaseModal.js to function component #16175

Closed
1 task
marcaaron opened this issue Mar 20, 2023 · 45 comments
Closed
1 task

[$250] Migrate BaseModal.js to function component #16175

marcaaron opened this issue Mar 20, 2023 · 45 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Monthly KSv2 NewFeature Something to build that is a new item. Reviewing Has a PR in review

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Mar 20, 2023

Class Component Migration

Filenames

  • src/components/Modal/BaseModal.js
    • type: React.PureComponent
    • has state values: false
    • has refs: true
    • has context: true
    • 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/~01adcc5d2f587f2657
  • Upwork Job ID: 1691866213671108608
  • Last Price Increase: 2023-08-16
@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 BaseModal.js to function component [HOLD][$250] Migrate BaseModal.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.

@muxriddinmuqimov77
Copy link

I'd like to work on this issue

@s-alves10
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-djouah
Copy link
Contributor

Can I work on this issue?

@mejed-alkoutaini
Copy link

I'm able to work on this if needed!

@mkhutornyi
Copy link
Contributor

I'd like to work on this.

@JKobrynski
Copy link
Contributor

Hi, I'm Julian from Callstack - expert contributor group - and I would like to take a look at this issue

@marcaaron marcaaron changed the title [HOLD][$250] Migrate BaseModal.js to function component [$250] Migrate BaseModal.js to function component Aug 16, 2023
@marcaaron marcaaron added NewFeature Something to build that is a new item. and removed Improvement Item broken or needs improvement. labels Aug 16, 2023
@marcaaron marcaaron self-assigned this Aug 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 16, 2023

@melvin-bot
Copy link

melvin-bot bot commented Aug 16, 2023

Triggered auto assignment to Design team member for new feature review - @shawnborton (NewFeature)

@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label Aug 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 16, 2023

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

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

I have pushed a PR of this issue.
#25163

@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

📣 @danielsmage1! 📣
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. 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.
  2. 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.
  3. 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>

@danielsmage1
Copy link

Contributor details
Your Expensify account email: rubyshine72@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01b76d02e87d551248

@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@Gonals
Copy link
Contributor

Gonals commented Aug 21, 2023

@JmillsExpensify, @marcaaron, @rushatgabhane, I got assigned @danielsmage1's PR for review, but it doesn't look like we have a C+ approved proposal from him in this issue. Is that something we are not doing for this migration?

@marcaaron
Copy link
Contributor Author

Hmm that's weird. It should have assigned me. @Gonals I'm just gonna take that one off your hands and you can not worry about it. Basically, for these refactors many are assigned to volunteers and some go to contributors. This one went to callstack so we don't need a C+ proposal review.

@melvin-bot melvin-bot bot removed the Overdue label Aug 22, 2023
@marcaaron
Copy link
Contributor Author

@danielsmage1 you are not assigned to the issue. Please read the contributing guidelines.

@JKobrynski
Copy link
Contributor

A draft PR has been published for internal review

@JKobrynski
Copy link
Contributor

The PR is ready for review!

@marcaaron marcaaron added the Reviewing Has a PR in review label Aug 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

@JmillsExpensify, @marcaaron, @JKobrynski Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

@JmillsExpensify, @marcaaron, @JKobrynski Still overdue 6 days?! Let's take care of this!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2023

This issue has not been updated in over 14 days. @JmillsExpensify, @marcaaron, @JKobrynski eroding to Weekly issue.

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

melvin-bot bot commented Oct 6, 2023

This issue has not been updated in over 15 days. @JmillsExpensify, @marcaaron, @JKobrynski 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!

@JmillsExpensify
Copy link

It looks like the PR is merged right? Is all that's left here is paying @s77rt for the PR review?

@JmillsExpensify
Copy link

In fact, it might be @parasharrajat as well? All in all, I'd love a summary on where we're at.

@s77rt
Copy link
Contributor

s77rt commented Oct 12, 2023

@JmillsExpensify I didn't review that PR

@parasharrajat
Copy link
Member

@JmillsExpensify No C+ reviewed the PR. We are shown as reviewers because we commented on the PR to mention regressions.

@JmillsExpensify
Copy link

Thanks! @marcaaron @JKobrynski can you help clarify whether there is anything else left to do here?

@JmillsExpensify
Copy link

Closing to clear this one. Please re-open if there is anything left to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Monthly KSv2 NewFeature Something to build that is a new item. Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests