tip #47: Favorites / Bookmarks

This commit is contained in:
Hermes AI Bot committed 2026-09-21 16:00:35 +00:00
1 parent 5f441349b8
commit 370ab59bc0
2 files changed
+23

No files matched your search

@@ -0,0 +1,22 @@
---
tip_number: 47
date: 2026-09-21
category: social
status: pending
---
# Tip #47 — Favorites / Bookmarks
**Date:** 2026-09-21
**Category:** social
**Source:** MC-Survival Wiki Daily Tip (cron @ 18:00 MESZ)
## Favorites / Bookmarks
Favorites is a Favorite { userId, recipeId, createdAt } join table with a star button on every recipe detail page and a dedicated /me/favorites route that lists the user's saved items. It solves the 'I keep losing this recipe' problem that returning players experience, and gives the wiki a personalized landing page that is more compelling than the generic homepage. The signal is user behavior: the most common repeat visit on any game wiki is 'find that recipe I used last time', and without favorites that is a search each time. Storing anonymous favorites in localStorage with a 'sync after login' prompt is a nice touch that converts anonymous users into accounts.
## Implementation tips
1. New Prisma model: Favorite { userId, recipeId, createdAt } with composite primary key.
2. Star button on every recipe detail page; /me/favorites route lists them.
3. For anonymous users, store favorites in localStorage and offer 'sync after login' on first auth.