Repository navigation
Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint 3 | Alarm clock - #1527
salahalsabhi wants to merge 7 commits into
Conversation
| } | ||
|
|
||
| const input = document.getElementById("alarmSet"); | ||
| let remaining = Number(input.value); |
There was a problem hiding this comment.
What happens to the countdown when Set Alarm is clicked with the number field empty?
To "like" or "dislike" this comment, please follow this link
There was a problem hiding this comment.
Good catch. Empty or invalid input is ignored: setAlarm returns early, so no countdown and no sound. Fixed in 458b940.
|
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. |
| @@ -1,4 +1,40 @@ | |||
| function setAlarm() {} | |||
There was a problem hiding this comment.
Please add the relevant test cases mentioned in the sprint for the alarmClock app in the separate test file.
There was a problem hiding this comment.
Sorry for the mistake, conflict markers removed. All 5 sprint tests in alarmclock.test.js pass (npm test -- --selectProjects alarmclock). Ready for re-review.
There was a problem hiding this comment.
okay sure. Please update the status & re-request for review. Will review it again accordingly.
This comment has been minimized.
This comment has been minimized.
|
The sprint already ships Sprint-3/alarmclock/alarmclock.test.js with 5 tests and a DO NOT MODIFY header, so I did not change that file (unchanged files do not appear under Files changed). Locally: npm test -- --selectProjects alarmclock → 5 passed. Implementation is only in alarmclock.js (+ title in index.html). Ready for re-review. |
|
The sprint already ships Sprint-3/alarmclock/alarmclock.test.js with 5
tests and a DO NOT MODIFY header, so I did not change that file (unchanged
files do not appear under Files changed).
Locally: npm test -- --selectProjects alarmclock → 5 passed.
Implementation is only in alarmclock.js (+ title in index.html). Ready for
re-review.
في الأربعاء، 25 نوفمبر 2026 في 10:34 ص تمت كتابة ما يلي بواسطة
Prabhanshu ***@***.***>:
… ***@***.**** commented on this pull request.
------------------------------
In Sprint-3/alarmclock/alarmclock.js
<#1527 (comment)>
:
> @@ -1,4 +1,40 @@
-function setAlarm() {}
alarmclock.test.js file is not visible still in the PR
—
Reply to this email directly, view it on GitHub
<#1527?email_source=notifications&email_token=CB4S7WMERVVXYFIE5ZB4JKD522YTPA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMBVGU4TIMRQHE3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#discussion_r4693611167>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CB4S7WO7JJCGVAQD2G3HDDD522YTPAVCNFSNUABFKJSXA33TNF2G64TZHM3TSOJSGQ2TMMRUHNEXG43VMU5TMNBQGMYDONZTGQY2C5QC>
.
You are receiving this because you authored the thread.Message ID:
<CodeYourFuture/Module-Data-Groups/pull/1527/review/6055942096
***@***.***>
|
|
Thanks for the implementation! I've reviewed the changes against the acceptance criteria. The countdown logic and time formatting look good. A few points to consider:
Please confirm the above points. |
|
Addressed the three points:
1. Alarm audio loops until Stop Alarm (audio.loop = true; stop pauses
and resets).
2. Input 0 triggers immediately at 00:00 (no 00:-1).
3. Page load shows Time Remaining: 00:00 with no sound.
All 5 sprint tests still pass.
في الأربعاء، 25 نوفمبر 2026 في 12:22 م تمت كتابة ما يلي بواسطة
Prabhanshu ***@***.***>:
… *Prabhanshu-dev* left a comment (CodeYourFuture/Module-Data-Groups#1527)
<#1527 (comment)>
Thanks for the implementation! I've reviewed the changes against the
acceptance criteria. The countdown logic and time formatting look good.
A few points to consider:
1.
Continuous alarm playback: Could you please verify that the alarm
sound continues playing until the user clicks the "Stop Alarm" button, as
required by the acceptance criteria?
2.
Zero-second input: When the user enters 0 as the alarm time, the
current implementation waits one second before triggering the alarm and
briefly displays 00:-1. Could you handle this case so the alarm
triggers immediately at 00:00?
3.
Initial state: Please ensure that the heading displays Time Remaining:
00:00 when the page first loads and that no alarm sound plays.
Please confirm the above points.
—
Reply to this email directly, view it on GitHub
<#1527?email_source=notifications&email_token=CB4S7WNCR5WHK6UFR6G4BMT523FJDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMJWGIZDQMRYGE2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7162282814>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CB4S7WP55SY5CJWVYXJFL2T523FJDAVCNFSNUABFKJSXA33TNF2G64TZHM3TSOJSGQ2TMMRUHNEXG43VMU5TMNBQGMYDONZTGQY2C5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
ok |
Prabhanshu-dev
left a comment
There was a problem hiding this comment.
Reviewed the implementation against the acceptance criteria. The countdown, continuous alarm playback, Stop Alarm functionality, zero-second handling, and initial page state look good.
All requirements appear to be satisfied.
|
Thank you for the review, but the PR still appears to me as reviewed but
not completed
في الأربعاء، 25 نوفمبر 2026 في 2:44 م تمت كتابة ما يلي بواسطة
Prabhanshu ***@***.***>:
… ***@***.**** approved this pull request.
Reviewed the implementation against the acceptance criteria. The
countdown, continuous alarm playback, Stop Alarm functionality, zero-second
handling, and initial page state look good.
All requirements appear to be satisfied.
—
Reply to this email directly, view it on GitHub
<#1527?email_source=notifications&email_token=CB4S7WKTDM6A6ACNHFAOXZL523V5NA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMBVHE3TOOBTHAYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-6059778380>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CB4S7WPLZHHIC5NXJBLVJB3523V5NAVCNFSNUABFKJSXA33TNF2G64TZHM3TSOJSGQ2TMMRUHNEXG43VMU5TMNBQGMYDONZTGQY2C5QC>
.
You are receiving this because you authored the thread.Message ID:
<CodeYourFuture/Module-Data-Groups/pull/1527/review/6059778380
***@***.***>
|
|
Updated the PR from reviewed to Complete status |
|
Thank you🙂
في الأربعاء، 25 نوفمبر 2026 في 5:46 م تمت كتابة ما يلي بواسطة
Prabhanshu ***@***.***>:
… *Prabhanshu-dev* left a comment (CodeYourFuture/Module-Data-Groups#1527)
<#1527 (comment)>
Updated the PR from reviewed to Complete status
—
Reply to this email directly, view it on GitHub
<#1527?email_source=notifications&email_token=CB4S7WJWMIOCX2IPXJZG5HT524LGZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMJWHE4TMOBSHE3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7169968296>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CB4S7WMZNDBOJZG7EJZV4XL524LGZAVCNFSNUABFKJSXA33TNF2G64TZHM3TSOJSGQ2TMMRUHNEXG43VMU5TMNBQGMYDONZTGQY2C5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Learners, PR Template
Self checklist
Task code
CYF-1098
Changelist
Questions
No questions.