From 9da9f6ae5638c45899bed1247a06d22ecbc48365 Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Sun, 26 Apr 2026 20:36:45 +0200 Subject: [PATCH] feat(ST-507): split code from title in backlog parser and seed Scrum4Me with codes Co-Authored-By: Claude Opus 4.7 (1M context) --- prisma/seed-data/parse-backlog.ts | 2 +- prisma/seed.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/prisma/seed-data/parse-backlog.ts b/prisma/seed-data/parse-backlog.ts index f8fbeff..7694b1a 100644 --- a/prisma/seed-data/parse-backlog.ts +++ b/prisma/seed-data/parse-backlog.ts @@ -154,7 +154,7 @@ export async function loadBacklog(repoRoot: string): Promise flushPending() const story: ParsedStory = { ref: taskMatch[2], - title: `${taskMatch[2]}: ${taskMatch[3]}`, + title: taskMatch[3], acceptance_criteria: '', status: taskMatch[1] === 'x' ? 'DONE' : 'OPEN', sort_order: current.stories.length + 1, diff --git a/prisma/seed.ts b/prisma/seed.ts index 8888ecb..ed2b58d 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -103,6 +103,7 @@ async function main() { data: { user_id: demo.id, name: 'Scrum4Me', + code: 'SCRUM4ME', description: 'Een desktop-first fullstack webapplicatie voor solo developers en kleine Scrum Teams die meerdere softwareprojecten parallel beheren.', repo_url: 'https://github.com/madhura68/Scrum4Me', @@ -126,7 +127,8 @@ async function main() { const pbi = await prisma.pbi.create({ data: { product_id: product.id, - title: `${ms.key}: ${ms.title}`, + code: ms.key, + title: ms.title, description: ms.goal, priority: ms.priority, sort_order: ms.sort_order, @@ -161,6 +163,7 @@ async function main() { pbi_id: pbi.id, product_id: product.id, sprint_id: inSprint ? sprint.id : null, + code: s.ref, title: s.title, description: storySummary, acceptance_criteria: s.acceptance_criteria,