From 24e74be0c3519b3cd6d85a2074b7e8ab6c737572 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Fri, 29 May 2026 15:38:35 +0900 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20=E6=99=82=E9=96=93=E5=B7=BB?= =?UTF-8?q?=E3=81=8D=E6=88=BB=E3=81=97=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 8850535..2ac328f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -378,6 +378,23 @@ const App: React.FC = () => { })); }, [stopAlarm]); + const revertTimer = useCallback(() => { + if (!lastSetTime) return; + + stopAlarm(); + setShowTimeUp(false); + + const restoredTotalSeconds = lastSetTime.minutes * 60 + lastSetTime.seconds; + setTimerState((prev) => ({ + ...prev, + minutes: lastSetTime.minutes, + seconds: lastSetTime.seconds, + timeRemaining: restoredTotalSeconds, + isRunning: false, + isPaused: false + })); + }, [lastSetTime, stopAlarm]); + // F12キーでデベロッパーツールを開く useEffect(() => { const handleKeyDown = async (event: KeyboardEvent) => { @@ -1003,6 +1020,7 @@ const App: React.FC = () => { onStart={startTimer} onPause={pauseTimer} onReset={resetTimer} + onRevert={revertTimer} onSettings={openSettings} onHelp={() => setShowHelp(true)} onMinutesChange={(minutes) => From 3183ef420c06c65c49435955dd30537a4652e41f Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Fri, 29 May 2026 15:40:51 +0900 Subject: [PATCH 2/8] =?UTF-8?q?feat(type):=20TimerControlsProps=E3=81=ABon?= =?UTF-8?q?Revert=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.ts b/src/types.ts index fd7e49a..c4304f5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -33,6 +33,7 @@ export interface TimerControlsProps { onStart: () => void; onPause: () => void; onReset: () => void; + onRevert: () => void; onSettings: () => void; onHelp: () => void; onMinutesChange: (minutes: number) => void; From 58abb73a40a9e0cf6d6d39a4977e134b27f8b1f1 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Fri, 29 May 2026 15:40:58 +0900 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E3=82=BF=E3=82=A4=E3=83=9E?= =?UTF-8?q?=E3=83=BC=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TimerControls.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/TimerControls.tsx b/src/components/TimerControls.tsx index 4e37cb5..1ed85b1 100644 --- a/src/components/TimerControls.tsx +++ b/src/components/TimerControls.tsx @@ -9,6 +9,7 @@ const TimerControls: React.FC = ({ onStart, onPause, onReset, + onRevert, onSettings, onHelp, onMinutesChange, @@ -278,6 +279,10 @@ const TimerControls: React.FC = ({ + + {/* ボリュームコントローラー */} From 51cf0b22e4a1ae586dbe0eb5b825e5158683e9a6 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Fri, 29 May 2026 15:51:12 +0900 Subject: [PATCH 4/8] =?UTF-8?q?fix:=20=E3=82=BF=E3=82=A4=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88=E3=83=9C=E3=82=BF=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E3=83=A9=E3=83=99=E3=83=AB=E3=82=92=E3=80=8CRestore?= =?UTF-8?q?=20Timer=E3=80=8D=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TimerControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TimerControls.tsx b/src/components/TimerControls.tsx index 1ed85b1..1221da9 100644 --- a/src/components/TimerControls.tsx +++ b/src/components/TimerControls.tsx @@ -281,7 +281,7 @@ const TimerControls: React.FC = ({ From e694d8eb72606cf4bdade703c317e8eba0c5ea37 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Sat, 30 May 2026 00:12:02 +0900 Subject: [PATCH 5/8] =?UTF-8?q?refactor(type):=20=E6=9B=96=E6=98=A7?= =?UTF-8?q?=E3=81=AA=E9=96=A2=E6=95=B0=E5=90=8D=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index c4304f5..644ad96 100644 --- a/src/types.ts +++ b/src/types.ts @@ -33,7 +33,7 @@ export interface TimerControlsProps { onStart: () => void; onPause: () => void; onReset: () => void; - onRevert: () => void; + onRevertTime: () => void; onSettings: () => void; onHelp: () => void; onMinutesChange: (minutes: number) => void; From 199861b996ad2c8e6ef0c72e7e7527554e8c8e92 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Sat, 30 May 2026 00:13:15 +0900 Subject: [PATCH 6/8] =?UTF-8?q?fix(args):=20type=E3=81=AE=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=81=AB=E4=BC=B4=E3=81=84=E3=80=81=E3=83=91=E3=83=A9?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=BF=E3=81=AE=E5=90=8D=E7=A7=B0=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 2ac328f..3f101ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1020,7 +1020,7 @@ const App: React.FC = () => { onStart={startTimer} onPause={pauseTimer} onReset={resetTimer} - onRevert={revertTimer} + onRevertTime={revertTimer} onSettings={openSettings} onHelp={() => setShowHelp(true)} onMinutesChange={(minutes) => From e4d37eb1f66b2a924f5f199535fd031869e1a0a3 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Sat, 30 May 2026 00:14:00 +0900 Subject: [PATCH 7/8] =?UTF-8?q?fix(args):=20=E3=83=91=E3=83=A9=E3=83=A1?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E5=90=8D=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=AB?= =?UTF-8?q?=E4=BC=B4=E3=81=84=E3=80=81=E5=8F=96=E5=BE=97=E5=81=B4=E3=82=82?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TimerControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TimerControls.tsx b/src/components/TimerControls.tsx index 1221da9..3be9893 100644 --- a/src/components/TimerControls.tsx +++ b/src/components/TimerControls.tsx @@ -9,7 +9,7 @@ const TimerControls: React.FC = ({ onStart, onPause, onReset, - onRevert, + onRevertTime, onSettings, onHelp, onMinutesChange, From 7f7cce9366a8972988aff735f852afe3244ccb76 Mon Sep 17 00:00:00 2001 From: tanahiro2010 Date: Sat, 30 May 2026 00:15:39 +0900 Subject: [PATCH 8/8] =?UTF-8?q?fix(handler):=20=E3=81=82=E3=81=84=E3=81=BE?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=83=8F=E3=83=B3=E3=83=89=E3=83=A9=E5=90=8D?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TimerControls.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TimerControls.tsx b/src/components/TimerControls.tsx index 3be9893..5a7d3f0 100644 --- a/src/components/TimerControls.tsx +++ b/src/components/TimerControls.tsx @@ -280,7 +280,7 @@ const TimerControls: React.FC = ({ Help -