From 9c7cae2173e7173061eecfeb82339987f84bf0e2 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Sat, 29 Aug 2026 01:42:45 +0200 Subject: [PATCH] fix(social): say that a tiktok draft carries no caption, and say it when scheduling a week MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ResultCard warned that tiktok arrives as a draft; ScheduleWeekModal, which queues a whole week at once and has tiktok on by default, said nothing. That is the worse of the two: a silent drawer of drafts and a profile that stays empty for seven days reads as a broken integration. Both notices were also missing the actionable half. TikTok's upload-to-inbox endpoint takes only source_info — there is no post_info anywhere in the request — so the title and description we send are dropped for a video draft, whether the user typed them in ResultCard or the AI wrote them for the weekly queue. The user has to write them in the app, and neither screen said so. Extracted to one component so the two copies cannot drift. Claude-Session: https://claude.ai/code/session_01KeQYCfUX2E9Q2fDgZMKEaJ --- dashboard/src/components/ResultCard.jsx | 20 +++-------- .../src/components/ScheduleWeekModal.jsx | 7 ++++ .../src/components/TikTokDraftNotice.jsx | 35 +++++++++++++++++++ 3 files changed, 47 insertions(+), 15 deletions(-) create mode 100644 dashboard/src/components/TikTokDraftNotice.jsx diff --git a/dashboard/src/components/ResultCard.jsx b/dashboard/src/components/ResultCard.jsx index 23a81e4..c3834ad 100644 --- a/dashboard/src/components/ResultCard.jsx +++ b/dashboard/src/components/ResultCard.jsx @@ -8,6 +8,7 @@ import TranslateModal from './TranslateModal'; import Modal from './ui/Modal'; import SegmentedControl from './ui/SegmentedControl'; import WatermarkModal, { watermarkNoticeDismissed } from './WatermarkModal'; +import TikTokDraftNotice from './TikTokDraftNotice'; import { useAuth } from '../contexts/AuthContext'; import { renderInBrowser } from '../lib/renderInBrowser'; @@ -1009,21 +1010,10 @@ export default function ResultCard({ clip, index, jobId, durable, uploadPostKey, )} - {/* TikTok is sent as a draft, so say so before they press publish: - someone expecting a live post and finding nothing on their - profile will read it as a failure. Lead with the upside — - posting from inside the app is what the algorithm rewards. */} - {platforms.tiktok && ( -
- -
- tiktok arrives as a draft, not a live post — you'll - get a notification in the app. finishing it there lets you add trending - sounds, effects and hashtags, which reaches more people than posting - straight from an api. -
-
- )} + {/* Both the title/description fields below and the schedule + button are downstream of this: on a tiktok draft neither + travels. See TikTokDraftNotice. */} + {platforms.tiktok && }
{/* Title & Description */} diff --git a/dashboard/src/components/ScheduleWeekModal.jsx b/dashboard/src/components/ScheduleWeekModal.jsx index a577bbd..6eabbb7 100644 --- a/dashboard/src/components/ScheduleWeekModal.jsx +++ b/dashboard/src/components/ScheduleWeekModal.jsx @@ -3,6 +3,7 @@ import { Loader2, Calendar, CheckCircle, AlertCircle, Video, Instagram, Youtube, import { apiFetch } from '../lib/api'; import Modal from './ui/Modal'; import SegmentedControl from './ui/SegmentedControl'; +import TikTokDraftNotice from './TikTokDraftNotice'; const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; @@ -335,6 +336,12 @@ export default function ScheduleWeekModal({ isOpen, onClose, clips, jobId, uploa />
+ {/* A whole week of tiktok posts is a whole week of silent drafts: + this modal writes no captions of its own either (it sends the + clip's generated title/description), and tiktok keeps none of + them on a draft. Say it before the button, not after. */} + {platforms.tiktok && !scheduling && !done && } + {/* Progress bar */} {(scheduling || done) && (
diff --git a/dashboard/src/components/TikTokDraftNotice.jsx b/dashboard/src/components/TikTokDraftNotice.jsx new file mode 100644 index 0000000..f2ab342 --- /dev/null +++ b/dashboard/src/components/TikTokDraftNotice.jsx @@ -0,0 +1,35 @@ +import React from 'react'; +import { AlertCircle } from 'lucide-react'; + +/** + * Shown wherever tiktok is among the selected platforms, before the button + * that posts or schedules. + * + * Two different people need it. Someone who publishes one clip expects a live + * post and finds nothing on their profile, and reads that as a failure. Someone + * who schedules a week gets a silent drawer of drafts and a profile that stays + * empty for seven days. + * + * The title/description line is not a detail: TikTok's upload-to-inbox endpoint + * takes only source_info (the bytes), with no post_info anywhere in the request, + * so the caption we send is dropped on the floor for a video draft — whether the + * user typed it or the AI wrote it. Saying only "it arrives as a draft" leaves + * them to discover that in the app. + * + * Lead with the upside: finishing the post inside TikTok is what the algorithm + * rewards, so this is a better default, not a limitation we are apologising for. + */ +export default function TikTokDraftNotice() { + return ( +
+ +
+ tiktok arrives as a draft, not a live post — you'll + get a notification in the app. its api won't carry the title or description + onto a draft, so you write those there too, along with trending sounds, + effects and hashtags — which reaches more people than posting straight + from an api. +
+
+ ); +}