Repository navigation
feat: [CFI] Add Approver row on the member invite confirmation page - #84511
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64f6cc9c70
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…without forwardsTo
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product 👍
|
@Ollyws Could you prioritise reviewing this? |
|
Yeah will get to it asap. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: HybridApp03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4 |
|
Looks good, will do a little more testing and try to have it finished off tomorrow. |
…d-Approver-row-on-the-member-invite-confirmation-page
|
Apologies for the delay just trying to make sure we don't have to revert this a 3rd time. |
|
@TaduJR I'm getting the following inconsistent behaviour:
Are you able to reproduce this? Screen.Recording.2026-03-20.at.17.40.31.mov |
…d-Approver-row-on-the-member-invite-confirmation-page
|
This is a backend bug. The client-side optimistic data correctly computes The server's This is a pre-existing backend issue that affects other flows beyond this feature BTW FYI You can easily reproduced this with
|
inimaga
left a comment
There was a problem hiding this comment.
3rd time is the charm. I'll follow-up on the backend bug in a separate issue.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @inimaga has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/inimaga in version: 9.3.50-0 🚀
Bundle Size Analysis (Sentry): |
|
I have failed to help you. I let you down and for that I am sorry. Please try again later. This may be due to a Claude outage (check here). Failure details: https://github.com/Expensify/Expensify/actions/runs/23647045642 |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.50-8 🚀
|
| const approverDetails = getPersonalDetailByEmail(workspaceInviteApproverDraft); | ||
|
|
||
| const isControl = isControlPolicy(policy); | ||
| const shouldShowApproverRow = isControl && policy?.approvalMode === CONST.POLICY.APPROVAL_MODE.ADVANCED && policy?.areWorkflowsEnabled; |
There was a problem hiding this comment.
Heads up, coming from #100728.
This gate only lets ADVANCED workspaces through, so the Approver row never shows on Dynamic External Workflow (DEW) workspaces. DEW also routes each member to their own approver, and #83017 had already made the Workflows page treat DYNAMICEXTERNAL like ADVANCED before this PR was opened. Admins on DEW workspaces couldn't set an approver at invite time, unlike Classic. Fixed in #103300.
Explanation of Change
This PR adds an Approver row to the member invite confirmation page for Control workspaces with advanced approvals enabled.
Fixed Issues
$ #79157
PROPOSAL: #79157 (comment)
Tests
Prerequisites
Prerequisites
Test 1: Approver row visibility
Test 2: Approver selection
Test 3: Approver row should NOT appear for
Test 4: Multiple invitees share same approver
Test 5: Regression — Navigation back from approver page (#81594)
Test 6: Regression — Search field threshold on approver page (#81598)
Test 7: Regression — Company Cards assign card flow (#81601)
Test 8: Regression — Approver field missing after deleting workflow (#83472)
Precondition: Member B is already a workspace member.
Test 9: Regression — Approver field shown after removing second approver offline (#83474)
Precondition: Member B is already a workspace member.
Test 10: Regression — RHP reopens confirm page after changing member (#83484)
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
Android-Native.mp4
Android: mWeb Chrome
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-Safari.mp4
MacOS: Chrome / Safari
Mac-Chrome.mp4
Regression Tests:
Mac-Chrome.mp4
Mac-Chrome-1.mp4