Skip to content

West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Alam clock - #1451

Open
maryam-devio wants to merge 3 commits into
CodeYourFuture:mainfrom
maryam-devio:alam-clock
Open

maryam-devio wants to merge 3 commits into
CodeYourFuture:mainfrom
maryam-devio:alam-clock

Conversation

@maryam-devio

@maryam-devio maryam-devio commented Aug 21, 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 CYF-1098

Changelist

Built the alarm clock countdown.
Formatted the time as mm:ss.
Added alarm sound when the timer reaches 00:00.
Added a background colour change when the alarm finishes.
Added support for stopping the alarm sound.

@maryam-devio maryam-devio added 🏕 Priority Mandatory This work is expected 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. and removed 🏕 Priority Mandatory This work is expected labels Aug 21, 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.

The app has some issues you can find if you try and answer my question

Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
@@ -1,7 +1,35 @@
function setAlarm() {}
function setAlarm() {
const input = document.getElementById("alarmSet");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What should happen if an alarm is already counting down?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks you I updated it so that if an alarm is already counting down, the existing timer is cleared before starting the new alarm. I also tested setting a new alarm while one was running, and it resets to the new time.

@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 1, 2026
@maryam-devio maryam-devio added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 16, 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 16, 2026
@maryam-devio maryam-devio 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 Sep 16, 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 16, 2026
@github-actions

This comment has been minimized.

@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.

The alarm clock now handles what to do if an alarm is already in use. What about validation? Have you tested to see how it responds to invalid inputs?

@LonMcGregor LonMcGregor added the Reviewed Volunteer to add when completing a review with trainee action still to take. label Sep 16, 2026
@github-actions

This comment has been minimized.

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