Skip to content

Manchester | ITP-May-26 | Joanne O'Malley | Sprint 3 | Project TV Show - #85

Open
backup342 wants to merge 3 commits into
CodeYourFuture:mainfrom
backup342:level500
Open

Manchester | ITP-May-26 | Joanne O'Malley | Sprint 3 | Project TV Show#85
backup342 wants to merge 3 commits into
CodeYourFuture:mainfrom
backup342:level500

Conversation

@backup342

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | SPRINT NUM | PROJECT NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

This is a mirror of https://github.com/joanne342/Project-TV-Show because that one won't let me do a PR because somehow it seems to be a template of https://github.com/CodeYourFuture/Project-TV-Show rather than a fork. CYF isn't on any of the PR dropdowns. When I try to fork the CYF one to my GitHub (even calling it something different), it says the fork already exists but it's really not anywhere:

https://github.com/CodeYourFuture/Project-TV-Show/forks

I've been going round in circles with Chat GPT for hours and I don't know what I can do to fix this short of deleting everything and starting again which would involve repeatedly swapping with Abdu again so I hope this is acceptable.

Questions

Ask any questions you have for your reviewer.

@joanne342 joanne342 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 18, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unfortunately you can't make PRs from templates, only forks. This way of submitting is fine for this case, don't worry.

  • Good use of caching
  • The deployed page has all the right functionality
  • Have you tried using lighthouse to see if it has any suggestions about your HTML semantics and accessibility?

Good work on this. ITP is complete now, but if you want an extra challenge, feel free to respond to my comment

Comment thread index.html
<title>TV Show Project | Joanne O'Malley (joanne342)</title>
<link href="style.css" rel="stylesheet" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</head>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Most of your HTML is created within the Js. What benefits or tradeoffs do you think there are with this approach?

Comment thread script.js

card.innerHTML = `
<h2>${episode.name} - ${formatEpisodeCode(episode)}</h2>
<img src="${episode.image?.medium || ""}" alt="${episode.name}">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this an appropriate use of an alt tag? See what https://axesslab.com/alt-texts/ has to say

Comment thread script.js
card.innerHTML = `
<h2>${episode.name} - ${formatEpisodeCode(episode)}</h2>
<img src="${episode.image?.medium || ""}" alt="${episode.name}">
<div class="episode-summary">${episode.summary || ""}</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isn't wrong, but can you think of any potential side effects of inserting the summary from the API directly into your HTML like this?

Comment thread script.js
return controls;
}

async function setup() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unless there's a clear reason for it, having a lot of your functions defined inside setup might not be such a good idea as it leads to a very long difficult to read function. Do you think this approach is the best for your code?

Comment thread script.js
});

// Dual-purpose search (Shows or Episodes based on view)
searchInput.addEventListener("input", (event) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good idea to combine this control

@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. labels Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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