Repository navigation
feat(mobile): milestone share cards for plays, trending and editorial playlists - #14727
Merged
Merged
Conversation
Adds a 'milestone' share type that carries the track and the stat (plays/reposts/favorites count or trending rank). It reuses the story pipeline with a stat headline on the sticker, so artists can post the card with a clip of the song to Instagram, TikTok or Snapchat. - Track milestone and trending notifications get a Share button that opens the card (collection and follower milestones keep X) - Pushes flagged with shareCard open the card over the track; trending underground pushes now navigate too - Web treats milestone shares as track shares for now Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extends the milestone stat cards: - Tracks added to Hot & New or All Things Bass get a stat card from the existing track_added_to_playlist notification and push. - Play milestones only offer a card at 1k, 5k, 10k, 50k, 100k, 500k and 1M. Lower counts, reposts and favorites keep the X button. - Overlay the stat on the cover art. A taller sticker was squashed by the sizes hardcoded for Snapchat and TikTok. - Parse the milestone push's track id, which iOS delivers as a string and which made the card's track fetch throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.
What
Artists who hit a milestone get a push that opens a branded card (stat + cover art), ready to post to their Instagram, TikTok or Snapchat story with a 10s clip of the song behind it. The card stays reachable from the Share button on the notification.
Supersedes #14720. Its commit is kept here, rebased onto current
main, with a second commit on top.handle_play1,000/ Playshandle_trending#3/ On Trendinghandle_playlistHot & New/ Featured PlaylistNo new detection was needed: all of these already create notifications. The server decides which pushes open a card, in the pedalboard PR (AudiusProject/pedalboard#108).
What changed from #14720
milestones.tsand the matching one in pedalboard.entityIdarrives as a string on iOS andId.parseonly takes numbers, so the card's track fetch would throw. It's now parsed to a number, which also gives the Track screen a numeric id.Decisions
hotandnewones.group_idhas no timestamp.Testing
packages/common(thresholds and playlist ids) andpackages/mobile.@audius/eth,spl,harmony).npm run verifywas not run as a whole, and CI runs web jobs only (all green), so runnpm run verifyinpackages/mobilebefore merging.1,000,000,All Things Bass)Merge order
Ship this first. The pedalboard PR must wait until this is live in production.
🤖 Generated with Claude Code