Skip to content

Commit 75a6853

Browse files
committed
feat: display raw project data
1 parent 6893825 commit 75a6853

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

src/domain/judging/handlers/admin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ pub async fn get_prize_track_results(
214214
presentation_url,
215215
video_url,
216216
ai_summary: None, // AI summary will be handled by detail modal
217+
submission_data: Some(sub.submission_data.clone()),
217218
});
218219
}
219220

src/domain/judging/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ pub struct ProjectResultInfo {
295295
pub presentation_url: Option<String>,
296296
pub video_url: Option<String>,
297297
pub ai_summary: Option<String>,
298+
pub submission_data: Option<serde_json::Value>,
298299
}
299300

300301
/// Full results for a prize track

src/ui/pages/hackathon/results.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,28 @@ fn ProjectDetailModal(
762762
}
763763
}
764764
}
765+
766+
// Submission Data JSON (Collapsible)
767+
if let Some(data) = &project.submission_data {
768+
div { class: "pt-4 mt-4 border-t border-stroke-neutral-1",
769+
details { class: "group",
770+
summary { class: "list-none cursor-pointer flex items-center gap-2 text-sm font-medium text-foreground-neutral-primary hover:text-foreground-brand-primary transition-colors select-none",
771+
Icon {
772+
width: 16,
773+
height: 16,
774+
icon: LdChevronDown,
775+
class: "transition-transform group-open:rotate-180",
776+
}
777+
"Raw Submission Data"
778+
}
779+
div { class: "mt-2 bg-background-neutral-secondary rounded-lg p-4 overflow-x-auto",
780+
pre { class: "text-xs font-mono text-foreground-neutral-secondary whitespace-pre-wrap break-words",
781+
"{serde_json::to_string_pretty(data).unwrap_or_default()}"
782+
}
783+
}
784+
}
785+
}
786+
}
765787
}
766788
}
767789
}

table-signs/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
table_start = 0
2-
table_end = 150
1+
table_start = 150
2+
table_end = 250
33
url_template = "https://terrier.scottylabs.org/h/tartanhacks-2026/table-checkin/{table_number}"
44
output_dir = "output"
55

0 commit comments

Comments
 (0)