Skip to content

London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Todo List - #1408

Open
Yonatanteklemariam wants to merge 3 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-3-todo-list
Open

London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Todo List#1408
Yonatanteklemariam wants to merge 3 commits into
CodeYourFuture:mainfrom
Yonatanteklemariam:Sprint-3-todo-list

Conversation

@Yonatanteklemariam

@Yonatanteklemariam Yonatanteklemariam commented Aug 8, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implemented the Todo List application by adding deadline support and based on the instructions specified

Questions

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@Yonatanteklemariam Yonatanteklemariam changed the title London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | To Do London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | To Do List Aug 8, 2026
@github-actions

This comment has been minimized.

@Yonatanteklemariam Yonatanteklemariam changed the title London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | To Do List London | 26-ITP-May | Yonatan Teklemariam | Sprint 3 | Todo List Aug 8, 2026
@Yonatanteklemariam Yonatanteklemariam added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 8, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work on this, I have a few suggestions for improvements

export function addTask(todos, task, completed = false, deadline) {
const newTask = { task, completed };

if (deadline !== undefined) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a way this if condition could be simplified? (hint: Do you need to use !== undefined if you are checking that at least "some" value is present?)

message = `${Math.abs(diffDays)} days overdue`;
}

const deadlineSpan = document.createElement("span");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Instead of creating a new element here, is there a better place to put this new span element that is more in line with the existing todo list code you started with?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants