fix: pre-fill full remix parent when entering contest from mobile#14273
Merged
dylanjeffers merged 1 commit intomainfrom May 7, 2026
Merged
fix: pre-fill full remix parent when entering contest from mobile#14273dylanjeffers merged 1 commit intomainfrom
dylanjeffers merged 1 commit intomainfrom
Conversation
The mobile contest screen's "Enter Contest" button only passed parent_track_id into the upload flow, dropping the user object, has_remix_author_reposted/saved flags, artwork and genre that the existing remix flow already pre-fills. The upload form's remix-of context rendered incomplete on mobile contest entries as a result. Extracts the metadata shape into a shared `useEnterContest` hook in @audius/common/hooks and adds thin web + mobile wrappers that handle their platform-specific artwork blob fetching and navigation. Also dedupes the inline copy in the desktop RemixContestSection so all four entry points (web track page, web contest page, mobile track screen, mobile contest screen) feed the same shape into the upload form. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Contributor
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14273.audius.workers.dev Unique preview for this PR (deployed from this branch). |
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.
Summary
ContestScreen.handleEnterContest) was only passingparent_track_idinto the upload flow, dropping theuserobject, thehas_remix_author_reposted/has_remix_author_savedflags, the source-track artwork, and the genre — fields that the existing "Upload Your Remix" button already pre-fills. The upload form's remixed-from context rendered incomplete on contest entries.useEnterContesthook in@audius/common/hooks. Web and mobile each have a thin wrapper that handles platform-specific artwork blob fetching (WebFilevs RN's_datashape) and navigation, but theremix_ofshape is now defined in one place.RemixContestSectionso all four entry points (web track page, web contest page, mobile track screen, mobile contest screen) share one source of truth.Affected entry points
RemixContestSectionuseEnterContestUploadRemixFooterContestScreen.handleEnterContestparent_track_idTest plan
RemixContestSection→ confirm pre-fill (regression check on deduped inline impl)userfield broke on mobile)🤖 Generated with Claude Code