From dc37362350be17e4244f2c3720f3a51e352eaf91 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:26:43 +0000 Subject: [PATCH 1/5] Initial plan From f448523f4a7a7a6613da6723a2f791fe17095a35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:41:14 +0000 Subject: [PATCH 2/5] feat: improve play screen visual style and mobile layout Agent-Logs-Url: https://github.com/ut-code/hitori-mahjong/sessions/524100d1-262c-4708-a498-c01c3cd15cd9 Co-authored-by: tknkaa <145080781+tknkaa@users.noreply.github.com> --- app/routes/play.tsx | 151 ++++++++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 63 deletions(-) diff --git a/app/routes/play.tsx b/app/routes/play.tsx index 2bf9c3e..09f1f56 100644 --- a/app/routes/play.tsx +++ b/app/routes/play.tsx @@ -1,4 +1,5 @@ import { sql } from "drizzle-orm"; +import { Form } from "react-router"; import { getAuth } from "~/lib/auth"; import { getDB } from "~/lib/db"; import { haiyama } from "~/lib/db/schema"; @@ -94,96 +95,120 @@ export default function Page({ loaderData }: Route.ComponentProps) { })); return ( -
+
{isAgari && ( -
-

ツモ!

+
+

ツモ!

+

+ お見事です。和了を確定しますか? +

-
+ - -
+
)} {isRyukyoku && ( -
-

流局

+
+

流局

+

+ この局は終了です。結果を確定しますか? +

-
- -
+
)} -
-

- 東{kyoku}局 | 巡目: {junme} | 残りツモ: {remainTsumo} -

-

- スコア: {score} | シャンテン:{" "} - {shantenResult.shanten === -1 ? "和了" : shantenResult.shanten} -

-
- - {/* Sutehai grid (3x6) */} -
-

捨て牌

-
- {indexedSutehai.map((hai) => ( - {`${hai.kind} - ))} +
+
+

対局中

+
+
+

+ 東{kyoku}局 | 巡目: {junme} | 残りツモ: {remainTsumo} +

+

+ スコア: {score} | シャンテン:{" "} + {shantenResult.shanten === -1 ? "和了" : shantenResult.shanten} +

-
- {/* Tehai and Tsumohai */} -
-
-

手牌

-
- {indexedTehai.map((hai) => ( -
- - -
- ))} +
+

捨て牌

+
+
+ {indexedSutehai.map((hai) => ( + {`${hai.kind} + ))} +
- {tsumohai && ( +
-

ツモ牌

-
- -
+

手牌

+
+
+ {indexedTehai.map((hai) => ( +
+ + +
+ ))} +
+
- )} + + {tsumohai && ( +
+

+ ツモ牌 +

+
+ +
+
+ )} +
); From b8b63bd30374b57b3ff01c785ace5654ca41161b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 14:47:36 +0000 Subject: [PATCH 3/5] fix: refine play tile action labels for accessibility Agent-Logs-Url: https://github.com/ut-code/hitori-mahjong/sessions/524100d1-262c-4708-a498-c01c3cd15cd9 Co-authored-by: tknkaa <145080781+tknkaa@users.noreply.github.com> --- app/routes/play.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/routes/play.tsx b/app/routes/play.tsx index 09f1f56..2a755c7 100644 --- a/app/routes/play.tsx +++ b/app/routes/play.tsx @@ -178,7 +178,7 @@ export default function Page({ loaderData }: Route.ComponentProps) { - - ))} -
-
-
+
+

手牌

- {tsumohai && ( -
-

- ツモ牌 -

-
-
+ ))} + {tsumohai && ( +
+
+ +
+
+ )} +
+ +
+
+ {firstRowTehai.map((hai) => ( +
+ + +
+ ))}
- )} + +
+ {secondRowTehai.map((hai) => ( +
+ + +
+ ))} + {tsumohai && ( +
+ +
+ )} +
+
From f584bc9be40d5d165d0c8b70d9ef7b0d28a8dd63 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 14 Apr 2026 00:52:08 +0000 Subject: [PATCH 5/5] fix: remove desktop gap between non-tsumo hand tiles Agent-Logs-Url: https://github.com/ut-code/hitori-mahjong/sessions/ecb176d7-ab6e-4a6c-ac50-8fb4a8daf9ba Co-authored-by: tknkaa <145080781+tknkaa@users.noreply.github.com> --- app/routes/play.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/play.tsx b/app/routes/play.tsx index d11d741..b3a664c 100644 --- a/app/routes/play.tsx +++ b/app/routes/play.tsx @@ -165,7 +165,7 @@ export default function Page({ loaderData }: Route.ComponentProps) {

手牌

-
+
{indexedTehai.map((hai) => (