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. +
+
+ ); +}