-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[C+ Checklist Needs Completion] [$250] Split - Values after decimal point displayed on second line if splitting certain amounts #42117
Comments
Triggered auto assignment to @greg-schroeder ( |
@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-split |
ProposalPlease re-state the problem that we are trying to solve in this issue.Decimal point values go on second line for split requests. What is the root cause of that problem?We have extra padding which causes the values after decimal point to go to next line: App/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx Line 64 in f9abf1e
What changes do you think we should make in order to solve the problem?Remove the extra padding : |
ProposalPlease re-state the problem that we are trying to solve in this issue.Decimal value is put at the second line. What is the root cause of that problem?Currently, we set a fixed width for the split amount input.
It assumes each digit width is 9 and it adds the prefix padding. However, the input has a padding right style. App/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx Line 64 in a6cb60c
If the input is 35.00 and we don't use the fixed width, the width is 64.3334... but the fixed width value is 64. What changes do you think we should make in order to solve the problem?We should consider the padding-right into the calculation by adding And to fix #42279, we should also consider the padding-left value of the input padding here.
|
Updated proposal to include fix for #42279 |
Job added to Upwork: https://www.upwork.com/jobs/~011b4523bc0bb34adf |
Applied |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The values after decimal point are displayed on the second line. It happens with certain amounts (1, 6-9, 60, 70, 80, 90) if splitting between 2 users What is the root cause of that problem?In here, we're calculating a fixed However, by default, React Native views operate with So when there're paddings in the input here and here, it will compress the inner content of the input and the text will overflow to the next line. What changes do you think we should make in order to solve the problem?We should avoid doing calculations on the content width, padding, margin, ... We should instead make the text input align itself so that it will work with any value of width, padding, margin. To do this, we need to introduce
Pseudo code:
As we can see, there's no manual calculation based on paddings, content, ... required. The What alternative solutions did you explore? (Optional)NA |
@tienifr Could you provide a test branch for your solution? |
@greg-schroeder @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
How are we looking on this one @tienifr @dukenv0307? |
Got it - @tienifr do you think you can take a look and updated as needed today? Would love to move this forward and it's been about a week. Thanks! |
Last update from @tienifr was yesterday:
|
PR is on staging, awaiting deploy to prod |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊 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:
|
Processing |
Payment summary: Contributor: @tienifr - $250 - You can make a manual request via ND (rescinded Upwork offer) |
Next up is the checklist from @dukenv0307! |
$250 approved for @tienifr |
BugZero Checklist:
Regression test:
Do we 👍 or 👎 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.73-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
precondition: the device text size is set to default (middle)
Expected Result:
The values after decimal point are displayed in one line
Actual Result:
The values after decimal point are displayed on the second line. It happens with certain amounts (1, 6-9, 60, 70, 80, 90) if splitting between 2 users
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6479893_1715633663967.IMG_6856.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dukenv0307The text was updated successfully, but these errors were encountered: