Conversation
|
@dubielzyk-expensify @ishpaul777 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-03-04.at.2.49.39.AM.moviOS: NativeScreen.Recording.2025-03-02.at.10.58.53.PM.movScreen.Recording.2025-03-04.at.2.30.48.AM.moviOS: mWeb SafariScreen.Recording.2025-03-02.at.10.58.31.PM.movScreen.Recording.2025-03-02.at.10.43.16.PM.movScreen.Recording.2025-03-04.at.2.24.08.AM.movMacOS: Chrome / SafariScreen.Recording.2025-03-02.at.11.01.30.PM.movMacOS: Desktop |
|
oh i thought this is still WIP because it shows gray on K2, that's why left partial review, I am on it today! |
|
Bug: offline modal only visible when the generating PDF modal is dismissed Screen.Recording.2025-02-26.at.2.21.03.AM.mov |
|
Some small comments, Overall looks great! also we have some lint checks failing @Gonals |
It is still on WIP! 😆 |
5f7b338 to
a334576
Compare
|
@Gonals I was thinking if it would be possible to redirect user to browser with |
Potentially, but I'm going to try one more thing. I still have half a feeling this is all because we are in dev. I have put everything behind a beta, so we |
|
🚧 @Gonals has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Let's make sure everything else works as expected and give that a shot, then |
|
Everything else looks good, works well 🚀 |
Neat, then can you approve? 😁 |
|
✋ 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/grgia in version: 9.1.12-0 🚀
|
|
@Gonals Hello |
|
Already got linked but looks like this isn't quite working right - #58302 - seems like maybe we need to handle this with a shortLivedAuthToken or something on the Old Dot side? Let me know if this is a blocker or we can move forward |
Yes, it is behind a beta |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|
| const baseURL = addTrailingForwardSlash(getOldDotURLFromEnvironment(environment)); | ||
| const downloadFileName = `${reportName}.pdf`; | ||
| const pdfURL = `${baseURL}secure?secureType=pdfreport&filename=${fileName}&downloadName=${downloadFileName}`; | ||
| fileDownload(pdfURL, downloadFileName, '', Browser.isMobileSafari()); |
There was a problem hiding this comment.
We can explicitly pass true to the 3rd argument when calling this function to treat App downloads as an external link to avoid the CORS issue. More details here #61937 (comment)
HELD https://github.com/Expensify/Web-Expensify/pull/45644
Explanation of Change
Fixed Issues
$ #55810
PROPOSAL:
Tests
Offline tests
Offline, clicking the "Download as PDF" button should show a modal blocking the flow.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop