fix(social): say that a tiktok draft carries no caption, and say it when scheduling a week

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
This commit is contained in:
juancarlos.cavero 2026-08-29 01:42:45 +02:00
parent 4a137005ca
commit 9c7cae2173
3 changed files with 47 additions and 15 deletions

View file

@ -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,
</div>
)}
{/* 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 && (
<div className="mb-4 px-3 py-2 rounded-input text-xs text-ink2 bg-paper3 flex items-start gap-2">
<AlertCircle size={14} className="mt-0.5 shrink-0 text-brass" />
<div className="lowercase">
tiktok arrives as a <b className="text-ink">draft</b>, 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.
</div>
</div>
)}
{/* Both the title/description fields below and the schedule
button are downstream of this: on a tiktok draft neither
travels. See TikTokDraftNotice. */}
{platforms.tiktok && <TikTokDraftNotice />}
<div className="space-y-4">
{/* Title & Description */}

View file

@ -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
/>
</div>
{/* 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 && <TikTokDraftNotice />}
{/* Progress bar */}
{(scheduling || done) && (
<div className="mb-1">

View file

@ -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 (
<div className="mb-4 px-3 py-2 rounded-input text-xs text-ink2 bg-paper3 flex items-start gap-2">
<AlertCircle size={14} className="mt-0.5 shrink-0 text-brass" />
<div className="lowercase">
tiktok arrives as a <b className="text-ink">draft</b>, 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.
</div>
</div>
);
}