Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: phone verification ends at CYA screen always #6266

Merged
merged 4 commits into from
Dec 2, 2024

Conversation

kathaypacific
Copy link
Collaborator

@kathaypacific kathaypacific commented Nov 28, 2024

Description

The phone verification flow is hard coded to finish at the onboarding screens, which is unexpected because it can only be launched from the settings flow. This was raised at the release testing of the last release.

This PR makes the final screen in the flow configurable.

Test plan

https://linear.app/valora/issue/RET-641/[wallet]-user-not-seeing-updated-ota-translations#comment-15a73164

Related issues

Backwards compatibility

Y

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

@@ -60,10 +60,6 @@ describe('VerificationStartScreen', () => {
})
const { getByText, getByTestId, queryByTestId, queryByText } = renderComponent()

await act(() => {
Copy link
Collaborator Author

@kathaypacific kathaypacific Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes are to fix the (unrelated) act warnings

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.96%. Comparing base (1ea0927) to head (e275396).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6266      +/-   ##
==========================================
+ Coverage   88.95%   88.96%   +0.01%     
==========================================
  Files         739      739              
  Lines       31644    31649       +5     
  Branches     5892     5895       +3     
==========================================
+ Hits        28149    28158       +9     
+ Misses       3450     3446       -4     
  Partials       45       45              
Files with missing lines Coverage Δ
src/verify/VerificationCodeInputScreen.tsx 95.55% <100.00%> (ø)
src/verify/VerificationStartScreen.tsx 91.86% <100.00%> (+0.34%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ea0927...e275396. Read the comment docs.

Comment on lines 92 to 93
verificationCompletionScreen: !route.params?.hasOnboarded
? Screens.OnboardingSuccessScreen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this special case? maybe we can add a short comment

Copy link
Contributor

@bakoushin bakoushin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💅

Copy link

emerge-tools bot commented Dec 2, 2024

📸 Snapshot Test

Base build not found

No build was found for the base commit 1ea0927. This is required to generate a snapshot diff for your pull request.

It's possible that you created a branch off the base commit before all of the CI steps have finished processing, e.g. the one that uploads a build to our system. If that's the case, no problem! Just wait and this will eventually resolve.


🛸 Powered by Emerge Tools

@kathaypacific kathaypacific added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit a31429b Dec 2, 2024
15 of 16 checks passed
@kathaypacific kathaypacific deleted the kathy/fix-phone-verification-redirect branch December 2, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants