-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: onboarding redirect #918
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughRemoved the onboarding redirect from dashboard, simplified login/OTP UI, updated onboarding to use window.location.replace and a new POST helper, added route revalidation in the onboarding API, and adjusted UpgradeModal button types/keys. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant OB as Onboarding UI
participant API as POST /api/settings/onboarding
participant Cache as next/cache
U->>OB: Submit firstName, lastName
OB->>API: POST { firstName, lastName }
API->>API: Process onboarding
API->>Cache: revalidatePath("/onboarding")
API->>Cache: revalidatePath("/dashboard")
API-->>OB: { isMemberOfOrganization: boolean }
alt isMemberOfOrganization == true
OB->>OB: window.location.replace("/dashboard")
else
OB->>OB: showUpgradeModal()
Note over OB: Skip in modal uses window.location.replace("/dashboard")
end
rect rgba(230,250,230,0.5)
note right of OB: Errors show "Failed to complete onboarding"
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (6)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR: Fixes onboarding redirect to dashboard. Also includes minor tweaks.
Summary by CodeRabbit
New Features
Bug Fixes
Style