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
[HOLD for Payment OCT 08] [$250] [Search v2.3] - Default name is not displayed correctly for multiline system message thread #49330
Version Number: 9.0.36-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers):applausetester+kh010901@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to DM.
Submit an expense with a multiline description.
Go to transaction thread.
Click Description.
Edit the description while maintaining the multiline format and save it.
Right click on the system message > Reply in thread.
Send a reply in thread.
Go to Search > Chats.
Click Filters > Select "In".
Select the thread in Step 8 > Save.
Click Save search.
Expected Result:
The title of the saved search should only have one line.
Actual Result:
The title of the saved search has multiple lines and it is not displayed correctly.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@abekkala 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
so the saved search name can contain multiple lines.
What changes do you think we should make in order to solve the problem?
We can fix the issue by fixing the Text style, but with that approach, we need to apply the fix on all platforms. So I suggest that we can format this:
changed the title [-]Saved search - Default name is not displayed correctly for multiline system message thread[/-][+][Search v2.3] - Default name is not displayed correctly for multiline system message thread[/+]on Sep 19, 2024
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:
[@paultsimura] The PR that introduced the bug has been identified. Link to the PR:
[@paultsimura] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@paultsimura] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
[@paultsimura] Determine if we should create a regression test for this bug.
[@paultsimura] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][$250] [Search v2.3] - Default name is not displayed correctly for multiline system message thread[/-][+][HOLD for Payment OCT 08] [$250] [Search v2.3] - Default name is not displayed correctly for multiline system message thread[/+]on Oct 2, 2024
The PR that introduced the bug has been identified. Link to the PR: note: It's not an offending PR as such, just a PR that tried to solve an existing problem, but didn't do it fully: Fix/37448: Incorrect title thread #38267
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
Determine if we should create a regression test for this bug: Yes
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Regression Test Proposal
Go to DM.
Submit an expense with a multiline description.
Go to the transaction thread.
Click Description.
Edit the description while maintaining the multiline format and save it.
Right-click on the system message > Reply in thread.
Send a reply in the thread.
Go to Search > Chats.
Click Filters > Select "In".
Select the thread in Step 7 > Save.
Click "Save search".
Verify the title of the saved search is only shown in one line.
Activity
melvin-bot commentedon Sep 17, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.IuliiaHerets commentedon Sep 17, 2024
We think that this bug might be related to #wave-control
IuliiaHerets commentedon Sep 17, 2024
@abekkala 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
andriivitiv commentedon Sep 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Saved search - Default name is not displayed correctly for multiline system message thread
What is the root cause of that problem?
The title text is not wrapped correctly.
What changes do you think we should make in order to solve the problem?
Add
titleStyle: styles.textNoWrap,hereApp/src/pages/Search/SearchTypeMenu.tsx
Line 110 in 14b99ca
drminh2807 commentedon Sep 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Saved search - Default name is not displayed correctly for multiline system message thread
What is the root cause of that problem?
The title text is not wrapped correctly.
What changes do you think we should make in order to solve the problem?
add
numberOfLinesTitle: 2,inApp/src/pages/Search/SearchTypeMenu.tsx
Lines 108 to 117 in 14b99ca
What alternative solutions did you explore? (Optional)
add noWrap style
titleStyle: styles.textNoWrap,Krishna2323 commentedon Sep 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Saved search - Default name is not displayed correctly for multiline system message thread
What is the root cause of that problem?
The default value for
numberOfLinesTitleis 1 but the text overflows because we are applyingstyles.preinstead ofstyles.noWrap.App/src/components/MenuItem.tsx
Line 350 in 2190f62
App/src/components/MenuItem.tsx
Lines 444 to 457 in 2190f62
What changes do you think we should make in order to solve the problem?
We should update the condition below to
numberOfLinesTitle !== 1 ? styles.preWrap : styles.noWrap,.App/src/components/MenuItem.tsx
Line 451 in 2190f62
What alternative solutions did you explore? (Optional)
numberOfLinesTitle: 2increateSavedSearchMenuItem..SearchTypeMenuNarrow.Result
truph01 commentedon Sep 18, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/libs/SearchUtils.ts
Line 715 in 7bd9e53
so the saved search name can contain multiple lines.
What changes do you think we should make in order to solve the problem?
App/src/libs/SearchUtils.ts
Line 715 in 7bd9e53
so it can be:
like we did in this:
App/src/components/DisplayNames/DisplayNamesWithTooltip.tsx
Line 59 in 7bd9e53
What alternative solutions did you explore? (Optional)
[-]Saved search - Default name is not displayed correctly for multiline system message thread[/-][+][Search v2.3] - Default name is not displayed correctly for multiline system message thread[/+]27 remaining items
shawnborton commentedon Sep 20, 2024
Ah nice, that's much better
Krishna2323 commentedon Sep 20, 2024
Yeah, sure.
Krishna2323 commentedon Sep 20, 2024
@paultsimura, PR ready for review ^
luacmartins commentedon Sep 26, 2024
PR merged
paultsimura commentedon Oct 1, 2024
Deployed to production on Oct 1. Payment is due on 2024-10-08
abekkala commentedon Oct 2, 2024
PAYMENT SUMMARY FOR OCT 08
Please complete checklist below
abekkala commentedon Oct 2, 2024
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:
[-][$250] [Search v2.3] - Default name is not displayed correctly for multiline system message thread[/-][+][HOLD for Payment OCT 08] [$250] [Search v2.3] - Default name is not displayed correctly for multiline system message thread[/+]paultsimura commentedon Oct 8, 2024
Regression Test Proposal
Do we agree 👍 or 👎
abekkala commentedon Oct 8, 2024
@Krishna2323 @paultsimura payments sent and contracts ended - thank you! 🎉