[CORRUPTED] Synthetic Benchmark PR #76153 - Revert "Merge pull request #73676 from mkzie2/mkzie2-issue/70286"#20
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Benchmark PR Expensify#76153
Type: Corrupted (contains bugs)
Original PR Title: Revert "Merge pull request Expensify#73676 from mkzie2/mkzie2-issue/70286"
Original PR Description: ### Explanation of Change
Reverts Expensify#73676
Fixed Issues
$ Expensify#76086
Tests
Offline tests
None
QA Steps
Same as Tests
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))npm run compress-svg)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
Screen.Recording.2025-11-26.at.11.04.50.AM.mov
Original PR URL: Expensify#76153
PR Type
Bug fix
Description
Revert approval workflow changes that incorrectly preserved pending delete actions
Simplify pending action handling in workflow conversion logic
Remove helper functions and consolidate workflow update logic into main functions
Move approver removal handling from Member.ts to component level
Remove "Prevent Self Approvals" lock based on member count
Diagram Walkthrough
File Walkthrough
WorkflowUtils.ts
Simplify pending action handling in workflow conversionsrc/libs/WorkflowUtils.ts
DELETEpending actions for approvers andmembers
pendingActionassignment to always use the current pendingaction value
previousPendingAction ===CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETEMember.ts
Remove workflow handling from member removal functionsrc/libs/actions/Policy/Member.ts
approvalWorkflowsandallPersonalDetailsparameters fromremoveMembersfunction signatureemployee remains
ExpenseReportRulesSection.tsx
Remove member count lock from prevent self approvalssrc/pages/workspace/rules/ExpenseReportRulesSection.tsx
membersCountandshouldLockPreventSelfApprovalslocked by member count)
workflowApprovalsUnavailabledisabledproperty tofalseinstead ofshouldLockPreventSelfApprovalsPolicy.ts
Consolidate prevent self approval into single functionsrc/libs/actions/Policy/Policy.ts
getSetPolicyPreventSelfApprovalOnyxDatatosetPolicyPreventSelfApprovaland made it a direct API calldirectly
getSetPolicyPreventSelfApprovalOnyxDatahelperfunction
Workflow.ts
Consolidate workflow functions into direct API callssrc/libs/actions/Workflow.ts
getUpdateApprovalWorkflowOnyxDatatoupdateApprovalWorkflowand made it execute API call directly
getRemoveApprovalWorkflowOnyxDatatoremoveApprovalWorkflowand made it execute API call directly
OnyxDatatype importPolicyMemberTest.ts
Update tests for simplified removeMembers signaturetests/actions/PolicyMemberTest.ts
removeMembersto removeapprovalWorkflowsandallPersonalDetailsparametersWorkspaceMembersPage.tsx
Move workflow updates to component levelsrc/pages/workspace/WorkspaceMembersPage.tsx
removeApprovalWorkflowActionandupdateApprovalWorkflowupdateWorkflowDataOnApproverRemovalutilityremoveUsersfunctionworkflows accordingly
removeMemberscall to remove workflow-related parametersWorkspaceMemberDetailsPage.tsx
Move workflow and self-approval handling to componentsrc/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
setPolicyPreventSelfApprovaland workflow actionfunctions
updateWorkflowDataOnApproverRemovalutilityremoveMemberAndCloseModalcallbackremoveUsercallback to handle approver removal and workflowupdates
removeUserinstead ofremoveMemberAndCloseModalremoveMemberscall to remove workflow-related parameters