Feature: Implement ChangeTransactionsReport#58597
Feature: Implement ChangeTransactionsReport#58597luacmartins merged 84 commits intoExpensify:mainfrom
Conversation
…eTransactionsReport
|
@luacmartins can you please provide more detailed steps for testing this? |
|
@waterim you can try the following:
Screen.Recording.2025-03-27.at.4.06.49.PM.movI tried the steps above, but it doesn't seem like we trigger an API request at all. Also the report name shown in the menu item seems incorrect, note that's showing |
…eTransactionsReport
|
@waterim do you have an ETA in mind to get this one in review? |
|
Yes, im working now on this one |
|
Will open a PR today evening |
Co-authored-by: rayane-d <77965000+rayane-d@users.noreply.github.com>
|
✋ 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/luacmartins in version: 9.1.28-0 🚀
|
|
@luacmartins @DylanDylann @sumo-slonik What do we need to QA here? |
|
@mvtglobally I added steps to the OP |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
|
Coming from #60225 (BugZero Checklist), a case was missed during the original design: we need to remove the existing logic that adds an optimistic moved tracked expense |
| function getReportDetails(reportID: string): {reportName: string; reportUrl: string} { | ||
| const report = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`]; | ||
| return { | ||
| reportName: report?.reportName ?? '', |
There was a problem hiding this comment.
We should have got the reportName from getReportName(report), more details in this issue:
| actionName: CONST.REPORT.ACTIONS.TYPE.ADD_COMMENT, | ||
| originalMessage: { | ||
| deleted: DateUtils.getDBTime(), | ||
| }, | ||
| message: [ | ||
| { | ||
| deleted: DateUtils.getDBTime(), | ||
| type: CONST.REPORT.MESSAGE.TYPE.TEXT, | ||
| text: '', | ||
| }, | ||
| ], |
| children = <ReportActionItemBasicMessage message={getPolicyChangeMessage(action)} />; | ||
| } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.DELETED_TRANSACTION) { | ||
| children = <ReportActionItemBasicMessage message={getDeletedTransactionMessage(action)} />; | ||
| } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.MOVED_TRANSACTION) { |
There was a problem hiding this comment.
We forgot to handle this action type in LHN, which causes this bug #61009 (comment)
Details
Fixed Issues
$ #57468
PROPOSAL: N/A
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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.