Add genlocke creation wizard with backend API and 4-step frontend
Implements the genlocke creation feature end-to-end: Genlocke and GenlockeLeg models with migration, POST /genlockes endpoint that creates the genlocke with all legs and auto-starts the first run, and a 4-step wizard UI (Name, Select Games with preset templates, Rules, Confirm) at /genlockes/new. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -193,3 +193,34 @@ export interface CreateBossResultInput {
|
||||
// Re-export for convenience
|
||||
import type { NuzlockeRules } from './rules'
|
||||
export type { NuzlockeRules }
|
||||
|
||||
// Genlocke types
|
||||
export interface GenlockeRules {
|
||||
retireHoF: boolean
|
||||
}
|
||||
|
||||
export interface GenlockeLeg {
|
||||
id: number
|
||||
genlockeId: number
|
||||
gameId: number
|
||||
runId: number | null
|
||||
legOrder: number
|
||||
game: Game
|
||||
}
|
||||
|
||||
export interface Genlocke {
|
||||
id: number
|
||||
name: string
|
||||
status: 'active' | 'completed' | 'failed'
|
||||
genlockeRules: GenlockeRules
|
||||
nuzlockeRules: NuzlockeRules
|
||||
createdAt: string
|
||||
legs: GenlockeLeg[]
|
||||
}
|
||||
|
||||
export interface CreateGenlockeInput {
|
||||
name: string
|
||||
gameIds: number[]
|
||||
genlockeRules: GenlockeRules
|
||||
nuzlockeRules: NuzlockeRules
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user