diff --git a/dashboard/index.html b/dashboard/index.html index 2bcd6b7..9bc3b1d 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -4,7 +4,11 @@ - + + + + diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index c0f2af5..a33e0bc 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect, useRef } from 'react'; -import { Upload, Sparkles, Youtube, Instagram, Share2, ChevronDown, Check, Activity, LayoutDashboard, Settings, Plus, History, X, Terminal, Shield, LayoutGrid, Image, Globe, RotateCcw, Calendar, AlertTriangle, KeyRound, Bot, Users, Smartphone, ExternalLink, Copy, CheckCircle2, Mail, Loader2, Download } from 'lucide-react'; +import { Upload, Sparkles, Youtube, Instagram, Share2, ChevronDown, Check, Activity, LayoutDashboard, Settings, Plus, History, X, Terminal, Shield, LayoutGrid, Image, Globe, RotateCcw, Calendar, AlertTriangle, KeyRound, Bot, Users, Smartphone, ExternalLink, Copy, CheckCircle2, Mail, Loader2, Download, Menu } from 'lucide-react'; import KeyInput from './components/KeyInput'; import MediaInput from './components/MediaInput'; import ResultCard from './components/ResultCard'; @@ -108,16 +108,19 @@ const UserProfileSelector = ({ profiles, selectedUserId, onSelect, onConnect })
+ ); + })} + + +
+ +
+
+ ); + + // Mobile drawer: the complete nav, reachable from the header's menu button. + const MobileNavDrawer = () => ( +
+
setNavOpen(false)} + aria-hidden="true" + /> +
+
+ setNavOpen(false)}> +
+ +
+ openshorts +
+ +
+ + -
- - - landing page - - - - open source - - {billingEnabled && ( - - - plans & pricing - - )} - - - info@openshorts.app - +
+
+
+ ); + + // Bottom tab bar: the four everyday destinations plus "more" for the rest. + // It is a flex sibling of the scrolling pane rather than `fixed`, so nothing + // ever hides behind it and no pane needs compensating padding. + const MobileTabBar = () => { + const tabs = navItems.filter((n) => n.primary); + const moreActive = !tabs.some((t) => t.id === activeTab); + return ( + ); }; return ( -
+ /* h-dvh where supported: on mobile Safari/Chrome `100vh` is the tallest the + viewport ever gets, so a h-screen shell hides its own bottom bar behind + the browser chrome until the user scrolls. */ +
+ {navOpen && } -
+
{/* Top Header */} -
-
+
+
+ {/* Mobile: the drawer handle, and the section name the icon rail + used to carry. Without it a phone has no "where am I". */} + + + {activeNav?.label || 'openshorts'} + {status !== 'idle' && (
-
+
{userProfiles.length > 0 && ( } + {/* Hidden below sm: the standing banner underneath already says the + same thing, and two warnings in a 360px header is just noise. */} {keysMissing && ( )}
@@ -1008,10 +1157,10 @@ function App() { {/* Persistent Missing Keys Banner — visible on every screen */} {keysMissing && activeTab !== 'settings' && ( -
-
- -
+
+
+ +
Required API keys missing.{' '} {!apiKey && !uploadPostKey @@ -1024,7 +1173,7 @@ function App() {
@@ -1033,14 +1182,18 @@ function App() { {/* Session Recovery Banner */} {sessionRecovered && ( -
-
- +
+
+ Session recovered Your previous work has been restored.
-
)} @@ -1141,7 +1294,7 @@ function App() { Connect
-

+

@@ -1205,7 +1358,7 @@ function App() { {elevenLabsSaved ? <> saved : 'Save'}
-

+

@@ -1263,7 +1416,7 @@ function App() { {falSaved ? <> saved : 'Save'}
-

+

@@ -1409,7 +1562,7 @@ function App() { {/* View: UGC Gallery */} {activeTab === 'ugc-gallery' && (
-
+
@@ -1418,7 +1571,7 @@ function App() { {/* View: History */} {activeTab === 'history' && (
-
+
@@ -1447,21 +1600,24 @@ function App() { {/* View: Dashboard (Idle) */} {activeTab === 'dashboard' && status === 'idle' && (
-
-
-
-

01 · CLIP GENERATOR

-

+
+ {/* On a phone the hero used to fill the fold on its own and push + the uploader — the whole point of the screen — below it. The + eyebrow, the display size and the gaps all shrink first. */} +
+
+

01 · CLIP GENERATOR

+

Create Viral Shorts

-

+

Drop your long-form video below to instantly generate viral clips with AI.

-
+
YouTube Instagram TikTok @@ -1473,11 +1629,11 @@ function App() { {/* View: Processing / Results (Split View) */} {activeTab === 'dashboard' && (status === 'processing' || status === 'complete' || status === 'error') && ( -
+
{/* Left Panel: Preview & Status */} -
-
+
+

Live Analysis @@ -1510,21 +1666,29 @@ function App() { )} {/* Logs Terminal */} -
-
+
+ -
+ + {!logsVisible && logs.length > 0 && ( + {logs.length} + )} + + + {logsVisible && ( -
+
{logs.map((log, i) => (
- {new Date().toLocaleTimeString()} - {log} + {new Date().toLocaleTimeString()} + {log}
))} {status === 'processing' && ( @@ -1536,21 +1700,26 @@ function App() {
{/* Right Panel: Results Grid */} -
-

- Generated Shorts - {results?.clips?.length > 0 && ( - - {results.clips.length} Clips - - )} - {results?.cost_analysis && !isManaged && ( - - GEMINI · ${results.cost_analysis.total_cost.toFixed(5)} - - )} +
+ {/* Title + counters on one row, the two actions on their own row + below. Wrapping them all together dropped a lone half-width + "schedule week" pill under the title on a phone. */} +
+

+ Generated Shorts + {results?.clips?.length > 0 && ( + + {results.clips.length} Clips + + )} + {results?.cost_analysis && !isManaged && ( + + GEMINI · ${results.cost_analysis.total_cost.toFixed(5)} + + )} +

{results?.clips?.length > 0 && status === 'complete' && ( -
+

+
{status === 'complete' && results?.clips?.length > 0 && (
@@ -1592,14 +1761,29 @@ function App() { publishing them is one connect away. Hidden once any network is linked or the user dismisses it. */} {showSocialNudge && ( -
-
- Publish these clips straight from here.{' '} - Connect your YouTube, TikTok or Instagram once — after that every clip is one click from posted. +
+
+
+ Publish these clips straight from here.{' '} + Connect your YouTube, TikTok or Instagram once — after that every clip is one click from posted. +
+ {/* On a phone the dismiss X rides the copy, so the CTA + below can run the full width of the card. */} +
@@ -1610,7 +1794,7 @@ function App() { try { localStorage.setItem('os_social_nudge_dismissed', '1'); } catch (_) { /* ignore */ } }} aria-label="dismiss" - className="shrink-0 p-1 text-muted hover:text-ink" + className="hidden sm:block shrink-0 p-1 text-muted hover:text-ink" > @@ -1676,6 +1860,10 @@ function App() {
+ {/* Phone navigation. A flex sibling of the scrolling pane, not a fixed + overlay, so content is never trapped behind it. */} + +

{/* Missing API Key Modal */} diff --git a/dashboard/src/components/AdvancedBanner.jsx b/dashboard/src/components/AdvancedBanner.jsx index 9f41c82..ad2cba4 100644 --- a/dashboard/src/components/AdvancedBanner.jsx +++ b/dashboard/src/components/AdvancedBanner.jsx @@ -6,10 +6,10 @@ import { KeyRound, ArrowRight } from 'lucide-react'; // own keys for the premium generation. If they have no plan yet, also nudge trial. export default function AdvancedBanner({ needsPlan, onKeys }) { return ( -
-
- -
+
+
+ +
Advanced tool.{' '} {needsPlan ? <>Sign in with Google to unlock free. This tool also uses your own fal.ai + ElevenLabs keys (you pay those providers). @@ -18,7 +18,7 @@ export default function AdvancedBanner({ needsPlan, onKeys }) {
diff --git a/dashboard/src/components/ClipEditor.jsx b/dashboard/src/components/ClipEditor.jsx index bcc4b16..61f683e 100644 --- a/dashboard/src/components/ClipEditor.jsx +++ b/dashboard/src/components/ClipEditor.jsx @@ -1092,11 +1092,16 @@ export default function ClipEditor({ jobId, clipIndex, clipTitle, onClose, onRer

EDITOR · CLIP {clipIndex + 1}

-

edit clip

+

edit clip

{clipTitle &&

{clipTitle}

} + {/* Phone: the readouts move under the title — as a third + column they squeezed the title to two characters. */} +

+ {fmt(total)} · {needsSourcePath ? 'FULL RE-FRAME' : 'FAST RECUT'} +

-
-
+
+

DURATION · {fmt(total)}

{needsSourcePath ? 'PATH · FULL RE-FRAME' : 'PATH · FAST RECUT'} @@ -1109,15 +1114,16 @@ export default function ClipEditor({ jobId, clipIndex, clipTitle, onClose, onRer title={showSource ? 'put the source monitor away and edit the clip on its own' : 'bring back the source monitor, its transcript and in/out marking'} - className="btn-quiet text-xs py-1.5 px-3 flex items-center gap-1.5 lowercase" + aria-label={showSource ? 'hide source' : 'show source'} + className="btn-quiet text-xs py-1.5 px-2.5 sm:px-3 flex items-center gap-1.5 lowercase" > {showSource ? : } - {showSource ? 'hide source' : 'show source'} + {showSource ? 'hide source' : 'show source'} )} {confirmClose ? ( -

- discard changes? +
+ discard changes?
diff --git a/dashboard/src/components/MediaInput.jsx b/dashboard/src/components/MediaInput.jsx index 5d831f1..8f84ca4 100644 --- a/dashboard/src/components/MediaInput.jsx +++ b/dashboard/src/components/MediaInput.jsx @@ -228,7 +228,7 @@ export default function MediaInput({ onProcess, isProcessing }) { }} /> {f.label} - {f.hint} + {f.hint} ); })} @@ -249,7 +249,9 @@ export default function MediaInput({ onProcess, isProcessing }) { )} {showAdvanced && ( -
+ /* Stacked on a phone: three number fields side by side leaves + ~100px each, which crushes both label and value. */ +

clips to aim for

-

+

Targets, not guarantees: the AI returns fewer clips when the material doesn't hold them. Leave blank to let it decide.

-
+
@@ -313,12 +315,12 @@ export default function MediaInput({ onProcess, isProcessing }) { )}
-
e.stopPropagation()}>Privacy Policy. diff --git a/dashboard/src/components/ReframeEditor.jsx b/dashboard/src/components/ReframeEditor.jsx index f832f99..0d0b91b 100644 --- a/dashboard/src/components/ReframeEditor.jsx +++ b/dashboard/src/components/ReframeEditor.jsx @@ -137,8 +137,10 @@ export default function ReframeEditor({ jobId, clipIndex, clipTitle, onClose, on }; return ( -
-
+ /* Bottom sheet on a phone, centred dialog from sm — same shape as the + shared Modal so the app has one overlay idiom, not two. */ +
+
@@ -152,7 +154,7 @@ export default function ReframeEditor({ jobId, clipIndex, clipTitle, onClose, on
-
+

Play a scene to hear who is talking, then drag the rectangle over the person you want. Each scene is one camera. Scenes you leave @@ -191,13 +193,13 @@ export default function ReframeEditor({ jobId, clipIndex, clipTitle, onClose, on ))}

-
+
{adjusted === 0 ? 'nothing adjusted yet' : `${adjusted} scene${adjusted > 1 ? 's' : ''} reframed by hand`} -
+
+
); diff --git a/dashboard/src/components/ResultCard.jsx b/dashboard/src/components/ResultCard.jsx index 2757351..4f3eea1 100644 --- a/dashboard/src/components/ResultCard.jsx +++ b/dashboard/src/components/ResultCard.jsx @@ -11,7 +11,7 @@ import WatermarkModal, { watermarkNoticeDismissed } from './WatermarkModal'; import { useAuth } from '../contexts/AuthContext'; import { renderInBrowser } from '../lib/renderInBrowser'; -const QUIET_BTN = 'group flex flex-col items-center justify-center gap-1 py-2 px-1 rounded-input border border-rule hover:bg-paper3 text-[11px] lowercase text-ink2 whitespace-nowrap transition-colors disabled:opacity-45 disabled:cursor-not-allowed'; +const QUIET_BTN = 'group flex flex-col items-center justify-center gap-1 py-2.5 sm:py-2 px-1 rounded-input border border-rule hover:bg-paper3 text-[11px] lowercase text-ink2 whitespace-nowrap transition-colors disabled:opacity-45 disabled:cursor-not-allowed'; const PLATFORM_OPTIONS = [ { value: 'tiktok', label: 'tiktok', icon: