Skip to content

LONDON | ITP-May-26 | Edina Kurdi | Sprint 3 | Project TV Show - #91

Open
edinakurdi wants to merge 87 commits into
CodeYourFuture:mainfrom
edinakurdi:level-500
Open

edinakurdi wants to merge 87 commits into
CodeYourFuture:mainfrom
edinakurdi:level-500

Conversation

@edinakurdi

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

completed Tv-project up to level 500

edinakurdi and others added 30 commits August 5, 2026 00:00
level-0: add name and username
Select Dropdown Menu Functionality
-set up state,
-update setup function (including render())
update search and episode selector event listener
@edinakurdi edinakurdi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 19, 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 state management
  • Appropriate use of semantic HTML
  • Good use of caching

Good work overall. I have a few suggested areas you could look at if you want a bit more practice now that ITP is finished.

Comment thread style.css
}

footer a {
color: #a7f3d0;

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.

Be careful here, the lighthouse accessibility check is giving a warning because of this

Comment thread script.js
episodesView.hidden = false;

// Reset search and episode dropdown state
state.episodeSearchTerm = "";

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.

Here you are resetting the search terms, is the intent to always reset this when the state changes? Does this actually update the search box when changing state back and forth?

Comment thread script.js
// -----------------------------------------------------
function populateShowSelect(shows) {
const optionsHtml = shows
.map((show) => `<option value="${show.id}">${show.name}</option>`)

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.

One important thing to note if creating HTML this way - can you be sure the HTML from the API will always be safe to use? Are there any considerations to make here?

Comment thread script.js
const hasImg = show.image?.medium;
image.src = hasImg ? show.image.medium : "";
image.alt = hasImg
? `Scene from ${show.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? Does https://axesslab.com/alt-texts/ have any useful hints?

Comment thread script.js
: `No images available for ${show.name}`;

card.querySelector("[data-show-summary]").innerHTML = show.summary
? show.summary.replace(/<p>/gi, "").replace(/<\/p>/gi, "")

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.

What is your thinking in replacing the

here?

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

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants