Skip to content

GLASGOW | May-2025 | Taras Mykytiuk | Module-Data-Groups | Sprint_3 | Todo_List #693

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TarasMykytiuk
Copy link

@TarasMykytiuk TarasMykytiuk commented Jul 24, 2025

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 Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.
Page has ability to add items to list, mark them as completed and delete.

Questions

Ask any questions you have for your reviewer.

@TarasMykytiuk TarasMykytiuk added the Needs Review Participant to add when requesting review label Jul 24, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good work on the todo list task so far - there seems to be an issue with delete. I have not reviewed the reading list - did you mean to commit that here, or should that have been on a separate branch / pull request? If so can you remove those files from this PR please

// Advanced challenge: Write a fucntion that checks the todos in the todo list and deletes the completed ones (we can check which ones are completed by seeing if they have the line-through styling applied or not).
function deleteAllCompletedTodos() {
// Write your code here...
}
const activeListElements = listDom.children;

Choose a reason for hiding this comment

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

If I have multiple completed list items, when I use the delete all function, it only removes about half of all the elements.

Copy link
Author

Choose a reason for hiding this comment

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

I have fixed this by changing loop direction.

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jul 25, 2025
@TarasMykytiuk TarasMykytiuk force-pushed the sprint_3_todo_list_app branch from 674a778 to 4eb5fdf Compare July 31, 2025 16:33
@TarasMykytiuk TarasMykytiuk added Needs Review Participant to add when requesting review and removed Reviewed Volunteer to add when completing a review labels Jul 31, 2025
@LonMcGregor
Copy link

Great! That works. This sprint task is complete now. Well done.

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review labels Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants