Fix statement download crash and invalid date#14454
Conversation
|
Looks like you modified Instead, all new API commands should use API.js, and follow our guidelines for writing new API commands. Unsure if your change is okay? Drop a note in #expensify-open-source! |
|
Changes complete, just need to run through checklist |
|
@thesahindia @marcochavezf 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] |
|
This is not related to the PR but I am not sure why at mWeb the page is blank. Screen.Recording.2023-01-30.at.11.10.12.PM.movWhen we use a url with wrong date format (e.g. 20221) the RHN will open and close. I think we can improve this by not opening the RHN if we can or by showing a hint on that page asking the user to use the right format but It is an edge case and not related to the PR Screen.Recording.2023-01-30.at.8.55.59.PM.mov |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-01-30.at.11.08.37.PM.movMobile Web - ChromeScreen.Recording.2023-01-30.at.11.11.23.PM.movMobile Web - SafariScreen.Recording.2023-01-30.at.11.10.12.PM.movDesktopScreen.Recording.2023-01-30.at.11.02.41.PM.moviOSScreen.Recording.2023-01-30.at.11.12.52.PM.movAndroidScreen.Recording.2023-01-30.at.11.12.12.PM.mov |
thesahindia
left a comment
There was a problem hiding this comment.
Looks good to me
cc: @marcochavezf
|
Gentle bump @marcochavezf |
| } | ||
|
|
||
| Growl.show(this.props.translate('statementPage.generatingPDF'), CONST.GROWL.NOTICE, 5000); | ||
| Growl.show(this.props.translate('statementPage.generatingPDF'), CONST.GROWL.SUCCESS, 3000); |
There was a problem hiding this comment.
I suppose we'll get rid of the Growl alerts eventually (maybe by using an optimistic message?). But since it's fixing a crash I don't think it's a blocker
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.2.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
Details
Fixed Issues
$ #14395
Tests
There isn't an easy way to test this on devices that are not web. You'll have to overwrite a button to navigate you to the statement. On web, you can just access the statement by changing the URL to
http://localhost:8080/statements/202211/This is what I do:
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js
Lines 172 to 176 in 9489c1b
Update to
onSelected: () => Navigation.navigate(ROUTES.getWalletStatementWithDateRoute('202211')),This will override the new chat button to open up the statement for November, 2022
WebView to production from staging/dev doesn't work right now - so as a note just test this on Web and I'll have all platforms tested on production
Offline tests
QA Steps
INTERNAL QA ONLY
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.Screenshots/Videos
Web
Screen.Recording.2023-01-27.at.12.15.08.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-01-27.at.12.16.14.PM.mov
Mobile Web - Safari
Desktop
Screen.Recording.2023-01-27.at.1.40.39.PM.mov
iOS
Screen.Recording.2023-01-27.at.12.27.56.PM.mov
Android
Emulator not working