feat: demo-gebruiker krijgt read-only toegang tot actieve sprint
Seed maakt een actieve sprint aan voor de demo gebruiker met 3 stories. Statusbalk aangepast naar h-14 zodat deze overeenkomt met de navigatiebalk. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
71e4ebc22d
commit
0efd0cc4e3
2 changed files with 28 additions and 1 deletions
|
|
@ -242,6 +242,33 @@ async function main() {
|
|||
}
|
||||
}
|
||||
|
||||
// Create active sprint for the demo product
|
||||
const sprint = await prisma.sprint.create({
|
||||
data: {
|
||||
product_id: product.id,
|
||||
sprint_goal: 'Gebruikers kunnen inloggen, een product aanmaken en de Product Backlog beheren.',
|
||||
status: 'ACTIVE',
|
||||
},
|
||||
})
|
||||
|
||||
console.log(`Sprint created: ${sprint.sprint_goal}`)
|
||||
|
||||
// Add the first story of each of the first 3 PBIs to the sprint
|
||||
const sprintStoryTitles = [
|
||||
'Account aanmaken',
|
||||
'Product aanmaken',
|
||||
'PBI aanmaken',
|
||||
]
|
||||
|
||||
for (const title of sprintStoryTitles) {
|
||||
await prisma.story.updateMany({
|
||||
where: { product_id: product.id, title },
|
||||
data: { sprint_id: sprint.id, status: 'IN_SPRINT' },
|
||||
})
|
||||
}
|
||||
|
||||
console.log(`Added ${sprintStoryTitles.length} stories to the sprint`)
|
||||
|
||||
console.log('\nSeeding complete!')
|
||||
console.log('Demo user: username=demo password=demo1234')
|
||||
console.log('Main user: username=lars password=scrum4me123')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue