From 91217f6db075cd5982cf4e3f55a80166629b5cb1 Mon Sep 17 00:00:00 2001 From: dillonj Date: Wed, 6 May 2026 01:43:55 -0600 Subject: [PATCH] added free trial timer at welcome screen --- frontend/src/App.tsx | 142 +++++++++++++++++++++++++++---------------- 1 file changed, 88 insertions(+), 54 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8155512..d2a402d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -33,6 +33,8 @@ import { MapPin, Music, ListVideo, + Clock, + AlertTriangle, } from 'lucide-react'; const LAST_MEDIA_PATH_KEY = 'talkedit:lastMediaPath'; @@ -136,6 +138,8 @@ export default function App() { const [lastSavedSignature, setLastSavedSignature] = useState(null); const [showFileMenu, setShowFileMenu] = useState(false); const canEdit = useLicenseStore((s) => s.canEdit); + const licenseStatus = useLicenseStore((s) => s.status); + const setShowLicenseDialog = useLicenseStore((s) => s.setShowDialog); const projectSignature = useMemo(() => { if (!videoPath) return null; @@ -505,64 +509,94 @@ export default function App() { if (!videoPath) { return ( -
-
- -

TalkEdit

-

- Offline AI-powered video editor. +

+
+
+ +

TalkEdit

+

+ Offline AI-powered video editor. +

+
+ + {/* Whisper model selector */} +
+ + +
+

+ For noisy/YouTube videos use large-v3 or large-v3-turbo. + English-only models are ~10% faster and more accurate for English content.

+ +
+ + +
- {/* Whisper model selector */} -
- - -
-

- For noisy/YouTube videos use large-v3 or large-v3-turbo. - English-only models are ~10% faster and more accurate for English content. -

+ {licenseStatus?.tag === 'Trial' && ( +
+ + + Free trial: {licenseStatus.days_remaining} day{licenseStatus.days_remaining !== 1 ? 's' : ''} remaining + + +
+ )} -
- - -
+ {licenseStatus?.tag === 'Expired' && ( +
+ + Trial expired + +
+ )}
); }