Fix auth legal navigation - #2330
Conversation
|
🤖 Review skipped: Repository rate limit exceeded. Free accounts are limited to 2 reviews per 4 hours per repository. Upgrade to a paid plan for unlimited reviews. |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Warning Review limit reached
Next review available in: 27 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
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 |
Reviewer's GuideAdds legal context and navigation for authentication flows on web and mobile, including Terms/Privacy disclosure during registration, stable home navigation on web, public access to legal routes, and native opening/reporting of legal documents, backed by new tests and a TDD plan document. Sequence diagram for mobile legal document opening during registrationsequenceDiagram
actor User
participant LoginScreen
participant Linking
participant captureException
User->>LoginScreen: tap TermsOfService link
LoginScreen->>LoginScreen: openLegalDocument(terms)
alt open succeeds
LoginScreen->>Linking: openURL(serverUrl/terms)
Linking-->>LoginScreen: resolved
else open fails
LoginScreen->>Linking: openURL(serverUrl/terms)
Linking-->>LoginScreen: rejected error
LoginScreen->>captureException: captureException(error, source login-screen-open-legal-document, document terms)
LoginScreen->>User: [setError shows "Could not open the Terms of Service. Try again."]
end
User->>LoginScreen: tap PrivacyPolicy link
LoginScreen->>LoginScreen: openLegalDocument(privacy)
alt open succeeds
LoginScreen->>Linking: openURL(serverUrl/privacy)
Linking-->>LoginScreen: resolved
else open fails
LoginScreen->>Linking: openURL(serverUrl/privacy)
Linking-->>LoginScreen: rejected error
LoginScreen->>captureException: captureException(error, source login-screen-open-legal-document, document privacy)
LoginScreen->>User: [setError shows "Could not open the Privacy Policy. Try again."]
end
Flow diagram for web AuthGate public legal routes and login navigationflowchart TD
Request[Incoming request to web app]
GetPath[Read location pathname]
CheckPublic{{pathname in PUBLIC_PATHS}}
CheckAuth{{user is authenticated}}
Outlet[Render outlet content]
Login[Navigate to /login]
Request --> GetPath --> CheckPublic
CheckPublic -->|yes: /, /login, /privacy, /reset-password, /terms| Outlet
CheckPublic -->|no| CheckAuth
CheckAuth -->|yes| Outlet
CheckAuth -->|no| Login
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Summary by QodoFix auth legal navigation across web and iOS registration
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Mobile PreviewScan to open on device:
To test on device:
|
|
Storybook previews for This comment updates automatically on each PR push. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
186 rules✅ Skills:
fix-provider, write-tests, cloudflare 1.
|
|
🤖 Review skipped: Repository rate limit exceeded. Free accounts are limited to 2 reviews per 4 hours per repository. Upgrade to a paid plan for unlimited reviews. |
Summary
Validation
pnpm testpnpm linttsc --noEmitpnpm --dir packages/web buildpnpm --dir packages/web build-storybookpnpm --dir packages/mobile build-storybookFixes #2101