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:
parent
4a137005ca
commit
9c7cae2173
3 changed files with 47 additions and 15 deletions
|
|
@ -8,6 +8,7 @@ import TranslateModal from './TranslateModal';
|
||||||
import Modal from './ui/Modal';
|
import Modal from './ui/Modal';
|
||||||
import SegmentedControl from './ui/SegmentedControl';
|
import SegmentedControl from './ui/SegmentedControl';
|
||||||
import WatermarkModal, { watermarkNoticeDismissed } from './WatermarkModal';
|
import WatermarkModal, { watermarkNoticeDismissed } from './WatermarkModal';
|
||||||
|
import TikTokDraftNotice from './TikTokDraftNotice';
|
||||||
import { useAuth } from '../contexts/AuthContext';
|
import { useAuth } from '../contexts/AuthContext';
|
||||||
import { renderInBrowser } from '../lib/renderInBrowser';
|
import { renderInBrowser } from '../lib/renderInBrowser';
|
||||||
|
|
||||||
|
|
@ -1009,21 +1010,10 @@ export default function ResultCard({ clip, index, jobId, durable, uploadPostKey,
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* TikTok is sent as a draft, so say so before they press publish:
|
{/* Both the title/description fields below and the schedule
|
||||||
someone expecting a live post and finding nothing on their
|
button are downstream of this: on a tiktok draft neither
|
||||||
profile will read it as a failure. Lead with the upside —
|
travels. See TikTokDraftNotice. */}
|
||||||
posting from inside the app is what the algorithm rewards. */}
|
{platforms.tiktok && <TikTokDraftNotice />}
|
||||||
{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>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{/* Title & Description */}
|
{/* Title & Description */}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { Loader2, Calendar, CheckCircle, AlertCircle, Video, Instagram, Youtube,
|
||||||
import { apiFetch } from '../lib/api';
|
import { apiFetch } from '../lib/api';
|
||||||
import Modal from './ui/Modal';
|
import Modal from './ui/Modal';
|
||||||
import SegmentedControl from './ui/SegmentedControl';
|
import SegmentedControl from './ui/SegmentedControl';
|
||||||
|
import TikTokDraftNotice from './TikTokDraftNotice';
|
||||||
|
|
||||||
const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
||||||
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
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>
|
</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 */}
|
{/* Progress bar */}
|
||||||
{(scheduling || done) && (
|
{(scheduling || done) && (
|
||||||
<div className="mb-1">
|
<div className="mb-1">
|
||||||
|
|
|
||||||
35
dashboard/src/components/TikTokDraftNotice.jsx
Normal file
35
dashboard/src/components/TikTokDraftNotice.jsx
Normal 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue