You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Web - Request Money - Long description is showing without "Paid by" and "Split with" #28073
Click on FAB -> Request money -> Enter any numbers
Select some account -> Add to Split button
Enter a long description -> Save -> Split button
Click on newly Request money -> Observe this Request money
Expected Result:
Request money will display "Paid by" and "Split with" as well as the Description.
Actual Result:
Long description is showing only without "Paid by" and "Split with"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.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: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
We should also add the pointerEvents='box-none' to the ScrollView which is currently present on the parent View in SplitBillDetailsPage.
Second
According to this comment, In MenuItemRenderHTMLTitle/index.js, we need to limit the description to 2-3 lines unless the show more button is pressed. For that, we can change the MenuItemWithTopDescription in MoneyRequestConfirmationList like this:
<MenuItemWithTopDescriptionshouldShowRightIcon={!props.isReadOnly}shouldParseTitletitle={props.iouComment}description={translate('common.description')}...numberOfLinesTitle={shouldShowAllFields ? null : 3}// this line changed/>
This will make sure that the description is limited to only 3 lines unless it is expanded.
Third
In MenuItem.js, we need to change the maxHeight to allow only the required lines unless it is expanded. Here:
What other alternative options did you explore? (Optional)
If we want to set a fixed limit for the number of characters instead of number of lines for the description, we can also use a custom truncate function with a fixed number of words for the description. I prefer the previous solution because that allows flexibility of using numberOfLines for menu items that are using html rendering.
changed the title [-]Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/-][+][$500] Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/+]on Sep 23, 2023
changed the title [-][$500] Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/-][+][$500] Web - Request Money - Long description is showing without "Paid by" and "Split with" [/+]on Sep 23, 2023
Activity
esh-g commentedon Sep 23, 2023
Proposal
Please re-state the issue
Split bill details page is not scrollable and is stuck when a long description is provided.
What is the root cause of this issue?
First
We are not keeping the
MoneyRequestConfirmationListin aScrollViewinSplitBillDetailsPage.jsApp/src/pages/iou/SplitBillDetailsPage.js
Lines 82 to 94 in 5aa7f6d
This makes it impossible to scroll and the page seems stuck.
Second
The reason that description is not getting truncated despite passing
numberOfLineshere:App/src/components/MoneyRequestConfirmationList.js
Line 509 in 389d7b0
is because instead of a
Textcomponent, description is being rendered asHTMLwhich we cannot truncate with thenumberOfLinesprop.App/src/components/MenuItem.js
Lines 253 to 265 in 389d7b0
What changes do you think should be made to fix this problem?
First
We should nest the
MoneyRequestConfirmationListin a doubleScrollViewlike we do inMoneyRequestConfirmPage.jshere:App/src/pages/iou/steps/MoneyRequestConfirmPage.js
Lines 290 to 300 in 5aa7f6d
We should also add the
pointerEvents='box-none'to theScrollViewwhich is currently present on the parentViewinSplitBillDetailsPage.Second
According to this comment, In
MenuItemRenderHTMLTitle/index.js, we need to limit the description to 2-3 lines unless theshow morebutton is pressed. For that, we can change theMenuItemWithTopDescriptioninMoneyRequestConfirmationListlike this:This will make sure that the description is limited to only 3 lines unless it is expanded.
Third
In
MenuItem.js, we need to change themaxHeightto allow only the required lines unless it is expanded. Here:App/src/components/MenuItem.js
Lines 253 to 256 in 389d7b0
We can pass change the style like this:
Result:
Screen.Recording.2023-10-08.at.3.10.23.PM.mov
What other alternative options did you explore? (Optional)
If we want to set a fixed limit for the number of characters instead of number of lines for the description, we can also use a custom truncate function with a fixed number of words for the description. I prefer the previous solution because that allows flexibility of using
numberOfLinesfor menu items that are using html rendering.[-]Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/-][+][$500] Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/+]melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01062695b5b87a83cc
melvin-bot commentedon Sep 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to @laurenreidexpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.[-][$500] Web - Request Money - Long description is showing only without "Paid by" and "Split with" [/-][+][$500] Web - Request Money - Long description is showing without "Paid by" and "Split with" [/+]melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)44 remaining items
melvin-bot commentedon Oct 21, 2023
@anmurali @situchan this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks!
melvin-bot commentedon Oct 21, 2023
Current assignee @situchan is eligible for the Internal assigner, not assigning anyone new.
thuyle04 commentedon Oct 23, 2023
Contributor details
Your Expensify account email: thuy.lethithu@antbuddy.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01fcd9ed589276332f
melvin-bot commentedon Oct 23, 2023
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
melvin-bot commentedon Oct 23, 2023
@anmurali, @situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
situchan commentedon Oct 24, 2023
Not Overdue
melvin-bot commentedon Oct 27, 2023
@anmurali, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
situchan commentedon Oct 27, 2023
We can close this