Skip to content

feat(search): consume Search v2 endpoints with debounced, cursor-paginated UI#529

Merged
daveaugustus merged 1 commit into
mainfrom
feat/search-v2-clean
May 16, 2026
Merged

feat(search): consume Search v2 endpoints with debounced, cursor-paginated UI#529
daveaugustus merged 1 commit into
mainfrom
feat/search-v2-clean

Conversation

@GorillaGigabytes
Copy link
Copy Markdown
Collaborator

Frontend half of Search v2.

  • New useSearchV2 hooks (people, blog, suggest) on React Query v5 with placeholderData: prev for sticky UX.

  • SearchInput debounce 250ms (aligned with gateway 30 req/s suggest limit) + 'See all results' footer link wired with onMouseDown to beat the blur close.

  • /search posts tab rewritten to client component using cursor stack (Prev/Next) against /api/v2/blog/search/v2.

  • /search users tab uses offset pagination against /api/v2/user/search.

  • Sanitised highlight rendering via isomorphic-dompurify allow-listing only (utils/searchHighlight.ts).

  • Removed legacy: useGetSearchBlog, useGetSearchUser, useSearchStore, and SearchUser type.

📃 Why Merge This PR?

Briefly describe the changes, fixes, or new features introduced in this PR.

🛠️ Issue Fixed

List any issues this PR resolves (e.g., Fixes #123).

🔍 PR Type

  • 💡 Feature
  • 🐛 Bug Fix
  • 📃 Documentation
  • 🎨 UI Improvements
  • 💻 Code Refactor
  • ✅ Tests

…nated UI

Frontend half of Search v2.

- New useSearchV2 hooks (people, blog, suggest) on React Query v5 with placeholderData: prev for sticky UX.

- SearchInput debounce 250ms (aligned with gateway 30 req/s suggest limit) + 'See all results' footer link wired with onMouseDown to beat the blur close.

- /search posts tab rewritten to client component using cursor stack (Prev/Next) against /api/v2/blog/search/v2.

- /search users tab uses offset pagination against /api/v2/user/search.

- Sanitised highlight rendering via isomorphic-dompurify allow-listing <mark> only (utils/searchHighlight.ts).

- Removed legacy: useGetSearchBlog, useGetSearchUser, useSearchStore, and SearchUser type.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 16, 2026

Deploy Preview for incredible-eclair-ada155 ready!

Name Link
🔨 Latest commit 569f54f
🔍 Latest deploy log https://app.netlify.com/projects/incredible-eclair-ada155/deploys/6a08df3a1bd5a0000823121c
😎 Deploy Preview https://deploy-preview-529--incredible-eclair-ada155.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@daveaugustus daveaugustus merged commit 3074ec5 into main May 16, 2026
6 checks passed
@github-actions github-actions Bot deleted the feat/search-v2-clean branch May 16, 2026 23:33
@github-actions
Copy link
Copy Markdown

🚀 [bumpr] Bumped!
New version:v3.1.0
Changes:v3.0.1...v3.1.0

@github-actions
Copy link
Copy Markdown

🏷️ [bumpr]
Next version:v3.2.0
Changes:v3.1.0...the-monkeys:feat/search-v2-clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants