Skip to content

London | 26-ITP-May | Zadri Abdule | Project TV Show | Level - 500 - #101

Open
Zadri415 wants to merge 41 commits into
CodeYourFuture:mainfrom
Zadri415:main
Open

Zadri415 wants to merge 41 commits into
CodeYourFuture:mainfrom
Zadri415:main

Conversation

@Zadri415

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

Implemented the level 500 shows-listing feature:

Added a shows listing view on app start, showing name, image, summary, genres, status, and rating/runtime for all shows
Added free-text search across show name, genres, and summary
Clicking a show name fetches and displays its episodes (search + select still work as before), hiding the shows listing
Added a "Back to shows" control to return to the listing, hiding the episodes view
Episodes are cached per show so no show's episodes are fetched more than once per visit
Fixed a broken tag for episode cards that would have crashed the episodes view
Accessibility fixes: added alt text to all images, made the clickable show name a real so it's keyboard-focusable
Fixed episode summaries rendering as raw

tags instead of formatted HTML

Questions

N/A

Vitalii-code and others added 30 commits August 8, 2026 11:04
London | 26-ITP-May | Zadri Abdule | TV Show Project | Level-200
London | 26-ITP-May | Zadri Abdule | Project TV Show | Level 400
London | 26-ITP-May | Zadri Abdule | Project TV Show | Level 400
@Zadri415 Zadri415 closed this Aug 21, 2026
@Zadri415 Zadri415 reopened this Aug 21, 2026
@Zadri415 Zadri415 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 21, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Sep 14, 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.

  • Good use of caching
  • Functionality works well

I have spotted some issues in the code. ITP is over now, but if you want some extra practice, feel free to respond to the comments.

Comment thread index.html

<body>
<div id="root">
<div id="root"></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.

Did you try running the lighthouse check? Does it have any suggestions about better semantic html you could use here?

Comment thread index.html
<script src="episodes.js"></script>
<template id="show-card">
<article>
<grid>

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 "grid" an appropriate HTML element to use here?

Comment thread script.js
for (const episode of episodeList) {
const code =
"S" +
String(episode.season).padStart(2, "0") +

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 formatting code is repeated in a couple of places, could you find a way to abstract this and make it reusable?

Comment thread script.js
}
} else {
// display show search
await fetch(SHOWS_URL)

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.

You have two fetches for the shows_url here - is there a reason you need to include this twice?

Comment thread script.js
setupShowSearch();

showSelect.addEventListener("change", () => {
window.location.href = `/?showId=${showSelect.value}`;

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.

Does this do anything? I don't see any conditions where the query on your page seems to change. When should this code activate?

Comment thread index.html
<template id="episode-card">
<article>
<h1 class="title"></h1>
<img class="thumb" />

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.

When I'm looking at your images, do they have appropriate alt tags? Does https://axesslab.com/alt-texts/ have any useful guidance here?

@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 Sep 15, 2026

This branch has not been deployed

No deployments
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