Skip to content

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Sep 2, 2025

🎯 What was requested in issue #1382

The original issue asked for a ChatGPT-like history sidebar for the search pipe, similar to how ChatGPT shows your conversation history on the left side. The issue mentioned that a previous implementation "did not work well" and suggested checking out shadcn sidebar components.

πŸš€ What's been implemented

I've built a complete search history system that gives users a familiar, ChatGPT-style experience when using the search pipe. Here's what's new:

πŸ“± Smart Search History Sidebar

  • Collapsible sidebar that slides out from the left (just like ChatGPT!)
  • Time-organized searches grouped by "Today", "Yesterday", "This Week", etc.
  • Mobile-friendly design that automatically becomes a slide-out sheet on phones
  • Clean, intuitive interface with search previews and timestamps

πŸ’Ύ Automatic Search Saving

  • Every search gets saved automatically - no need to remember what you searched for
  • Stores everything: your query, results, AI conversations, and all filter settings
  • Smart storage using your browser's local database (works offline too!)

πŸ”„ One-Click Search Restoration

  • Click any search in the history to instantly restore it
  • Everything comes back: the original query, results, AI chat messages, date filters, everything!
  • No re-searching needed - results load instantly from your saved history
  • Continue conversations right where you left off

πŸ—‘οΈ Easy Management

  • Hover over any search to see a delete button
  • Clean up old searches you don't need anymore
  • Search counter shows how many searches you've saved

🎨 How it works for users

  1. Open the search pipe and start searching as usual
  2. Click the hamburger menu (☰) in the top-left to open your search history
  3. See all your past searches organized by time periods
  4. Click any search to instantly restore it with all your results and AI conversations
  5. Delete searches you don't need by hovering and clicking the trash icon

πŸ› οΈ Technical improvements included

React Hydration Fix

Fixed annoying console errors caused by browser extensions like Grammarly that were cluttering the developer console. The app now handles these gracefully without any warnings.

Responsive Design

  • Desktop: Collapsible sidebar that slides in/out
  • Mobile: Full-screen sheet that slides up from bottom
  • Tablet: Adapts automatically to screen size

Performance Optimized

  • Local storage for instant search restoration
  • Efficient data structure that stores everything needed
  • Smooth animations using framer-motion
  • No impact on existing search functionality

πŸ“‹ What's preserved

  • βœ… All existing search functionality works exactly the same
  • βœ… AI chat features continue to work perfectly
  • βœ… Search filters and settings are all preserved
  • βœ… Performance remains fast and responsive

πŸ§ͺ Testing completed

  • βœ… Development build runs without errors
  • βœ… Production build compiles successfully
  • βœ… Mobile responsive design tested
  • βœ… Search restoration works perfectly
  • βœ… History management (save/delete) functional
  • βœ… Browser extension compatibility verified

πŸ“š Documentation

Included comprehensive documentation:

  • Feature guide explaining how to use the search history
  • Technical documentation for future maintenance
  • Troubleshooting guide for common issues

Closes #1382


/claim #1382

- Implement collapsible search history sidebar with time-based grouping
- Add automatic search saving and one-click restoration functionality
- Include search deletion and management features
- Add responsive design with mobile sheet support
- Fix React hydration mismatch errors caused by browser extensions
- Add comprehensive documentation and utility components
- Maintain full compatibility with existing search functionality

Closes mediar-ai#1382
Copy link
Contributor

github-actions bot commented Sep 2, 2025

πŸ§ͺ testing bounty created!

a testing bounty has been created for this PR: view testing issue

testers will be awarded $20 each for providing quality test reports. please check the issue for testing requirements.

@vishwamartur
Copy link
Author

2025-09-02.13-00-25.mp4

working.

@Rishikesh63
Copy link

@vishwamartur may i go ahead with testing bounty

@vishwamartur
Copy link
Author

@Rishikesh63 Yes, Sir please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bounty] implement history for search pipe
2 participants