diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index 5e58506..01ed63a 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -156,6 +156,7 @@ function App() { const [uploadUserId, setUploadUserId] = useState(() => localStorage.getItem('uploadUserId') || ''); const [userProfiles, setUserProfiles] = useState([]); // List of {username, connected: []} + const [showKeyModal, setShowKeyModal] = useState(false); const [jobId, setJobId] = useState(null); const [status, setStatus] = useState('idle'); // idle, processing, complete, error const [results, setResults] = useState(null); @@ -318,6 +319,10 @@ function App() { }; const handleProcess = async (data) => { + if (!apiKey) { + setShowKeyModal(true); + return; + } setStatus('processing'); setLogs(["Starting process..."]); setResults(null); @@ -830,6 +835,67 @@ function App() { + + {/* Missing API Key Modal */} + {showKeyModal && ( +
+ You need a Google Gemini API key to use the Clip Generator. It's free and takes 30 seconds to get. +
+How to get your free key:
+Optional: Auto-publish to social media
++ With an Upload-Post API key you can publish your clips directly to TikTok, Instagram Reels, and YouTube Shorts — or schedule them for later. Free tier available, no credit card needed. +
+