Fix admin invite onboarding task#91950
Open
KJ21-ENG wants to merge 3 commits into
Open
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@cretadn22 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] |
7 tasks
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35aa854888
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Contributor
Author
|
@cretadn22 Kind bump here. Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
This PR fixes the invite onboarding flow for workspace admin invites when the invited user has already completed the regular guided setup flow.
Previously,
getGuidedSetupDataForOpenReportreturned early whenhasCompletedGuidedSetupFlowwas already true, so the pending admin invite onboarding task was not queued and the concierge chat did not show the Review your workspace settings step. The updated logic allows supported pending invite onboarding choices to run even when regular guided setup has already been completed, while still blocking completed invite onboarding and duplicate queued setup.This also waits for the corrected invite onboarding state before opening the report from the inbox route, so invite
choice/inviteTypevalues loaded during app startup can trigger the guided setup flow.Fixed Issues
$ #90933
PROPOSAL: #90933 (comment)
Tests
Targeted checks run locally:
npx prettier --write src/libs/OnboardingUtils.ts src/libs/actions/Report/index.ts src/pages/inbox/ReportFetchHandler.tsx tests/actions/ReportTest.tsnpm test -- tests/actions/ReportTest.ts --runInBand -t getGuidedSetupDataForOpenReportnpx eslint --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --quiet --concurrency=auto --no-warn-ignored src/libs/OnboardingUtils.ts src/libs/actions/Report/index.ts src/pages/inbox/ReportFetchHandler.tsx tests/actions/ReportTest.tsnpm run react-compiler-compliance-check check src/pages/inbox/ReportFetchHandler.tsx src/libs/OnboardingUtils.ts src/libs/actions/Report/index.ts tests/actions/ReportTest.tsgit diff --checkFollow-up cleanup checks run locally after addressing review comments:
npx prettier --write src/libs/OnboardingUtils.ts src/libs/actions/Report/index.tsnpm test -- tests/actions/ReportTest.ts --runInBand -t getGuidedSetupDataForOpenReportnpm run react-compiler-compliance-check check src/libs/OnboardingUtils.ts src/libs/actions/Report/index.tsgit diff --check -- src/libs/OnboardingUtils.ts src/libs/actions/Report/index.tsnpx eslint --no-cache --quiet --no-warn-ignored src/libs/OnboardingUtils.ts src/libs/actions/Report/index.tsnpm run typecheck-tsgowas also run and failed only on existing unrelated errors inVictoryChartBarGroup.tsx,MapView/utils.ts, andConvertGpsPointsTo2DArray.ts.Offline tests
N/A - this change does not add new offline behavior or network handling. It only changes when pending invite onboarding is allowed to queue after app state loads.
QA Steps
Same as Tests.
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.native.mov
Android: mWeb Chrome
android.mweb.mov
iOS: Native
ios.native.mov
iOS: mWeb Safari
ios.mweb.mov
MacOS: Chrome / Safari
mac.desktop.chrome.mp4