# Changelog

All notable changes to Epicure are documented here. This file is mirrored in-app at `/changelog` (and in the admin dashboard) via `apps/web/lib/changelog.ts` — update both together.

## 0.24.1 — 2026-07-14 09:24

### Fixed
- My Recipes search result count showed a literal "{count}" instead of the number, in every locale.

## 0.24.0 — 2026-07-14 08:08

### Added
- **My Recipes search now matches ingredients and tags too**, not just title/description — same improvement shipped for Explore/Search earlier.
- **QR code on printed recipes**: a public or unlisted recipe's printout now includes a scannable code linking back to the online version.

## 0.23.0 — 2026-07-13 23:06

### Added
- **Two-factor authentication**: turn it on in Settings → Security to require a code from an authenticator app when signing in, with backup codes in case you lose access to it.

## 0.22.0 — 2026-07-13 22:49

### Added
- **QR code on printed shopping lists**: a public list's printout now includes a scannable code linking back to the live version — pairs with public-editable links, so someone at the store can scan and check items off in real time.

## 0.21.0 — 2026-07-13 22:34

### Added
- **Rating stars on recipe cards** — average rating and review count now show on Search and Explore results, not just the recipe detail page.

## 0.20.0 — 2026-07-13 22:26

### Added
- **Duplicate your own recipe** — same one-click copy used for forking others' recipes, now also on your own, for making variations without touching version history.

## 0.19.0 — 2026-07-13 22:21

### Added
- **Export your meal plan to a calendar file** — download a week's meals as a .ics file to import into Google/Apple/Outlook calendar.

## 0.18.0 — 2026-07-13 22:16

### Added
- **Live updates on shared meal plans**: entries added, removed, or cleared by a collaborator now appear automatically, both on the owner's own week view and everyone else's shared view.

## 0.17.0 — 2026-07-13 22:06

### Added
- **Clear a day or the whole meal-plan week** in one click instead of removing each meal individually.

## 0.16.0 — 2026-07-13 21:59

### Added
- **@mention autocomplete in comments**: type "@" and a name to search and insert a mention, instead of typing the exact username blind.

## 0.15.0 — 2026-07-13 21:54

### Added
- **Search now matches ingredients and tags**, not just title/description — "zaatar" now finds a recipe that uses it even if the title doesn't mention it.
- **Tag filter chips on Explore**: click a popular tag to narrow results instead of typing it.

## 0.14.0 — 2026-07-13 21:47

### Added
- **Change your username** in Settings — previously auto-assigned at signup with no way to change it.

## 0.13.1 — 2026-07-13 17:25

### Fixed
- People search never found anyone, for anyone — there was no signup or settings flow that ever set a username, and search (along with profiles and follow) requires one. Every account now gets one automatically on signup; existing accounts were backfilled.

## 0.13.0 — 2026-07-13 15:37

### Added
- **Explore search now finds people and recipes together**: one search bar, one query — no more separate, hard-to-find people tab.

## 0.12.1 — 2026-07-13 13:25

### Fixed
- Changelog entries showed literal `**bold**` markup instead of rendering it.

## 0.12.0 — 2026-07-13 12:52

### Added
- **Public shopping list links can now allow editing**: turn on "Allow editing" alongside the public link so anyone who has it can check off, add, and reorder items — no account needed. Off by default, and turning off the public link revokes editing too.

## 0.11.0 — 2026-07-13 12:27

### Added
- **Live updates on shared shopping lists**: items checked, added, recategorized, or reordered by a collaborator now appear automatically, without a manual refresh.

## 0.10.0 — 2026-07-13 11:55

### Added
- **Bulk tag editing**: add or remove tags across several selected recipes at once.
- **Bulk export**: export several selected recipes to a single Markdown file.
- **Move recipes between collections**: select recipes inside a collection to move them to another collection or remove them from this one.

## 0.9.6 — 2026-07-13 09:31

### Added
- **Rate limiting on public routes**: sign-in/sign-up now throttle after 3 attempts per 10s per IP; public recipe/shopping-list share links (`/r/`, `/s/`) throttle after 60 requests/min per IP.

## 0.9.5 — 2026-07-13 09:20

### Fixed
- Explore page's "Recipe ideas" input got squeezed to a couple of visible characters on mobile — buttons now stay icon-only below `sm:`.
- The per-recipe chat button could overlap the private-notes save button on short recipe pages.

## 0.9.4 — 2026-07-13 09:03

### Fixed
- "New recipe" wrapped to its own line on mobile (especially French) instead of sharing a row with Generate/Import — icon-only below that breakpoint now.
- The view-toggle/Select row floated flush right with a large dead gap on the left — now left-aligned outside select mode.

## 0.9.3 — 2026-07-13 08:38

### Fixed
- Recipes page wasted a lot of vertical space above the recipe list on mobile — Sort/Filter now sit alongside Search on one row instead of forcing an extra one.

## 0.9.2 — 2026-07-13 07:14

### Fixed
- Explore page's "Recipe ideas" banner buttons clashed with its violet gradient background — restyled to match.

## 0.9.1 — 2026-07-13 06:59

### Fixed
- Destructive confirm buttons (clear chat history, discard recipe changes) had unreadable black text on a red background — a missing CSS variable.

## 0.9.0 — 2026-07-12 23:28

### Added
- **Clear chat history**: a trash-icon button in both chatbots clears that conversation's saved history.
- Chat history now auto-expires after 90 days (daily cleanup job).

## 0.8.0 — 2026-07-12 22:38

### Added
- **Read-only API key scoping**: create keys that can only read (GET), not create/edit/delete anything.
- **AI chat history**: both chatbots now remember past conversations across sessions, and let you search across everything you've ever asked.

## 0.7.1 — 2026-07-12 21:36

### Fixed
- Cooking-assistant button on the homepage sat too high.
- The chatbots would answer honestly if asked what AI model they run on — now always identify as Epicure.

## 0.7.0 — 2026-07-12 19:36

### Added
- **General cooking-question chatbot** on the recipes homepage — ask technique/substitution/timing questions not tied to a specific recipe.

### Fixed
- API keys always showed "never used" — middleware was blocking every Bearer-key request before it ever reached the code that verifies the key and records usage.
- The webhooks documentation page had no way back to webhooks settings.

## 0.6.0 — 2026-07-12 19:09

### Added
- **Granular push-notification settings**: turn individual categories on/off (follows, comments, replies, reactions, ratings, mentions, leftover reminders, shared shopping list updates) instead of all-or-nothing.

### Fixed
- The push-notification toggle in Settings always showed as off, even when notifications were genuinely still enabled — it never checked the actual browser subscription state.
- The API Reference page (`/docs`) was blank — Content-Security-Policy blocked the script it needs to render.

## 0.5.1 — 2026-07-12 19:05

### Security
- Recipe/review photo uploads: a stolen storage key from another user's public recipe or review could be submitted as your own, causing that user's photo to be deleted from storage when the recipe was later edited or deleted. Both routes now check the key was actually issued to you for that recipe.
- AI URL-import could be redirected to internal/private network addresses via a crafted 3xx response, and was separately vulnerable to DNS-rebinding between validation and fetch. Both the import and outgoing webhook delivery now resolve the host once and pin the connection to that address, re-validating on every redirect hop.
- Comment moderation and monthly AI/recipe/storage quota checks trusted a session field that can lag up to 5 minutes behind a role or tier change — both now re-check the current value in the database.

## 0.5.0 — 2026-07-12 18:37

### Added
- **Push notifications for shared shopping lists** — get pinged when someone else checks off or adds items.

### Fixed
- Batch-cook dishes never deducted pantry when marked cooked — now deducts once, on the first dish cooked per batch session.
- Weekly meal-plan nutrition coverage compared a week's total intake against a daily goal (reading ~7x too high) — now compares a proper daily average, with a per-day breakdown and a flag for meals missing nutrition data.
- Meal-plan week navigation could resolve the wrong Monday depending on server timezone.

## 0.4.0 — 2026-07-12 16:13

### Added
- **Profile pictures**: upload a custom photo, or get a Gravatar-backed avatar automatically — no more generic initials by default.
- **"Imported from" badge** on recipe cards for recipes brought in from a URL.
- **Share shopping lists via a public link** — anyone with the link can view, no account required, alongside the existing private collaborator invites.

### Fixed
- Batch-cook recipes shifted left in compact view when they had no time set or a longer dish/time label.

## 0.3.1 — 2026-07-12 15:08

### Added
- A free-text "describe what you're after" field for batch-cooking generation, matching the standard recipe generator.

### Fixed
- AI recipe generation used a separate language picker instead of following the app's own language — removed, generation now always matches your app language.
- The bulk-select action bar on the recipe list could show a horizontal scrollbar on desktop even though there was room to grow.
- Recipes imported from a URL never actually saved their source URL — the "Source: ..." link on the recipe page was dead code until now.

## 0.3.0 — 2026-07-12 14:46

### Added
- **Manually create and edit batch-cook recipes**: the recipe form now has a batch-cook toggle, an editable dish list (storage/reheat guidance per dish), and per-step dish tagging — not just AI-generated ones anymore. Editing an existing batch-cook recipe no longer silently strips its dish data.

## 0.2.2 — 2026-07-12 13:54

### Fixed
- Recipe photo thumbnails always tried to load from `localhost:9000` in production, tripping CSP/mixed-content blocks in every browser — the public storage URL wasn't reaching client-side code.

## 0.2.1 — 2026-07-12 13:21

### Fixed
- Recipe photos were lost after saving, and multi-file uploads only kept the last file selected.
- Photo thumbnails failed to load (blocked by Next.js's image optimizer refusing local-storage hosts).

## 0.2.0 — 2026-07-12

### Added
- **Batch cooking**: generate a single "mega recipe" covering several meals at once — merged shopping list, steps tagged per dish (including steps that advance several dishes at once), and per-dish storage/reheat guidance. Available from the recipe list's Generate dialog and from the meal planner.
- **Leftover expiry reminders**: mark a batch-cook dish as cooked, track its fridge life, see it surfaced on the Pantry page, and get a daily reminder before it goes bad.
- **"Cooked it" photo reviews**: attach a photo and written review when rating a recipe.
- **Pantry-expiry recipe suggestions**: the Pantry page now surfaces recipes that use up ingredients about to expire.
- **Trending collections**: star public collections; browse trending and recently-added ones under Collections → Discover.
- **Add to collection from the recipe list**: select recipes and add them to a new or existing collection without leaving the page.
- List and compact view modes for the recipe list, alongside the existing grid view.

### Fixed
- Recipe version-comparison diff was unreadable and partially untranslated.
- Print/export pages always render light, regardless of the app's dark/light setting.
- Presigned photo-upload URLs were signed against an internal-only address in production, breaking uploads.
- Several recipe-list and recipe-form UI issues: filter menu closing on every click, tag filter not accepting keystrokes, inconsistent card badge styling, missing tooltips, a floating save button on long recipe forms.

## 0.1.0 — earlier

Initial feature set: recipes (create, edit, AI-generate, import from URL/photo), meal planning, shopping lists, pantry tracking, collections, social features (follow, comment, rate, notifications), nutrition tracking, admin dashboard, and account/billing basics.
