🔪 Extraction Target
Extract all task-related operations from the 19,843-line index.mjs into a focused TaskService class. Cut and move.
📁 Methods to Extract
// All of these get ripped out and moved to TaskService
getTasks()
getTask()
createTask()
updateTask()
deleteTask()
completeTask()
getTaskCategories()
// ... and any other task-related methods
🎯 Definition of Done
⚡ Implementation
// services/TaskService.js
export class TaskService extends BaseService {
async getTasks() {
// Direct copy from index.mjs - no changes
}
async completeTask(taskId, completedDate) {
// Direct copy from index.mjs - no changes
}
// ... rest of task methods
}
🚫 NOT in Scope
- Backward compatibility
- Deprecation warnings
- Proxy methods in GrocyClient
- Changing method signatures
- Adding new features
💀 Breaking Changes
Yes. Adapt or die.
Related to
Parent issue: #11
🔪 Extraction Target
Extract all task-related operations from the 19,843-line index.mjs into a focused TaskService class. Cut and move.
📁 Methods to Extract
🎯 Definition of Done
services/TaskService.jsextending BaseService⚡ Implementation
🚫 NOT in Scope
💀 Breaking Changes
Yes. Adapt or die.
Related to
Parent issue: #11