Skip to content

fix: OTA banner on Feed, weekly-rotation share links, rename leftover art - #14597

Merged
dylanjeffers merged 3 commits into
mainfrom
fix/weekly-rotation-share-default-and-ota-banner
Sep 14, 2026
Merged

dylanjeffers merged 3 commits into
mainfrom
fix/weekly-rotation-share-default-and-ota-banner

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Summary

Three follow-ups to the Weekly Rotation launch.

1. Mobile OTA update banner shows on Feed, not just Trending. The banner lives in MobileRootHeader, which every root tab uses, but in practice it only appeared on Trending. Feed is the initial tab, so its banner mounts while the CodePush root HOC's own sync is already downloading; the banner's CodePush.sync returns SYNC_IN_PROGRESS immediately and its four early polls (0–4s) end before the download does. Trending, mounted later, found the pending package on mount. Now it polls every 2s for up to 3 minutes after mount/foreground and stops once a pending package appears.

2. Shared /explore/weekly-rotation/:handle links no longer bounce first-time visitors to Explore. Reproduced in a fresh browser: first load landed on /explore, second load rendered the page. When the Optimizely datafile tag fails or is slow (index.html's onError installs an empty datafile), every flag falls back to its hard-coded default, and weekly_rotation defaulted to false, so WeeklyRotationPage navigated away. The flag is live at 100%, so the fallback is now true; Optimizely still wins when it loads, so the remote flag remains the kill switch. Ad blockers that block the datafile host hit the same path.

3. Cover art still said "Discover Weekly". Web and mobile bundled asset regenerated in the same style with the new name.

Verified

  • Prod API /v1/users/:id/weekly-rotation returns 30 tracks; SSR meta carries og:title/og:image; og.audius.co/weekly-rotation/RAC returns the collage PNG.
  • Shared page renders signed out on desktop and at phone width once the flag resolves.
  • tsc --noEmit -p packages/mobile clean; eslint clean on the banner file.

Deploy notes

  • Mobile: needs a production OTA dispatch from main after merge.
  • Web: sits behind the Production deploy gate as usual.

🤖 Generated with Claude Code

dylanjeffers and others added 3 commits September 14, 2026 09:08
The banner lives in MobileRootHeader, shared by every root tab, but in
practice it only ever appeared on Trending. Feed is the initial tab, so its
banner mounts while the CodePush root HOC's own sync is already downloading
the bundle; the banner's CodePush.sync call returns SYNC_IN_PROGRESS at once
and its four early polls (0-4s) finish long before the download does. A tab
mounted later (Trending) found the pending package on mount and showed it.

Poll for a pending package every 2s for up to 3 minutes after mount and on
foreground, stopping as soon as one is found, so the tab that was open
during the download shows the banner too.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…issing datafile

A shared /explore/weekly-rotation/:handle link redirected first-time
visitors to Explore. When the Optimizely datafile tag fails or is slow on a
cold cache (index.html's onError installs an empty datafile), every flag
falls back to its hard-coded default, and weekly_rotation defaulted to
false, so WeeklyRotationPage navigated away. Reproduced in a fresh browser
profile; the same link rendered on the second load.

The flag has been live at 100% since 2026-09-13, so make the fallback true
(and drop the now-redundant development override). Optimizely still wins
when it loads, so the remote flag remains the kill switch.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The bundled artwork survived the rename: the shared page, the explore/feed
tiles, and the native screen all showed a tile reading DISCOVER WEEKLY.
Same black-tile-with-white-text style, new name, on web and mobile.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 53bf59d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers
dylanjeffers merged commit 1e0278f into main Sep 14, 2026
18 checks passed
@dylanjeffers
dylanjeffers deleted the fix/weekly-rotation-share-default-and-ota-banner branch September 14, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant