chore(refactor): convert components to server components and split enterprise/pricing#3716
Conversation
PR SummaryMedium Risk Overview Splits previously inline interactive UI into dedicated client components: Written by Cursor Bugbot for commit bf6fe40. This will update automatically on new commits. Configure here. |
|
@adithyaakrishna is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR audits Key changes:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Before["Before (enterprise.tsx — single 'use client' file)"]
E1["enterprise.tsx\n'use client'\n• AuditLogPreview (useState, useEffect)\n• AccessControlPanel (useState, useRef, useInView)\n• Static enterprise layout"]
end
subgraph After["After (server + client split)"]
E2["enterprise.tsx\nServer Component\n• Static layout, Image, Link, Badge"]
ACP["access-control-panel.tsx\n'use client'\n• useState, useRef, useInView"]
ALP["audit-log-preview.tsx\n'use client'\n• useState, useEffect, setInterval"]
E2 -->|imports| ACP
E2 -->|imports| ALP
end
subgraph PricingSplit["After (landing-pricing split)"]
LP["landing-pricing.tsx\nServer Component"]
PC["pricing-card.tsx\n'use client'\n• PricingCard (useState, useRouter)\n• PricingGrid (exported)"]
LP -->|imports PricingGrid| PC
end
Before --> After
Before --> PricingSplit
Reviews (1): Last reviewed commit: "chore: client and server components" | Re-trigger Greptile |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
use clientfiles inapps/sim/and remove the directive from files that don't need itType of Change
Testing
No runtime behavior changes — components render identically
Checklist