Evidence Page improvements + refactoring packages/data for evidence tasks#174
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Warning Rate limit exceeded@Marfuen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 17 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (95)
WalkthroughThis pull request removes several obsolete server actions and a custom hook for framework management while refactoring UI components to simplify data handling. It updates authentication and redirection logic on dashboard and control pages, revises link routing in table components, and adjusts form and localization details. In addition, many new JSON files have been added for evidence and policy metadata with associated departmental information, and the database schema and seeding scripts have been updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant DP as DashboardPage
participant Auth as auth()
participant GF as getFrameworks()
participant FO as FrameworksOverview
U->>DP: Request Dashboard Page
DP->>Auth: Execute auth()
Auth-->>DP: Return user session (with organizationId)
alt organizationId exists
DP->>GF: Call getFrameworks(organizationId)
GF-->>DP: Return frameworks data
DP->>FO: Render FrameworksOverview(frameworks)
else No organizationId
DP->>U: Redirect to Home ("/")
end
sequenceDiagram
participant U as User
participant SCP as SingleControlPage
participant Auth as auth()
participant GC as getControl()
participant SC as SingleControl
U->>SCP: Request Single Control Page (with control id)
SCP->>Auth: Perform user authentication
Auth-->>SCP: Return session with organizationId
SCP->>GC: Call getControl(controlId, organizationId)
alt Control found
GC-->>SCP: Return control data (organizationControl)
SCP->>SC: Render SingleControl(organizationControl)
else Control not found
SCP->>U: Redirect to Home
end
Possibly related PRs
Poem
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