tududi/frontend/components
Chris 402d5b05e1
Fix Today page task completion issues (#970)
* Fix Today page task completion issues

- Fix completed task border color staying as priority color
  - Add isInCompletedSection prop to TaskItem for explicit completed state
  - Tasks in completed section now always show green border regardless of priority
  - Fixes race condition where status wasn't updated during optimistic UI update

- Fix completed task reappearing after unmarking and page refresh
  - Add defensive check in backend to force clear completed_at when status is not DONE
  - Add development logging in tasksService for debugging completion toggle
  - Ensures database state is consistent even if handleCompletionStatus doesn't clear it

- Update TaskList and TasksToday components to pass isInCompletedSection prop
  - Explicitly marks tasks rendered in the completed section
  - Prevents border color flickering during state transitions

* Add comprehensive logging to debug completion issues

* Fix duplicate API requests causing completion state issues

- Separate state update logic from API call in handleTaskUpdate
- Create new updateTaskInState function for state-only updates
- Pass onTaskCompletionToggle to completed section to avoid duplicate calls
- This fixes the persistence issue where unmarked tasks came back after refresh
- Completion toggles now only make ONE API call instead of two

* Add debug logging to updateTaskInState
2026-03-24 16:45:31 +02:00
..
Admin Fix bug 578 (#648) 2025-12-04 14:00:51 +02:00
Area Set verification modal on escape (#470) (#473) 2025-11-03 16:27:13 +02:00
Backup Update translations 2025-12-10 11:43:15 +02:00
Calendar Fix profile settings mobile layout (#694) 2025-12-10 09:10:23 +02:00
Habits Fix bug 733 (#735) 2025-12-27 21:00:52 +02:00
Inbox Fix redirect after task deletion to return to originating view (#887) 2026-03-01 16:07:02 +02:00
Metrics Fix today race condition (#75) 2025-06-13 14:20:24 +03:00
Note Introduce focus mode in notes (#891) 2026-03-03 00:29:03 +02:00
Notifications Fix redirect after task deletion to return to originating view (#887) 2026-03-01 16:07:02 +02:00
Productivity Fix redirect after task deletion to return to originating view (#887) 2026-03-01 16:07:02 +02:00
Profile feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
Project Fix timezone missed rollout (#832) 2026-02-10 22:28:14 +02:00
Shared Fix missing spacing between lists and headings in markdown (#775) 2026-01-14 17:42:26 +02:00
Sidebar feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
Tag Fix tag view showing completed projects when Open filter is active (#933) (#934) 2026-03-10 17:07:45 +02:00
Task Fix Today page task completion issues (#970) 2026-03-24 16:45:31 +02:00
UniversalSearch Fix redirect after task deletion to return to originating view (#887) 2026-03-01 16:07:02 +02:00
About.tsx Feat main content revamp (#584) 2025-11-20 09:15:55 +02:00
Areas.tsx Feat main content revamp (#584) 2025-11-20 09:15:55 +02:00
Calendar.tsx Fix redirect after task deletion to return to originating view (#887) 2026-03-01 16:07:02 +02:00
Login.tsx fix: use getAssetPath() for logo images in Navbar and Login (#946) 2026-03-18 15:26:25 +02:00
Navbar.tsx feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
Notes.tsx Introduce focus mode in notes (#891) 2026-03-03 00:29:03 +02:00
Projects.tsx Fix projects order persist to localstorage (#868) 2026-02-27 00:35:44 +02:00
Register.tsx Refresh e2e tests (#606) 2025-11-29 21:25:42 +02:00
Sidebar.tsx feat: Add MCP Integration with client-agnostic instructions (#953) 2026-03-20 16:55:49 +02:00
Tags.tsx Feat improve task details (#585) 2025-11-21 18:43:10 +02:00
Tasks.tsx Fix sidebar toggle causing unnecessary task list reload (#888) (#937) 2026-03-10 18:37:07 +02:00
ViewDetail.tsx Fix bug 733 (#735) 2025-12-27 21:00:52 +02:00
Views.tsx Reorder elements (#687) 2025-12-09 10:51:51 +02:00