refactor: thread onboarding status into openReport for report pages - #99685
refactor: thread onboarding status into openReport for report pages#99685daledah wants to merge 1 commit into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 401759e799
ℹ️ 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".
| isSelfTourViewed: guidedSetupAndTourStatus?.isSelfTourViewed, | ||
| hasCompletedGuidedSetupFlow: guidedSetupAndTourStatus?.hasCompletedGuidedSetupFlow, |
There was a problem hiding this comment.
Wait for onboarding status before opening the search report
On a cold load where NVP_ONBOARDING has not resolved yet but introSelected is already present, the selector maps the missing value to hasCompletedGuidedSetupFlow: true, so this explicit argument makes openReport() omit the pending user's guided-setup data. The effect deliberately excludes this status from its dependencies and marks the initial open complete, so loading the actual false value afterward does not retry; defer the call until the Onyx value has loaded or otherwise trigger one guarded open with the resolved status.
Useful? React with 👍 / 👎.
Explanation of Change
Fixed Issues
$ #66424
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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