Closed RandomUsername1315 closed 3 months ago
I don't have the time to review yet (hopefully tomorrow morning), but, from the demo my suggestion is to add some padding around the recipe instructions text, and if possible, find a better way for formatting the text to avoid missing spaces
@medwardson this will be taken care by the branche : feature/ui/recipe-rec-more-detail. This is because it depends on which api call we decide to use. Normally it should look like the figma.
Issues
7 New issues
0 Accepted issues
Measures
0 Security Hotspots
63.1% Coverage on New Code
0.0% Duplication on New Code
Pull Request Overview
This PR introduces a new UI screen for users. When a user clicks on a specific recipe from the recipe recommendation screen, they will be taken to a new screen that displays additional information such as specific ingredients and calorie count.
Main Changes
Ingredient.kt
: Updated to store a URI which will be used to display the ingredient's image.IngredientInfoCard.kt
class: Displays an image of the ingredient along with its name and amount.NutriInfoCard.kt
class: Summarizes the nutritional values of a meal, highlighting key values such as calories and fats.TitleAndToggleCard.kt
class: Card containing two buttons, with one being activatable.RecipeRecFlow.kt
class: Represents the flow between the recipe recommendation screens.RecipeRecommendationMoreDetailScreen.kt
class: The screen that displays more detailed information about a specific recipe.Video of the New Implementation
View the implementation video
Future PR
Note for Reviewers
Uri.EMPTY
is not implemented in the unit test folder, which caused numerous issues.