feat: festival/event model frontend + topbar activeren

- Events lijst: card grid met festival/serie chips
- Festival detail: programmaonderdelen grid
- CreateSubEventDialog voor sub-events binnen festival
- EventTabsNav: breadcrumb terug naar festival
- Sessie A: festival-bewuste EventResource + children endpoint
- Topbar: zoekbalk, theme switcher, shortcuts, notificaties
- Schema v1.7 + BACKLOG.md toegevoegd
- 121 tests groen
This commit is contained in:
2026-04-08 10:06:47 +02:00
parent 6848bc2c49
commit c776331cf8
21 changed files with 1087 additions and 190 deletions

View File

@@ -27,6 +27,7 @@ final class EventFactory extends Factory
'end_date' => fake()->dateTimeBetween($startDate, (clone $startDate)->modify('+3 days')),
'timezone' => 'Europe/Amsterdam',
'status' => 'draft',
'event_type' => 'event',
];
}
@@ -34,4 +35,31 @@ final class EventFactory extends Factory
{
return $this->state(fn () => ['status' => 'published']);
}
public function festival(): static
{
return $this->state(fn () => [
'event_type' => 'festival',
'event_type_label' => 'Festival',
'sub_event_label' => 'Dag',
]);
}
public function series(): static
{
return $this->state(fn () => [
'event_type' => 'series',
'event_type_label' => 'Serie',
'sub_event_label' => 'Editie',
]);
}
public function subEvent(Event $parent): static
{
return $this->state(fn () => [
'parent_event_id' => $parent->id,
'organisation_id' => $parent->organisation_id,
'event_type' => 'event',
]);
}
}