Skip to content

Commit e15a18f

Browse files
author
Miriad
committed
feat(phase0): restructure dashboard — remove legacy, scaffold Content Ops dashboard with shadcn
1 parent 09ad36c commit e15a18f

File tree

29 files changed

+585
-553
lines changed

29 files changed

+585
-553
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
export default function ContentPage() {
2+
return (
3+
<div className="flex flex-col gap-6">
4+
<div>
5+
<h1 className="text-3xl font-bold tracking-tight">
6+
Content Management
7+
</h1>
8+
<p className="text-muted-foreground">
9+
Manage content ideas and automated video pipeline.
10+
</p>
11+
</div>
12+
13+
<div className="grid gap-4 md:grid-cols-2">
14+
<div className="rounded-lg border p-6">
15+
<h2 className="text-lg font-semibold">Content Ideas</h2>
16+
<p className="mt-2 text-sm text-muted-foreground">
17+
List of contentIdea records from Sanity — topics, status, priority,
18+
and assigned categories. Will support filtering by status (draft,
19+
approved, published, flagged).
20+
</p>
21+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
22+
📋 Data table coming in Phase 1a
23+
</div>
24+
</div>
25+
26+
<div className="rounded-lg border p-6">
27+
<h2 className="text-lg font-semibold">Automated Videos</h2>
28+
<p className="mt-2 text-sm text-muted-foreground">
29+
List of automatedVideo records — YouTube publish status, view
30+
counts, and linked content ideas. Will show pipeline progress from
31+
idea → script → video → published.
32+
</p>
33+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
34+
🎬 Video pipeline view coming in Phase 1a
35+
</div>
36+
</div>
37+
</div>
38+
</div>
39+
)
40+
}

app/(dashboard)/dashboard/page.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { SectionCards } from "@/components/section-cards"
2+
3+
export default function DashboardPage() {
4+
return (
5+
<div className="flex flex-col gap-6">
6+
<div>
7+
<h1 className="text-3xl font-bold tracking-tight">
8+
Content Ops Dashboard
9+
</h1>
10+
<p className="text-muted-foreground">
11+
Overview of your automated content engine — videos, sponsors, and
12+
pipeline health.
13+
</p>
14+
</div>
15+
16+
<SectionCards />
17+
18+
<div className="grid gap-4 md:grid-cols-2">
19+
<div className="rounded-lg border p-6">
20+
<h2 className="text-lg font-semibold">Recent Activity</h2>
21+
<p className="mt-2 text-sm text-muted-foreground">
22+
Activity feed will show recent content publications, sponsor
23+
updates, and pipeline events.
24+
</p>
25+
</div>
26+
<div className="rounded-lg border p-6">
27+
<h2 className="text-lg font-semibold">Upcoming Schedule</h2>
28+
<p className="mt-2 text-sm text-muted-foreground">
29+
Cadence calendar showing scheduled content drops and sponsor
30+
deliverables.
31+
</p>
32+
</div>
33+
</div>
34+
</div>
35+
)
36+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
export default function SettingsPage() {
2+
return (
3+
<div className="flex flex-col gap-6">
4+
<div>
5+
<h1 className="text-3xl font-bold tracking-tight">Settings</h1>
6+
<p className="text-muted-foreground">
7+
Configure your content engine — cadence, categories, and rate card.
8+
</p>
9+
</div>
10+
11+
<div className="grid gap-4 md:grid-cols-2">
12+
<div className="rounded-lg border p-6">
13+
<h2 className="text-lg font-semibold">Publishing Cadence</h2>
14+
<p className="mt-2 text-sm text-muted-foreground">
15+
Set the publishing schedule — how many videos per week, preferred
16+
publish days, and time slots. Controls the automated pipeline
17+
pacing.
18+
</p>
19+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
20+
📅 Cadence settings coming in Phase 1b
21+
</div>
22+
</div>
23+
24+
<div className="rounded-lg border p-6">
25+
<h2 className="text-lg font-semibold">Categories</h2>
26+
<p className="mt-2 text-sm text-muted-foreground">
27+
Manage content categories and tags — used for content idea
28+
classification and YouTube metadata.
29+
</p>
30+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
31+
🏷️ Category management coming in Phase 1b
32+
</div>
33+
</div>
34+
35+
<div className="rounded-lg border p-6">
36+
<h2 className="text-lg font-semibold">Sponsor Rate Card</h2>
37+
<p className="mt-2 text-sm text-muted-foreground">
38+
Define sponsorship tiers, pricing, and deliverables. Used by the
39+
sponsor portal and pipeline.
40+
</p>
41+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
42+
💳 Rate card editor coming in Phase 1c
43+
</div>
44+
</div>
45+
46+
<div className="rounded-lg border p-6">
47+
<h2 className="text-lg font-semibold">Integrations</h2>
48+
<p className="mt-2 text-sm text-muted-foreground">
49+
API keys and connections — YouTube API, Sanity webhooks, and
50+
notification channels.
51+
</p>
52+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
53+
🔌 Integration settings coming in Phase 2
54+
</div>
55+
</div>
56+
</div>
57+
</div>
58+
)
59+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
export default function SponsorsPage() {
2+
return (
3+
<div className="flex flex-col gap-6">
4+
<div>
5+
<h1 className="text-3xl font-bold tracking-tight">
6+
Sponsor Pipeline
7+
</h1>
8+
<p className="text-muted-foreground">
9+
Manage sponsor leads, active deals, and revenue tracking.
10+
</p>
11+
</div>
12+
13+
<div className="grid gap-4 md:grid-cols-3">
14+
<div className="rounded-lg border p-6">
15+
<h2 className="text-lg font-semibold">Leads</h2>
16+
<p className="mt-2 text-sm text-muted-foreground">
17+
Incoming sponsorLead records — company, contact, status, and
18+
proposed deal terms. Kanban view of pipeline stages.
19+
</p>
20+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
21+
🤝 Lead pipeline coming in Phase 1c
22+
</div>
23+
</div>
24+
25+
<div className="rounded-lg border p-6">
26+
<h2 className="text-lg font-semibold">Active Sponsors</h2>
27+
<p className="mt-2 text-sm text-muted-foreground">
28+
Current active sponsor deals with deliverable tracking, payment
29+
status, and content placement.
30+
</p>
31+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
32+
✅ Active deals view coming in Phase 1c
33+
</div>
34+
</div>
35+
36+
<div className="rounded-lg border p-6">
37+
<h2 className="text-lg font-semibold">Revenue</h2>
38+
<p className="mt-2 text-sm text-muted-foreground">
39+
Monthly and quarterly revenue charts, rate card performance, and
40+
sponsor ROI metrics.
41+
</p>
42+
<div className="mt-4 rounded-md bg-muted p-4 text-sm text-muted-foreground">
43+
💰 Revenue dashboard coming in Phase 1c
44+
</div>
45+
</div>
46+
</div>
47+
</div>
48+
)
49+
}

app/(dashboard)/layout.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { AppSidebar } from "@/components/app-sidebar"
2+
import { SiteHeader } from "@/components/site-header"
3+
import { SidebarProvider, SidebarInset } from "@/components/ui/sidebar"
4+
5+
export default function DashboardLayout({
6+
children,
7+
}: {
8+
children: React.ReactNode
9+
}) {
10+
// TODO: Add auth boundary — redirect to login if not authenticated
11+
return (
12+
<SidebarProvider>
13+
<AppSidebar />
14+
<SidebarInset>
15+
<SiteHeader />
16+
<main className="flex flex-1 flex-col gap-4 p-4 md:p-6">
17+
{children}
18+
</main>
19+
</SidebarInset>
20+
</SidebarProvider>
21+
)
22+
}

app/(main)/(user)/dashboard/bookmarks/bookmarks.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/(main)/(user)/dashboard/bookmarks/page.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/(main)/(user)/dashboard/layout.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

app/(main)/(user)/dashboard/page.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/(main)/(user)/settings/account/page.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)