Skip to content

Add local development demo seed data - #182

Open
damiedee96 wants to merge 1 commit into
Core-Foundry:mainfrom
damiedee96:feat/seed-local-development-data
Open

Add local development demo seed data#182
damiedee96 wants to merge 1 commit into
Core-Foundry:mainfrom
damiedee96:feat/seed-local-development-data

Conversation

@damiedee96

Copy link
Copy Markdown

Summary
Closes #163
This change adds realistic, deterministic sample data for local development and an easy way to reset and reload the in-memory application stores.
What changed
Added reusable demo seed and reset helpers in frontend/src/lib/demo-seed.ts.
Added sample organizations, open/in-review/completed tasks, submissions, comments, notifications, and activity history.
Added pnpm db:seed and pnpm db:reset commands.
Added opt-in automatic seeding with NEXT_PUBLIC_SEED_DEMO_DATA=true; the flag is ignored in production.
Added focused tests covering seeded entities, common workflow scenarios, reset behavior, and identifier restart behavior.
Documented the workflow in the frontend README and environment template.
Validation
Focused seed tests: 2 passed.
Changed-file linting: passed.
Seed and reset commands: executed successfully.
The full existing test suite has one unrelated pre-existing failure in tasks-list-api.test.ts, along with an existing Vitest environment teardown error.

closes #163

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.

Add Database Seed Data for Local Development

1 participant