Skip to content

Conversation

@MalusiS
Copy link

@MalusiS MalusiS commented Aug 13, 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

This pull request implements a fully functional Todo-List web app with support for adding, completing, and deleting todos. Initial todos are dynamically rendered, and each todo includes icons for toggling completion and deleting. Users can add new todos via a text input, optionally set a deadline using a date picker, and remove all completed todos with a dedicated button. Todos with deadlines display a countdown, with visual cues: red for overdue, orange for due today, and gray for future dates. The app includes clean, responsive styling, and all provided Jest tests for mandatory and advanced functionality pass successfully.

Questions

Ask any questions you have for your reviewer.

@MalusiS MalusiS added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 13, 2025
@sambabib sambabib 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 Aug 14, 2025
const diffTime = deadline - today;
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));

if (diffDays > 1) return { text: `${diffDays} days left`, status: "normal" };

Choose a reason for hiding this comment

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

good solution overall. one thing to make a habit of going forward is to store things like statuses in variables, sometimes an object containing your statuses is ideal since javascript does not exactly support enums. this would help you keep track of things as your project grows.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, I really appreciate the feedback.

@sambabib sambabib added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 14, 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 all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants