Skip to content

London | 26-ITP-May | Martin Mwaka | Sprint 3 | Quote generator#1275

Open
Temceo wants to merge 7 commits into
CodeYourFuture:mainfrom
Temceo:quotegenerator
Open

London | 26-ITP-May | Martin Mwaka | Sprint 3 | Quote generator#1275
Temceo wants to merge 7 commits into
CodeYourFuture:mainfrom
Temceo:quotegenerator

Conversation

@Temceo

@Temceo Temceo commented Jul 21, 2026

Copy link
Copy Markdown

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

Complete the quote generator challenge (html, css, javaScript)

@Temceo Temceo added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 21, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 27, 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.

Great work, I have some comments for places you could improve further

@@ -1,3 +1,94 @@
const newQuoteBtn = document.querySelector("#new-quote");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you are using IDs, is there a better method to use than querySelector?

let countdownIntervalId = null;

// only show quotes that have not yet been seen
const getUnseenQuotes = () => {

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 is a good idea, but is there an efficient way to get unseen quotes using a set that does not require a do-while loop?


const startCountDown = () => {
let timeLeft = INTERVAL_DURATION_MS / 1000;
autoPlayStatus.innerText = `auto-play:ON - Quote will change in ${timeLeft} seconds`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

User feedback like this is nice, well done

@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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 27, 2026
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. 🏕 Priority Mandatory This work is expected 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