Skip to content

feat(dev): add project seed script with fixtures across stages - #78

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11953-add-development-seed-script-with-dummy-projects-across
Nov 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11953-add-development-seed-script-with-dummy-projects-across

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Add three development project seed fixtures across complexity levels in apps/hub/src/dev-seed-fixtures.ts:
    • habit-tracker (simple): Daily Streak & Habit Tracker
    • field-service-dispatch (medium): Field Service Dispatch Board
    • clinical-trial-intake (complex): Clinical Trial Patient Intake & Consent Portal
  • Add seedDevelopmentProjects, createDatabaseSeedDeps, createMemorySeedDeps, and CLI argument parsing in apps/hub/src/projects/seed.ts supporting --fixture=<id|all>, --stage=idea|brief|planning|design_options|designed|ready_to_build|shipped, --approve / --no-approve, and --tenant=<tenantId> / --tenant-id=<tenantId>.
  • Allow user principals to file design_option bundles by concept title in apps/hub/src/artifacts/service.ts and export validateArtifactWriteContent.
  • Wire bun run dev:seed to scripts/seed-projects.ts, document usage in docs/DEV.md, and add unit tests in apps/hub/src/projects/seed.test.ts.

Refs CL-11953

@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

CL-11953

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Triage requests changes:

  • Merge conflicts: merge conflicts with base

@TheGreatAxios
TheGreatAxios force-pushed the cl-11953-add-development-seed-script-with-dummy-projects-across branch from aeb29a5 to d5a0cfd Compare November 2, 2026 04:22
@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 04:24

Nothing triage asked to change still fails, so this request no longer stands.

corbits-triage[bot]
corbits-triage Bot previously approved these changes Nov 2, 2026
@TheGreatAxios

Copy link
Copy Markdown
Contributor Author

The seed does not delete or overwrite existing projects. Each run inserts a new project. The bundles match the current design, app, and approaches schemas. A default run still does not build what the fixtures declare, and the branch does not apply on current main.

  1. Blocking. The patch still throws issues: input.summary (a string). Current write() and ProjectError expect an issues array. On current main, bun run dev:seed fails at design_options, so designed, ready_to_build, and shipped never get stored. GitHub reports the PR mergeable: false.

  2. The field-service approaches markdown lists three options, including "Map-First Geo Pin Board". The metadata array has only queue-capacity-split and gantt-timeline. The comparison the hub stores drops the third approach. Schema validation still passes because two is enough.

  3. seedDevelopmentProjects uses options.stage ?? "shipped" and never reads fixture.defaultStage. field-service-dispatch declares design_options and clinical-trial-intake declares ready_to_build. A run with no --stage files all three at shipped.

  4. The title fallback that lets the seed file a design option is not limited to the seed. A user write whose title matches a live concept label versions that option. Previously that was 409 design_concept_unknown.

  5. The tests only use createMemorySeedDeps. They never call createDatabaseSeedDeps, artifactService.write, chooseDesign, or ship, so a green test does not show that bun run dev:seed can file these fixtures.

corbits-triage[bot]
corbits-triage Bot previously approved these changes Nov 2, 2026
@TheGreatAxios
TheGreatAxios force-pushed the cl-11953-add-development-seed-script-with-dummy-projects-across branch from 9ff8f26 to 5e844f7 Compare November 2, 2026 05:20

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Triage requests changes:

  • CI green: required checks are failing
    • test

@TheGreatAxios
TheGreatAxios force-pushed the cl-11953-add-development-seed-script-with-dummy-projects-across branch from 5e844f7 to c0471d1 Compare November 2, 2026 05:44
@corbits-triage

corbits-triage Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve, request review.

@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 06:21

Nothing triage asked to change still fails, so this request no longer stands.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit d5a6ddb Nov 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant