Conversation
Co-authored-by: Justin Brooks <jsbroks@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR adds a "policies" tab to the deployment navbar and introduces a new policies page for displaying deployment policy details. The page fetches policies and release targets, displays them in a collapsible table structure showing policy metadata, rules, and associated resources. Changes
Sequence DiagramsequenceDiagram
participant User as User
participant Page as DeploymentPolicies<br/>Page
participant TRPC as TRPC Client
participant Render as Policy Renderer
User->>Page: Navigate to /deployments/{id}/policies
Page->>TRPC: Fetch policies list
TRPC-->>Page: Return policies data
Page->>TRPC: Fetch release targets
TRPC-->>Page: Return targets mapping
Page->>Page: Sort policies by name
Page->>Page: Resolve targets per policy<br/>(match policy to targets)
Page->>Render: Map policies to<br/>PolicyReleaseTargetsGroup
Render->>Render: For each policy:<br/>render metadata, rules,<br/>and resources
Render-->>User: Display policy table<br/>with collapsible details
User->>Render: Toggle policy expansion
Render->>Render: Show/hide rules<br/>and resources
Render-->>User: Update view
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
Co-authored-by: Justin Brooks <jsbroks@gmail.com>
Add a new 'Policies' tab to the deployment details page to display policies and their associated resources.
Summary by CodeRabbit
New Features