Music Player: keep the playlist after a page reload
Maintainer thường phản hồi trong vòng 1 ngày
@Ziqian-Huang0607 đang làm issue này rồi.
Từ ngày 25/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 16
- Fork
- 8
- Merge trung bình
- 4 giờ 24 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codehubbers/OrbitOS
-
difficulty: easy good first issue security
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
codehubbers/OrbitOS#129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci difficulty: easy documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
codehubbers/OrbitOS#80 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty: easy documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
codehubbers/OrbitOS#79 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty: easy good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
codehubbers/OrbitOS#78 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎨 Add 5+ new high-quality wallpapers to the Settings appCó thể đã có người làm @anshumanjadiya1102 đã nhận 1 ngày trước. Đang mởdesign difficulty: easy frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
codehubbers/OrbitOS#75 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codehubbers/OrbitOS
Issue tương tự
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallbackCó thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
postcss/autoprefixer#1577 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
PranshulGG/WeatherMaster#1266 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FEATURE REQUEST
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
linuxmint/cinnamon-spices-applets#9356 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
opnsense/plugins#5976 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày