Ralph/feat/implement.new.update task#1214
Conversation
- also implement for api storage
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new CLI set-status command and wires it into the scripts and CLI exports. Extends core to support updating task status, including new service and storage methods, repository update logic, and mapper visibility. Adjusts dev script watching, bumps extension version, and relaxes API storage tag gating. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant CLI as CLI SetStatusCommand
participant Core as TaskMasterCore
participant Service as TaskService
participant Storage as Storage (Api/File)
participant Repo as Task Repository (Supabase)
User->>CLI: set-status -i <id[,ids]> -s <status> [-p project] [--format]
CLI->>Core: updateTaskStatus(taskId, status, tag?)
Core->>Service: updateTaskStatus(taskId, status, tag?)
Service->>Storage: loadTask(taskId, tag?) %% to capture oldStatus
alt task found
Storage->>Repo: getTask(context.briefId, display_id)
Repo-->>Storage: Task | null
Storage-->>Service: Task
Service->>Storage: updateTask({ id, status })
Storage->>Repo: updateTask(context.briefId, display_id, updates)
Repo-->>Storage: Updated Task
Storage-->>Service: Updated Task
Service-->>Core: { success, oldStatus, newStatus, taskId }
Core-->>CLI: result
CLI-->>User: Render text/JSON per ID
else not found / error
Service-->>Core: error (TASK_NOT_FOUND/other)
Core-->>CLI: error
CLI-->>User: per-ID error output
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (12)
Comment |
|
This PR was automatically generated to update documentation based on recent changes. Original commit: feat: implement api update-task (#1214)\n\n\n Co-authored-by: Claude <claude-assistant@anthropic.com>
What type of PR is this?
Description
Related Issues
How to Test This
# Example commands or stepsExpected result:
Contributor Checklist
npm run changesetnpm testnpm run format-check(ornpm run formatto fix)Changelog Entry
For Maintainers
Summary by CodeRabbit
New Features
Refactor
Chores