From 205ab8a223ddf6591a3e8bfc9108506502977c11 Mon Sep 17 00:00:00 2001 From: soryu Date: Fri, 16 Jan 2026 12:23:49 +0000 Subject: Fixup: use default api.makima.jp URL and fix default branch detection Also add checkpointing/history --- .../src/components/history/CheckpointList.tsx | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 makima/frontend/src/components/history/CheckpointList.tsx (limited to 'makima/frontend/src/components/history/CheckpointList.tsx') diff --git a/makima/frontend/src/components/history/CheckpointList.tsx b/makima/frontend/src/components/history/CheckpointList.tsx new file mode 100644 index 0000000..a12c155 --- /dev/null +++ b/makima/frontend/src/components/history/CheckpointList.tsx @@ -0,0 +1,51 @@ +import type { TaskCheckpoint } from "../../lib/api"; +import { CheckpointCard } from "./CheckpointCard"; + +interface CheckpointListProps { + checkpoints: TaskCheckpoint[]; + taskId: string; + onActionComplete: () => void; +} + +export function CheckpointList({ checkpoints, taskId, onActionComplete }: CheckpointListProps) { + // Sort checkpoints by number descending (most recent first) + const sortedCheckpoints = [...checkpoints].sort( + (a, b) => b.checkpointNumber - a.checkpointNumber + ); + + return ( +
+ {/* Header */} +
+
+
+ {checkpoints.length} checkpoint{checkpoints.length !== 1 ? "s" : ""} +
+
+ Fork or resume from any checkpoint +
+
+
+ + {/* Checkpoint list */} +
+ {sortedCheckpoints.length === 0 ? ( +
+
No checkpoints
+
+ ) : ( +
+ {sortedCheckpoints.map((checkpoint) => ( + + ))} +
+ )} +
+
+ ); +} -- cgit v1.2.3