ssr and loading states#181
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Caution Review failedThe pull request is closed. WalkthroughThe changes reorganize the compliance and framework overview functionality. Several components, hooks, and layouts in the "home" directory have been removed and replaced with new implementations under the "overview" section. New components include updated progress displays, status charts, loading states, and layouts. Data fetching is now handled by new async functions for compliance scores, framework categories, and frameworks. Additionally, the redirection logic and routing have been adjusted to reflect the new overview paths, and minor formatting improvements were applied in the database seed file. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant DP as DashboardPage
participant GS as getComplianceScores
participant GC as getComplianceCategories
participant FO as FrameworksOverview
participant DB as Database
U->>DP: Request overview (locale, orgId)
DP->>GS: Fetch compliance scores
GS->>DB: Query compliance data
DB-->>GS: Return compliance scores
DP->>GC: Fetch framework categories
GC->>DB: Query category data
DB-->>GC: Return framework categories
DP->>FO: Render overview with frameworks, complianceScores, frameworksWithCompliance
FO-->>U: Display updated compliance data
sequenceDiagram
participant U as User
participant L as Layout
participant Auth as auth
participant I18n as getI18n
participant SM as SecondaryMenu
participant R as Redirect
U->>L: Navigate to overview page
L->>Auth: Request user session
L->>I18n: Retrieve localization strings
Auth-->>L: Return session (with orgId)
alt Valid orgId
L->>SM: Render secondary menu with overview link
L->>Main: Render child components
L-->>U: Display overview layout
else Missing orgId
L->>R: Trigger redirection to authentication
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (22)
✨ 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 (
|
Summary by CodeRabbit
New Features
Refactor