Skip to content

Remove download tracking UI from track pages#14074

Merged
dylanjeffers merged 2 commits intomainfrom
claude/remove-track-download-button-iL8uX
Apr 8, 2026
Merged

Remove download tracking UI from track pages#14074
dylanjeffers merged 2 commits intomainfrom
claude/remove-track-download-button-iL8uX

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

This PR removes download count tracking and display functionality from track pages, including the download stats button and dedicated download section component.

Key Changes

  • TrackStats.tsx: Removed the download count display button that showed formatted download statistics

    • Removed useTrackDownloadCount hook and related download count fetching logic
    • Removed IconCloudDownload import and download message
    • Removed is_downloadable field from track data selection
  • GiantTrackTile.tsx: Removed the download section component from the track tile

    • Removed lazy-loaded DownloadSection component
    • Removed useStems hook and download availability logic
    • Removed conditional rendering of the download section
    • Removed Suspense and lazy imports that were only used for the download section
  • useTrackMetadata.ts: Updated downloads metadata display logic

    • Changed to only show download count when both isDownloadable is true AND downloadCount > 0
    • Prevents displaying empty download statistics

Implementation Details

The changes maintain the metadata structure but make the downloads field conditional on having actual download data, ensuring cleaner UI by not showing download information when there's nothing to display.

https://claude.ai/code/session_01TFkhjQRGjeoZrtiaXsqC5j

Remove the DownloadSection and download count stat from the giant track
tile header. Downloads are now only shown in the metadata section
(genre, mood, key, BPM, etc.) and only when the count is greater than zero.

https://claude.ai/code/session_01TFkhjQRGjeoZrtiaXsqC5j
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

⚠️ No Changeset found

Latest commit: 40f6e0a

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

Co-authored-by: Dylan Jeffers <dylanjeffers@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14074.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

@dylanjeffers dylanjeffers merged commit 64c29cc into main Apr 8, 2026
14 checks passed
@dylanjeffers dylanjeffers deleted the claude/remove-track-download-button-iL8uX branch April 8, 2026 23:18
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.

3 participants