-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Manual Requests] [No QA] Add OpenMoneyRequestsReportPage command #16926
Conversation
DOWNLOAD: 'download_', | ||
POLICY: 'policy_', | ||
POLICY_MEMBER_LIST: 'policyMemberList_', | ||
REPORT: 'report_', | ||
REPORT_ACTIONS: 'reportActions_', | ||
REPORT_ACTIONS_DRAFTS: 'reportActionsDrafts_', | ||
REPORT_DRAFT_COMMENT: 'reportDraftComment_', | ||
REPORT_DRAFT_COMMENT_NUMBER_OF_LINES: 'reportDraftCommentNumberOfLines_', | ||
REPORT_ACTIONS_DRAFTS: 'reportActionsDrafts_', | ||
REPORT_USER_IS_TYPING: 'reportUserIsTyping_', | ||
POLICY: 'policy_', | ||
REPORT_IS_COMPOSER_FULL_SIZE: 'reportIsComposerFullSize_', | ||
POLICY_MEMBER_LIST: 'policyMemberList_', | ||
DOWNLOAD: 'download_', | ||
REPORT_USER_IS_TYPING: 'reportUserIsTyping_', | ||
TRANSACTION: 'transactions_', |
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.
Reshuffled this so its in alphabetcal order.
@aimane-chnaif @marcaaron One of you needs to 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] |
@mountiny does this require C+ review? |
oh sorry, I noticed you removed me already 🙂 |
I dont think this will require C+ review. Thank you Aimane! |
@luacmartins Added screenshots of the tested command and the response, its looking good. Given the command is not called I think we dont have to hold on the Web-E PR |
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!
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
👀 ing at this |
onyxMethod: CONST.ONYX.METHOD.MERGE, | ||
key: ONYXKEYS.IOU, | ||
value: { | ||
loading: true, |
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, I don't think it needs to be done now. But anyone else think it's weird that we have an IOU
key that only exists to set a loading: Boolean
state?
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.
Yea, this was pretty confusing to me. I don't think we should tackle it as part of this PR, but this is definitely something that we should consider refactoring.
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.
Yes, I felt the same but I just wanted to keep the scope simple and mimic what we had for the OpenPaymentsDetails page.
Thinking through the above comment some more... Tracking the loading state of something like a blocking "read" command could maybe look different if we can reimagine how it might work with hooks. const {loading, errors} = useAction(Report.openMoneyRequestsReportPage) not really sure how that implementation would work, but just thinking out loud on it. I find it slightly confusing to connect which actions are triggering which loading states or errors sometimes. |
✋ 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/marcaaron in version: 1.3.1-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.1-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.1-3 🚀
|
Details
Adding
OpenMoneyRequestsReportPage
read command call to pull transaction data. This is not used anywhere in the product yet.Related Web-E PR https://github.com/Expensify/Web-Expensify/pull/36959
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270585
Tests
Report.openMoneyRequestsReportPage
with valid iouReportIDtransactions_
onyx collection keyOffline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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.Screenshots/Videos
No visible changes in the app so nothing to show here.
Response from a command:
Screenshot from db

Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android