Fix/37448: Incorrect title thread#38267
Conversation
|
@mkhutornyi 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] |
|
@mkhutornyi Ping to review the PR in case you miss it |
| * If we change this function be sure to update the backend as well. | ||
| */ | ||
| function getForReportAction(reportID: string | undefined, reportAction: OnyxEntry<ReportAction>): string { | ||
| function getForReportAction(reportID: string | undefined, reportAction: OnyxEntry<ReportAction> | ReportAction | Record<string, never>): string { |
There was a problem hiding this comment.
I don't like updating type of reportAction here.
If this causes TS error in other place, fix it to match OnyxEntry<ReportAction> instead of fixing here.
There was a problem hiding this comment.
- Do you have any idea to do like you mentioned?
- Additionally, I just tested the current implementation and there is no TS error in other place
There was a problem hiding this comment.
ok, I am fine with this as already existing pattern in other place
| @@ -0,0 +1,32 @@ | |||
| import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; | |||
There was a problem hiding this comment.
I see that this is to avoid cycle dependency.
Please add comment why this separate file is needed.
|
Please merge main. I will check shortly |
|
I merged main |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.movMacOS: Desktopdesktop.mov |
| return `${parentReportActionMessage} (${Localize.translateLocal('common.archived')})`; | ||
| } | ||
| if (ReportActionsUtils.isModifiedExpenseAction(parentReportAction)) { | ||
| return ModifiedExpenseMessage.getForReportAction(report?.reportID, parentReportAction); |
There was a problem hiding this comment.
We should have used formatReportLastMessageText here similar to other cases above. More context here: #49518


Details
Fixed Issues
$ #37448
PROPOSAL: #37448 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-03-14.at.08.43.31.mov
Android: mWeb Chrome
Screen.Recording.2024-03-14.at.08.29.51.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-03-14.at.08.41.30.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-14.at.08.23.58.mov
MacOS: Desktop
Screen.Recording.2024-03-14.at.08.46.49.mov