Fix webview tunnel flow entry routing, layout, and onboarding navigation - #1956
Fix webview tunnel flow entry routing, layout, and onboarding navigation#1956Tranquil-Flow wants to merge 6 commits into
Conversation
The root container had maxWidth: 430 and centered margin, which caused white side bars when the Android native shell loaded the webview edge-to-edge. Removing the constraint lets the app fill the full WebView viewport.
… is present The native shell loads index.html?verificationId=... but only / was registered as an entry route, so the wildcard redirect stripped query params and the app fell back to non-tunnel onboarding. Register both / and /index.html as entry paths via a shared entryRoute utility, redirecting to /tunnel/tour/1 when a verificationId is present. Add unit tests covering SDK launch and plain browser entry.
The Euclid Title component renders inline, so textAlign on the wrapper alone did not visually center the label. Add display: block to the Title style and textAlign: center on the wrapper div.
The seed phrase button in SocialSignOnMethodPickerScreen was routing to /settings/recovery-phrase, which has the wrong back/continue behavior for onboarding context. Navigate to /onboarding/recovery-phrase instead, preserving prompt-mock query state. Add a regression test for this path.
LaunchTour4Screen was missing the onSkip prop, making "Skip for now" a no-op. Pass onSkip={onNext} so it behaves like the primary action and advances the flow.
settingsScreens.test.tsx: Use vi.hoisted() for mockDocumentStore to avoid temporal dead zone from vi.mock hoisting. Switch expectLocation to getAllByTestId to handle multiple LocationDisplay elements when navigating to routes that also render LocationDisplay. recoverySupportScreens.test.tsx: Add missing borderRadius and RecoveryPhrase exports to the euclid mock so RecoveryPhraseScreen can render. Update returnTo tests to match actual behavior where SecretPhraseInputScreen navigates directly to the returnTo path, skipping the intermediate success screen.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe pull request introduces entry-route handling for the webview application, adding route utilities and an Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
/and/index.htmlentry paths so native WebView launches with?verificationId=...reach the tunnel flowmaxWidth: 430from root container for edge-to-edge rendering in Android WebView/onboarding/recovery-phraseinstead of the settings variantonSkipon tunnel tour step 4 so "Skip for now" advances the flowvi.mockhoisting issue, duplicateLocationDisplayelement queries, andreturnTotest expectations matching actual code behaviorTest plan
yarn nicepasses (lint, format, types)yarn buildsucceedsSummary by CodeRabbit
New Features
UI/Style