Skip to content

London | 26-ITP-Sep | Mahdi Rafiei | Sprint 3 | Alarm Clock - #1469

Open
mrafeie wants to merge 2 commits into
CodeYourFuture:mainfrom
mrafeie:sprint3/alarmclock
Open

mrafeie wants to merge 2 commits into
CodeYourFuture:mainfrom
mrafeie:sprint3/alarmclock

Conversation

@mrafeie

@mrafeie mrafeie commented Sep 15, 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

Task code

CYF-1098

Changelist

Sprint 3 | Alarm Clock

Questions

Enhance setAlarm function to handle input validation, countdown display, and immediate alarm triggering.
Updated the title and structure of the alarm clock HTML.
@mrafeie mrafeie added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 15, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 15, 2026
@github-actions

This comment has been minimized.

@mrafeie mrafeie added 📅 Sprint 3 Assigned during Sprint 3 of this module Module-Data-Groups The name of the module. labels Sep 15, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@mrafeie mrafeie added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 15, 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, it's almost complete. I have one picky suggestion to look at


// handle negative input explicitly
const rawValue = Number(input.value);
if (rawValue < 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This might not be the best way of doing input validation. Is there a way to hint at incorrect inputs that doesn't involve taking over the timer display?

@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 Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants