Skip to content

Birmingham | 26-ITP-Jan | Tasleem Adedokun | Sprint 3 | Alarm clock#1093

Open
tasleemadedokun wants to merge 8 commits intoCodeYourFuture:mainfrom
tasleemadedokun:Sprint-3-Alarmclock
Open

Birmingham | 26-ITP-Jan | Tasleem Adedokun | Sprint 3 | Alarm clock#1093
tasleemadedokun wants to merge 8 commits intoCodeYourFuture:mainfrom
tasleemadedokun:Sprint-3-Alarmclock

Conversation

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

Brief:
I have done the alarm coursework, and I have also done regular commits to this coursework.

@tasleemadedokun tasleemadedokun added 📅 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. labels Mar 25, 2026
@magarpratik magarpratik added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 3, 2026
Copy link
Copy Markdown

@magarpratik magarpratik left a comment

Choose a reason for hiding this comment

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

Really good effort! 👍

I've added a few comments. Could you please review them?

@@ -1,4 +1,4 @@
# Make an Alarm Clock
#Make an Alarm Clock
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Was this intended? You can test the markdown here.

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.

Was this intended? You can test the markdown here.

no it wasn't intended fixed.

Comment on lines +25 to +29
if (window.JEST_WORKER_ID){
flashInterval = setInterval(() => {
document.body.style.backgroundColor =
document.body.style.backgroundColor === "green" ? "white" : "green";
}, 500);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I tested the work locally and the background colour is not changing when the timer reaches 00:00. Could you look into it?

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.

I tested the work locally and the background colour is not changing when the timer reaches 00:00. Could you look into it?

worked on it already thanks.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice, the background is flashing now! Great job on completing the stretch task! 🎉

Comment on lines +38 to +46
function updateDisplay() {
const minutes = Math.floor(timeRemaining / 60);
const seconds = timeRemaining % 60;

const mm = String(minutes).padStart(2, "0");
const ss = String(seconds).padStart(2, "0");

display.textContent = `Time Remaining: ${mm}:${ss}`;
}
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 logic looks good. 👍

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.

This logic looks good. 👍

Thank you very much.

Comment on lines +33 to +35
// Decrement only if above 0
timeRemaining--;
updateDisplay();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When testing, the timer reaches stops at -1:-1 rather than 00:00. Could you look into it?

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.

When testing, the timer reaches stops at -1:-1 rather than 00:00. Could you look into it?

I think it should be fine now.

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.

Thank you very much for your time.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Working as expected now 👍

@magarpratik magarpratik added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 3, 2026
@tasleemadedokun tasleemadedokun 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 Apr 4, 2026
Copy link
Copy Markdown

@magarpratik magarpratik left a comment

Choose a reason for hiding this comment

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

Great work, app works as expected! 👍

Well done on completing the stretch task! 👏

interval = setInterval(() => {
if (timeRemaining <= 0) {
clearInterval(interval);
timeRemaining = 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.

Is this needed?

@magarpratik magarpratik 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. labels Apr 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. Module-Data-Groups The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants