Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support params-only searches #5767

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Support params-only searches #5767

merged 1 commit into from
Oct 15, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented Oct 15, 2024

Fixes #5737

Previous logic was showing the Explore page if query was falsy, but queryWithParams is really the new source of truth for if the user has searched for something.

So this PR uses queryWithParams to determine if results should be shown. If params are present in the search query, this PR hides the "People" and "Feeds" tabs, which don't support params anyway.

Example searches

  • eric — shows all 4 tabs
  • from:esb.lol — shows only first 2 tabs
  • from:esb.lol javascript — shows only first 2 tabs

@arcalinea arcalinea temporarily deployed to search-params - social-app PR #5767 October 15, 2024 15:26 — with Render Destroyed
Copy link

Old size New size Diff
7.9 MB 7.9 MB 43 B (0.00%)

@estrattonbailey estrattonbailey merged commit fe5eb50 into main Oct 15, 2024
6 checks passed
haileyok pushed a commit that referenced this pull request Oct 15, 2024
rshigg pushed a commit to rshigg/social-app that referenced this pull request Nov 2, 2024
rshigg pushed a commit to rshigg/social-app that referenced this pull request Nov 2, 2024
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.

mentions: search seems to be broken
3 participants