Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

TV Show Project Level 300: Swap back to your old codebase

Aperta
#477 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
api, frontend

Direzione di ricerca

Inizia da episodes.js e dal flusso esistente di getAllEpisodes, quindi esamina come il sito web utilizza i dati degli episodi per la ricerca, lo scorrimento e la selezione. Leggi la documentazione dell’API dell’elenco degli episodi di TVMaze e testa gli stati di caricamento e di errore simulato. Il lavoro è completato quando episodes.js è stato rimosso, l’URL viene recuperato una sola volta per visita e gli utenti ricevono un feedback visibile durante l’attesa o in caso di errore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

🏕 Priority Mandatory 📅 Sprint 2 Core Submit:None

Level 300

For level 300, you should switch back to your original codebase.

You should have reviewed and merged your partner's level 200 changes through a PR to your own repo.

Remember to pull the latest changes onto your local machine.

Once again, compare their implementation to yours. Think:

  1. How is it different?
  2. What do you prefer about your implementation?
  3. What do you prefer about their implementation?
  4. What did you learn that you didn't know before?

Have a discussion about your answers to these questions. In class, together, give a 3 minute talk about your conclusions.

Refactoring

Like with level 200, feel free to change anything in your codebase which you think will make it easier to work with, or to build new features.

Make a branch and pull request for yourself, and then have your partner review, making sure they understand the changes made.

Adding new functionality

Level 300 is about getting rid of our static data from episodes.js, and instead using an API.

Requirements
  1. You must delete the episodes.js file from your repository.
  2. Your website must still work the same, but by using a fetch request to https://api.tvmaze.com/shows/82/episodes. This URL should serve the exact same content as was returned by getAllEpisodes in episodes.js.
  3. You must fetch this URL only once per visit to your website. You should not re-fetch when someone searches, scrolls, or selects an episode from the drop-down.
  4. If you don't have data yet, you should show something to tell the user to wait for the data.
  5. If an error occurred loading the data, notify the user.
  6. Note: real users don't look in the console - console.log or console.error are not sufficient for this requirement.
  7. You will need to simulate an error to test this out yourself.
Documentation

You can see that this endpoint has been documented here: https://www.tvmaze.com/api#show-episode-list

Lingua principale
JavaScript
Stelle
0
Fork
276
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeYourFuture/Module-Data-Flows

Tutte le issue di CodeYourFuture/Module-Data-Flows

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.