feat: add showcase frontend

This commit is contained in:
2026-04-30 09:05:06 -06:00
parent 7af5e3117d
commit dd249c8753
6 changed files with 737 additions and 0 deletions

View File

@@ -160,3 +160,47 @@ export interface TaskStatsOut {
classes: string[]
top_viewed: TopViewedItem[]
}
export interface ShowcaseItem {
submission_id: string
username: string
task_title: string
task_display: number
score: number
view_count: number
html: string | null
css: string | null
js: string | null
has_prompt_chain: boolean
}
export interface AwardSection {
id: number
name: string
description: string
item_ordering: string
items: ShowcaseItem[]
}
export interface ShowcaseDetail {
submission_id: string
username: string
task_title: string
task_display: number
score: number
view_count: number
html: string | null
css: string | null
js: string | null
awards: string[]
has_prompt_chain: boolean
}
export interface PromptRound {
question: string
source: string
prompt_level: number | null
html: string | null
css: string | null
js: string | null
}