Commit Graph

34 Commits

Author SHA1 Message Date
0bdc674a6d Fix recipe search favorites filter to use UserFavorites model
Replace non-existent User model import with correct UserFavorites model and update filtering logic to work with the proper data structure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-04 15:22:13 +02:00
b05dcf9e3b Implement progressive enhancement for universal search with context-aware filtering
Add comprehensive search solution that works across all recipe pages with proper fallbacks. Features include universal API endpoint, context-aware filtering (category/tag/icon/season/favorites), and progressive enhancement with form submission fallback for no-JS users.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-04 14:53:59 +02:00
cd54ad0498 Implement user favorites feature for recipes
- Add UserFavorites MongoDB model with ObjectId references
- Create authenticated API endpoints for favorites management
- Add Heart icon and FavoriteButton components with toggle functionality
- Display favorite button below recipe tags for logged-in users
- Add Favoriten navigation link (visible only when authenticated)
- Create favorites page with grid layout and search functionality
- Store favorites by MongoDB ObjectId for data integrity

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 20:18:57 +02:00
c8d879d4f9 Upgrade SvelteKit 4 to SvelteKit 5 with latest dependencies
Major changes:
- Upgraded Svelte from v4 to v5.38.6 (latest stable)
- Upgraded SvelteKit from v2.0.0 to v2.37.0 (latest)
- Upgraded Vite from v5 to v7.1.3 for better performance
- Updated all related packages to latest compatible versions
- Added pnpm as package manager with packageManager field
- Fixed Card.svelte nested anchor tags issue by converting inner links to buttons
- Updated component styling to maintain visual consistency
- Removed incompatible svelte-preprocess-import-assets package

Dependencies updated:
- @sveltejs/kit: ^2.0.0 → ^2.37.0
- @sveltejs/vite-plugin-svelte: ^3.0.0 → ^6.1.3
- svelte: ^4.0.0 → ^5.38.6
- vite: ^5.0.0 → ^7.1.3
- @sveltejs/adapter-auto: ^3.0.0 → ^6.1.0
- @sveltejs/adapter-node: ^2.0.0 → ^5.0.0
- svelte-check: ^3.4.6 → ^4.0.0
- mongoose: ^7.4.0 → ^8.0.0
- sharp: ^0.32.3 → ^0.33.0

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 21:01:19 +02:00
c23d742398 remove user admin routes 2024-02-19 23:24:28 +01:00
446620b8f5 add forgotten updated api routes 2024-02-18 14:45:01 +01:00
ca62e48f7b initial OIDC setup 2024-02-14 16:07:55 +01:00
4127e9dd39 also search through season, exclude "🍽️"recipes from being in season 2024-01-19 20:12:09 +01:00
a0edaf74ce fix path depth for payments/[item] api 2023-07-24 23:05:50 +02:00
008069da69 added missing payments api routes 2023-07-24 22:59:09 +02:00
c6fb41de6d add payment route + additional starting blocks 2023-07-24 22:57:12 +02:00
021e9aa940 add externalized hashPassword.js 2023-07-23 12:22:58 +02:00
f918adf22a change password possible 2023-07-23 12:21:12 +02:00
094170b4af remove old api routes; 2023-07-22 13:09:28 +02:00
e9339d4ba4 move API routes as cleanup 2023-07-22 13:09:06 +02:00
9705509f54 section scales, not anchor 2023-07-22 12:58:29 +02:00
2a38e041d6 allow for build because of jsonwebtoken quirk 2023-07-18 14:28:39 +02:00
4321ece385 First fully working user management, move to layout groups 2023-07-18 14:18:52 +02:00
1f34c36384 cleaner login and registration 2023-07-18 12:05:30 +02:00
a931977684 add initial user Management API 2023-07-18 09:14:33 +02:00
2eaef8e10c bodge img upload on edit if no img available 2023-07-13 18:18:01 +02:00
691aa1b0b7 fix img APIs to working standard 2023-07-12 12:23:35 +02:00
385a878cf5 add initial img API endpoints 2023-07-12 11:35:43 +02:00
32ff7a2a20 randomize moved to API 2023-07-11 22:54:13 +02:00
8f15d9650b fix to working state 2023-07-11 18:51:34 +02:00
800ca29531 initial implementation of placeholder images, thumbnails and blurring between using sharp 2023-07-11 18:47:29 +02:00
7eb731181a Icon route added 2023-07-03 12:39:34 +02:00
0ad95d1f2c API routes now return proper Responses and basic errors are handled
slight improvements in layouting
2023-07-02 23:39:31 +02:00
238d1504a9 add forgotten img api 2023-06-27 19:27:00 +02:00
811ae3db5f Does not work: uploading images
Adding/Editing/Deleting works
SeasonsSelect works
Nice recipe layout
2023-06-24 15:35:38 +02:00
bdfb7280e1 First almost fully functioning MVP.
Lacking:
- Seasons cannot be added/edited
- image upload
- layout recipe/adding
2023-06-24 15:35:38 +02:00
b4223f8eb0 Lots of changes, started on working /add 2023-06-24 15:35:37 +02:00
120781a57a first working prototype 2023-06-24 15:35:37 +02:00
89612f02b6 Initial commit 2023-06-24 15:35:36 +02:00