Skip to content

fix(docs): add search dialog#271

Merged
sadmann7 merged 1 commit intomainfrom
sadman/fix-search
Apr 2, 2026
Merged

fix(docs): add search dialog#271
sadmann7 merged 1 commit intomainfrom
sadman/fix-search

Conversation

@sadmann7
Copy link
Copy Markdown
Owner

@sadmann7 sadmann7 commented Apr 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 10:46
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
diceui Ready Ready Preview, Comment Apr 2, 2026 10:48am

Request Review

@sadmann7 sadmann7 merged commit b2ae6a8 into main Apr 2, 2026
10 checks passed
@sadmann7 sadmann7 deleted the sadman/fix-search branch April 2, 2026 10:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a client-side documentation search dialog to the docs site and wires it into the existing RootProvider search integration, while simplifying the /api/search route to build its index directly from the docs source.

Changes:

  • Register a custom DocSearchDialog via RootProvider’s search configuration.
  • Add a DocSearchDialog client component powered by useDocsSearch and Fumadocs UI search dialog primitives.
  • Update the docs search API route to use createFromSource(source, ...) instead of manually constructing indexes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/components/providers.tsx Wires the new search dialog into the docs app provider layer via RootProvider search config.
docs/components/doc-search-dialog.tsx Implements the client search dialog UI and data fetching via useDocsSearch.
docs/app/api/search/route.ts Refactors the search endpoint to derive its index directly from the docs source.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants