Skip to content

Comments

London | 26-ITP-Jan | Abdul Moiz | Sprint 3 | ToDo List#952

Open
A-Moiz wants to merge 3 commits intoCodeYourFuture:mainfrom
A-Moiz:todo-list
Open

London | 26-ITP-Jan | Abdul Moiz | Sprint 3 | ToDo List#952
A-Moiz wants to merge 3 commits intoCodeYourFuture:mainfrom
A-Moiz:todo-list

Conversation

@A-Moiz
Copy link

@A-Moiz A-Moiz commented Feb 9, 2026

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

  • Created and tested function to delete all completed tasks
  • Added stretch 1 feature - task deadline

Questions

N/A

@A-Moiz A-Moiz added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@JaypeeLan JaypeeLan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 21, 2026
<button id="add-task-btn">Add</button>
</div>
<div class="todo-input">
<input

Choose a reason for hiding this comment

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

This works fine, and I know you are doing some validation with JavaScript. But since this is a required field, you can do some validation with HTML only. Check on how to do simple validation on input fields using HTML.

const deadlineInput = document.getElementById("new-task-deadline");
const task = taskInput.value.trim();
const deadline = deadlineInput.value || null;
if (task) {

Choose a reason for hiding this comment

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

This works. To improve the user experience, please throw an error to the user if there is no valid input (task in this case).

@JaypeeLan JaypeeLan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 21, 2026
@A-Moiz A-Moiz added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants