Add quick-add watchlist button and consolidate server actions into lib/actions

Move all server actions from scattered page-level files into shared lib/actions/
directory (settings.ts, titles.ts, watchlist.ts) so they can be reused across
the app. Add a hover-triggered plus button on explore page title cards that lets
users add titles to their watchlist without navigating away.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 21:44:23 -05:00
co-authored by Claude Opus 4.6
parent 7a64ced5e0
commit bcf9a3c751
11 changed files with 129 additions and 22 deletions
+1
View File
@@ -73,6 +73,7 @@ export function TitleRow({ heading, icon, items }: TitleRowProps) {
releaseDate={item.releaseDate}
voteAverage={item.voteAverage}
href={`/titles/tmdb-${item.tmdbId}-${item.type}`}
showQuickAdd
/>
</motion.div>
</CarouselItem>