Skip to content

feat(notifications): render the weekly_artist_recap notification - #14768

Merged
dylanjeffers merged 1 commit into
mainfrom
feat/weekly-artist-recap
Nov 11, 2026
Merged

dylanjeffers merged 1 commit into
mainfrom
feat/weekly-artist-recap

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Why

Michael picked the weekly artist recap (2026-11-11). The api writes one weekly_artist_recap row per artist each Wednesday (AudiusProject/api#1070), and pedalboard pushes it (AudiusProject/pedalboard#111). Without this PR the adapter drops the row.

What

  • NotificationType.WeeklyArtistRecap (also added to the push enum) and WeeklyArtistRecapNotification {playCount, followerCount, saveCount, rotationSaveCount, topCity?, year, week}. The adapter maps it in the pre-regen fallback branch, the same way weekly_rotation_featured is mapped, so no SDK regen is needed.
  • Copy lives in weeklyArtistRecapNotificationMessages and matches the push:
    • Your Week on Audius
    • 1,240 plays, 18 new followers, top city Atlanta, 42 saves. Zero followers, zero saves and a missing city are left out.
    • When some saves came from Weekly Rotation listeners, the tile adds: 5 saves came from Weekly Rotation listeners.
  • Web tile opens the Artist Dashboard. Mobile tile opens the artist's own profile. A push tap on mobile opens the Notifications tab, since the push has no entity.
  • Flag: weekly_artist_recap, on in development and off by default in production. Both tiles render nothing while it is off.

Rollout

  • Add weekly_artist_recap in Optimizely and turn it on when we want the tile.
  • The push is gated separately by push_weekly_artist_recap in pedalboard.
  • The first rows land Wednesday 18:00 UTC after the api merges. While the flag is off, the server's unread count still includes the row, so an artist can see a badge with no visible tile. Flip the flag before that first Wednesday, or keep the api unmerged until then.

Verification

  • New vitest packages/common/src/adapters/notification.test.ts covers the adapter mapping, a missing city, and the copy. It passes.
  • tsc for common, web and mobile shows no errors in touched files. The only errors are pre-existing ones from a stale local SDK build.
  • eslint passes on all touched files.
  • No device run: the tile can't be reached locally without a row from the api job.

🤖 Generated with Claude Code

Adds the WeeklyArtistRecap type, adapter, copy and web/mobile tiles behind
the weekly_artist_recap flag (off in production). Web opens the Artist
Dashboard, mobile the artist's profile; a push tap opens Notifications.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b6f9389

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 d3d82c6 into main Nov 11, 2026
26 of 27 checks passed
@dylanjeffers
dylanjeffers deleted the feat/weekly-artist-recap branch November 11, 2026 21:06
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