Skip to content

feat: add search component with modal and results handling#35

Merged
Sithumli merged 2 commits into
mainfrom
feat/search-fuctionality
Feb 26, 2026
Merged

feat: add search component with modal and results handling#35
Sithumli merged 2 commits into
mainfrom
feat/search-fuctionality

Conversation

@Sithumli

Copy link
Copy Markdown
Owner

This pull request adds search functionality to the documentation site using Pagefind. It updates the build process to generate a search index, integrates a new search modal component in the site header, and manages all necessary dependencies for Pagefind.

Search functionality integration:

  • Added a new Search.astro component implementing a modal search UI, keyboard shortcuts (Cmd/Ctrl+K), and live search results using Pagefind.
  • Replaced the disabled search input in Header.astro with the new interactive Search component. [1] [2]

Build process and dependencies:

  • Updated the build script in both root and template package.json files to run pagefind after building the site, ensuring the search index is generated. [1] [2]
  • Added pagefind as a development dependency in both root and template package.json files, and updated pnpm-lock.yaml accordingly to include all required Pagefind binaries and dependencies. [1] [2] [3] [4] [5] [6] [7]

@Sithumli Sithumli self-assigned this Feb 23, 2026
Copilot AI review requested due to automatic review settings February 23, 2026 19:44
@vercel

vercel Bot commented Feb 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docubase Ready Ready Preview, Comment Feb 25, 2026 7:49am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds comprehensive search functionality to the documentation site using Pagefind, a static search library. It introduces a modal-based search UI with keyboard shortcuts, replaces the disabled search input in the header, and integrates Pagefind into the build process.

Changes:

  • Added a new Search.astro component with modal UI, keyboard shortcuts (Cmd/Ctrl+K), and live search results
  • Updated Header.astro to use the new Search component instead of a disabled input field
  • Modified build scripts in both root and template package.json to run pagefind after building

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
template/src/components/Search.astro New search modal component with Pagefind integration
template/src/components/Header.astro Replaced disabled search input with Search component
template/package.json Added pagefind dev dependency and updated build script
package.json Added pagefind dev dependency and updated build script
template/pnpm-lock.yaml Added Pagefind and platform-specific binaries
pnpm-lock.yaml Added Pagefind and platform-specific binaries
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread template/src/components/Search.astro
Comment thread template/src/components/Search.astro
Comment thread template/src/components/Search.astro Outdated
Comment thread template/src/components/Search.astro Outdated
@Sithumli Sithumli merged commit a3dbca2 into main Feb 26, 2026
4 checks passed
@Sithumli Sithumli deleted the feat/search-fuctionality branch February 26, 2026 06:06
@Sithumli Sithumli restored the feat/search-fuctionality branch February 26, 2026 06:07
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