Skip to content

Conversation

@phoneuooyd
Copy link
Owner

Added explicit Route properties to all ShellContent tabs in AppShell.xaml for improved navigation. Updated IngredientsPage and RecipesPage to use Frame instead of Border for item cards, added tap gesture recognizers for editing, and aligned their layouts for consistency with PlannerPage.

Added explicit Route properties to all ShellContent tabs in AppShell.xaml for improved navigation. Updated IngredientsPage and RecipesPage to use Frame instead of Border for item cards, added tap gesture recognizers for editing, and aligned their layouts for consistency with PlannerPage.
@phoneuooyd phoneuooyd self-assigned this Aug 25, 2025
Refactored AppShell navigation by removing custom OnNavigating logic and updating the Home tab route. Expanded and corrected the ingredients.json dataset: added new items (e.g., different types of milk, potatoes, rice, tofu, and yogurts), updated nutritional values, renamed some entries for clarity, and removed several redundant or less relevant items.
Updated AddRecipePage, ArchivePage, ShoppingListDetailPage, and ShoppingListPage to use Frame instead of Border for item templates. This change improves compatibility and visual consistency across the app's UI components.
Enhanced double and integer parsing in AddRecipeViewModel and IngredientFormViewModel to handle both comma and dot as decimal separators, improving user input flexibility. Added helper methods for validation and parsing, and updated PlannerPage to always reload recipes on subsequent loads to reflect new additions.
Replaced basic StackLayouts with styled Frame containers for input fields in AddRecipePage.xaml, ArchivePage.xaml, and IngredientFormPage.xaml. Enhanced visual consistency and accessibility by applying app theme bindings for colors, rounded corners, and font sizes. Updated empty view and item templates in ArchivePage for better appearance in light and dark modes.
Changed 'Description' labels and placeholders to 'Instructions' in both English and Polish resource files for clarity. Updated AddRecipePage editor to use dynamic height instead of fixed height and removed redundant styling. Removed recipe description preview from RecipesPage for a cleaner UI.
@phoneuooyd phoneuooyd merged commit d8eb9c0 into main Aug 26, 2025
1 check passed
@phoneuooyd
Copy link
Owner Author

This pull request introduces several improvements and updates across the application, focusing on ingredient data accuracy, localization, and input validation. The most significant changes include refining the ingredient database for better specificity, improving localization and labeling, and enhancing input handling for numeric fields.

Ingredient Database Refinement:

  • Updated ingredients.json to improve specificity and accuracy of ingredient names and nutritional values (e.g., splitting "Mleko" into "Mleko 3.2", "Mleko 2.0", "Mleko 1.5"; renaming "Twaróg" to specific fat-content variants; updating rice and potato entries; updating yogurt entries with specific brands and nutrition; correcting nutritional values for several ingredients) [1] [2] [3] [4] [5] [6] [7] [8] [9].
  • Removed several generic, duplicate, or less relevant ingredients (e.g., "Jogurt", "Dżem", "Sos Worcestershire", various alcoholic beverages, and some baked goods) to streamline the ingredient list [1] [2] [3] [4] [5] [6] [7] [8] [9].

Localization and UI Label Improvements:

  • Updated Polish and English resource files for the Add Recipe page to use more accurate and user-friendly terms (e.g., changing "Description" to "Instructions" and updating placeholders to clarify input expectations) [1] [2] [3].
  • Added explicit Route attributes to each ShellContent in AppShell.xaml for better navigation and maintainability.

Input Validation and Parsing Enhancements:

  • Improved numeric input validation in AddRecipeViewModel to handle both comma and dot as decimal separators, and to reject empty or whitespace-only values, ensuring more robust data entry [1] [2].
  • Refactored recipe save logic to use a helper method for parsing doubles, ensuring consistent handling of decimal separators and default values [1] [2].

ViewModel and Service Integration:

  • Updated HomeViewModel to inject and subscribe to ILocalizationService, allowing the view model to react to culture changes and refresh display properties accordingly [1] [2].

These updates collectively improve data quality, user experience, and input reliability throughout the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant