Skip to content

Cape Town | 26-ITP-Sep | Quentin Gwele | Sprint 3 | Implement alarm clock - #1591

Open
lwandogwele52-ui wants to merge 1 commit into
CodeYourFuture:mainfrom
lwandogwele52-ui:coursework/sprint-3-alarmclock
Open

lwandogwele52-ui wants to merge 1 commit into
CodeYourFuture:mainfrom
lwandogwele52-ui:coursework/sprint-3-alarmclock

Conversation

@lwandogwele52-ui

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

Task code

CYF-1098

Changelist

tested using npm test , changed alarm clock.js and index.html.

@lwandogwele52-ui lwandogwele52-ui added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 4, 2026
@cyf-ai-code-reviewer

Copy link
Copy Markdown

The CYF AI reviewer checked this PR did not find any obvious problems. Please wait for a volunteer to also have a look and offer their own feedback.

@cjyuan cjyuan added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Dec 4, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

Comment on lines +31 to +34
// Ignore empty or invalid input. The maximum is 4 hours = 14400 seconds.
if (inputValue === "" || !Number.isInteger(remaining) || remaining < 0 || remaining > 14400) {
return;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note: Could consider introduce a way to inform the user why the alarm is not set (to improve user experience).

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Dec 4, 2026
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.

2 participants