Add genlocke list and detail pages
Add GET /genlockes and GET /genlockes/{id} endpoints with aggregate
encounter/death stats per leg, and a frontend list page at /genlockes
plus a detail page at /genlockes/:genlockeId showing progress timeline,
cumulative stats, configuration, retired families, and quick actions.
Update nav link to point to the list page instead of /genlockes/new.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import { api } from './client'
|
||||
import type { Genlocke, CreateGenlockeInput, Region } from '../types/game'
|
||||
import type { Genlocke, GenlockeListItem, GenlockeDetail, CreateGenlockeInput, Region } from '../types/game'
|
||||
|
||||
export function getGenlockes(): Promise<GenlockeListItem[]> {
|
||||
return api.get('/genlockes')
|
||||
}
|
||||
|
||||
export function getGenlocke(id: number): Promise<GenlockeDetail> {
|
||||
return api.get(`/genlockes/${id}`)
|
||||
}
|
||||
|
||||
export function createGenlocke(data: CreateGenlockeInput): Promise<Genlocke> {
|
||||
return api.post('/genlockes', data)
|
||||
|
||||
Reference in New Issue
Block a user