feat: add inline task title editing with validation - #18
Draft
rtraidcleverit with Copilot wants to merge 2 commits into
Draft
feat: add inline task title editing with validation#18rtraidcleverit with Copilot wants to merge 2 commits into
rtraidcleverit with Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/CleveritDemo/copilot-agentic-workshop/sessions/0f760352-0455-4ff2-83d9-56fc8e542cc5 Co-authored-by: rtraidcleverit <169684453+rtraidcleverit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CleveritDemo/copilot-agentic-workshop/sessions/0f760352-0455-4ff2-83d9-56fc8e542cc5 Co-authored-by: rtraidcleverit <169684453+rtraidcleverit@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
rtraidcleverit
April 8, 2026 13:47
View session
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.
Summary
Implements inline editing of task titles as requested. A new edit button (✎) appears alongside each task. Clicking it replaces the title with a pre-filled text input. Changes can be saved by clicking the save button (💾) or pressing Enter, and cancelled by pressing Escape.
Changes
frontend/script.jsaddTaskToDOM: adds adata-idattribute to<li>elements and an edit button (✎) per task.editTask(id, btn): replaces the task title<span>with an inline<input>and switches the button to save mode (💾). Supports Enter/Escape keyboard shortcuts.saveTask(id, btn): validates the new title (rejects empty/whitespace), callsPUT /api/tasks/:idwith the updated title, and handles API errors by highlighting the input in red.frontend/style.css.edit-input: styles the inline edit input to match the existing theme (uses CSS custom properties)..edit-input--error: red border highlight shown when validation fails or the API call errors.