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/pages/SubmissionsPage.test.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 frontend/app/pages/SubmissionsPage.test.tsx

(limited to 'frontend/app/pages/SubmissionsPage.test.tsx')

diff --git a/frontend/app/pages/SubmissionsPage.test.tsx b/frontend/app/pages/SubmissionsPage.test.tsx
new file mode 100644
index 0000000..f01f4c9
--- /dev/null
+++ b/frontend/app/pages/SubmissionsPage.test.tsx
@@ -0,0 +1,17 @@
+/**
+ * @vitest-environment jsdom
+ */
+import { cleanup, render, screen } from "@testing-library/react";
+import { afterEach, describe, expect, test } from "vitest";
+import SubmissionsPage from "./SubmissionsPage";
+
+afterEach(() => {
+	cleanup();
+});
+
+describe("SubmissionsPage", () => {
+	test("shows loading state initially", () => {
+		render(<SubmissionsPage gameId="1" />);
+		expect(screen.getByText("Loading...")).toBeDefined();
+	});
+});
-- 
cgit v1.3.1

