Repository navigation
Clear the merge-blocked onboarding flag when choosing Join Workspace - #103537
Conversation
Co-authored-by: Carlos Miceli <carlosmiceli@users.noreply.github.com>
|
The failing
Details
|
|
🤖 Web test steps verification results: ✅ pass After an @expensifail.com work email is blocked and you click "Got it", choosing "Join my company workspace" now opens the clean, editable work email form instead of the blocked "Got it" view. The PR's Tests section is still a TODO, so these steps come from the linked issue's reproduction steps; the JS console could not be checked in this run.
|
|
The The only check still failing is |
|
@aimane-chnaif 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 carlosmiceli has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
@MelvinBot When C+ approve the PR, it still request review from Internal Engineer even when the PR is merged. Create an issue for this and assign it to me. |
aimane-chnaif
left a comment
There was a problem hiding this comment.
Confirmed fix
before.fix.mov
after.fix.mov
|
I created Internal engineer review is still requested when a C+ approves an already-merged PR and assigned it to you. The issue uses this PR as the example. The PR merged at 00:28 UTC, the C+ approval came at 02:43 UTC, and A related internal issue covered the opposite case, where no internal engineer was requested. That issue is closed, so I didn't treat it as a duplicate. |
…ckedOnJoinWorkspace Clear the merge-blocked onboarding flag when choosing Join Workspace (cherry picked from commit 1481341) (cherry-picked to staging by puneetlath)
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 9.5.6-2 🚀
|
|
No help site update is needed. This bug fix makes "Join my company workspace" open the normal work email form, which is what you'd expect, and it doesn't make any sentence in Troubleshoot Adding Your Work Email incorrect. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.6-6 🚀
Bundle Size Analysis (Sentry): |







Explanation of Change
When a public-domain user's work email merge is blocked (for example, an Expensifail account),
AddWorkEmailsetsNVP_ONBOARDING.isMergingAccountBlocked = true. Pressing "Got it" with no intent selected clears only the error message and returns to the purpose step, leaving that flag set.The new "Join my company workspace" path then sends the user back to the work email step. Because the flag is still
true, that step renders the blocked view instead of the form, and its "Got it" returns the user to the purpose step again.This change calls the existing
clearOnboardingMergeAccountBlocked()when the user picks Join Workspace, so the work email step opens with a clean form. It also adds a UI test that fails without the fix.AI tests run locally:
tests/ui/OnboardingPurpose.tsx(10/10 pass; the new test fails without the fix),npm run linton changed files,npm run typecheck,npm run fmt(no changes),react-compiler-compliance-check checkon the changed page, and cspell (no issues in changed files).lint-changedandcheck-changedcould not resolve a merge base in the shallow checkout, so the same checks ran on explicit file paths instead. The full Jest suite and Storybook smoke test were not run locally.Fixed Issues
$ #103528
PROPOSAL: #103528 (comment)
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.
Offline tests
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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