Repository navigation
Add real-time task title filtering in the task list UI - #30
Draft
rtraidcleverit with Copilot wants to merge 2 commits into
Draft
rtraidcleverit with Copilot wants to merge 2 commits into
rtraidcleverit with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: rtraidcleverit <169684453+rtraidcleverit@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add functionality to filter tasks by text input
Add real-time task title filtering in the task list UI
Aug 3, 2026
There was a problem hiding this comment.
Pull request overview
Adds a real-time “search by title” capability to the frontend task list UI, centralizing task rendering around a filtered view so the list updates live as users type.
Changes:
- Added a search input (
#taskSearch) above the task list in the UI. - Introduced
allTasksas the in-memory source of truth and a centralizedrenderTasks()function to filter + render tasks. - Styled the search input to match existing theme/input styling.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/index.html | Adds the search input element above the task list for in-list filtering. |
| frontend/script.js | Centralizes rendering via renderTasks() and filters tasks by title on input events. |
| frontend/style.css | Adds styling for #taskSearch consistent with existing theme variables and inputs. |
| const filterText = taskSearch.value.trim().toLowerCase(); | ||
| taskList.innerHTML = ''; | ||
| allTasks | ||
| .filter(task => task.title.toLowerCase().includes(filterText)) |
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.
This change adds in-list task search so users can quickly find tasks by title. The task list now updates live as the user types in a search field above the list.
UI: search input above task list
#taskSearchinput infrontend/index.htmldirectly above#taskList.aria-label.Rendering model: centralized filtered render
allTasksinfrontend/script.jsas the source of truth for fetched/created tasks.renderTasks()to:task.title,taskSearchwith aninputlistener for real-time filtering.Data flow updates
fetchTasks()now stores API results inallTasksand callsrenderTasks().allTasksand re-rendered through the same filter path.Styling
#taskSearchstyles infrontend/style.cssconsistent with existing input/theme tokens.