Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.83-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696863093475949
Action Performed:
- Go to a chat with another person.
- Click on request money.
- Enter an amount.
- Enter a very long description.
- Go to the request preview
Expected Result:
The request preview should be truncated to include limited text
Actual Result:
The request preview is not truncated and can include a very big description
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Android: Native
Screen.Recording.2023-10-12.at.6.13.15.PM.mov
Android: mWeb Chrome
Screen.Recording.2023-10-12.at.6.15.36.PM.mov
iOS: Native
Screen.Recording.2023-10-12.at.6.14.41.PM.mov
iOS: mWeb Safari
RPReplay_Final1697114918.MP4
MacOS: Chrome / Safari
Screen.Recording.2023-10-09.at.8.19.12.PM.mov
Description.mp4
MacOS: Desktop
Screen.Recording.2023-10-12.at.6.12.08.PM.mov
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01a4eeb2d00d152256
- Upwork Job ID: 1712488709391478784
- Last Price Increase: 2024-03-06
- Automatic offers:
- situchan | Contributor | 27221035
- esh-g | Reporter | 27221037
Activity
[-]Request/split money description preview is not truncated[/-][+][$500] Request/split money description preview is not truncated[/+]melvin-bot commentedon Oct 12, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01a4eeb2d00d152256
melvin-bot commentedon Oct 12, 2023
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)saranshbalyan-1234 commentedon Oct 12, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Request/split money description preview is not truncated
What is the root cause of that problem?
The root cause of the problem is that we have not passed numberOfLines prop to the Text element of description here.
App/src/components/ReportActionItem/MoneyRequestPreview.js
Line 318 in c0fe505
What changes do you think we should make in order to solve the problem?
We can pass on prop that is numberOfLines to whatever lines we would prefer. in most of the places in app it is 1, as this is description we can consider more as well.
Changes will be mage accordingly
The solution would look something like this
Result
https://github.com/Expensify/App/assets/57568571/2930df08-e2aa-41e4-9459-550d9d2c5efc
What alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Oct 12, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)m-natarajan commentedon Oct 12, 2023
Proposal by @esh-g
Please re=state the problem
Request/split money description preview is not truncated
What is the root cause of the problem?
There is no logic to truncate the description preview in request/split money.
What changes should be made to fix this?
We should add the
numberOfLines={3}attribute to theTextcomponents for description as well as merchant inMoneyRequestPreview.js.App/src/components/ReportActionItem/MoneyRequestPreview.js
Line 310 in d4b0a24
App/src/components/ReportActionItem/MoneyRequestPreview.js
Line 318 in d4b0a24
setting the max lines to 3 is only a suggestion, but we can set it to any desirable number
esh-g commentedon Oct 12, 2023
This is a bug as mentioned here: #28073 (comment), so we should work on this
youssef-lr commentedon Oct 13, 2023
Closing in favor of #28073
34 remaining items
zanyrenney commentedon Nov 6, 2023
Thanks @youssef-lr !
melvin-bot commentedon Nov 30, 2023
This issue has not been updated in over 15 days. @joelbettner, @zanyrenney, @esh-g, @situchan 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!
esh-g commentedon Jan 8, 2024
I would once ask to reconsider the bounty on this one since it ended up taking a lot longer than expected mainly due to input delays... and it wasn't such a minor bug as expected...
esh-g commentedon Jan 20, 2024
gentle bump @zanyrenney @situchan on the above ^
zanyrenney commentedon Mar 6, 2024
@youssef-lr, please can you review as Joel has left, and I'd like an engineer's input. I'm assigning you to take a look, please!
[-][$125] Request/split money description preview is not truncated[/-][+][$250] Request/split money description preview is not truncated[/+]melvin-bot commentedon Mar 6, 2024
Upwork job price has been updated to $250
youssef-lr commentedon Mar 6, 2024
Makes sense @esh-g, adjusted.
zanyrenney commentedon Mar 6, 2024
thanks @youssef-lr ❤️
zanyrenney commentedon Mar 6, 2024
payment summary
paid @esh-g - $250
paid @situchan $250