A Closer Look At Fix Water Tracking — Remove Snacks

by Jule 52 views
A Closer Look At Fix Water Tracking — Remove Snacks

Water tracking has quietly derailed thousands of MyDay users. The app maps water entries to snacks at useFoodEntries.ts:197, even though the backend expects water as a distinct MealType. This mismatch corrupts data and confuses meal logs. Equally frustrating, MyDayScreen.tsx:101 hides water by filtering it out, so users never see their hydration - despite water.png being loaded and ready. The real blind spot? AddMeal/index.tsx:224 filters out water entirely, blocking selection of water as a valid meal type - even though MEAL_TYPE_KEYS` includes it. Solve this: cut the remap, show water, let users choose. Before: water → snacks, snacks only. After: clear, consistent, visible. Here is the fix:

  • Update useFoodEntries.ts to preserve water exactly: