[CP Staging] Revert "Add rhpHomePage variant (D) to onboarding A/B/C/D test" (#85273)#85849
Conversation
This reverts merge commit d1f626f because the control variant regressed — it no longer lands on the Home view after onboarding. Reverting to restore correct behavior while the fix is reworked. Made-with: Cursor
|
@mananjadhav 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] |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb93dd25ee
ℹ️ 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".
| if (shouldOpenRHPVariant()) { | ||
| handleRHPVariantNavigation(onboardingPolicyID); |
There was a problem hiding this comment.
Keep passing the RHP variant into post-onboarding navigation
On web, completeOnboarding() still switches to API.makeRequestWithSideEffects specifically so the caller can read nvp_onboardingRHPVariant from the response (src/libs/actions/Report/index.ts:5028-5034), but this revert removes that variant from the navigateAfterOnboarding*() call chain and makes shouldOpenRHPVariant() rely only on the module-level Onyx.connectWithoutView cache. When a micro-company user is assigned rhpConciergeDm or rhpAdminsRoom, that callback can still be stale immediately after await completeOnboarding(), so they intermittently fall through to the control path instead of opening the workspace overview with the side panel.
Useful? React with 👍 / 👎.
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…311444790-1 🍒 Cherry pick PR #85849 to staging 🍒
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚀 Cherry-picked to staging by https://github.com/cristipaval in version: 9.3.40-11 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/cristipaval in version: 9.3.41-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Reverts #85273.
The
controlvariant regressed after that PR — micro-company users assigned tocontrolno longer land on the Home view after onboarding. Instead, they are navigated to the Workspace Overview / admins room chat, which is incorrect.Reverting to restore the correct control variant behavior while the fix is reworked with proper handling for all variants including
rhpHomePage.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/610149
Tests
await Onyx.get('nvp_onboardingRHPVariant')in consoleOffline tests
N/A — variant assignment happens during onboarding which requires network.
QA Steps
Same as Tests above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari