Skip to content

Commit 1dfd092

Browse files
authored
lock audio dubbing feature
lock audio dubbing feature
2 parents 18ce555 + 9e99891 commit 1dfd092

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

apps/web/app/dashboard/dubbing/new/page.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
1111
import { Progress } from "@repo/ui/progress";
1212
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@repo/ui/tabs";
1313
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@repo/ui/tooltip";
14-
import { Loader2, Play, Download, UploadCloud, RefreshCw, ArrowLeft, CheckCircle2 } from "lucide-react";
14+
import { Loader2, Play, Download, UploadCloud, RefreshCw, ArrowLeft, CheckCircle2, Clock } from "lucide-react";
1515
import { useDubbing } from "@/hooks/useDubbing";
1616
import { supportedLanguages } from "@repo/validation";
1717
import { downloadFile } from "@/lib/download";
@@ -36,6 +36,8 @@ export default function NewDubbing() {
3636

3737
const [activeTab, setActiveTab] = useState("create");
3838

39+
const isComingSoon = true;
40+
3941
// Auto-switch to preview tab when dubbing completes
4042
useEffect(() => {
4143
if (dubbedResult && progress.state === "completed") {
@@ -69,7 +71,7 @@ export default function NewDubbing() {
6971
}, [dubbedResult, isVideo]);
7072

7173
return (
72-
<div className="container py-8 max-w-full mx-auto">
74+
<div className="container py-8 max-w-full mx-auto relative">
7375
<div className="mb-8 flex flex-col items-start gap-4 sm:flex-row sm:justify-between sm:items-center">
7476
<div>
7577
<h1 className="text-3xl font-bold tracking-tight">New Dubbing</h1>
@@ -270,6 +272,28 @@ export default function NewDubbing() {
270272
)}
271273
</TabsContent>
272274
</Tabs>
275+
276+
{isComingSoon && (
277+
<div className="absolute inset-0 bg-slate-100/80 dark:bg-slate-900/80 backdrop-blur-sm flex items-center justify-center z-50">
278+
<div className="text-center space-y-4 px-4 max-w-md">
279+
<Clock className="h-12 w-12 mx-auto text-slate-500 dark:text-slate-400" />
280+
<h2 className="text-2xl font-bold text-slate-900 dark:text-slate-100">
281+
Coming Soon
282+
</h2>
283+
<p className="text-slate-600 dark:text-slate-400">
284+
AI-powered audio &amp; video dubbing is under preparation.<br />
285+
Stay tuned, launching very soon!
286+
</p>
287+
<Button
288+
variant="outline"
289+
onClick={() => router.push("/dashboard")}
290+
className="bg-slate-950 hover:bg-slate-900 text-white"
291+
>
292+
Back to Dashboard
293+
</Button>
294+
</div>
295+
</div>
296+
)}
273297
</div>
274298
);
275299
}

apps/web/app/dashboard/dubbing/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function DubbingList() {
5151
const [searchQuery, setSearchQuery] = useState("")
5252
const [dubbingToDelete, setDubbingToDelete] = useState<string | null>(null)
5353

54-
const isComingSoon = false
54+
const isComingSoon = true
5555

5656
useEffect(() => {
5757
const fetchDubbings = async () => {

apps/web/components/dashboard/sidebar/dashboard-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function DashboardSidebar({ collapsed, setCollapsed, pinned, setPinned }:
172172
{ label: "Subtitles", icon: <MessageSquareIcon className="h-4 w-4" />, variant: "ghost", href: "/dashboard/subtitles" },
173173
{ label: "Video Generation", icon: <Video className="h-4 w-4" />, variant: "ghost", href: "/dashboard/video-generation", badge: "Soon", locked: true },
174174
{ label: "Course Builder", icon: <BookOpenIcon className="h-4 w-4" />, variant: "ghost", href: "/dashboard/courses", badge: "Soon", locked: true },
175-
{ label: "Audio Dubbing", icon: <MicIcon className="h-4 w-4" />, variant: "ghost", href: "/dashboard/dubbing" },
175+
{ label: "Audio Dubbing", icon: <MicIcon className="h-4 w-4" />, variant: "ghost", href: "/dashboard/dubbing", badge: "Soon", locked: true },
176176
]
177177

178178
const links: ReadonlyArray<NavLink> = baseLinks

0 commit comments

Comments
 (0)