feat: inline edit and delete for subtasks (#25) #30
No reviewers
Labels
No labels
source:analyste
source:defenseur
source:human
source:medic
status:approved
status:blocked
status:in-progress
status:needs-fix
status:ready
status:review
status:triage
type:bug
type:feature
type:infra
type:refactor
type:schema
type:security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: maximus/simpl-liste#30
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-25-edit-delete-subtasks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #25
Summary
task.deleteSubtaskConfirmTest plan
Review — APPROVE ✅
Clean, focused implementation of inline subtask editing (long-press) and deletion (X button with confirmation). Code follows project conventions, translations are in both languages, and the logic is correct.
Suggestions (non-blocking)
app/task/[id].tsxL427-428 —handleSaveSubtaskEditis bound to bothonSubmitEditingandonBlur. Pressing Enter triggers both events, causing a double invocation. Theif (!editingSubtaskId) returnguard prevents a crash, but due to React's async state batching, both calls could race and fireupdateTasktwice. Consider using auseRefflag to guarantee single execution.app/task/[id].tsxL410 —onPress={() => editingSubtaskId === sub.id ? undefined : handleToggleSubtask(sub.id)}— returningundefinedfrom the press handler works but is a bit subtle. A slightly clearer pattern:onPress={() => { if (editingSubtaskId === sub.id) return; handleToggleSubtask(sub.id); }}.Reviewed by Claude Code