callumalpass_tasknotes/tests
callumalpass 1c40d8e3f4 refactor: centralize task creation defaults in TaskService
Move task creation defaults application logic from individual callers
into TaskService.createTask() to eliminate code duplication.

Changes:
- Add applyDefaults option to TaskService.createTask() (default: true)
- Create private applyTaskCreationDefaults() method in TaskService
  that handles all defaults: due, scheduled, contexts, projects, tags,
  time estimate, recurrence, reminders, and user field defaults
- Update TaskCreationModal to pass applyDefaults: false since defaults
  are already applied to form fields during initialization
- Update ICSNoteService to pass applyDefaults: false since calendar
  events have their own data and shouldn't receive defaults
- Remove duplicate applyTaskCreationDefaults() from TasksController
  and SystemController
- Simplify InstantTaskConvertService and TaskSelectorWithCreateModal
  to only handle NLP-parsed user fields, letting TaskService apply
  defaults for unparsed fields
- Update test mocks for TaskService to include calculateDefaultDate

This refactor reduces code duplication and ensures consistent default
application across all task creation paths.
2025-12-07 15:13:57 +11:00
..
__mocks__ fix: add SuggestModal mock and improve code comments 2025-11-30 11:32:47 +11:00
components test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
helpers Remove unused MinimalNativeCache and update tests to use TaskManager 2025-11-15 22:24:04 +11:00
integration fix: improve search UX with no-results feedback and hide empty groups 2025-11-25 20:52:45 +11:00
manual fix: all-day ICS events displaying on wrong day and appearing twice (#854, #695) 2025-10-07 07:20:48 +11:00
services test: fix TaskCreationModal test and remove OAuthService device-flow test 2025-10-29 22:49:37 +11:00
types test: add comprehensive test coverage for hierarchical subgroup functionality 2025-09-18 10:15:08 +00:00
unit refactor: centralize task creation defaults in TaskService 2025-12-07 15:13:57 +11:00
utils Remove unused MinimalNativeCache and update tests to use TaskManager 2025-11-15 22:24:04 +11:00
coverage-report.md test: add comprehensive tests for Issue #160 off-by-one date bugs 2025-07-11 23:06:37 +10:00
test-setup.ts feat: add saved views button position setting 2025-08-15 22:50:30 +10:00