Skip to content

feat(mobile): shareable stat cards for track milestones and trending - #14720

Draft
dylanjeffers wants to merge 1 commit into
mainfrom
feat/stat-cards
Draft

dylanjeffers wants to merge 1 commit into
mainfrom
feat/stat-cards

Conversation

@dylanjeffers

@dylanjeffers dylanjeffers commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What

Artists can share a branded stat card ("1,000 Plays", "#3 On Trending") with a 10s clip of the song to their Instagram, TikTok or Snapchat story.

  • New share type. milestone is a new ShareModalRequest/ShareContent variant carrying the track plus a ShareMilestoneStat: a plays/reposts/favorites count, or a trending/underground rank.
  • Same story pipeline. It reuses the story pipeline from fix(mobile): count story shares as done when the target app opens #14718. ShareToStorySticker gets an optional headline (big stat over the cover art), and useShareToStory / ShareDrawer accept any content that carries a track.
  • Notifications. Track milestone, Trending and Underground Trending notifications swap their X button for a Share button that opens the card. The drawer still offers X, with stat text. Collection and follower milestones keep the X button.
  • Pushes. Milestone and trending pushes flagged shareCard open the card over the track. This needs the pedalboard change that adds shareCard, threshold and rank to the push data. Without it, pushes behave exactly as today. Underground trending pushes also get a navigation handler.
  • Web. Web treats milestone like track, for typecheck only. No web entry point yet.

#14718 is merged; this is now based on main.

Out of scope for v1, per Michael: "Featured on Hot & New" and "All Things Bass".

Testing

  • Typecheck is clean for mobile and web on the touched files, and lint is clean.
  • Not run on a device yet. Still to check:
    • how the card renders
    • the Share button on each notification type
    • opening from a push
    • Instagram, TikTok and Snapchat with the headline sticker
  • Tracks that can't be streamed (gated, unlisted) only get X, Copy Link and Share Sheet. There's no still-image card fallback yet.

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fa81524

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

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>

This branch has not been deployed

No deployments
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