Improve seed script with logos, default links, additional links for groups#3417
Improve seed script with logos, default links, additional links for groups#3417steven-tey merged 1 commit intomainfrom
Conversation
- Add workspace and program logo fields - Add default links for partner groups - Add additional links support for groups - Add API key creation for the workspace
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR updates development seed infrastructure to support new workspace and program logo fields, expands group objects with additional and default links, broadens integration screenshot arrays, and adds logic to persist default link relationships via PartnerGroupDefaultLink during seeding. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@apps/web/scripts/dev/seed.ts`:
- Around line 311-329: The seed currently calls
prisma.partnerGroupDefaultLink.createMany with defaultLinks unguarded; wrap the
createMany call in a conditional that checks defaultLinks.length > 0 and only
invokes prisma.partnerGroupDefaultLink.createMany when non-empty, otherwise skip
(and log 0 created). Keep the same data mapping using createId({ prefix: "pgdl_"
}), program.id, program.domain, and groupId/url from defaultLinks to ensure IDs
and fields are created exactly as before when executed.
Summary by CodeRabbit