From 00354d392a0bcddaac71fee7b6aae721e5747f59 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Fri, 20 Feb 2026 23:44:07 +0900
Subject: feat(frontend): add problem preview page for pre-game viewing

Allow participants to view problem descriptions and sample code
before a game starts. Dashboard shows a preview link only for
games that haven't started yet.

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

(limited to 'frontend/app/pages/DashboardPage.tsx')

diff --git a/frontend/app/pages/DashboardPage.tsx b/frontend/app/pages/DashboardPage.tsx
index 3191f1b..00db3f0 100644
--- a/frontend/app/pages/DashboardPage.tsx
+++ b/frontend/app/pages/DashboardPage.tsx
@@ -68,6 +68,11 @@ export default function DashboardPage() {
 										</span>
 									</div>
 									<div className="flex gap-2">
+										{game.started_at == null && (
+											<NavigateLink to={`/golf/${game.game_id}/preview`}>
+												問題を見る
+											</NavigateLink>
+										)}
 										<NavigateLink to={`/golf/${game.game_id}/play`}>
 											対戦
 										</NavigateLink>
-- 
cgit v1.3.1

