Skip to content

Conversation

@vtushar06
Copy link

What kind of change does this PR introduce?

Feature - Added search functionality to the tour outline

Issue Number:

Screenshots/videos:

jsonschematour.mp4

If relevant, did you update the documentation?

N/A - No documentation updates needed for this UI feature

Summary

This PR implements a search feature in the outline drawer that allows users to quickly find chapters and lessons by title. The search:

  • Filters chapters and lessons in real-time as users type
  • Displays only matching results (case-insensitive)
  • Shows a "no results" message when no matches are found
  • Maintains correct chapter numbering and completion status

Implementation:

  • Created app/utils/hooks.ts with useSearch custom hook for search logic
  • Updated OutlineDrawer component to include search input and filtered results
  • Added comprehensive comments explaining the code per maintainer feedback

Does this PR introduce a breaking change?

No

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 a search feature

1 participant