83362 migrate settings profile part 2#87186
Conversation
|
@arosiclair 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: 575ac036a2
ℹ️ 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".
| [SCREENS.SETTINGS.PROFILE.DYNAMIC_NEW_CONTACT_METHOD]: () => require<ReactComponentModule>('../../../../pages/settings/Profile/Contacts/NewContactMethodPage').default, | ||
| [SCREENS.SETTINGS.PROFILE.NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE]: () => | ||
| require<ReactComponentModule>('../../../../pages/settings/Profile/Contacts/NewContactMethodConfirmMagicCodePage').default, |
There was a problem hiding this comment.
Register confirm magic code screen with dynamic key
SCREENS.SETTINGS.PROFILE.NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE was removed in this commit (replaced by DYNAMIC_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE), but this navigator still references the old key. As a result, the confirm page is not registered under the route name produced by linking (Dynamic_Settings_NewContactMethod_ConfirmMagicCode), so navigating to .../contact-methods/confirm-magic-code will fail at runtime.
Useful? React with 👍 / 👎.
| } | ||
| Navigation.navigate(ROUTES.SETTINGS_NEW_CONTACT_METHOD.getRoute(navigateBackTo)); | ||
| }, [navigateBackTo, pendingContactAction?.isVerifiedValidateActionCode]); | ||
| Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.SETTINGS_NEW_CONTACT_METHOD.path)); |
There was a problem hiding this comment.
Navigate to new-contact-method from base path
createDynamicRoute() appends to the current route, so calling it from the confirm screen generates .../confirm-magic-code/new-contact-method instead of a sibling path under contact methods. NewContactMethodPage then strips only new-contact-method for back navigation, which sends users back to the magic-code screen; since that flow resets verification state, users can be forced to re-verify when pressing back. This regresses the prior behavior where back returned to contact methods.
Useful? React with 👍 / 👎.
…ngs-profile-part-2
Explanation of Change
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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