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:
Add a favorites storage mechanism (user_id + meal_name or meal_hash)
Create API endpoints: POST /api/favorites, DELETE /api/favorites/:id, GET /api/favorites
On the client, add a clickable icon next to each meal item
When rendering the menu, cross-reference with the user's favorites and apply a highlight style
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)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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