From 8e73d12a703e90ad908962143951178c13d0d6fe Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Fri, 20 Feb 2026 23:32:22 +0900
Subject: feat: add user submission history page

Allow users to view their own past submissions (code, size, status,
timestamp) for each game. Adds API endpoint, backend handler, SQL query,
and frontend page with expandable code display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---
 frontend/app/App.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'frontend/app/App.tsx')

diff --git a/frontend/app/App.tsx b/frontend/app/App.tsx
index 651de32..9ac8007 100644
--- a/frontend/app/App.tsx
+++ b/frontend/app/App.tsx
@@ -7,6 +7,7 @@ import GolfPlayPage from "./pages/GolfPlayPage";
 import GolfWatchPage from "./pages/GolfWatchPage";
 import IndexPage from "./pages/IndexPage";
 import LoginPage from "./pages/LoginPage";
+import SubmissionsPage from "./pages/SubmissionsPage";
 import TournamentPage from "./pages/TournamentPage";
 
 export default function App() {
@@ -35,6 +36,13 @@ export default function App() {
 						</ProtectedRoute>
 					)}
 				</Route>
+				<Route path="/golf/:gameId/submissions">
+					{(params) => (
+						<ProtectedRoute>
+							<SubmissionsPage gameId={params.gameId} />
+						</ProtectedRoute>
+					)}
+				</Route>
 				<Route path="/golf/:gameId/watch">
 					{(params) => (
 						<ProtectedRoute>
-- 
cgit v1.3.1

