Hero: planning en hero-brede aan/uit verwijderd (hero altijd aan, live zodra er een titel is); migratie, API, admin, tests en docs bijgewerkt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 08:21:32 +01:00
co-authored by Claude Sonnet 5.5
parent ef62a3714f
commit b78e890f65
29 changed files with 341 additions and 285 deletions
+1 -7
View File
@@ -27,9 +27,6 @@ export const emptyHero = (): HeroAdminDto => ({
lead: null,
display: 'single',
buttons: [],
isActive: true,
startsAt: null,
endsAt: null,
slides: [],
isLive: false,
updatedAt: null,
@@ -106,10 +103,7 @@ export const heroHandlers = [
lead: body.lead,
display: body.display,
buttons: body.buttons,
isActive: body.isActive,
startsAt: body.startsAt,
endsAt: body.endsAt,
isLive: body.isActive && body.title.trim() !== '',
isLive: body.title.trim() !== '',
updatedAt: '2026-11-16T12:00:00Z',
slides: body.slides.map((s, i) => ({
id: s.id ?? `20000000-0000-0000-0000-00000000000${i}`,