Add section field to boss battles for run progression dividers

Adds a nullable `section` column to boss battles (e.g. "Main Story",
"Endgame") with dividers rendered in the run view between sections.
Admin UI gets a Section column in the table and a text input in the form.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 14:55:26 +01:00
parent a01d01c565
commit a4f814e66e
9 changed files with 199 additions and 24 deletions

View File

@@ -147,6 +147,7 @@ export interface CreateBossBattleInput {
order: number
afterRouteId?: number | null
location: string
section?: string | null
spriteUrl?: string | null
}
@@ -159,9 +160,15 @@ export interface UpdateBossBattleInput {
order?: number
afterRouteId?: number | null
location?: string
section?: string | null
spriteUrl?: string | null
}
export interface BossReorderItem {
id: number
order: number
}
export interface BossPokemonInput {
pokemonId: number
level: number

View File

@@ -151,6 +151,7 @@ export interface BossBattle {
order: number
afterRouteId: number | null
location: string
section: string | null
spriteUrl: string | null
pokemon: BossPokemon[]
}