Skip to content

[FEATURE] Add Global Search Functionality for Subjects and Topics#71

Open
sneharam543 wants to merge 4 commits into
pushkarscripts:mainfrom
sneharam543:feature/search-navigation-system
Open

[FEATURE] Add Global Search Functionality for Subjects and Topics#71
sneharam543 wants to merge 4 commits into
pushkarscripts:mainfrom
sneharam543:feature/search-navigation-system

Conversation

@sneharam543
Copy link
Copy Markdown

@sneharam543 sneharam543 commented May 18, 2026

Related Issue

Fixes #8


Description

Implemented a lightweight global search system to improve navigation and content discoverability across openCSE.

Changes Made

  • Added reusable search components:

    • SearchBar
    • SearchResults
    • SearchResultItem
  • Implemented fuzzy search with relevance-based matching

  • Added keyboard shortcuts (/, Escape)

  • Created a centralized metadata system for subjects and chapters

  • Added dynamic chapter registration and search indexing

  • Refactored chapter pages to use metadata-driven architecture

  • Integrated search functionality into the navbar

  • Added documentation for the search system

The implementation is fully client-side, lightweight, and avoids unnecessary external dependencies while maintaining the existing UI consistency.


Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • UI/UX improvement
  • Refactor

Screenshots / Demo

Desktop Demo

download.1.mp4

How Has This Been Tested?

  • Tested locally using npm run dev
  • Verified subject and topic search functionality
  • Tested dynamic filtering and navigation
  • Tested keyboard shortcuts and dropdown interactions
  • Verified search functionality across different screen sizes
  • Confirmed existing navigation functionality remains unaffected

Example Queries Tested

  • laplace
  • polymorphism
  • pointer
  • java
  • math
  • oop

Checklist

  • My code follows the project structure and conventions
  • I have tested the changes locally
  • I have linked the related issue properly
  • I have added screenshots where applicable
  • No existing functionality was broken

AI Usage

  • I have not used AI tools for this contribution

  • I have used AI tools (ChatGPT, Copilot, Claude, etc.) and I have reviewed, verified, and understood all generated code/content before submitting this PR

If AI tools were used, briefly explain how:

AI tools were used for development assistance, debugging, refactoring suggestions, and improving documentation while ensuring all implementation decisions and final code were manually reviewed and tested.


Additional Notes

  • No external search libraries were added.
  • The search system is fully client-side and metadata-driven.
  • Existing routes and navigation behavior remain backward compatible.
  • The architecture is designed to scale easily as more subjects and chapters are added.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 18, 2026

@sneharam543 is attempting to deploy a commit to the PushkarScripts Team on Vercel.

A member of the Team first needs to authorize it.

@sneharam543 sneharam543 changed the title Feature/search navigation system [FEATURE] Add Global Search Functionality for Subjects and Topics May 18, 2026
Updated keyboard shortcut from 'Cmd/Ctrl + K' to '/' for focusing search.
@pushkarscripts
Copy link
Copy Markdown
Owner

There are build errors:
image

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.

[FEATURE] Add Search Functionality for Subjects/Topics

2 participants