Skip to content

[HOLD for payment 2022-12-08] [$250][Form Refactor] CompanyStep #9580

Closed

Description

@luacmartins

Coming from the New Expensify Forms design doc, we should refactor CompanyStep to use the new form component, follow the guidelines below:

Here's an example of a Form refactor: #9056

Guidelines

  1. Replace the form component with Form.js.
  2. Create a unique Onyx key in ONYXKEYS.FORM and pass it as the formID prop to Form.
  3. Pass a validate callback prop.
  4. Pass an onSubmit callback prop that calls the API via an action.
  5. Update all inputs wrapped by Form, following the guidelines in Refactor inputs.
  6. Remove any unused code.

Testing

Verify that:

  • UI looks as it did before the refactor
  • Values can be added and edited
  • Errors are highlighted correctly (input border)
  • Error messages show up correctly
  • Draft values are saved properly
  • Form alerts are displayed correctly
  • Clicking the fix the errors link focuses the first input with error
  • No duplicate submission of the form occurs (when it's already submitting)

Activity

  1. melvin-bot commented on Jun 27, 2022

    @melvin-bot

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

  2. adelekennedy commented on Jun 28, 2022

    @adelekennedy
    Contributor

    @luacmartins is this something contributors can work on? Double checking before I open an Upwork job

  3. luacmartins commented on Jun 28, 2022

    @luacmartins
    ContributorAuthor

    Yes! The Form refactor project is all open to contributors :)

  4. luacmartins commented on Jun 29, 2022

    @luacmartins
    ContributorAuthor

    This issue is being put on hold due to push to page discussions, as per this comment.

  5. changed the title [-][Form Refactor] CompanyStep[/-] [+][HOLD] [Form Refactor] CompanyStep[/+] on Jun 29, 2022
  6. adelekennedy commented on Jun 29, 2022

    @adelekennedy
    Contributor

    Ty ty!

  7. adelekennedy commented on Jul 4, 2022

    @adelekennedy
    Contributor

    on hold

  8. 123 remaining items

  9. adelekennedy commented on Dec 8, 2022

    @adelekennedy
    Contributor

    pending payment on the discussion above

  10. mananjadhav commented on Dec 9, 2022

    @mananjadhav
    Collaborator

    I think 500$ should be fine here. Please note this also had a regression involved. So incase we don't want to increase then that is fine too.

  11. ravindra-encoresky commented on Dec 9, 2022

    @ravindra-encoresky
    Contributor

    I think 500$ should be fine here. Please note this also had a regression involved. So incase we don't want to increase then that is fine too.

    I would go with the first option :) , it's been long back and forth. Thanks, looking forward.

  12. luacmartins commented on Dec 9, 2022

    @luacmartins
    ContributorAuthor

    $500 seems fair to me. Let's go with that.

  13. mananjadhav commented on Dec 9, 2022

    @mananjadhav
    Collaborator

    Thanks @luacmartins. @adelekennedy can you help with the payout here?

  14. adelekennedy commented on Dec 13, 2022

    @adelekennedy
    Contributor

    @mananjadhav just hired you at $500

  15. mananjadhav commented on Dec 13, 2022

    @mananjadhav
    Collaborator

    Accepted @adelekennedy

  16. adelekennedy commented on Dec 13, 2022

    @adelekennedy
    Contributor

    paid and paid!

  17. ravindra-encoresky commented on Dec 13, 2022

    @ravindra-encoresky
    Contributor

    @adelekennedy @mananjadhav I've received only $250.

  18. JmillsExpensify commented on Dec 23, 2022

    @JmillsExpensify
    Contributor

    Re-opening until the contributor's question is answered.

  19. mallenexpensify commented on Dec 26, 2022

    @mallenexpensify
    Contributor

    Sorry about that @ravindra-encoresky , not sure what happened. I just bonused you $250 so total compensation is now $500. Double checked Manan's contract and the payment was $500 there, re-closing

  20. ravindra-encoresky commented on Dec 27, 2022

    @ravindra-encoresky
    Contributor

    Sorry about that @ravindra-encoresky , not sure what happened. I just bonused you $250 so total compensation is now $500. Double checked Manan's contract and the payment was $500 there, re-closing

    Got it, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions