Music Player: keep the playlist after a page reload
Los mantenedores suelen responder en 1 día
@Ziqian-Huang0607 ya está trabajando en esto.
Desde el 25/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 16
- Forks
- 8
- Merge medio
- 4 h 24 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codehubbers/OrbitOS
-
difficulty: easy good first issue security
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
codehubbers/OrbitOS#129 ·
Los mantenedores suelen responder en 1 día
-
ci difficulty: easy documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
codehubbers/OrbitOS#80 ·
Los mantenedores suelen responder en 1 día
-
difficulty: easy documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
codehubbers/OrbitOS#79 ·
Los mantenedores suelen responder en 1 día
-
difficulty: easy good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
codehubbers/OrbitOS#78 ·
Los mantenedores suelen responder en 1 día
-
🎨 Add 5+ new high-quality wallpapers to the Settings appPosiblemente ocupada @anshumanjadiya1102 la tomó hace 1 día. Abiertodesign difficulty: easy frontend good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
codehubbers/OrbitOS#75 ·
Los mantenedores suelen responder en 1 día
Todos los issues de codehubbers/OrbitOS
Issues similares
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallbackPosiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
postcss/autoprefixer#1577 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
PranshulGG/WeatherMaster#1266 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
FEATURE REQUEST
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
linuxmint/cinnamon-spices-applets#9356 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
opnsense/plugins#5976 · 1 comentario ·
Los mantenedores suelen responder en 1 día