[No QA] Create control workspace for specific accounting options#65462
[No QA] Create control workspace for specific accounting options#65462srikarparsi merged 29 commits intomainfrom
Conversation
|
Hey there @eh2077, just a heads up. Im not super familiar with App code and besides the main logic that i wanted a good portion was written by AI. Some of its choices were weird and i cleaned it up, but if you know ways to further simplify the code please let me know. |
|
Sounds good — I’ll take a look and suggest any simplifications I find. |
src/pages/workspace/accounting/reconciliation/CardReconciliationPage.tsx
Outdated
Show resolved
Hide resolved
| if (isDraftReportLocal) { | ||
| const workspaceData = buildPolicyData(undefined, policy?.makeMeAdmin, policy?.name, policy?.id, chatReport?.reportID, CONST.ONBOARDING_CHOICES.TRACK_WORKSPACE); | ||
| const workspaceData = buildPolicyData({ | ||
| policyOwnerEmail: undefined, |
There was a problem hiding this comment.
| policyOwnerEmail: undefined, |
There was a problem hiding this comment.
i know this looks odd but this was keeping the same functionality as before where policyOwnerEmail was passed as undefined. If i remove it then i believe empty string will be used as default. Not sure if that will break something.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-09.at.2.27.36.AM.movAndroid: mWeb ChromeiOS: HybridAppSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-07-09.at.02.16.21.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-07-09.at.02.18.32.mp4MacOS: Chrome / SafariScreen.Recording.2025-07-09.at.2.09.17.AM.movMacOS: DesktopScreen.Recording.2025-07-09.at.2.55.01.AM.mov |
|
🎯 @ishpaul777, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #65693. |
|
✋ 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/srikarparsi in version: 9.1.79-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.79-11 🚀
|
Explanation of Change
Things i did,
POLICY_CONNECTIONS_TYPE_CORPORATEwhich is a list of connections that should make a corporate workspace. The list was given to me on slack.this.CONNECTIONS.NAME.QBDetc and added missing names to POLICY.CONNECTIONS.NAME. (i think this made the code more complicated than it needed to be but i wanted to reuse constants)Fixed Issues
$ https://github.com/Expensify/Expensify/issues/515443
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
None, cannot test this until the auth goes code live. I'll test it once the auth PR goes live.
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop