Refactor toggleProfileTool to remove usage of Onyx.Connect#67133
Refactor toggleProfileTool to remove usage of Onyx.Connect#67133tgolen merged 6 commits intoExpensify:mainfrom
toggleProfileTool to remove usage of Onyx.Connect#67133Conversation
toggleProfileTooltoggleProfileTool to remove usage of Onyx.Connect
|
@ikevin127 Please 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] |
|
I don't really think there is anything here for which we would need unit test so i skipped it, let me know if you think otherwise @ikevin127 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
cc @allgandalf
🟢 Reviewer checklist completed - will Approve once ☝️ is addressed. |
|
|
|
@ikevin127 please ready for your review again |
| */ | ||
| function toggleProfileTool() { | ||
| const toggle = () => Onyx.set(ONYXKEYS.APP_PROFILING_IN_PROGRESS, !isProfilingInProgress); | ||
| function toggleProfileTool({isProfilingInProgress}: ToggleProfileToolParams) { |
There was a problem hiding this comment.
I'd prefer simplifying this to:
| function toggleProfileTool({isProfilingInProgress}: ToggleProfileToolParams) { | |
| function toggleProfileTool(isProfilingInProgress = false) { |
|
✋ 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/tgolen in version: 9.1.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|
Explanation of Change
Fixed Issues
$ #67261
$ #67262
PROPOSAL:
Tests
Offline tests
QA Steps
Record Troubleshoot DataRecord Troubleshoot DataVerify that file is profiling downloaded successfully.
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
Screen.Recording.2025-07-25.at.12.26.03.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-07-25.at.12.36.47.PM.mov
iOS: Native
Screen.Recording.2025-07-25.at.12.24.47.PM.mov
iOS: mWeb Safari
Screen.Recording.2025-07-25.at.12.35.35.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-25.at.12.22.47.PM.mov
MacOS: Desktop
Screen.Recording.2025-07-25.at.12.23.12.PM.mov