Oblíbená jídla #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature: Favorite Meals
FeatureRequest enum:
FAVORITESDescription: Možnost označovat si jídla jako oblíbená (taková jídla by se uživateli následně zvýrazňovala)
Implementation Notes
Allow users to mark meals as favorites. When the same or similar meal appears on future menus, it should be visually highlighted.
Key files to modify:
server/src/service.ts– Add endpoints for managing favorites (add/remove/list)server/src/storage/– Add favorites persistence (new table/collection for user-meal associations)client/src/App.tsx– Render a favorite toggle (star/heart icon) next to each meal; highlight favorited mealsApproach:
favoritesstorage mechanism (user_id + meal_name or meal_hash)POST /api/favorites,DELETE /api/favorites/:id,GET /api/favorites