Repository navigation
Refactor: Rename imports to seeds and standardize documentation - #156
Merged
Merged
Conversation
Rename the folder to better reflect its purpose (seeding data). This is an atomic rename to preserve git history. Part of #154 Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update all paths and references across: - package.json scripts - vitest.config.mts test includes - .gitignore cache directory - src/payload.config.ts seed script detection - API route imports - Documentation files (CLAUDE.md, architecture.md, DEPLOYMENT.md) - Internal seeds/ documentation and source files - Test file imports and comments Part of #154 Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add two new sections to seeds/CLAUDE.md: 1. "Creating a New Seed Script" - Comprehensive guide including: - Checklist for new script creation - Full code template with best practices - Required patterns (preload, upsert, error handling) - Pagination support guidance - Media upload and locale handling patterns 2. "Identified Inconsistencies" - Documents current inconsistencies for future standardization with priority levels and follow-up issue recommendations Part of #154 Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update remaining "import" terminology to "seed" in documentation files: - seeds/lib/CLAUDE.md title: "Import Utilities Library" → "Seed Utilities Library" - seeds/lib/CLAUDE.md section: "Creating New Import Scripts" → "Creating New Seed Scripts" - seeds/CLAUDE.md: "Import scripts should never call..." → "Seed scripts should never call..." Co-Authored-By: Claude Opus 4.5 <[email protected]>
Ardnived
added a commit
that referenced
this pull request
Nov 2, 2026
…1061) Backfills (owner confirmed both are done): delete scripts/backfill-region-breadcrumb-urls.ts (#640) and scripts/backfill-schedule-last-date.ts (#604), the src/lib routines only they used, their int specs, and the doc rows pointing at them. New writes fill breadcrumbs[].url and schedule.lastDate on their own, and region-canonical-url / events specs cover that live behaviour. seeds/tests harness: test-storyblok.sh and test-meditations.sh run importers that have had no CLI entry point since #156, so each "test" exited 0 having done nothing; check-db-stats.ts queried the music collections renamed in #180. Delete them with setup-test-db.ts and test-payload.config.ts (used only by them), rewrite the folder guide around the spec that stays, and drop the third buildConfig site from the systemEntities / access.md / postgresTestPool comments. Smaller: meditation-duration's "backfill migration logic" block re-implemented a migration deleted in #308 and called none of our code; seed-pagination's PaginationOptions block only read back an object literal; lemonfox-client's comment named transcribe.ts's old path. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
imports/folder toseeds/to better reflect its purpose (seeding data)Changes
Folder Rename
imports/→seeds/preserving git historyPath Updates (26 files)
package.json- 4 script referencesvitest.config.mts- test include path.gitignore- cache directory pathsrc/payload.config.ts- seed script detectionsrc/app/(payload)/api/seed/[script]/route.ts- import pathsDocumentation Additions (seeds/CLAUDE.md)
"Creating a New Seed Script" section with:
"Identified Inconsistencies" section documenting:
Test Results
pnpm seed --help✓pnpm seed tags --dry-run✓pnpm seed wemeditate --dry-run✓pnpm seed meditations --dry-run✓Follow-up Issues (as documented)
The following should be addressed in separate issues:
this.addError()Closes #154
🤖 Generated with Claude Code