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

Feature/full app #1

Merged
merged 142 commits into from
Oct 19, 2023
Merged

Feature/full app #1

merged 142 commits into from
Oct 19, 2023

Conversation

ClaudiaRojasSoto
Copy link
Owner

Description

This pull request introduces the following changes as part of the feature implementation of my budget tracker app

General Requirements

  • No linter errors present.
  • Correct Gitflow process followed.
  • Professional documentation of the work.

Ruby Requirements

  • Followed best practices for Ruby.

Design

  • Implemented the design guidelines, including colors, typography, and layout.
  • Gave appropriate credit to the original design by Gregoire Vella as required by the Creative Commons license.

Interactions

  • Implemented the splash screen, sign-up, log-in, and other interactions as specified in the requirements.

Testing

  • Unit and integration tests created and executed for all critical components.

Technical Requirements

  • Used Postgres as the database.
  • Integrated Devise for authentication.
  • Validated user input for security.
  • Used [mention the view template engine used].

Deployment

  • The project is deployed and accessible online.
  • Deploy

Database Schema

  • The database schema reflects the required structure as outlined in the ERD diagram.

Demo Video

Please, review my project and give me feedback to improve it.

Thank you for your review!

Greetings!
@ClaudiaRojasSoto

…he permitted parameters on the configuration for full name
Copy link

@Munsa1 Munsa1 left a comment

Choose a reason for hiding this comment

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

Hi @ClaudiaRojasSoto,

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.

Comment on lines 1 to 22
<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>
Copy link

@Munsa1 Munsa1 Oct 18, 2023

Choose a reason for hiding this comment

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

  • Kindly ensure your design matches the given design in terms of layout for the sign-up and Login page.

Your design
image

image

Given design
image

  • Make sure your items align as is in the given design
  • Make sure your input field s match the given design

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done, Thank you @Munsa1

Comment on lines +1 to +6
<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>
Copy link

@Munsa1 Munsa1 Oct 18, 2023

Choose a reason for hiding this comment

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

  • Upon successful sign up the user should be directed to the Categories page, not the welcome page. Kindly fix this

After sign in
image

Expected view
image

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done @Munsa1 Thank you

Comment on lines 6 to 10
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
Copy link

@Munsa1 Munsa1 Oct 18, 2023

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

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done @Munsa1 Thank you.

Comment on lines 1 to 23
<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>
Copy link

@Munsa1 Munsa1 Oct 18, 2023

Choose a reason for hiding this comment

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

  • Kindly fix your design in terms of font weight, and color for the categories text. Notice that the text for the price is bold and the color is #434b54.

Your design
image

Given design
image

Copy link
Owner Author

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
Copy link

@tresorsawasawa tresorsawasawa left a 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 :shipit:
Congratulations! 🎉 👏 👏 💯

nodding-yes

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.

Comment on lines 5 to 35
<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>

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.
    Screenshot from 2023-10-19 06-07-27

Copy link
Owner Author

Choose a reason for hiding this comment

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

Done!, thank you @tresorsawasawa

Comment on lines 4 to 6
<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>

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

@ClaudiaRojasSoto ClaudiaRojasSoto merged commit bd41a21 into develop Oct 19, 2023
3 checks passed
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.

3 participants