Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe-App #18

Open
wants to merge 70 commits into
base: main
Choose a base branch
from
Open

Recipe-App #18

wants to merge 70 commits into from

Conversation

johnkioko
Copy link
Collaborator

In this project, we implemented the features below:

  • Login page and registration page:

  • Built with Devise.

  • Food list:

  • Displays a list of food added by the logged-in user as in the wireframe (for teams with only 2 people - display also quantity of a given food).

  • Leads to a form that allows users to add new food.

  • Recipes list:

  • Displays a list of recipes created by the logged-in user as in the wireframe.

  • Leads to recipe details.

  • If the user is the owner of the recipe, should allow the user to delete it.

  • Public recipe list:

  • Displays a list of all public recipes ordered by the newest as in the wireframe.

  • Lead to recipe details.

  • Recipe details:

  • If the recipe is public or the user is the owner of the recipe, should display the recipe details as in the wireframe.

  • If the user is the owner of the recipe, should lead to the form that allows the user to add new food.

  • Made sure there are no N+1 queries happening.

  • Created a navigation menu that allows users to open all of the pages you created.

Copy link

@Omar-Muhamad Omar-Muhamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes Required ♻️

Hi @johnkioko and @Daphineatim,

Nice job, you are almost there.

(Highlights) Good Points: 👍

  • You documented your work professionally. ✔
  • You used the correct workflow. ✔
  • All linters checks are ok. ✔

(Changes Required) Aspects to improve: ♻️

  • Please check the inline comments below.

[Optional] suggestions:

  • Nothing to mention.

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear, and please remember to tag me in your question so I can receive the notification**

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Comment on lines 23 to 33
</thead>
<tbody>
<% if recipe.foods.blank? %>
<h4 class="text-center">No foods available!</h4>
<% else %>
<% recipe.recipe_foods.each do |recipe_food| %>

<tr class="border-b">
<td scope="row" class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"></td>
<td class="text-sm text-gray-900 font-light px-6 py-4 whitespace-nowrap">
<%= "#{recipe_food.quantity} #{recipe_food.food.measurement_unit}" %>
Copy link

@Omar-Muhamad Omar-Muhamad Feb 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • There is an error raised while trying to open the recipe show (details) page, Please fix that.

image

Copy link

@emmanuellekamwa emmanuellekamwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATUS: APPROVED ✔🍾🎉
Hello @johnkioko and @Daphineatim
Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights

  • You documented your work professionally.✔
    You asked for the changes in a polite and friendly way.
  • Your linters are passing all the checks.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

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.

4 participants