-
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
fix: [Search v2.3] - Default name is not displayed correctly for multiline system message thread. #49518
fix: [Search v2.3] - Default name is not displayed correctly for multiline system message thread. #49518
Conversation
…iline system message thread. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@paultsimura Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosiOS: Native2024-09-20.-.18.41.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-20.at.12.33.34.mp4iOS: mWeb Safari2024-09-20.-.18.41.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-09-20.at.12.32.38.mp4 |
@shawnborton what is your take on this report name when clicking the "In" tab? Web, the full report name is shown: 2024-09-20.-.12.45.-.Screen.Recording.2024-09-20.at.12.45.27.mp4iOS native, the name is truncated to take 1 line: |
The iOS version is correct - this should only be 1 line. |
Thanks. |
@paultsimura, I will check that in a few hours or tomorrow, though I believe it is not directly related to the original issue, as the issue seems to be in the SearchFiltersChatsSelector component. |
@Krishna2323 I've dug deeper into this issue. Seems like the topmost root cause is how we build the report name for reports descending from a My suggestion is to update these lines similar to how we use Lines 3766 to 3768 in 6bef045
if (!isEmptyObject(parentReportAction) && ReportActionsUtils.isModifiedExpenseAction(parentReportAction)) {
const formattedName = ModifiedExpenseMessage.getForReportAction(report?.reportID, parentReportAction);
return formatReportLastMessageText(formattedName);
} This solves all of our known issues with the multiline report name. |
will work on this today. |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@paultsimura, thanks a lot for looking into it🙏🏻, I have made the changes and it works great. I'm updating the videos. |
@paultsimura all done. |
One final check with @shawnborton now that we've fixed the multiline report name. Attaching a screenshot of a complex query: |
@shawnborton is ooo, so I'm tagging @Expensify/design for another look. FWIW we're about to merge this PR that replaces the custom query header, so I wouldn't spend too much time fixing edge cases for it. |
I kinda think it should just be one—two lines isn't the worst thing in the universe, but one line just looks better and is much less distracting. Otherwise I feel like this is looking pretty good. |
Ok, thanks y'all 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.41-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
Details
Fixed Issues
$ #49330
PROPOSAL: #49330 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4