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:
Janpeter Visser 2026-04-24 17:17:41 +02:00
parent 71e4ebc22d
commit 0efd0cc4e3
2 changed files with 28 additions and 1 deletions

View file

@ -10,7 +10,7 @@ const version = process.env.NEXT_PUBLIC_APP_VERSION ?? '0.0.0'
export function StatusBar() { export function StatusBar() {
return ( return (
<footer className="shrink-0 border-t border-border bg-surface-container-low px-4 py-1 flex items-center justify-between text-[10px] text-muted-foreground select-none"> <footer className="shrink-0 border-t border-border bg-surface-container-low h-14 px-4 flex items-center justify-between text-sm text-muted-foreground select-none">
<span>© {new Date().getFullYear()} Scrum4Me</span> <span>© {new Date().getFullYear()} Scrum4Me</span>
<span>v{version} · gebouwd op {buildDate}</span> <span>v{version} · gebouwd op {buildDate}</span>
</footer> </footer>

View file

@ -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('\nSeeding complete!')
console.log('Demo user: username=demo password=demo1234') console.log('Demo user: username=demo password=demo1234')
console.log('Main user: username=lars password=scrum4me123') console.log('Main user: username=lars password=scrum4me123')