Add search functionality to calendar with icon toggle and yellow highlighting#440
Merged
Add search functionality to calendar with icon toggle and yellow highlighting#440
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #439
…lighting Implemented search feature for templates/calendar.html as specified in issue #439: - Added search icon (🔍) next to the "Today" button in FullCalendar toolbar - Clicking the icon shows search input field and hides the icon - Search input receives focus automatically when shown - Close icon (✕) next to search input hides the field and shows search icon - Search input auto-hides on blur if empty - Search filters tasks by any field (task name, description, client, executor, status, type, deadline) - Matched tasks are highlighted with yellow box-shadow for visibility - Search updates results in real-time as user types Implementation details: - Added CSS styles for search container, icon, input, and close button - Added search state management with searchQuery variable - Implemented taskMatchesSearch() function to search across all task fields - Modified renderEvents() to filter tasks based on search query - Updated convertTaskToEvent() to apply highlight class to matched tasks - Added setupSearchInputBlur() to handle focus management Testing: - Created test-search-implementation.js with comprehensive search test cases - All tests pass successfully Fixes #439 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This reverts commit 6a89e9b.
Collaborator
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 Search Functionality for Calendar
This pull request implements a comprehensive search feature for the calendar page as requested in issue #439.
📋 Issue Reference
Fixes #439
✨ Features Implemented
Search Icon Display
Toggle Behavior
Search Input with Close Button
Comprehensive Search
Visual Highlighting
🛠️ Technical Implementation
CSS Additions:
.fc-search-container- Container for search UI elements.fc-search-icon- Search icon button styling.fc-search-input-wrapper- Wrapper for input and close button.fc-search-input- Search input field styling.fc-search-close- Close button styling.fc-event.event-search-match- Yellow highlight for matched tasksJavaScript Functions:
addSearchToToolbar()- Injects search UI into FullCalendar toolbarshowSearchInput()- Shows search input and hides iconhideSearchInput()- Hides search input and shows icon (when empty)setupSearchInputBlur()- Manages blur event for auto-hide behaviorperformSearch()- Triggers search and re-renders eventstaskMatchesSearch(task, query)- Checks if task matches search queryrenderEvents()- Filters tasks based on search queryconvertTaskToEvent()- Adds highlight class to matched tasks🧪 Testing
Created comprehensive test suite in
experiments/test-search-implementation.js:All tests pass successfully.
📸 User Experience
Before Search:
During Search:
After Search:
🎨 Design Considerations
🔧 Code Quality
Ready for review and testing! 🚀
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com