Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

NW6 | Sabella Fisseha | JS2 Module-To Do-List App | WEEK 4 #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sabella-8
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for cute-gaufre-e4b4e5 ready!

Name Link
🔨 Latest commit b1637a6
🔍 Latest deploy log https://app.netlify.com/sites/cute-gaufre-e4b4e5/deploys/65afb72c0726560008642e17
😎 Deploy Preview https://deploy-preview-217--cute-gaufre-e4b4e5.netlify.app/week-3/todo-list
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@bunday bunday left a comment

Choose a reason for hiding this comment

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

Great work so far, some improvements are needed

<ul id="todo-list"></ul>
<form>
<div>
<input type="text" placeholder="New todo..." id="textboxinput" />
Copy link

@bunday bunday Jan 27, 2024

Choose a reason for hiding this comment

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

you should have the deadline date right here, it should be set after the user enter the todo name



add.addEventListener("click", () => {
clickCount++;
Copy link

Choose a reason for hiding this comment

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

instead of using the number of counts to determine the status of the todo. you can make use of the boolean todo completed status on each todo which you can toggle. That is s cleaner way to do it.

function deleteAllCompletedTodos() {
// Write your code here...
const del = document.getElementById("remove-all-completed");
Copy link

Choose a reason for hiding this comment

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

this function isnt implemented correctly, when clicked, it removes all todos on the board. You should rewrite this function to filter out todos that has their completed status as true

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants