Skip to content

Seed Dataset Script#54

Open
lcnogueira wants to merge 12 commits into
trunkfrom
feature/dataset-seed-script
Open

Seed Dataset Script#54
lcnogueira wants to merge 12 commits into
trunkfrom
feature/dataset-seed-script

Conversation

@lcnogueira
Copy link
Copy Markdown
Contributor

@lcnogueira lcnogueira commented Apr 3, 2025

Description of the Change

This PR adds a script that can be used to seed the dataset with example data.

Closes #37

How to test the Change

  • Make sure you're logged in to the sanity cli: sanity login.
  • Run the seed script: npm run seed-dataset.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sanity-ignite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 4:55pm

Comment thread src/studio/schema/documents/person.ts
image: 'image',
},
prepare(selection) {
const firstName = selection.firstName ?? '';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Avoid showing "null" if firstName or lastName is empty

@lcnogueira lcnogueira changed the title [WIP] Seed Script [WIP] Seed Dataset Script Apr 7, 2025
Comment thread sanity.config.ts
locations: [homeLocation],
message: 'This document is used on all pages',
tone: 'positive',
blogPage: defineLocations({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added the locations to the blogPage, category, and person sanity docs

@lcnogueira lcnogueira changed the title [WIP] Seed Dataset Script Seed Dataset Script Apr 7, 2025
@lcnogueira lcnogueira marked this pull request as ready for review April 7, 2025 01:58
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.

Create dataset "seed" script

2 participants