Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/young-dryers-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@audius/sdk": patch
---

Add/update user should use CID for photo/cover art
9 changes: 5 additions & 4 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- mobile-app-fix
paths:
- 'packages/mobile/**'
- 'packages/common/**'
Expand Down Expand Up @@ -93,7 +94,7 @@ jobs:
name: iOS Release Candidate Build & Upload
runs-on: macos-15
needs: mobile-init
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/mobile-app-fix') && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -261,7 +262,7 @@ jobs:
name: Android Release Candidate Build & Upload
runs-on: ubuntu-latest
needs: mobile-init
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/mobile-app-fix') && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -471,7 +472,7 @@ jobs:
name: iOS Production Build & Upload
runs-on: macos-15
needs: mobile-init
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/mobile-app-fix') && github.event_name != 'pull_request'
environment:
name: mobile-production-ios
url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
Expand Down Expand Up @@ -632,7 +633,7 @@ jobs:
name: Android Production Build & Upload
runs-on: ubuntu-latest
needs: mobile-init
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/mobile-app-fix') && github.event_name != 'pull_request'
environment:
name: mobile-production-android
url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
Expand Down
4 changes: 0 additions & 4 deletions packages/common/src/api/tan-query/users/useUnfollowUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Feature } from '~/models/ErrorReporting'
import { ID } from '~/models/Identifiers'
import { UserMetadata } from '~/models/User'
import { removeFolloweeId } from '~/store/gated-content/slice'
import { revokeFollowGatedAccess } from '~/store/tipping/slice'

import { primeUserData } from '../utils/primeUserData'

Expand Down Expand Up @@ -49,9 +48,6 @@ export const useUnfollowUser = () => {
// Handle gated content
dispatch(removeFolloweeId({ id: followeeUserId }))

dispatch(revokeFollowGatedAccess({ userId: followeeUserId }))

// Track the unfollow
if (source) {
track(
make({
Expand Down
14 changes: 0 additions & 14 deletions packages/common/src/store/pages/trending/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import { Genre } from '~/utils'

import { TimeRange } from '../../../models'

import type { TrendingCategory } from './types'

export const SET_TRENDING_GENRE = 'TRENDING/SET_TRENDING_GENRE'
export const SET_TRENDING_TIME_RANGE = 'TRENDING/SET_TRENDING_TIME_RANGE'
export const SET_TRENDING_CATEGORY = 'TRENDING/SET_TRENDING_CATEGORY'
export const SET_LAST_FETCHED_TRENDING_GENRE =
'TRENDING/SET_LAST_FETCHED_TRENDING_GENRE'

Expand All @@ -20,11 +17,6 @@ export type SetTrendingTimeRangeAction = {
timeRange: TimeRange
}

export type SetTrendingCategoryAction = {
type: typeof SET_TRENDING_CATEGORY
category: TrendingCategory
}

export type SetLastFetchedTrendingGenreAction = {
type: typeof SET_LAST_FETCHED_TRENDING_GENRE
genre: Genre | null
Expand All @@ -33,19 +25,13 @@ export type SetLastFetchedTrendingGenreAction = {
export type TrendingPageAction =
| SetTrendingGenreAction
| SetTrendingTimeRangeAction
| SetTrendingCategoryAction
| SetLastFetchedTrendingGenreAction

export const setTrendingGenre = (genre: Genre | null) => ({
type: SET_TRENDING_GENRE,
genre
})

export const setTrendingCategory = (category: TrendingCategory) => ({
type: SET_TRENDING_CATEGORY,
category
})

export const setTrendingTimeRange = (timeRange: TimeRange) => ({
type: SET_TRENDING_TIME_RANGE,
timeRange
Expand Down
19 changes: 1 addition & 18 deletions packages/common/src/store/pages/trending/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { LineupActions, asLineup } from '~/store/lineup/reducer'
import {
SET_TRENDING_GENRE,
SET_TRENDING_TIME_RANGE,
SET_TRENDING_CATEGORY,
SET_LAST_FETCHED_TRENDING_GENRE,
SetTrendingGenreAction,
SetTrendingTimeRangeAction,
SetTrendingCategoryAction,
SetLastFetchedTrendingGenreAction,
TrendingPageAction
} from '~/store/pages/trending/actions'
Expand Down Expand Up @@ -39,15 +37,6 @@ const actionsMap = {
trendingTimeRange: action.timeRange
}
},
[SET_TRENDING_CATEGORY](
state: TrendingPageState,
action: SetTrendingCategoryAction
) {
return {
...state,
trendingCategory: action.category
}
},
[SET_TRENDING_GENRE](
state: TrendingPageState,
action: SetTrendingGenreAction
Expand Down Expand Up @@ -88,8 +77,7 @@ const reducer =
trendingMonth: makeInitialState(TRENDING_MONTH_PREFIX),
trendingAllTime: makeInitialState(TRENDING_ALL_TIME_PREFIX),
trendingGenre: null,
trendingTimeRange: TimeRange.WEEK,
trendingCategory: 'tracks'
trendingTimeRange: TimeRange.WEEK
}

if (history) {
Expand Down Expand Up @@ -142,11 +130,6 @@ const reducer =
state,
action as SetTrendingTimeRangeAction
)
case SET_TRENDING_CATEGORY:
return actionsMap[SET_TRENDING_CATEGORY](
state,
action as SetTrendingCategoryAction
)
case SET_LAST_FETCHED_TRENDING_GENRE:
return actionsMap[SET_LAST_FETCHED_TRENDING_GENRE](
state,
Expand Down
3 changes: 0 additions & 3 deletions packages/common/src/store/pages/trending/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,5 @@ export const getTrendingTimeRange = (state: CommonState) =>
export const getTrendingGenre = (state: CommonState) =>
state.pages.trending.trendingGenre

export const getTrendingCategory = (state: CommonState) =>
state.pages.trending.trendingCategory

export const getLastFetchedTrendingGenre = (state: CommonState) =>
state.pages.trending.lastFetchedTrendingGenre
4 changes: 0 additions & 4 deletions packages/common/src/store/pages/trending/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ import { Genre } from '~/utils'

import { LineupState, TimeRange, Track } from '../../../models'

export type TrendingCategory = 'tracks' | 'underground'

export type TrendingPageState = {
trendingWeek: LineupState<Track>
trendingMonth: LineupState<Track>
trendingAllTime: LineupState<Track>
trendingTimeRange: TimeRange
trendingGenre: Genre | null
lastFetchedTrendingGenre: Genre | null
/** Mobile: selected tab for trending (Tracks vs Underground). */
trendingCategory: TrendingCategory
}
2 changes: 0 additions & 2 deletions packages/common/src/store/ui/modals/parentSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export const initialState: BasicModalsState = {
FeedFilter: { isOpen: false },
PurchaseVendor: { isOpen: false },
TrendingGenreSelection: { isOpen: false },
TrendingCategory: { isOpen: false },
TrendingTimeRange: { isOpen: false },
TrendingRewardsExplainer: { isOpen: false },
SocialProof: { isOpen: false },
EditFolder: { isOpen: false },
Expand Down
2 changes: 0 additions & 2 deletions packages/common/src/store/ui/modals/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ export type Modals =
| 'FeedFilter'
| 'PurchaseVendor'
| 'TrendingGenreSelection'
| 'TrendingCategory'
| 'TrendingTimeRange'
| 'TrendingRewardsExplainer'
| 'SocialProof'
| 'EditFolder'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_get_sitemaps(mock_get_base_url, app):
default_sitemap = build_default()
assert (
default_sitemap
== b'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n <url>\n <loc>https://audius.co/legal/privacy-policy</loc>\n </url>\n <url>\n <loc>https://audius.co/legal/terms-of-use</loc>\n </url>\n <url>\n <loc>https://audius.co/download</loc>\n </url>\n <url>\n <loc>https://audius.co/feed</loc>\n </url>\n <url>\n <loc>https://audius.co/trending</loc>\n </url>\n <url>\n <loc>https://audius.co/explore</loc>\n </url>\n <url>\n <loc>https://audius.co/upload</loc>\n </url>\n <url>\n <loc>https://audius.co/favorites</loc>\n </url>\n <url>\n <loc>https://audius.co/history</loc>\n </url>\n <url>\n <loc>https://audius.co/messages</loc>\n </url>\n <url>\n <loc>https://audius.co/dashboard</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/playlists</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/top-albums</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/remixables</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/feeling-lucky</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/chill</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/upbeat</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/intense</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/provoking</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/intimate</loc>\n </url>\n <url>\n <loc>https://audius.co/signup</loc>\n </url>\n <url>\n <loc>https://audius.co/signin</loc>\n </url>\n <url>\n <loc>https://audius.co/audio</loc>\n </url>\n <url>\n <loc>https://audius.co/settings</loc>\n </url>\n</urlset>\n'
== b'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n <url>\n <loc>https://audius.co/legal/privacy-policy</loc>\n </url>\n <url>\n <loc>https://audius.co/legal/terms-of-use</loc>\n </url>\n <url>\n <loc>https://audius.co/download</loc>\n </url>\n <url>\n <loc>https://audius.co/feed</loc>\n </url>\n <url>\n <loc>https://audius.co/trending</loc>\n </url>\n <url>\n <loc>https://audius.co/explore</loc>\n </url>\n <url>\n <loc>https://audius.co/upload</loc>\n </url>\n <url>\n <loc>https://audius.co/favorites</loc>\n </url>\n <url>\n <loc>https://audius.co/history</loc>\n </url>\n <url>\n <loc>https://audius.co/messages</loc>\n </url>\n <url>\n <loc>https://audius.co/dashboard</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/playlists</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/underground</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/top-albums</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/remixables</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/feeling-lucky</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/chill</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/upbeat</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/intense</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/provoking</loc>\n </url>\n <url>\n <loc>https://audius.co/explore/intimate</loc>\n </url>\n <url>\n <loc>https://audius.co/signup</loc>\n </url>\n <url>\n <loc>https://audius.co/signin</loc>\n </url>\n <url>\n <loc>https://audius.co/audio</loc>\n </url>\n <url>\n <loc>https://audius.co/settings</loc>\n </url>\n</urlset>\n'
)

# Validate that there are 7 track sitemaps - 10 total track / 3 user per sitemap = 4
Expand Down
1 change: 1 addition & 0 deletions packages/discovery-provider/src/queries/get_sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def create_xml_url(route):
"messages",
"dashboard",
"explore/playlists",
"explore/underground",
"explore/top-albums",
"explore/remixables",
"explore/feeling-lucky",
Expand Down
3 changes: 0 additions & 3 deletions packages/harmony/src/assets/icons/Leading.svg

This file was deleted.

8 changes: 1 addition & 7 deletions packages/mobile/src/app/Drawers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ import { PublishConfirmationDrawer } from 'app/screens/edit-track-screen/compone
import { ConnectNewWalletDrawer } from 'app/screens/external-wallets/components/ConnectNewWalletDrawer'
import { WelcomeDrawer } from 'app/screens/sign-on-screen/components/WelcomeDrawer'
import { PickWinnersDrawer } from 'app/screens/track-screen/PickWinnersDrawer'
import {
TrendingCategoryDrawer,
TrendingFilterDrawer,
TrendingTimeRangeDrawer
} from 'app/screens/trending-screen'
import { TrendingFilterDrawer } from 'app/screens/trending-screen'
import { WalletRowOverflowMenu } from 'app/screens/wallet-screen/components/LinkedWallets'

import { useDrawerState } from '../components/drawer'
Expand Down Expand Up @@ -117,8 +113,6 @@ const commonDrawersMap: { [Modal in Modals]?: ComponentType } = {
DeactivateAccountConfirmation: DeactivateAccountConfirmationDrawer,
FeedFilter: FeedFilterDrawer,
TrendingGenreSelection: TrendingFilterDrawer,
TrendingCategory: TrendingCategoryDrawer,
TrendingTimeRange: TrendingTimeRangeDrawer,
Overflow: OverflowMenuDrawer,
SignOutConfirmation: SignOutConfirmationDrawer,
AddToCollection: AddToCollectionDrawer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const NavigationContainer = (props: NavigationContainerProps) => {
screens: {
Explore: 'explore',
PremiumTracks: 'explore/premium-tracks',
TrendingUnderground: 'explore/underground',
LetThemDJ: 'explore/let-them-dj',
TopAlbums: 'explore/top-albums',
UnderTheRadar: 'explore/under-the-radar',
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const TrendingRewardsDrawer = (titleIcon) => {
break
}
case 'underground': {
navigation.navigate('trending', { screen: 'Trending' })
navigation.navigate('explore', { screen: 'TrendingUnderground' })
break
}
}
Expand Down
6 changes: 6 additions & 0 deletions packages/mobile/src/screens/app-screen/ExploreTabScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { SearchCategory, SearchFilters } from '@audius/common/api'

import { SearchExploreScreen } from '../explore-screen/SearchExploreScreen'
import { TrendingUndergroundScreen } from '../explore-screen/tabs/ForYouTab/TrendingUndergroundScreen'

import type { AppTabScreenParamList } from './AppTabScreen'
import { createAppTabScreenStack } from './createAppTabScreenStack'
Expand All @@ -12,13 +13,18 @@ export type ExploreTabScreenParamList = AppTabScreenParamList & {
category?: SearchCategory
filters?: SearchFilters
}
TrendingUnderground: undefined
}

export const ExploreTabScreen =
createAppTabScreenStack<ExploreTabScreenParamList>((Stack) => {
return (
<>
<Stack.Screen name='SearchExplore' component={SearchExploreScreen} />
<Stack.Screen
name='TrendingUnderground'
component={TrendingUndergroundScreen}
/>
</>
)
})
13 changes: 13 additions & 0 deletions packages/mobile/src/screens/explore-screen/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { ImageSourcePropType } from 'react-native'
import type { SvgProps } from 'react-native-svg'

import { IconCart } from '@audius/harmony-native'
import IconCassette from 'app/assets/images/iconCassette.svg'

export type ExploreCollection = {
title: string
Expand Down Expand Up @@ -31,3 +32,15 @@ export const PREMIUM_TRACKS: ExploreCollection = {
shadowOpacity: 0.25,
icon: IconCart
}

export const TRENDING_UNDERGROUND: ExploreCollection = {
title: 'Underground Trending',
description:
'Some of the best up-and-coming music on Audius all in one place',
gradientColors: ['#BA27FF', '#EF8CD9'],
gradientAngle: 315,
shadowColor: 'rgb(242,87,255)',
shadowOpacity: 0.25,
icon: IconCassette,
incentivized: true
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { FeelingLucky } from './FeelingLucky'
import { ForYouTracks } from './ForYouTracks'
import { LabelSpotlight } from './LabelSpotlight'
import { RecentlyPlayedTracks } from './RecentlyPlayed'
import { UndergroundTrendingTracks } from './UndergroundTrendingTracks'

export const ExploreContent = () => {
const [category] = useSearchCategory()
Expand All @@ -34,6 +35,7 @@ export const ExploreContent = () => {
)}
{showPlaylistContent && <FeaturedPlaylists />}
{showTrackContent && <FeaturedRemixContests />}
{showTrackContent && <UndergroundTrendingTracks />}
{showUserContent && <ArtistSpotlight />}
{showUserContent && <LabelSpotlight />}
{showTrackContent && showUserContextualContent && <FeelingLucky />}
Expand Down
Loading