Conversation
|
@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] |
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.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 25e22425df
ℹ️ 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".
| const shouldHideBackButton = onboardingValues?.shouldValidate === false && route.params?.backTo === ROUTES.ONBOARDING_PERSONAL_DETAILS.getRoute(); | ||
| const onboardingStep = useOnboardingStepCounter(SCREENS.ONBOARDING.WORKSPACES); | ||
| const backPath = useDynamicBackPath(DYNAMIC_ROUTES.ONBOARDING_WORKSPACES.path); | ||
| const shouldHideBackButton = onboardingValues?.shouldValidate === false && backPath.endsWith(`/${DYNAMIC_ROUTES.ONBOARDING_PERSONAL_DETAILS.path}`); |
There was a problem hiding this comment.
Restore hide-back check for private-domain workspaces flow
The new shouldHideBackButton condition no longer matches the path shape produced when users arrive at workspaces from BaseOnboardingPrivateDomain: useDynamicBackPath(DYNAMIC_ROUTES.ONBOARDING_WORKSPACES.path) resolves to a route ending in /private-domain, not /personal-details. In the onboardingValues.shouldValidate === false case this makes the back button visible again, and pressing it now sends users back into the private-domain/work-email branch that the previous backTo === ONBOARDING_PERSONAL_DETAILS guard intentionally hid.
Useful? React with 👍 / 👎.
|
No product review needed |
Explanation of Change
Fixed Issues
$ #83871
PROPOSAL:
Tests
Same QA step
Offline tests
QA Steps
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari