Skip to content

Fix content visibility logic in search/explore pages#14079

Closed
dylanjeffers wants to merge 1 commit intomainfrom
claude/restore-explore-sections-E3oUJ
Closed

Fix content visibility logic in search/explore pages#14079
dylanjeffers wants to merge 1 commit intomainfrom
claude/restore-explore-sections-E3oUJ

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

This PR fixes the content visibility logic across search and explore pages by removing the "OR ALL" conditions from individual category checks and introducing explicit handling for the ALL tab.

Key Changes

  • Refactored category visibility checks: Removed the || categoryKey === CategoryView.ALL (or || category === 'all') conditions from showTrackContent, showPlaylistContent, and showUserContent variables. These now only show content when their specific category is selected.
  • Added explicit ALL tab check: Introduced isAllTab variable to explicitly track when the ALL category is selected.
  • Fixed FanClubsExploreSection visibility: Changed from categoryKey === CategoryView.ALL to showUserContent for consistency with other content sections.
  • Updated RecentSearchesSection logic: Changed from showing on any showUserContextualContent to only showing when !isAllTab && showUserContextualContent, preventing it from appearing on the ALL tab.
  • Applied consistently across all platforms: Changes made to both desktop and mobile web versions (SearchExplorePage) and mobile app (ExploreContent).

Implementation Details

The refactoring clarifies the intent: each content section should only display when its specific category tab is active, not when viewing the ALL tab. The ALL tab now has its own explicit logic for determining which sections to display, making the code more maintainable and the behavior more predictable.

https://claude.ai/code/session_018udUfkNDSuFVnRhLkVTgYk

Explore sections (recommended tracks, featured playlists, artist spotlight,
etc.) were loading too slowly on the default Explore page. This moves them
to only appear on their specific sub-tabs (Tracks, Playlists, Albums, Profiles)
while keeping the default All tab clean. FanClubsExploreSection moves from
All to Profiles tab, and RecentSearches only shows on sub-tabs.

Changes apply to web desktop, web mobile, and React Native mobile.

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

changeset-bot bot commented Apr 8, 2026

⚠️ No Changeset found

Latest commit: 331fdc6

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

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.

2 participants