Music Player: keep the playlist after a page reload
メンテナーはふだん 1 日以内に返信
@Ziqian-Huang0607 がすでに取り組んでいます。
2026年11月25日 から。
評価
この issue はまだ評価されていません。
説明
New here? Say hi on Discord first, it's the fastest way to get help: https://discord.gg/NW2YZACf4k
The Music Player (#120) keeps its playlist only in React state, so a reload clears it and you have to add tracks again from My Files.
Expected
- The playlist, the current track and the volume survive a reload.
- Shuffle and repeat settings survive too.
Suggested approach
- Store
{ trackIds, currentIndex, volume, shuffle, repeat }in the user's preferences, using the samePUT /api/users/preferencesthe Weather app uses. Add amusicfield to the preferences insrc/models/User.js. - Save only file ids (
file-<id>). Don't save the URL or any content, and rebuild the track list fromGET /api/files?meta=1on load. - Skip ids that no longer exist, for example a deleted file.
- Debounce saves, at most once every couple of seconds, so dragging the volume slider doesn't spam the API.
Where: src/context/MusicContext.js and src/models/User.js.
Done when
- Reloading keeps the playlist and settings.
- A deleted file is dropped quietly.
- Tests cover the restore and deleted-file cases.
Comment "I'd like to take this" and we'll assign you. Questions are welcome in Discord: https://discord.gg/NW2YZACf4k
- 主要言語
- JavaScript
- スター
- 16
- フォーク
- 8
- 平均マージ
- 4時間 24分
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codehubbers/OrbitOS のほかの issue
-
difficulty: easy good first issue security
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
codehubbers/OrbitOS#129 ·
メンテナーはふだん 1 日以内に返信
-
ci difficulty: easy documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
codehubbers/OrbitOS#80 ·
メンテナーはふだん 1 日以内に返信
-
difficulty: easy documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
codehubbers/OrbitOS#79 ·
メンテナーはふだん 1 日以内に返信
-
difficulty: easy good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
codehubbers/OrbitOS#78 ·
メンテナーはふだん 1 日以内に返信
-
🎨 Add 5+ new high-quality wallpapers to the Settings app対応中かも @anshumanjadiya1102 が 1 日前に担当しました。 オープンdesign difficulty: easy frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
codehubbers/OrbitOS#75 ·
メンテナーはふだん 1 日以内に返信
codehubbers/OrbitOS の issue をすべて見る
似ている issue
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallback対応中かも @goranai が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
postcss/autoprefixer#1577 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
PranshulGG/WeatherMaster#1266 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
linuxmint/cinnamon-spices-applets#9356 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
opnsense/plugins#5976 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信