Skip to content

Commit bc02a90

Browse files
Merge pull request #13 from nyxCore-Systems/feat/timetable-category-vortrag
feat(events): add 'vortrag' timetable category
2 parents 4db84bf + e916fdc commit bc02a90

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/admin/sections/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ export default function AdminSectionsPage() {
19931993
<div>
19941994
<label className={labelClass}>Kategorien</label>
19951995
<div className="flex flex-wrap gap-3">
1996-
{(['musik','film','performance','kinder','break'] as const).map((c) => (
1996+
{(['musik','film','performance','vortrag','kinder','break'] as const).map((c) => (
19971997
<label key={c} className="flex items-center gap-2 text-sm">
19981998
<input
19991999
type="checkbox"

src/components/admin/events/TimetableBuilder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type ApiAppearance = {
2626
category: string; startTime: string; endTime: string | null; sortOrder: number; note: string | null
2727
}
2828

29-
const CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'break']
29+
const CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'vortrag', 'break']
3030

3131
function toRow(a: ApiAppearance): Row {
3232
const start = new Date(a.startTime)

src/lib/event-validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { normalizeSlug, isValidSlug, safeHttpsUrl, safeCloudinaryUrl } from './s
44
export { normalizeSlug, isValidSlug, safeHttpsUrl, safeCloudinaryUrl }
55

66
export const ALLOWED_EVENT_TYPES = ['festival', 'concert', 'workshop', 'other'] as const
7-
export const ALLOWED_SLOT_CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'break'] as const
7+
export const ALLOWED_SLOT_CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'break', 'vortrag'] as const
88
export const DEFAULT_SLOT_CATEGORY = 'musik'
99
export const ALLOWED_CURRENCIES = ['EUR', 'USD', 'CHF', 'GBP'] as const
1010

src/lib/lineup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// here — the admin client bundle imports orderSlots/CATEGORY_LABELS from this
33
// file. Server data access lives in lineup-data.ts.
44
export const CATEGORY_LABELS: Record<string, string> = {
5-
musik: 'Musik', film: 'Film', performance: 'Performance', kinder: 'Kinder', break: 'Break',
5+
musik: 'Musik', film: 'Film', performance: 'Performance', kinder: 'Kinder', vortrag: 'Vortrag', break: 'Break',
66
}
77

8-
const ALL_CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'break']
8+
const ALL_CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'vortrag', 'break']
99

1010
/** Lineup default: all content categories except breaks. */
11-
export const LINEUP_DEFAULT_CATEGORIES = ['musik', 'film', 'performance', 'kinder']
11+
export const LINEUP_DEFAULT_CATEGORIES = ['musik', 'film', 'performance', 'kinder', 'vortrag']
1212

1313
export interface LineupSlot {
1414
appearanceId: string

0 commit comments

Comments
 (0)