User story
As a developer, I want the auto-carousel feature completely removed from the codebase, so that there are no orphaned API routes or dead components after the page is deleted in Issue #76.
Background
Issue #76 deletes app/auto-carousel/page.tsx (the route) and app/login/page.tsx as part of the route reorganisation. However, it explicitly excludes changes to app/api/ and app/components/. This issue completes the auto-carousel removal by deleting the backend API route and the form component, and cleaning up all references.
Auto-carousel functionality: The feature called the Claude API to analyze a YouTube video transcript (fetched via CaptionExtractor) and automatically suggest carousel content. This functionality is being removed — it is not being moved to another route or preserved elsewhere.
Acceptance criteria
Happy path
Given this issue is merged
When a developer runs grep -r "auto-carousel\|AutoCarousel" app/ --include="*.ts" --include="*.tsx"
Then zero results are returned
Given the app is running after this issue is merged
When a request is made to POST /api/auto-carousel
Then Next.js returns 404 (no handler exists)
Given the landing page (app/page.tsx) is viewed
When this issue is merged
Then no tool card or link to /auto-carousel is present
Edge case
Given Header.tsx contains a nav link to /auto-carousel
When this issue is merged
Then that nav link is removed and no broken link remains
Out of scope
Technical context
Files to DELETE:
app/api/auto-carousel/route.ts
app/components/AutoCarouselForm.tsx
Files to EDIT (remove auto-carousel references):
Verify no other files import AutoCarouselForm or reference /auto-carousel:
grep -r "AutoCarouselForm\|auto-carousel" app/ --include="*.ts" --include="*.tsx" -l
Implementation details
- Delete
app/api/auto-carousel/route.ts
- Delete
app/components/AutoCarouselForm.tsx
- In
app/page.tsx: remove the Auto Bulk Carousel / Pro feature tool card and its import
- In
app/components/Header.tsx: remove the Auto Carousel nav entry if present
- Run
npm run build to confirm no import errors remain
Additional test scenarios
npm run build completes with zero errors after deletions
tsc --noEmit passes — no dangling imports referencing the deleted component or route types
Hard constraints
- Do not replace the auto-carousel feature with a stub or redirect — delete it entirely
- Do not touch
scripts/carousel/CaptionExtractor.js or CarouselGenerator.js (used by /carousel)
- Do not change the ANTHROPIC_API_KEY env var handling in other parts of the app
Dependency issues
User story
As a developer, I want the auto-carousel feature completely removed from the codebase, so that there are no orphaned API routes or dead components after the page is deleted in Issue #76.
Background
Issue #76 deletes
app/auto-carousel/page.tsx(the route) andapp/login/page.tsxas part of the route reorganisation. However, it explicitly excludes changes toapp/api/andapp/components/. This issue completes the auto-carousel removal by deleting the backend API route and the form component, and cleaning up all references.Auto-carousel functionality: The feature called the Claude API to analyze a YouTube video transcript (fetched via CaptionExtractor) and automatically suggest carousel content. This functionality is being removed — it is not being moved to another route or preserved elsewhere.
Acceptance criteria
Happy path
Given this issue is merged
When a developer runs
grep -r "auto-carousel\|AutoCarousel" app/ --include="*.ts" --include="*.tsx"Then zero results are returned
Given the app is running after this issue is merged
When a request is made to
POST /api/auto-carouselThen Next.js returns 404 (no handler exists)
Given the landing page (
app/page.tsx) is viewedWhen this issue is merged
Then no tool card or link to
/auto-carouselis presentEdge case
Given
Header.tsxcontains a nav link to/auto-carouselWhen this issue is merged
Then that nav link is removed and no broken link remains
Out of scope
app/auto-carousel/page.tsxitself (handled in Issue refactor(app): reorganise routes into (public) and (internal) Next.js route groups #76)/carouselor/get-youtube-captionsroutesANTHROPIC_API_KEYenv var (it may still be used by other future features)Technical context
Files to DELETE:
app/api/auto-carousel/route.tsapp/components/AutoCarouselForm.tsxFiles to EDIT (remove auto-carousel references):
app/page.tsx— remove the Auto Bulk Carousel tool card and any link to/auto-carouselapp/components/Header.tsx— remove the Auto Carousel nav link if presentapp/login/page.tsx— this file is also deleted in Issue refactor(app): reorganise routes into (public) and (internal) Next.js route groups #76; if that issue has already landed, no action needed hereVerify no other files import
AutoCarouselFormor reference/auto-carousel:Implementation details
app/api/auto-carousel/route.tsapp/components/AutoCarouselForm.tsxapp/page.tsx: remove the Auto Bulk Carousel / Pro feature tool card and its importapp/components/Header.tsx: remove the Auto Carousel nav entry if presentnpm run buildto confirm no import errors remainAdditional test scenarios
npm run buildcompletes with zero errors after deletionstsc --noEmitpasses — no dangling imports referencing the deleted component or route typesHard constraints
scripts/carousel/CaptionExtractor.jsorCarouselGenerator.js(used by /carousel)Dependency issues