Skip to content

feat(explore): show helpful message when curated/community tab has no matches but the other does#2923

Open
cqnykamp wants to merge 1 commit into
mainfrom
claude/modest-franklin-I4hDn
Open

feat(explore): show helpful message when curated/community tab has no matches but the other does#2923
cqnykamp wants to merge 1 commit into
mainfrom
claude/modest-franklin-I4hDn

Conversation

@cqnykamp

Copy link
Copy Markdown
Contributor

Summary

Fixes #2771

  • When the Curated tab has no matches but the Community tab does, display a context-aware message ("No Curated Matches Found! There are X Community matches.") with a button to switch to the Community tab.
  • The reverse is also handled: when the Community (searched) tab has no matches but Curated does, the message directs to the Curated tab.
  • Broadens CardList's emptyMessage prop from string to ReactNode to allow richer empty states.

Test plan

  • Create a public (non-library) activity and search for its unique name on /explore — with the Curated tab selected, you should see "No Curated Matches Found!" plus the community count and a "Switch to Community tab" button.
  • Click the "Switch to Community tab" button and verify the Community tab becomes active.
  • Create a library-published activity and search for its unique name on /explore — with the Community tab selected and no community matches, you should see "No Community Matches Found!" plus the curated count and a "Switch to Curated tab" button.
  • When both tabs have results (or both are empty), the generic "No Matches Found!" still appears.
  • New Cypress e2e test (navigateExplore.cy.ts) covers the curated-empty/community-has-results case.

https://claude.ai/code/session_01URNLszQkbKKoDp7ChRdr88


Generated by Claude Code

…found

When a filter/search yields zero results on the Curated tab but matches
exist in Community (or vice versa), show a context-aware message with the
other tab's match count and a button to switch tabs instead of the generic
"No Matches Found!" message.

Also broadens CardList's emptyMessage prop from string to ReactNode to
support richer empty states.

Fixes #2771

https://claude.ai/code/session_01URNLszQkbKKoDp7ChRdr88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No matches found message should direct to other tab

2 participants