Music Player: keep the playlist after a page reload
I maintainer di solito rispondono entro 1 giorno
@Ziqian-Huang0607 ci sta già lavorando.
Dal 25/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- JavaScript
- Stelle
- 16
- Fork
- 8
- Merge medio
- 4h 24m
- PR unite (30g)
- 10
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codehubbers/OrbitOS
-
difficulty: easy good first issue security
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
codehubbers/OrbitOS#129 ·
I maintainer di solito rispondono entro 1 giorno
-
ci difficulty: easy documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
codehubbers/OrbitOS#80 ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: easy documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
codehubbers/OrbitOS#79 ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: easy good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
codehubbers/OrbitOS#78 ·
I maintainer di solito rispondono entro 1 giorno
-
🎨 Add 5+ new high-quality wallpapers to the Settings appForse già presa @anshumanjadiya1102 l’ha presa 1 giorno fa. Apertadesign difficulty: easy frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
codehubbers/OrbitOS#75 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codehubbers/OrbitOS
Issue simili
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallbackForse già presa @goranai l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
postcss/autoprefixer#1577 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
PranshulGG/WeatherMaster#1266 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
FEATURE REQUEST
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
linuxmint/cinnamon-spices-applets#9356 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
opnsense/plugins#5976 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno