Skip to content

Conversation

@Vivekk0712
Copy link

Description

Added a search bar to the "More Stories" section at the bottom of blog reading pages, allowing users to search for specific blogs right after reading.

Changes Made

  • Added showSearch prop to MoreStories component interface
  • Updated search bar visibility condition to include showSearch prop
  • Enabled search on both technology and community blog reading pages
  • Search bar appears right after the "More Stories" heading

Technical Details

  • Modified components/more-stories.tsx to accept optional showSearch prop
  • Updated pages/technology/[slug].tsx to pass showSearch={true}
  • Updated pages/community/[slug].tsx to pass showSearch={true}
  • Reused existing search functionality (filtering, URL sync, etc.)

Testing

  • Tested on /blog/technology/[slug] pages
  • Tested on /blog/community/[slug] pages
  • Verified search filters the 6 suggested posts correctly
  • Confirmed search bar only appears on blog reading pages, not index pages

Fixes keploy/keploy#3436

- Added showSearch prop to MoreStories component
- Enabled search functionality in more stories section for blog reading pages
- Users can now search through suggested posts after reading a blog
- Search bar appears right after 'More Stories' heading

Fixes keploy/keploy#3436

Signed-off-by: Vivekk0712 <vivekkashyap0712@gmail.com>
Copilot AI review requested due to automatic review settings December 31, 2025 15:32
Copy link

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

This PR adds a search bar to the "More Stories" section on blog reading pages (both technology and community), allowing users to search through the suggested posts immediately after reading a blog post.

  • Added showSearch optional prop to the MoreStories component interface
  • Enabled search functionality on blog detail pages by passing showSearch={true} to MoreStories component
  • Search bar reuses existing filtering and URL synchronization logic

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
components/more-stories.tsx Added optional showSearch prop to interface and updated search bar visibility condition to include this prop
pages/technology/[slug].tsx Passed showSearch={true} to enable search on technology blog detail pages
pages/community/[slug].tsx Passed showSearch={true} to enable search on community blog detail pages

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

- Added showSearch prop to MoreStories component
- Enabled search functionality in more stories section for blog reading pages
- Users can now search through suggested posts after reading a blog
- Search bar appears right after 'More Stories' heading

Fixes keploy/keploy#3436

Signed-off-by: Vivekk0712 <vivekkashyap0712@gmail.com>
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.

[blog-website] : Add a search option in more stories at the bottom of blog reading pages

1 participant