Skip to content

feat(notifications): render the trending_genre notification - #14769

Merged
dylanjeffers merged 2 commits into
mainfrom
feat/trending-genre-notification
Nov 12, 2026
Merged

dylanjeffers merged 2 commits into
mainfrom
feat/trending-genre-notification

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Why

Michael approved the genre chart notification (2026-11-11). Every Friday the api writes a trending_genre row for each track in the top 10 of its genre's weekly chart, for genres with at least 10 tracks on the chart (AudiusProject/api#1071). Pedalboard pushes it (AudiusProject/pedalboard#112). This renders it.

What

  • Adapter: trending_genre maps to NotificationType.TrendingGenre {rank, genre, entityType: Track, entityId}. Handled in the pre-SDK-regen fallback like weekly_artist_recap. Rows with no genre or a bad id are dropped.
  • Tiles: web and mobile, "Charting in Dubstep" / "[track] is Remove COPY .npmrc from the dockerfiles #4 in Dubstep this week!". Web has the X share button, mobile has the share card button. Both hidden while trending_genre_notification is off.
  • Push: TrendingGenre opens the track and, with shareCard, the stat card.
  • Share card: new genre stat kind, headline #4 / In Dubstep, X text reuses the rank copy.
  • Flag trending_genre_notification: on in dev, off in prod.

Rollout

  1. Merge api#1071 so rows start on the next Friday 18:00 UTC.
  2. Ship this (web gate + mobile OTA), then turn on trending_genre_notification in Optimizely.
  3. Turn on push_trending_genre in discovery_notification_mapping.

While the flag is off, artists get an unread badge with no visible tile, same as the recap.

Tests

vitest src/adapters/notification.test.ts passes (maps the row, drops a row with no genre). tsc on common, web and mobile shows nothing in the changed files; the remaining errors come from my local SDK build being older than main. Not checked in a running app yet.

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6f2f5b1

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 and others added 2 commits November 11, 2026 16:45
Tile on web and mobile for "[track] is #4 in Dubstep this week!", the
push handler that opens the track with a genre share card, and the
trending_genre_notification flag (dev on, prod off).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dylanjeffers
dylanjeffers force-pushed the feat/trending-genre-notification branch from 0fe7ec8 to 6f2f5b1 Compare November 12, 2026 00:45
@dylanjeffers
dylanjeffers merged commit ae1daab into main Nov 12, 2026
27 checks passed
@dylanjeffers
dylanjeffers deleted the feat/trending-genre-notification branch November 12, 2026 00:55
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