Skip to content

Conversation

@MohammedNaru
Copy link

@MohammedNaru MohammedNaru commented Nov 24, 2025

Slideshow Pull Reqest

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

Changed Js, Html and Css files to meet task requirements.

Questions

No Questions for reviewer.

@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@MohammedNaru MohammedNaru changed the title Refactor: update slideshow structure and add button functionality West Midlands | ITP-Sept-2025 | Ali Naru | Sprint 3 | Slideshow Nov 24, 2025
@github-actions
Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@MohammedNaru MohammedNaru added 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 Nov 24, 2025

Choose a reason for hiding this comment

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

You may want to double-check the opening and closing tags, especially around the button-bar

Choose a reason for hiding this comment

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

Also, recheck your main HTML opening tag

Choose a reason for hiding this comment

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

Great work, but you might want to recheck how the auto-mode buttons get enabled and disabled during different actions.

@Pappyjay157 Pappyjay157 self-assigned this Nov 26, 2025
Copy link

@eliza-an eliza-an left a comment

Choose a reason for hiding this comment

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

There is a lot very advanced javascipt code in here. It's all written really well, but I want to mention 2 things:

  1. It's important that your code is readable- not just simple. Would your peers be able to easily review your code? or would they have to look things up?
  2. It is also important that you yourself are able to understand every section of code that you've written, The features here are super advanced. Would you yourself be able to find a bug easily if it were to come up? If so excellent work!! If not- it might be good to rewrite this in a simpler way so bugs are easier to spot for you!

@@ -1,8 +1,103 @@
const images = [
"./assets/cute-cat-a.png",

Choose a reason for hiding this comment

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

Good work! But the instructions say that we must cycle through at least 4 images and here you have 3! Make sure to read the instructions clearly!

});

function actButton(id) {
switch (id) {

Choose a reason for hiding this comment

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

this is a good use of the switch case statements, could you explain to me what this does and why you chose to use it instead of an if else? good knowledge exersise!

}

function backward() {
index = index === 0 ? images.length - 1 : index - 1;

Choose a reason for hiding this comment

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

This is a good section of code but it's not very readable. As a programmer, it's importatnt to write code that a reviewer can understand at first glance without thinking too hard about it.
Could you try to rewrite this in a more readable way? It would also be helpful to understand exactly what this section does. Could you reply to me in this thread and explain it to be like i am a beginner? Another good learning exercise!

@eliza-an eliza-an 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 Dec 22, 2025
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. 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.

3 participants