Skip to content

feat(notifications): render the weekly_rotation notification - #14594

Merged
dylanjeffers merged 1 commit into
mainfrom
feat/weekly-rotation-notification
Sep 13, 2026
Merged

dylanjeffers merged 1 commit into
mainfrom
feat/weekly-rotation-notification

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Why

The api is adding a weekly_rotation notification row per active listener every Wednesday (AudiusProject/api#1038) and pedalboard pushes it (AudiusProject/pedalboard#94). Without this the row is dropped by the adapter and a push tap opens the app to nothing.

What

  • NotificationType.WeeklyRotation (+ the push enum) and WeeklyRotationNotification { year, week } in common; adapter maps weekly_rotation in the pre-regen fallback branch (same path remix_contest_update took), so no SDK regen is needed.
  • Web tile: "Your Weekly Rotation Is Ready", click → /explore/weekly-rotation.
  • Mobile tile: same copy, press → WeeklyRotationScreen; useNotificationNavigation gets a WeeklyRotation handler, which also covers the push payload.
  • Both tiles return null while weekly_rotation is off, since the page they open redirects to Explore in that state.

Verification

tsc for common, web and mobile; eslint on the touched files. No device run: the tile is a plain navigation, and the screen it opens shipped in #14587.

🤖 Generated with Claude Code

The api now writes a `weekly_rotation` notification row per active listener
every Wednesday, and pedalboard pushes it. This makes the row show up in the
notification feed on web and mobile as "Your Weekly Rotation Is Ready",
opening the viewer's own mix, and routes the push tap (`type:
'WeeklyRotation'`) to the WeeklyRotationScreen.

The SDK's generated union doesn't know the type yet, so the adapter maps it
in the same fallback branch remix_contest_update used before its regen.
Both tiles hide while the `weekly_rotation` flag is off: the page they open
bounces to Explore in that state, and the server fans the row out
regardless.

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

changeset-bot Bot commented Sep 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 426783d

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 03279ab into main Sep 13, 2026
18 checks passed
@dylanjeffers
dylanjeffers deleted the feat/weekly-rotation-notification branch September 13, 2026 21:38
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