Skip to content

Improve seed script with logos, default links, additional links for groups#3417

Merged
steven-tey merged 1 commit intomainfrom
improve-seed-script
Feb 4, 2026
Merged

Improve seed script with logos, default links, additional links for groups#3417
steven-tey merged 1 commit intomainfrom
improve-seed-script

Conversation

@devkiran
Copy link
Collaborator

@devkiran devkiran commented Feb 4, 2026

Summary by CodeRabbit

  • New Features
    • Added logo support for workspaces and programs for improved branding.
    • Enabled configuration of additional links for groups.
    • Expanded integration previews with multiple screenshots.

- 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
@vercel
Copy link
Contributor

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dub Ready Ready Preview Feb 4, 2026 11:18am

Request Review

@devkiran devkiran requested a review from steven-tey February 4, 2026 11:12
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

This 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

Cohort / File(s) Summary
Seed Data Enhancement
apps/web/scripts/dev/data.json
Added logo field to workspace and program objects; introduced additionalLinks and defaultLinks arrays in group definition; expanded screenshots arrays across multiple integration entries from single URLs to multi-element arrays.
Seed Script Type and Logic Updates
apps/web/scripts/dev/seed.ts
Extended Workspace, GroupSeed, and ProgramSeed type definitions to include new logo, additionalLinks, and defaultLinks fields; imported PartnerGroupDefaultLink model; added logic in createGroups to persist default links and in createProgram to assign logo during entity creation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • PR #2880: Updates importers to read and propagate partnerGroupDefaultLinkId related to the PartnerGroupDefaultLink concept being seeded here.
  • PR #3008: Directly handles creation of PartnerGroupDefaultLink/default links during group import with program domain/url assignments.
  • PR #3054: Modifies partner group creation to add additionalLinks and maxPartnerLinks, touching the same domain model for group metadata.

Suggested reviewers

  • steven-tey

Poem

🐰 Logos bloom and links align,
Screenshots multiply in line,
Default paths now found and seeded,
Where groups and programs are needed!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes in the pull request: adding logos to workspaces and programs, plus default links and additional links for groups in the seed script.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch improve-seed-script

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@steven-tey steven-tey enabled auto-merge (squash) February 4, 2026 18:31
@steven-tey steven-tey disabled auto-merge February 4, 2026 18:31
@steven-tey steven-tey merged commit a70a028 into main Feb 4, 2026
11 of 12 checks passed
@steven-tey steven-tey deleted the improve-seed-script branch February 4, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants