Skip to content

Manchester | 26-ITP-Sep | Mathew Shaibu | Sprint 3 | Quote generator app - #1520

Open
MattCarolus10 wants to merge 20 commits into
CodeYourFuture:mainfrom
MattCarolus10:Module-data-group-sprint-3
Open

MattCarolus10 wants to merge 20 commits into
CodeYourFuture:mainfrom
MattCarolus10:Module-data-group-sprint-3

Conversation

@MattCarolus10

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

Task code

CYF-1096

Changelist

Quote generator: title set, showQuote() renders a random quote and author, working button and 5s auto-play

@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 12, 2026
@MattCarolus10 MattCarolus10 changed the title Manchester | 26-ITP-Sep | Mathew Shaibu | Sprint 3 | Module data group sprint 3 Manchester | 26-ITP-Sep | Mathew Shaibu | Sprint 3 | Quote generator app Nov 12, 2026
@LonMcGregor LonMcGregor added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 16, 2026
@cyf-ai-code-reviewer

Copy link
Copy Markdown

The CYF AI reviewer had no comments to leave - please wait for a volunteer to review this PR.

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

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

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This generally looks good, but there's one comment to address - well done!

Comment thread Sprint-3/quote-generator/quotes.js Outdated
showQuote();

document.getElementById("new-quote").addEventListener("click", showQuote);
setInterval(showQuote, 5000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The requirements for this project are that it shows a quote on load, and optionally has a button you can click to have it auto-play more quotes.

I don't see a button in your UI when I load it, but it does auto-play quotes from the time it loads.

Can you work out how to gate this behaviour behind clicking a button, rather than just always doing 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.

Thank you for this review, changes has been made to resolve the review.

@illicitonion illicitonion removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 16, 2026
@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 16, 2026

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good, but a couple more thoughts:

  1. When I press the button, I don't get any feedback that it worked. It takes 5 seconds until I see any change at all. This often leaves me as a user wondering "Did this actually work? Is the website broken?" - can you think of any ways to avoid this?
  2. There's no way to stop auto-play once it's started. That's probably ok, but something to consider and consciously decide :)

@illicitonion illicitonion removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 18, 2026
@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 21, 2026
@illicitonion illicitonion 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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 23, 2026

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great, well done!

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants