Add My Bar, Bartender, Recommend features + drink images

- Drink Images: upload/display photos of bottles/cans on drink cards and detail pages
- My Bar: inventory tracker for spirits, liqueurs, mixers, bitters, garnishes, tools
- Bartender: AI-powered cocktail recipe generation, "what can I make" suggestions,
  saved recipes. Cross-references bar inventory for ingredient availability.
- Recommend: AI flavor profile analysis, personalized drink recommendations,
  "find similar" drinks based on highly-rated favorites
- Navigation: desktop sidebar with all 8 routes, mobile bottom nav with
  4 primary items + "More" popup menu
- New Prisma models: BarItem, Recipe, FlavorProfile
- Backup/restore updated to include bar items

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
JP Scott
2026-03-01 18:28:02 -07:00
parent d8f069cce4
commit 2ac2c4b2d4
40 changed files with 3709 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ export async function GET() {
const userId = session.user.id
try {
const [drinks, ratings, wishlistItems, preferences, sharedLists] =
const [drinks, ratings, wishlistItems, preferences, sharedLists, barItems] =
await Promise.all([
prisma.drink.findMany({
where: { userId },
@@ -32,6 +32,10 @@ export async function GET() {
where: { userId },
orderBy: { createdAt: "asc" },
}),
prisma.barItem.findMany({
where: { userId },
orderBy: { createdAt: "asc" },
}),
])
const csv = generateBackupCsv(
@@ -39,7 +43,8 @@ export async function GET() {
ratings,
wishlistItems,
preferences,
sharedLists
sharedLists,
barItems
)
const date = new Date().toISOString().split("T")[0]