tududi/frontend/components/Task
Chris 733b6cd14b
fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014)
Fixes #812

When creating a "Monthly on weekday" recurring task, the selector would
jump back to Monday when trying to select Sunday. This was caused by using
the logical OR operator (||) instead of the nullish coalescing operator (??)
when handling the recurrence_weekday value.

Since Sunday is represented as 0, the || operator treated it as falsy and
defaulted to null/undefined, which then defaulted to 1 (Monday).

Changes:
- Replace || with ?? for recurrence_weekday in TaskRecurrenceCard.tsx
- Replace || with ?? for recurrence_weekday in TaskDetails.tsx
- Also fix recurrence_week_of_month and recurrence_month_day for consistency
2026-04-13 19:07:20 +03:00
..
TaskDetails fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014) 2026-04-13 19:07:20 +03:00
TaskForm Fix subtask completion not persisting to backend (#920) (#936) 2026-03-10 17:30:45 +02:00
getDescription.ts Limit recurring tasks in tasks list view (#298) 2025-09-04 17:00:33 +03:00
getTitleAndIcon.ts Limit recurring tasks in tasks list view (#298) 2025-09-04 17:00:33 +03:00
GroupedTaskList.tsx Fix refactor pt2 (#734) 2025-12-27 17:46:34 +02:00
NewTask.tsx Tc refactor pt1 (#589) 2025-11-23 21:48:49 +02:00
NextTaskSuggestion.tsx Fix bug 733 (#735) 2025-12-27 21:00:52 +02:00
RecurrenceDisplay.tsx Add tooltips (#744) 2025-12-28 12:03:50 +02:00
statusStyles.ts Cleanup statuses (#724) 2025-12-19 11:13:27 +02:00
TaskDetails.tsx fix: use nullish coalescing for recurrence weekday to allow Sunday selection (#1014) 2026-04-13 19:07:20 +03:00
TaskDueDate.tsx Fix timezone missed rollout (#832) 2026-02-10 22:28:14 +02:00
TaskHeader.tsx Fix visual overlap between subtasks icon and status dropdown (#958) 2026-03-22 12:12:28 +02:00
TaskItem.tsx Fix Today page task completion issues (#970) 2026-03-24 16:45:31 +02:00
TaskList.tsx Fix Today page task completion issues (#970) 2026-03-24 16:45:31 +02:00
TaskStatusControl.tsx Fix status dropdown z-index behind subtasks in project view (#866) 2026-02-26 19:53:59 +02:00
TasksToday.tsx Fix Today page task completion issues (#970) 2026-03-24 16:45:31 +02:00
TaskTags.tsx Change tags to use uids instead of ids. (#351) 2025-09-22 17:10:29 +03:00
TaskTimeline.tsx Fix timezone missed rollout (#832) 2026-02-10 22:28:14 +02:00
TodayPlan.tsx Introduce sort utils (#709) 2025-12-14 01:13:57 +02:00
TodaySettingsDropdown.tsx Fix static base path (#549) 2025-11-16 22:43:06 +02:00
WeeklyCompletionChart.tsx Fix metrics styling (#647) 2025-12-04 13:42:05 +02:00