-
Notifications
You must be signed in to change notification settings - Fork 0
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 π¨βπ» π¨βπ» #17
Conversation
Setting up environment and devise
General Shopping List
Co-Authored-By: Gladwin Tshepo Ramantso <tshepo.ramantso@outlook.com>
Co-Authored-By: Gladwin Tshepo Ramantso <tshepo.ramantso@outlook.com>
Co-Authored-By: Gladwin Tshepo Ramantso <tshepo.ramantso@outlook.com>
Navbar n+1 test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tsheporamantso @Fombi-Favour ππΌππΌππΌ,
Good job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!
Highlightsβ β β
- Account management is built using deviseππΌ.
- Unit and integration tests have been written and all tests are passingππΌ.
-
n+1
concerns have been taken care ofππΌ. - Nice job implementing the toggle button for making a recipe publicππΌ.
- github flow is usedππΌ.
- Linters are passingππΌ.
Required Changes β»οΈ
Check the comments under the review.
Optional suggestions
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.
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.
app/views/recipes/show.html.erb
Outdated
</div> | ||
|
||
<div class="btns"> | ||
<%= button_to "Generate Shopping List", "", class: "add-food-link"%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job so farππΌ. I noticed that when the Generate shopping list
button is clicked, an error is rendered which breaks the app, even though the shopping list is generated. Kindly fix this, as this can lead to a poor user experience. I suggest that when the button is clicked, it should lead the user to the general shopping list view so the user can see the result of his actionsπ.
![image](https://private-user-images.githubusercontent.com/64643995/303634056-d8114061-18ae-4bb6-abf4-06d62bbd39fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjEzOTMsIm5iZiI6MTczOTQ2MTA5MywicGF0aCI6Ii82NDY0Mzk5NS8zMDM2MzQwNTYtZDgxMTQwNjEtMThhZS00YmI2LWFiZjQtMDZkNjJiYmQzOWZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE1MzgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0OTYzZWFmOThlMWVhNDY4YjNkZjhlMWZkM2ZlYzI1NWIyNTNhZDNhZTEyODI3YWRhYzg0MDE1MDE4ODljZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.40vM7kRi5hN07Nxpofgn2NOrq_K-sQRNRw8r321J_LE)
app/views/recipes/new.html.erb
Outdated
<%= form_with(model: @recipe, url:user_recipes_path(@user), local: true, method: :post) do |form| %> | ||
<div> | ||
<%= form.label :name %><br> | ||
<%= form.text_field :name, autocomplete: 'off' %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :description %><br> | ||
<%= form.text_area :description %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :preparation_time %><br> | ||
<%= form.number_field :preparation_time, in: 1..1000, step: 1, autocomplete: "off" %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :cooking_time %><br> | ||
<%= form.number_field :cooking_time, in: 1..1000, step: 1, autocomplete: "off" %> | ||
</div> | ||
|
||
<div> | ||
<%= form.label :public %><br> | ||
<%= form.check_box :public %> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed you added validation to all your forms, which is a good practiceπ. The issue currently is that, for all your input fields or forms, whenever a user proceeds to submit with any empty field, it breaks the app. This can lead to a poor user experience. If a field is not provided, I suggest you send an error message to the user on the same page or you can use the required
HTML attribute that prevents the user from submitting the form automaticallyπ.
In summary, let's find a way of preventing the user from submitting a form with empty fields, but without breaking the appππΌ. Please remember to implement this for all your formsπ.
![image](https://private-user-images.githubusercontent.com/64643995/303637996-7a3d815d-46a5-401f-8ad9-52a53fb31618.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjEzOTMsIm5iZiI6MTczOTQ2MTA5MywicGF0aCI6Ii82NDY0Mzk5NS8zMDM2Mzc5OTYtN2EzZDgxNWQtNDZhNS00MDFmLThhZDktNTJhNTNmYjMxNjE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE1MzgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhNDU2ZjAzZjhlMjIzZDMwZWIyOWI3ZDRjZDE1MmUxN2E4MDc0OWQxMjBkNjVlMGQ0YjkyZmZlZjdhNDg3MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SmObDp8IZtBMolEPbCoWKp8TEJPcV83OIT0r-f4JYQg)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Status: Approved π’ π’ π’
Hi Team,
Good job working on the changes highlighted by the previous reviewer ππ½
You guys did a great work. Keep it up ππ½
Your project is complete! There is nothing else to say other than... it's time to merge it: ship it:
Congratulations! π
Highlights:
β
You set up Gitflow correctly ππ½
β
The Linter checks passed successfully ππ½
β
Good descriptive PR and README file ππ½
β
Good commit messages ππ½
β
The app works fine and all features were implemented as expected ππ½
β
Implemented tests and all tests passed successfully ππ½
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.
Recipe App π¨βπ» π¨βπ»
On this milestone we implemented the following
Login page and registration page:
Recipes list:
Public recipe list:
Recipe details:
Make sure there are no N+1 queries happening.
Create a navigation menu that allows users to open all of the pages you created.
Write unit and integration tests
Food list:
General shopping list view:
Check and correct Rubocop offences
Check and correct Stylelint errors