Allow users to edit tasks by clicking on them across the app

Adds click functionality to task cards and calendar entries to trigger the task edit modal, mirroring the existing calendar view behavior. Propagates click events to prevent conflicts with drag-and-drop functionality and timer toggling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ceced2fc-aa46-458d-ba87-ddd4b7bb1518
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/659922a9-0087-461c-90dd-6d9a58b81d4d/ceced2fc-aa46-458d-ba87-ddd4b7bb1518/qdzfbac
This commit is contained in:
paul-nothaft
2025-09-12 06:13:40 +00:00
parent 266ee2bdc8
commit 4a28c62ce6
3 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ function App() {
<TasksWithCalendar
tasks={tasks}
onTaskUpdate={handleTaskUpdate}
onTaskEdit={(task) => console.log('Edit task:', task.title)}
onTaskEdit={handleTaskClick}
onStartTimer={startTimer}
onStopTimer={stopTimer}
/>