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

Implement a function for clear all completed #3

Merged
merged 4 commits into from Jul 16, 2022
Merged

Conversation

CindyDorantes
Copy link
Owner

@CindyDorantes CindyDorantes commented Jul 16, 2022

Project requirements

  • Add a new JavaScript file and import it as a module:
    • it will contain methods related to the status updates (completed: true / false).
  • Add event listener to the checkbox (change).
  • Update items object's value for completed key upon user actions.
  • Implement a function for the "Clear all completed" button (use filter() method).
  • Store the updated array of items in local storage, so the user gets the correct list values after the page reloads.

Second review request

Changes included:

  • toggle 'complete' property in the local storage from false to true.
  • display task in localstorage after refreshing.

Copy link

@Reem-lab Reem-lab left a comment

Choose a reason for hiding this comment

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

Hi @CindyDorantes, 👋🏻👋🏻

Good job so far!🔥🔥🔥
Personally, I really appreciate your huge efforts but There are some issues that you still need to work on to go to the next project but you are almost there! so kindly Fix the error so we can proceed with your project.💯💯✨✨✅✅✅

Highlights ✨

  • No Linters error ✅✅✅
  • Good using filter method for clear all completed 🔥🔥
  • Great on using modules🔥🔥

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.

Comment on lines 1 to 8
export default function () {
const tasksCompleted = document.querySelectorAll('.checked');
const arrCompleted = [...tasksCompleted];
for (let i = 0; i < arrCompleted.length; i += 1) {
arrCompleted[i].parentElement.remove();
arrCompleted[i].nextElementSibling.remove();
}
}
Copy link

@Reem-lab Reem-lab Jul 16, 2022

Choose a reason for hiding this comment

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

  • I think The complete is not toggling in the local storage from false to true, so kindly fix that since it is from the requirements.

  • After refreshing I can't see any tasks displayed in the list so kindly fix it🔥

Copy link

@Lameck1 Lameck1 left a comment

Choose a reason for hiding this comment

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

Hi, @CindyDorantes,

You've done well working on the concerns of the previous review 👍🏼.
The tasks for this milestone are now successfully implemented 💯.

Highlights

  • Professional README ✔️
  • Clean code ✔️
  • Good commit messages ✔️

All the best with the next project.

You are free to merge this branch :shipit:
Congratulations! 🎉

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.

@CindyDorantes CindyDorantes merged commit b2ab819 into main Jul 16, 2022
@CindyDorantes CindyDorantes deleted the interactive-list branch July 16, 2022 19:25
@CindyDorantes CindyDorantes restored the interactive-list branch July 18, 2022 17:00
@CindyDorantes CindyDorantes deleted the interactive-list branch July 18, 2022 22:49
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.

None yet

3 participants