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
@@ -7,7 +7,7 @@ import {
deleteWebhookConnection,
regenerateWebhookToken,
saveWebhookConnection,
} from "./actions";
} from "@/lib/actions/settings";
import { WebhookCard, type WebhookConnection } from "./webhook-card";
export function IntegrationsSection({