-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Feature: Implement ChangeTransactionsReport #58597
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
Feature: Implement ChangeTransactionsReport #58597
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 |
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.
NAB
Co-authored-by: rayane-d <[email protected]>
✋ 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: '', | ||
}, | ||
], |
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.
Details
Fixed Issues
$ #57468
PROPOSAL: N/A
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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.