Skip to content

chore(auto-carousel): remove API route, form component, page, and all references#87

Open
natashaannn wants to merge 4 commits into
mainfrom
chore/remove-auto-carousel
Open

chore(auto-carousel): remove API route, form component, page, and all references#87
natashaannn wants to merge 4 commits into
mainfrom
chore/remove-auto-carousel

Conversation

@natashaannn

Copy link
Copy Markdown
Member

Summary

  • Deletes app/api/auto-carousel/route.ts and app/components/AutoCarouselForm.tsx — the Claude-backed LLM route and its form component are fully removed; POST /api/auto-carousel now returns 404.
  • Removes all /auto-carousel references from app/page.tsx (tool card), app/components/Header.tsx (nav link), and app/login/page.tsx (post-login redirect now points to /carousel).
  • Deletes app/auto-carousel/page.tsx as well — Issue refactor(app): reorganise routes into (public) and (internal) Next.js route groups #76 (which was supposed to handle this) never merged, so the cleanup is completed here.
  • Updates CLAUDE.md to remove the now-deleted AutoCarouselForm.tsx from the Key Source Files table.

How to review

  • app/api/auto-carousel/route.ts — entire file deleted; verify no import of this route remains.
  • app/components/AutoCarouselForm.tsx — entire file deleted; app/page.tsx diff should show only its import removal and the tool card block.
  • app/page.tsx — should lose exactly the Auto Bulk Carousel card and its import; two remaining cards now fill/center the container.
  • app/components/Header.tsx — diff should show only the removal of the Auto Carousel nav entry.
  • app/login/page.tsx — redirect target changed from /auto-carousel/carousel; text updated. This file will be deleted by Issue refactor(app): reorganise routes into (public) and (internal) Next.js route groups #76.
  • app/components/Header.test.tsx + app/page.test.tsx — new tests asserting no /auto-carousel links remain in the rendered header and landing page.

Test plan

  • npm test passes (369 tests, node + react projects)
  • npm run build succeeds — no /auto-carousel route in route manifest
  • tsc --noEmit passes — no dangling imports

Manual verification completed:

  • [UI-BROWSER] Landing page (/) — no Auto Bulk Carousel card, no /auto-carousel link; remaining two cards fill and center the container
  • [UI-BROWSER] Header — no Auto Carousel nav entry; remaining nav renders cleanly
  • [API-404] POST /api/auto-carousel returns 404

Closes #81

🤖 Generated with Claude Code

Removes all files that constitute the auto-carousel feature:
- app/api/auto-carousel/route.ts — Claude API + CaptionExtractor backend
- app/components/AutoCarouselForm.tsx — the pro-gated form UI
- app/auto-carousel/page.tsx — the route page (Issue #76 scope, pulled forward
  because AutoCarouselForm was its only meaningful dependency and now gone)

Deleting the page here rather than leaving a broken import unresolvable by tsc.

AC: POST /api/auto-carousel now returns 404; no AutoCarouselForm import anywhere
…d login

Cleans up every remaining mention of /auto-carousel or AutoCarousel in
production code:
- app/page.tsx: removes the Auto Bulk Carousel Pro tool card and related
  imports (IconWand, IconLock, Box); consolidates the philosophy section text
- app/components/Header.tsx: removes the /auto-carousel nav entry and unused
  IconWand import from NAV_LINKS
- app/login/page.tsx: redirects post-login to /carousel instead of the
  deleted /auto-carousel route; removes feature-specific copy

Also adds smoke render tests for Header and the landing page asserting that
no link to /auto-carousel exists in either component.

AC: #1 (zero grep hits), #3 (no tool card on landing page), #4 (no nav link)
…Files

The file no longer exists following issue #81 cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(auto-carousel): remove auto-carousel API route, component, and all references

1 participant