Skip to content

Open source CapCut alternative.

TypeScript

feat(site): move social captions from the subtitles panel to a chat chip

David Le4170803b37eb
diff --git a/site/src/cut/components/AiPanel.tsx b/site/src/cut/components/AiPanel.tsx
index 75286ea7..42df3c23 100644
--- a/site/src/cut/components/AiPanel.tsx
+++ b/site/src/cut/components/AiPanel.tsx
@@ -106,7 +106,7 @@ const PROVIDER_LABEL: Record<string, string> = {
const SUGGESTIONS = [
"What's in this video?",
"Make my title punchier",
- "Add subtitles",
+ "Add social captions",
"Write a TikTok caption",
];
diff --git a/site/src/cut/components/SubtitlesPanel.tsx b/site/src/cut/components/SubtitlesPanel.tsx
index e7ec31cf..c2341c3a 100644
--- a/site/src/cut/components/SubtitlesPanel.tsx
+++ b/site/src/cut/components/SubtitlesPanel.tsx
@@ -73,7 +73,7 @@ export function SubtitlesPanel() {
</div>
{!hasCues ? (
- <EmptyState status={status} error={error} onGenerate={generate} onCaptions={captions} />
+ <EmptyState status={status} error={error} onGenerate={generate} />
) : (
<>
<Transcript cues={subtitles.cues} />
@@ -148,12 +148,10 @@ function EmptyState({
status,
error,
onGenerate,
- onCaptions,
}: {
status: string;
error: string | null;
onGenerate: () => void;
- onCaptions: () => void;
}) {
const locale = useEditor((s) => s.subtitles.locale ?? "en-US");
@@ -212,17 +210,6 @@ function EmptyState({
<Captions data-icon="inline-start" />
{status === "empty" || status === "error" ? "Try again" : "Generate subtitles"}
</Button>
- {status !== "empty" && (
- <Button
- variant="outline"
- className="sub-social w-full"
- onClick={onCaptions}
- title="Rewrite the captions for social — tighter lines, emoji, and a stronger hook"
- >
- <Sparkles data-icon="inline-start" />
- Social captions
- </Button>
- )}
</div>
);
}