Repository navigation
Add a Record Troubleshoot Data toggle for one-click export of all debug context - #63668
Conversation
|
|
|
If this PR isn't urgent, I can start the review tomorrow. |
| link.download = 'troubleshoot.zip'; | ||
| document.body.appendChild(link); | ||
| link.click(); | ||
| document.body.removeChild(link); |
There was a problem hiding this comment.
I think we should reset zipRef after the download to prevent duplicate logs
| document.body.removeChild(link); | |
| document.body.removeChild(link); | |
| zipRef.current = new JSZip(); | |
| setFile(undefined); |
Screen.Recording.2025-06-16.at.10.30.53.mp4
…01-add-record-troubleshoot-data-toggle
|
@suneox Conflicts resolved, I also applied the zip clearing logic to all platforms as requested, feel free to give it another look! |
|
@JKobrynski It looks like the unit test is failed in the |
…01-add-record-troubleshoot-data-toggle
|
Tests should be fine now. @fabioh8010 helped me resolve this issue, he had a similar one on his PR. CC: @suneox |
There was a problem hiding this comment.
@JKobrynski You can just add the following mock to jest/setup.ts and that should be enough, this file is not needed. Could you test?
jest.mock('react-native-nitro-sqlite', () => ({
open: jest.fn(),
}));There was a problem hiding this comment.
It works, thanks!
There was a problem hiding this comment.
Could you add a types.ts file to this directory that will contain the type that represents the object of the two files? Platform files like this one should have this types.ts file.
There was a problem hiding this comment.
Could you add a types.ts file to this directory that will contain the type that represents the object of the two files? Platform files like this one should have this types.ts file.
|
Seems like all check are passing now. Feel free to take another look! CC: @fabioh8010 @suneox |
suneox
left a comment
There was a problem hiding this comment.
Overall, the change set LGTM
|
✋ 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/mjasikowski in version: 9.1.72-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.1.72-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.72-10 🚀
|

Explanation of Change
Fixed Issues
$ #62401
PROPOSAL: https://github.com/callstack-internal/expensify-issues/issues/974#issuecomment-2876837967
Tests
Record Troubleshoot Dataswitch on the very topDownloadbutton under the switchNew Expensify Devin case of the dev app) and make sure you can share the files by clicking theSharebutton under the switchSharebutton under the switchOn all platforms, the zip archive should contain the following files:
If you have any doubts about the testing steps, feel free to check the attached recordings.
Offline tests
N/A
QA Steps
Same as Tests section above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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-compressed.webm
Android: mWeb Chrome
chrome-compressed.webm
iOS: Native
ios-compressed.mp4
iOS: mWeb Safari
safari-compressed.mp4
MacOS: Chrome / Safari
web-compressed.mov
MacOS: Desktop
desktop-compressed.mov