-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2024-05-02] [$750] [CRITICAL] Create a reusable and stylable MoneyRequestAmountInput
#40382
Comments
MoneyRequestAmountForm
reusable and stylableMoneyRequestAmountForm
reusable and stylable
Job added to Upwork: https://www.upwork.com/jobs/~01f6b340c95c53b510 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Triggered auto assignment to @jliexpensify ( |
MoneyRequestAmountForm
reusable and stylableMoneyRequestAmountForm
reusable and stylable
Upwork job price has been updated to $500 |
ProposalPlease re-state the problem that we are trying to solve in this issue.CRITICAL] Make MoneyRequestAmountForm reusable and stylable What is the root cause of that problem?New feature What changes do you think we should make in order to solve the problem?To fix this issue we need make changes following instructions For this we need make App/src/pages/iou/steps/MoneyRequestAmountForm.tsx Lines 307 to 334 in 5a0e410
Also we need remove some function from And if necessary, add a few new parameters What alternative solutions did you explore? (Optional)NA |
@ZhenjaHorbach Are you able to give this your top priority? The deadline is very tight for this one, if yes, I'm happy to assign you! |
I can start right now |
MoneyRequestAmountForm
reusable and stylableMoneyRequestAmountInput
📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
That sounds good! |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@ZhenjaHorbach do you mind letting me know your Slack handle? |
Here it is) HorbachY |
MoneyRequestAmountInput
MoneyRequestAmountInput
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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 2024-05-02. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
This new feature so I don't think we need regression test for this one. |
MoneyRequestAmountInput
MoneyRequestAmountInput
Upwork job price has been updated to $750 |
@jliexpensify increasing bounty here as @ZhenjaHorbach has been very kind to help out with styling the input further for my specific use case. |
No worries, here's an updated Summary:
|
C+ should remain $500 in this case, this was extra work outside the PR from @ZhenjaHorbach. |
Ah, thanks for clarifying - fixed! |
Thanks! |
All paid and job removed! @ZhenjaHorbach I've given you a $250 bonus, so you'll get $750 all up. |
Problem
the
MoneyRequestAmountForm
is currently designed to be used from the Amount pages where it is displayed in a view that takes up the whole page, and has specific style for that. We'd like to reuse this input without any extra style and be able to re-style it with ease.Solution
Decouple the logic that handles accepting and formatting amounts from
MoneyRequestAmountForm
, by creating a newMoneyRequestAmountInput
that doesn't have any custom styles and looks like a basic input.MoneyRequestAmountForm
into the new input.MoneyRequestAmountForm
should only keep navigation and form logic.onAmountChange
that can be used by parent components.prefixCharacter
that should be prop drilled into the underlyingTextInput
used in this component. We will need to configure the padding of the prefix text to accomodate for both single character currencies and 3 characters currencies. (e.g.$
andAED
). Since the prefix is absolutely positioned, this is necessary.Here's a mock of how the input should look like when used from the Splits page:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: