Oblíbená jídla #28

Open
opened 2026-02-04 14:27:54 +01:00 by batmanisko · 0 comments
Member

Feature: Favorite Meals

FeatureRequest enum: FAVORITES
Description: 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 meals

Approach:

  1. Add a favorites storage mechanism (user_id + meal_name or meal_hash)
  2. Create API endpoints: POST /api/favorites, DELETE /api/favorites/:id, GET /api/favorites
  3. On the client, add a clickable icon next to each meal item
  4. When rendering the menu, cross-reference with the user's favorites and apply a highlight style
  5. Consider fuzzy matching for meal names (restaurants may slightly vary naming)
## Feature: Favorite Meals **FeatureRequest enum:** `FAVORITES` **Description:** 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 meals **Approach:** 1. Add a `favorites` storage mechanism (user_id + meal_name or meal_hash) 2. Create API endpoints: `POST /api/favorites`, `DELETE /api/favorites/:id`, `GET /api/favorites` 3. On the client, add a clickable icon next to each meal item 4. When rendering the menu, cross-reference with the user's favorites and apply a highlight style 5. Consider fuzzy matching for meal names (restaurants may slightly vary naming)
batmanisko added the Vylepšení label 2026-02-04 14:30:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Marbes/Luncher#28