refactor: enhance organization redirection logic across dashboard lay…#301
Conversation
…outs - Added checks for active organization ID in the layout and dashboard page to ensure proper redirection. - Simplified the session handling in the setup page and updated the Onboarding component for improved clarity and modularity. - Removed unnecessary authentication checks in the frameworks layout to streamline the component structure.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request refactors several components across the dashboard, setup, and authentication areas. In the dashboard pages, session management, internationalization, and redirection logic have been either removed or streamlined; the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant DP as DashboardPage
participant P as Params Resolver
U->>DP: Request Dashboard Page
DP->>P: Await params { orgId }
P-->>DP: Return { orgId }
DP->>DP: Redirect to "/{orgId}/frameworks"
sequenceDiagram
participant U as User
participant L as Layout Component
participant S as Session Checker
U->>L: Request Dashboard Layout
L->>S: Verify session & activeOrganizationId
alt Missing activeOrganizationId
L->>U: Redirect to "/"
else Valid activeOrganizationId
L->>U: Render Dashboard Layout
end
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
✨ Finishing Touches
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:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…outs
Summary by CodeRabbit
New Features
Style