Skip to content

Revise#10

Open
1GORDON wants to merge 2 commits intomainfrom
revise
Open

Revise#10
1GORDON wants to merge 2 commits intomainfrom
revise

Conversation

@1GORDON
Copy link
Owner

@1GORDON 1GORDON commented Nov 8, 2021

Update Index.html file

Copy link

@gabrielcoder247 gabrielcoder247 left a comment

Choose a reason for hiding this comment

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

Hi @1GORDON

Good job so far!

Highlights!

  • Followed Gitflow ✔️
  • Good commit messages ✔️
  • Descriptive Pull request ✔️
  • Professional readme ✔️
    Hello ✋, you have done well reaching this point of the milestone 🤝 . But there are some issues that you still need to work on to go to the next project but you are almost there!

Status: Required Changes ♻️⛔️

  • I noticed your Eslint is not passing the test. Kindly make sure your Eslint passes as this is the requirement for your pull request to be approved

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!:clap::clap::clap:
Feel free to leave any questions or comments in the PR thread and tag me @gabrielcoder247 if something is not 100% clear.
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 +38 to +45
// export function clearCompleted() {
// const newTodos = todos.filter((todo) => todo.completed !== true);
// newTodos.forEach((object, index) => {
// object.index = index + 1;
// });
// localStorage.setItem('todo', JSON.stringify(newTodos));
// window.location.reload();
// } No newline at end of file

Choose a reason for hiding this comment

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

Great Job @1GORDON

  • Kindly remove commented code from your project as this is not regarded as a good practice

Comment on lines +26 to 29
function changeTaskStatus(index, status) {
todos.filter((todo, todoIndex) => {
if (index === todoIndex) {
todo.completed = status;

Choose a reason for hiding this comment

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

Great job @1GORDON

  • Kindly use ES6 syntax for all your functions and methods as stated in javascript best practices across all your javascript files.

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.

2 participants