feat: redesign typed bracket poster editor
Verify mini program and deploy preview / verify-deploy (push) Successful in 3m9s
Verify mini program and deploy preview / verify-deploy (push) Successful in 3m9s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export interface Candidate { id: string; name: string; title?: string; description?: string; image_url?: string | null }
|
||||
export interface TestSummary { slug: string; title: string; subtitle: string; description: string; candidate_count: number; run_count: number }
|
||||
export interface TestDetail extends TestSummary { candidates: Candidate[] }
|
||||
export interface Decision { round: number; left_id: string; right_id: string; winner_id: string }
|
||||
export interface TestResult {
|
||||
id: string; test_slug: string; test_title: string; champion_id: string; champion_name: string;
|
||||
runner_up_name?: string | null; completed_at: string; ranking_names?: string[];
|
||||
decisions: Decision[]; candidate_names: Record<string,string>;
|
||||
}
|
||||
export interface Match { left: Candidate; right: Candidate | null; winner: Candidate | null }
|
||||
export interface BracketState { round: number; pool: Candidate[]; matches: Match[]; eliminated: Candidate[]; decisions: Decision[]; offset: number }
|
||||
export type ChoiceSide = 'left' | 'right';
|
||||
Reference in New Issue
Block a user