Skip to content

Commit d66e089

Browse files
dylanjefferscursoragentraymondjacobsonclaude
authored
Remove Artist Coin Tracks feature from explore (#14071)
## Summary This PR removes the Artist Coin Tracks (Fan Club Exclusives) feature from the explore page across web and mobile platforms. The feature included dedicated sections for displaying featured artist coin tracks and has been completely deprecated. ## Key Changes - **Removed components:** - `useFeaturedArtistCoinTracks` hook from common API - `FeaturedArtistCoinTracks` component from mobile explore screen - `ArtistCoinTracksSection` component from web desktop explore page - **Updated explore content:** - Removed `featuredArtistCoinTracks` field from `useExploreContent` hook and its response type - Removed `useFeaturedArtistCoinTracks` export from common API index - **Updated UI:** - Removed `ArtistCoinTracksSection` from web desktop SearchExplorePage - Removed `FeaturedArtistCoinTracks` from mobile ExploreContent - Removed `ArtistCoinTracksSection` from web mobile SearchExplorePage - Removed `artistCoinExclusives` message from explore messages - **Reordered sections:** - Reorganized section rendering order in web desktop SearchExplorePage for better content flow ## Implementation Details The removal is clean with no orphaned references. All related UI components, API hooks, and message strings have been removed consistently across both web and mobile platforms. https://claude.ai/code/session_01KBKEm4FZFntgm93SCSoKJK --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Ray Jacobson <raymondjacobson@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent eac7b77 commit d66e089

9 files changed

Lines changed: 5 additions & 109 deletions

File tree

packages/common/src/api/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export * from './tan-query/events'
3232

3333
// Explore
3434
export * from './tan-query/collection/useExploreContent'
35-
export * from './tan-query/collection/useFeaturedArtistCoinTracks'
3635

3736
// Lineups
3837
export * from './tan-query/lineups/useFeed'
@@ -44,7 +43,6 @@ export * from './tan-query/lineups/useTrendingUnderground'
4443
export * from './tan-query/lineups/useTrendingWinners'
4544
export * from './tan-query/lineups/useTrackPageLineup'
4645
export * from './tan-query/lineups/useLineupQuery'
47-
export * from './tan-query/lineups/useExclusiveTracks'
4846

4947
// Notifications
5048
export * from './tan-query/notifications/useMarkNotificationsAsViewed'

packages/common/src/api/tan-query/collection/useExploreContent.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ type ExploreContentResponse = {
1414
featuredProfiles?: string[]
1515
featuredRemixContests?: string[]
1616
featuredLabels?: string[]
17-
featuredArtistCoinTracks?: string[]
1817
}
1918

2019
export type ExploreContent = {
2120
featuredPlaylists: ID[]
2221
featuredProfiles: ID[]
2322
featuredRemixContests: ID[]
2423
featuredLabels: ID[]
25-
featuredArtistCoinTracks: ID[]
2624
}
2725

2826
export const getExploreContentQueryKey = () => {
@@ -56,10 +54,7 @@ export const useExploreContent = <TResult = ExploreContent>(
5654
featuredRemixContests: parseUniqueValidIds(
5755
json.featuredRemixContests ?? []
5856
),
59-
featuredLabels: parseUniqueValidIds(json.featuredLabels ?? []),
60-
featuredArtistCoinTracks: parseUniqueValidIds(
61-
json.featuredArtistCoinTracks ?? []
62-
)
57+
featuredLabels: parseUniqueValidIds(json.featuredLabels ?? [])
6358
}
6459
},
6560
...options,

packages/common/src/api/tan-query/collection/useFeaturedArtistCoinTracks.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/common/src/messages/explore.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export const exploreMessages = {
22
explore: 'Explore',
33
description: 'Discover new releases, fan favorites, and rising hits',
44
searchPlaceholder: 'What do you want to listen to?',
5-
artistCoinExclusives: 'Fan Club Exclusives',
65
coinGatedTracks: 'Coin Gated Tracks',
76
featuredPlaylists: 'Community Playlists',
87
fanClubs: 'Fan Clubs',

packages/mobile/src/screens/explore-screen/components/ExploreContent.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { RecentSearches } from 'app/screens/search-screen/RecentSearches'
77
import { useSearchCategory } from 'app/screens/search-screen/searchState'
88

99
import { ArtistSpotlight } from './ArtistSpotlight'
10-
import { FeaturedArtistCoinTracks } from './FeaturedArtistCoinTracks'
1110
import { FeaturedPlaylists } from './FeaturedPlaylists'
1211
import { FeaturedRemixContests } from './FeaturedRemixContests'
1312
import { FeelingLucky } from './FeelingLucky'
@@ -29,7 +28,6 @@ export const ExploreContent = () => {
2928
<Flex gap='2xl' pt='s' pb={150} ph='l'>
3029
{showTrackContent && showUserContextualContent && <ForYouTracks />}
3130
{showPlaylistContent && <FeaturedPlaylists />}
32-
{showTrackContent && <FeaturedArtistCoinTracks />}
3331
{showTrackContent && showUserContextualContent && (
3432
<RecentlyPlayedTracks />
3533
)}

packages/mobile/src/screens/explore-screen/components/FeaturedArtistCoinTracks.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/web/src/pages/search-explore-page/components/desktop/ArtistCoinTracksSection.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/web/src/pages/search-explore-page/components/desktop/SearchExplorePage.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import {
3939
viewLayoutOptions
4040
} from 'pages/search-page/types'
4141

42-
import { ArtistCoinTracksSection } from './ArtistCoinTracksSection'
4342
import { ArtistSpotlightSection } from './ArtistSpotlightSection'
4443
import { FanClubsExploreSection } from './FanClubsExploreSection'
4544
import { FeaturedPlaylistsSection } from './FeaturedPlaylistsSection'
@@ -322,15 +321,14 @@ const SearchExplorePage = ({
322321
{showTrackContent && showUserContextualContent ? (
323322
<RecommendedTracksSection />
324323
) : null}
325-
{isTracksTab ? <QuickSearchGrid /> : null}
326-
{showTrackContent ? <ArtistCoinTracksSection /> : null}
327-
{showTrackContent && showUserContextualContent ? (
328-
<RecentlyPlayedSection />
329-
) : null}
330324
{showPlaylistContent ? <FeaturedPlaylistsSection /> : null}
331325
{categoryKey === CategoryView.ALL ? (
332326
<FanClubsExploreSection />
333327
) : null}
328+
{isTracksTab ? <QuickSearchGrid /> : null}
329+
{showTrackContent && showUserContextualContent ? (
330+
<RecentlyPlayedSection />
331+
) : null}
334332
{showTrackContent ? <FeaturedRemixContestsSection /> : null}
335333
{isTracksTab ? <UndergroundTrendingTracksSection /> : null}
336334
{showUserContent ? <ArtistSpotlightSection /> : null}

packages/web/src/pages/search-explore-page/components/mobile/SearchExplorePage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import {
3939
ViewLayout
4040
} from 'pages/search-page/types'
4141

42-
import { ArtistCoinTracksSection } from '../desktop/ArtistCoinTracksSection'
4342
import { ArtistSpotlightSection } from '../desktop/ArtistSpotlightSection'
4443
import { FanClubsExploreSection } from '../desktop/FanClubsExploreSection'
4544
import { FeaturedPlaylistsSection } from '../desktop/FeaturedPlaylistsSection'
@@ -249,7 +248,6 @@ const SearchExplorePage = ({
249248
<RecommendedTracksSection />
250249
) : null}
251250
{isTracksTab ? <QuickSearchGrid /> : null}
252-
{showTrackContent ? <ArtistCoinTracksSection /> : null}
253251
{showTrackContent && showUserContextualContent ? (
254252
<RecentlyPlayedSection />
255253
) : null}

0 commit comments

Comments
 (0)