-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unify invoice report title in chats preview in Reports #59292
Unify invoice report title in chats preview in Reports #59292
Conversation
@shubham1206agra 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] |
…/58581-invoice-report-title
I've synced it up and fixed conflicts. |
src/libs/ReportUtils.ts
Outdated
@@ -9472,6 +9476,16 @@ function isTestTransactionReport(report: OnyxEntry<Report>): boolean { | |||
return isSelectedManagerMcTest(persionalDetails?.login); | |||
} | |||
|
|||
function getChatListItemReportName(action: ReportAction & {reportID: string; reportName?: string}): string { | |||
const report = getReport(action.reportID, allReports); |
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.
@rezkiy37 Please use report from search results only. Otherwise, it might give issues.
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.
I got your concert. I've fixed it here: 872eb38.
- Updated Search component to pass queryJSONHash to SearchList. - Modified SearchList to accept queryJSONHash and use it in rendering. - Enhanced ChatListItem to utilize queryJSONHash for fetching current search results. - Updated types to include queryJSONHash in ChatListItemProps.
…/58581-invoice-report-title
I've synced it up and fixed conflicts. |
…/58581-invoice-report-title
I've synced it up and fixed conflicts. |
@shubham1206agra just a friendly reminder. |
@rezkiy37 I will do the review today |
Reviewer Checklist
Screenshots/Videos |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #58581 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.1.23-2 🚀
|
Explanation of Change
The PR manages a case with OD and ND invoice titles in Reports. It should render the
Invoice AAAA-MM-DD
pattern for OD ones but the "owes" pattern for ND ones.Fixed Issues
$ #58581
PROPOSAL: N/A
Tests
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop