-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/full app #1
Conversation
…he permitted parameters on the configuration for full name
…ral configurations
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.
Good job so far!
There are some issues that you still need to work on to prepare your project for the final evaluation but you are almost there!
Suggested changes
Check the comments under the review.
📹 Video Presentation🎞️
- Great video presentation, you were clear and audible. You also highlighted code you found interesting, kudos!
You can use as many of my suggestions as you want. If there is anything you would like to skip - feel free to do that. However, I strongly recommend you to take them into account as they can make your code better._
You can also consider:
N/A
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.
<div class="container form-login"> | ||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: 'login-form' }) do |f| %> | ||
<div class="header-container blue"> | ||
<a href="<%= root_path %>" class="back-arrow">←</a> | ||
<h2 id="login-title">REGISTER</h2> | ||
<%= f.submit "Sign up", class: "btn-login blue" %> | ||
</div> | ||
|
||
<% if resource.errors.any? %> | ||
<div id="error_explanation"> | ||
<h2><%= pluralize(resource.errors.count, "error") %> prohibited this user from being saved:</h2> | ||
<ul> | ||
<% resource.errors.full_messages.each do |message| %> | ||
<li><%= message %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
|
||
<div class="field"> | ||
<%= f.text_field :full_name, autofocus: true, autocomplete: "name", class: "input", placeholder: "Full Name" %> | ||
</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.
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.
Done, Thank you @Munsa1
<div class="container start"> | ||
<h1 class="start-title">WELCOME!!</h1> | ||
<div class="button-container"> | ||
<a class="start-button" href="<%= categories_path %>">START</a> | ||
</div> | ||
</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.
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.
Done @Munsa1 Thank you
def index | ||
@categories = current_user.categories | ||
# @total_purchases = current_user.purchases.pluck(:amount).sum | ||
# @total_purchases = current_user.purchases.joins(:categories).pluck(:amount).sum | ||
@total_purchases = current_user.purchases.includes(:categories).pluck(:amount).sum |
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.
- Kindly remove commented lines of code for a cleaner codebase
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.
Done @Munsa1 Thank you.
app/views/purchases/index.html.erb
Outdated
<div class="blue"> | ||
<div class="container-sm"> | ||
<div class="header-container blue d-flex justify-between align-end"> | ||
<a href="<%= categories_path %>" class="back-button"><i class="fa-solid fa-arrow-left" style="color: #ffffff;"></i></a> | ||
<h1 class="category-title"><%= @category.name %></h1> | ||
<a href="<%= categories_path %>" class="btn-login blue"><i class="fa-solid fa-magnifying-glass" style="color: #ffffff;"></i></a> | ||
</div> | ||
<div class="d-flex justify-between gap-10"> | ||
<div class="w-1-3"> | ||
|
||
</div> | ||
|
||
<div class="small-div w-1-3 d-flex flex-column align-center justify-end most-recent-container "> | ||
<p class="text">Most recent</p> | ||
<p class="dot">•</p> | ||
</div> | ||
<div class="small-div w-1-3 d-flex flex-column align-center justify-end most-ancient-container"> | ||
<p class="text">Most ancient</p> | ||
<p class="dot">•</p> | ||
</div> | ||
</div> | ||
</div> | ||
</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.
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.
Done @Munsa1 Thank you
…tegories controller and change the routes to have categories as a home
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: APPROVE ✔️ ✔️ 🍾
Hi @ClaudiaRojasSoto
Your project is complete! There is nothing else to say other than... it's time to merge it
Congratulations! 🎉 👏 👏 💯
To highlight 🍾
- All design issues are fixed ✔️
- All pages are displayed correctly ✔️
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please ping me @tresorsawasawa when you comment so I can receive the notification or use slack with the same name.
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/purchases/index.html.erb
Outdated
<h1 class="category-title"><%= @category.name %></h1> | ||
<a href="<%= categories_path %>" class="btn-login blue"><i class="fa-solid fa-magnifying-glass" style="color: #ffffff;"></i></a> | ||
</div> | ||
<div class="d-flex justify-between gap-10"> | ||
<div class="w-1-3"> | ||
|
||
</div> | ||
|
||
<div class="small-div w-1-3 d-flex flex-column align-center justify-end most-recent-container "> | ||
<p class="text">Most recent</p> | ||
<p class="dot">•</p> | ||
</div> | ||
<div class="small-div w-1-3 d-flex flex-column align-center justify-end most-ancient-container"> | ||
<p class="text">Most ancient</p> | ||
<p class="dot">•</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container-sm"> | ||
<div class="total-amount d-flex justify-between align-center"> | ||
<h2>Total Amount:</h2> | ||
<p>$<%= @category.category_total %></p> | ||
</div> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="container-sm"> | ||
<h2>Transactions:</h2> |
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.
- [ OPTIONAL ] To correctly match the organization of the page and make it be significantly, I think it would be better if you replace the Transactions title where you put of the
<%= @category.name %>
and vice versa. The title of the will be at the top then the<%= @category.name %>
at his expected place.
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.
Done!, thank you @tresorsawasawa
app/views/purchases/index.html.erb
Outdated
<a href="<%= categories_path %>" class="back-button"><i class="fa-solid fa-arrow-left" style="color: #ffffff;"></i></a> | ||
<h1 class="category-title"><%= @category.name %></h1> | ||
<a href="<%= categories_path %>" class="btn-login blue"><i class="fa-solid fa-magnifying-glass" style="color: #ffffff;"></i></a> |
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.
- [ OPTIONAL ] For CSS best practices, I think it would be better if you don't use inline styling like you did in some views files
Description
This pull request introduces the following changes as part of the feature implementation of my budget tracker app
General Requirements
Ruby Requirements
Design
Interactions
Testing
Technical Requirements
Deployment
Database Schema
Demo Video
Please, review my project and give me feedback to improve it.
Thank you for your review!
Greetings!
@ClaudiaRojasSoto