-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Search modal #6760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Search modal #6760
Conversation
- Removes the inline search input and results display - Adds a button that triggers a modal dialog for search - Maintains existing search functionality via the modal
**Changes:** - Adds a search dialog component with support for: - Query matching across thread titles, messages, and metadata - Dynamic result filtering with real-time updates - Contextual snippets highlighting query matches - Date-based sorting using most recent activity **Implementation Details:** - Uses memoized computations for performance optimization - Handles diverse date formats (timestamps, ISO strings, Date objects) - Implements case-insensitive matching with substring search - Includes proper type handling for thread data structures **Integration:** - Connects to existing thread store via useThreads hook - Maintains compatibility with current routing system - Follows established UI patterns for dialog components
- Matches mockups for: * Filter dropdowns (projects/dates) * Search result snippets with highlighting * Calendar picker interaction flows
There was a problem hiding this 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 implements a modal-based search interface to replace the inline search input bar, adding filtering capabilities for date ranges and projects with enhanced UI and localization support.
- Replaced inline search input with a search button that opens a dedicated modal dialog
- Added comprehensive date range filtering with a custom calendar picker component
- Integrated project-based filtering with multi-select dropdown functionality
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
File | Description |
---|---|
web-app/src/containers/dialogs/SearchDialog.tsx | New search modal component with date picker, project filters, and result highlighting |
web-app/src/containers/LeftPanel.tsx | Replaced inline search input with search button that opens the modal |
web-app/src/locales/*/common.json | Added translations for new search functionality (clear, filterByProject, filterByDate, selected) |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Describe Your Changes
Implement search dialog instead of search input bar with filter like date and project.
Fixes Issues
Self Checklist