[WIP] Improve Party Mode feature across the entire stack#12
Closed
Copilot wants to merge 43 commits into
Closed
Conversation
[WIP] Update Musicanaz frontend to utilize improved mpyapi
…-frontend Revert "[WIP] Update Musicanaz frontend to utilize improved mpyapi"
…ease song limit Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…1c2d97b2-fa8d-47f3-9c64-3767093d3af5 Replace external trending APIs with own mpyapi backend; add artist-albums endpoint
…search play Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…seId Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…-api Fix artist "All Songs" thumbnails, replace broken trending/charts backend with Deezer, add reverse-search playback
Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
Integrate toplay API: feed listening data, expose community trending
Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…ggregation logic Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
Add Top Artists sections to History page and Wrapped card
Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…and fix sub-page back navigation Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
Fix back navigation: use router.back() instead of router.push("/") in back buttons
[WIP] Fix hardcoded URL in Party Mode for API requests
…tory Fix back button navigation: sync home views with browser history, fix sub-page back actions
Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
Fix Party Mode: replace jsonblob.com with external party server
…rols, enhanced chat) Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
…ove unused variable Co-authored-by: Wilooper <198341775+Wilooper@users.noreply.github.com>
feat: Improve Party Mode — WebRTC real-time comms, vote-sorted queue, host controls, enhanced chat
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Overview
Improve the Party Mode feature across the entire stack: the external party server handler (
party-mode-handler.js), the local Next.js API (app/api/party/route.ts), and the guest page (app/party/[id]/page.tsx). Also updatelib/audio-context.tsxto integrate with the new server endpoints.Current Architecture
The app uses a split architecture:
NEXT_PUBLIC_PARTY_SERVER=https://y-brown-two.vercel.app) — handles queue, currentSong, guest joining/leaving, guest count. This is powered byparty-mode-handler.js./api/partyatapp/api/party/route.ts) — handles chat, votes, reactions, and now WebRTC signaling.The frontend guest page (
app/party/[id]/page.tsx) polls BOTH servers.Key storage helpers from
lib/storage.ts:getGuestId()— returns persistentguest_XXXXXXXstring from localStoragegetPartyUsername()— returns display name from localStorageExternal Party Server Code (
party-mode-handler.js)This is the CURRENT external server handler that needs updating. It's a Node.js/Vercel serverless handler: