Repository navigation
feat(notifications): render the trending_genre notification - #14769
Merged
Merged
Conversation
|
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
force-pushed
the
feat/trending-genre-notification
branch
from
November 12, 2026 00:45
0fe7ec8 to
6f2f5b1
Compare
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.
Why
Michael approved the genre chart notification (2026-11-11). Every Friday the api writes a
trending_genrerow 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
trending_genremaps toNotificationType.TrendingGenre{rank, genre, entityType: Track, entityId}. Handled in the pre-SDK-regen fallback likeweekly_artist_recap. Rows with no genre or a bad id are dropped.trending_genre_notificationis off.TrendingGenreopens the track and, withshareCard, the stat card.genrestat kind, headline#4/In Dubstep, X text reuses the rank copy.trending_genre_notification: on in dev, off in prod.Rollout
trending_genre_notificationin Optimizely.push_trending_genreindiscovery_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.tspasses (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