Skip to content

Manchester | 26-ITP-Sept | Aklilu Mihtsun | Sprint 3 | Build an alarm clock app - #1583

Open
AkliluMihtsun wants to merge 5 commits into
CodeYourFuture:mainfrom
AkliluMihtsun:coursework/Sprint-3-alarmclock
Open

AkliluMihtsun wants to merge 5 commits into
CodeYourFuture:mainfrom
AkliluMihtsun:coursework/Sprint-3-alarmclock

Conversation

@AkliluMihtsun

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

I have built the alarm clock app

@AkliluMihtsun AkliluMihtsun added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 24, 2026
Comment on lines +40 to +47
countdown = setInterval(() => {
remainingSeconds--;

updateDisplay();

if (remainingSeconds <= 0) {
playAlarm();
clearInterval(countdown);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Once this interval is running, what happens to it when the user clicks Stop Alarm before it reaches zero?

To "like" or "dislike" this comment, please follow this link

@cyf-ai-code-reviewer cyf-ai-code-reviewer Bot 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 Nov 24, 2026
@cyf-ai-code-reviewer

Copy link
Copy Markdown

The CYF AI review has left comments. It will only review a PR one time. When you have addressed these comments, please request review again and a volunteer will take a look.

@AkliluMihtsun AkliluMihtsun added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 24, 2026

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

Thank you so much for sharing your work across today's katas and alarm clock files! Your logic, tests, layout, and styling show real thought and effort.

Just a couple of gentle questions to explore: how do edge cases (like NaN, sparse slots, or floats) and untouched test selectors (#set vs. #start) or color contrast behave here? You're doing awesome—keep it up!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you so much for sharing this! Formatting mm:ss with padStart and clearing intervals is super thoughtful.

Just a gentle question: what happens if the user changes the input after pausing, or if start isn't part of the expected setup? You're doing great—keep it up!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you so much for sharing the test files! It's super clear how everything fits together now.

Just a gentle question to explore: notice the top comment (DO NOT MODIFY) and how the original tests query #set rather than #start—what happens if we keep the test file untouched and let #set trigger the countdown? You're doing great—keep it up!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you so much for sharing the HTML! Grouping the buttons and setting type="button" is super thoughtful.

Just a gentle question: how does adding #start and changing the test selectors affect the existing test suite, and could #set handle the countdown directly? You're doing great—keep it up!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you so much for sharing the styles! Styling the buttons and centering the controls is super thoughtful.

Just a gentle question: how might bright background colors or green text on a green button affect contrast and readability for users? You're doing awesome—keep it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants