App Meal Nutrition + UI Tweaks#1194
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new MealNutrition screen and associated utilities to provide detailed nutritional breakdowns for logged meals. It also enhances the UI by adding focus states to inputs, implementing swipe-to-delete for exercises via a new SwipeableExerciseRow component, and adding a toggle for additional nutrients in food summaries. Feedback focuses on correcting the use of the never type in StepperInput event handlers, improving type safety for refs in SwipeableExerciseRow, and addressing accessibility and contrast concerns for the delete action.
|
hi @apedley please check conflict on SparkyFitnessMobile/src/components/FoodNutritionSummary.tsx |
should be good now |
Tip
Help us review and merge your PR faster!
Please ensure you have completed the Checklist below.
For Frontend changes, please run
pnpm run validateto check for any errors.PRs that include tests and clear screenshots are highly preferred!
Note: AI-generated descriptions must be manually edited for conciseness. Do not paste raw AI summaries.
Description
This PR contains multiple small UI bug fixes and a new screen to show meal nutrient breakdown. The new screen is reachable by tapping the name of a meal in the diary screen. Misc fixes:
Linked Issue: #
How to Test
...PR Type
Checklist
All PRs:
New features only:
Frontend changes (
SparkyFitnessFrontend/orsrc/):pnpm run validateand it passes.en) translation file.Backend changes (
SparkyFitnessServer/):rls_policies.sqlfor any new user-specific tables.UI changes (components, screens, pages):
Screenshots
Click to expand
Before
After
Notes for Reviewers