Skip to content

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint/alarm-clock - #1332

Open
Tobias-Amaechina wants to merge 28 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-3-alarm-clock
Open

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 3 | Sprint/alarm-clock#1332
Tobias-Amaechina wants to merge 28 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:group-data-sprint-3-alarm-clock

Conversation

@Tobias-Amaechina

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

Added countdown logic (setAlarm) using setInterval

Implemented updateDisplay to show time in MM:SS format

Added flashing background when the alarm finishes

Added pause/resume functionality using a new togglePause handler

Added event listeners for Pause and Stop buttons

Ensured flashing stops when Stop is pressed

Kept all changes above the protected section and preserved starter code behaviour

@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
Comment thread Sprint-3/alarmclock/alarmclock.js
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
@cjyuan cjyuan 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 3, 2026
@Tobias-Amaechina Tobias-Amaechina added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 5, 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.

Changes look good. Well done.

Comment on lines +34 to +35
isNaN(seconds) ||
!Number.isInteger(seconds) ||

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.

One of these checks is redundant.

Comment on lines +24 to +26
const value = input.value.trim();//trim empty string
//Check if the input is empty
if (value === "") {

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.

The code is clear and readable enough. I don't think these comments could make the code any clearer.

Comment on lines +47 to +48
// Start a new countdown
startCountdown();

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.

This comment is probably not needed.

@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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 6, 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. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants