-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Manual Requests] [No QA] Add OpenMoneyRequestsReportPage command #16926
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
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 |
luacmartins
left a comment
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
OpenMoneyRequestsReportPageread 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.openMoneyRequestsReportPagewith valid iouReportIDtransactions_onyx collection keyOffline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.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