-
-
-
+ className={`inline-block w-3.5 h-3.5 rounded-full animate-spin border-2 border-accent-primary/20 border-t-accent-primary [animation-duration:0.7s] ${className ?? ""}`}
+ />
);
}
diff --git a/app/components/index.ts b/app/components/index.ts
index 81cff22f..546e1aab 100644
--- a/app/components/index.ts
+++ b/app/components/index.ts
@@ -4,3 +4,4 @@ export { default as VersionPill } from "./configurations/VersionPill";
export { default as DatasetListSkeleton } from "./DatasetListSkeleton";
export { default as RunsListSkeleton } from "./RunsListSkeleton";
export { default as ResultsTableSkeleton } from "./ResultsTableSkeleton";
+export { default as CommitMessage } from "./CommitMessage";
diff --git a/app/components/prompt-editor/ConfigEditorPane.tsx b/app/components/prompt-editor/ConfigEditorPane.tsx
index 721115b5..52670a82 100644
--- a/app/components/prompt-editor/ConfigEditorPane.tsx
+++ b/app/components/prompt-editor/ConfigEditorPane.tsx
@@ -69,7 +69,6 @@ export default function ConfigEditorPane({
.catch(() => {});
}, [apiKey]);
- // Close the save modal when a save just completed successfully.
useEffect(() => {
if (wasSavingRef.current && !isSaving && commitMessage === "") {
setShowSaveModal(false);
diff --git a/app/components/prompt-editor/HistorySidebar.tsx b/app/components/prompt-editor/HistorySidebar.tsx
index 7d37e9d4..09337441 100644
--- a/app/components/prompt-editor/HistorySidebar.tsx
+++ b/app/components/prompt-editor/HistorySidebar.tsx
@@ -1,6 +1,6 @@
import { Dispatch, SetStateAction, useCallback, useState } from "react";
import { Button, Loader } from "@/app/components/ui";
-import { VersionPill } from "@/app/components";
+import { CommitMessage, VersionPill } from "@/app/components";
import { ArrowLeftIcon } from "@/app/components/icons";
import {
ConfigPublic,
@@ -53,8 +53,8 @@ function VersionRow({
- {item.commit_message}
+
+
)}
@@ -93,7 +93,6 @@ function VersionRow({
);
}
-// Single-config version history (when a config is loaded in the editor)
interface SingleConfigHistoryProps {
configId: string;
configName: string;
diff --git a/app/lib/types/commit.ts b/app/lib/types/commit.ts
new file mode 100644
index 00000000..b066c5e4
--- /dev/null
+++ b/app/lib/types/commit.ts
@@ -0,0 +1,12 @@
+export interface ParsedCommit {
+ isAIGenerated: boolean;
+ fromVersion?: number;
+ evaluation?: string;
+ body: string;
+}
+
+export interface CommitMessageProps {
+ message: string | null | undefined;
+ className?: string;
+ compact?: boolean;
+}