TV Show Project Level 300: Swap back to your old codebase
維護者通常 10 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript
研究方向
從 episodes.js 和現有的 getAllEpisodes 流程開始,接著檢視網站如何使用集數資料進行搜尋、捲動和選取。閱讀 TVMaze 劇集清單 API 文件,並測試載入狀態和模擬錯誤狀態。完成的標準是移除 episodes.js、每次造訪只擷取一次 URL,並讓使用者在等待或發生錯誤時看到明確的回饋。
由索引模型根據 Issue 內容生成。
描述
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:
- How is it different?
- What do you prefer about your implementation?
- What do you prefer about their implementation?
- 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
- You must delete the
episodes.jsfile from your repository. - Your website must still work the same, but by using a
fetchrequest to https://api.tvmaze.com/shows/82/episodes. This URL should serve the exact same content as was returned bygetAllEpisodesinepisodes.js. - 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.
- If you don't have data yet, you should show something to tell the user to wait for the data.
- If an error occurred loading the data, notify the user.
- Note: real users don't look in the console -
console.logorconsole.errorare not sufficient for this requirement. - 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
- 主要語言
- JavaScript
- 星號
- 0
- 分支
- 276
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CodeYourFuture/Module-Data-Flows 的其他 Issue
-
🏕 Priority Mandatory 📅 Sprint 3 Core Module-Data-Flows Submit:None 🦔 Size Tiny
難度 1/5 1 小時以內 新手友好度 85/100
CodeYourFuture/Module-Data-Flows#485 ·
維護者通常 10 天內回覆
-
🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 Core Module-Data-Flows Submit:None
難度 1/5 1 小時以內 新手友好度 72/100
CodeYourFuture/Module-Data-Flows#484 ·
維護者通常 10 天內回覆
-
🏝️ Priority Stretch 📅 Sprint 1 📅 Sprint 2 📅 Sprint 3 Optional Recurring Submit:None
難度 1/5 1 小時以內 新手友好度 25/100
CodeYourFuture/Module-Data-Flows#590 ·
維護者通常 10 天內回覆
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 3 Core Module-Data-Flows Submit:None
難度 2/5 1-3 小時 新手友好度 35/100
CodeYourFuture/Module-Data-Flows#373 ·
維護者通常 10 天內回覆
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 2 Core Module-Data-Flows Submit:None
難度 2/5 1-3 小時 新手友好度 35/100
CodeYourFuture/Module-Data-Flows#372 ·
維護者通常 10 天內回覆
查看 CodeYourFuture/Module-Data-Flows 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
documentation good first issue help wanted
難度 1/5 1-3 小時 新手友好度 85/100
zmo2s/agent-toolbox#23 ·
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inference可能已有人在做 @alok-108 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/playwright#43263 ·
維護者通常 1 天內回覆