Skip to content

feat: tasks dashboard, comments, and enriched MCP tools (by Wren)#228

Merged
conoremclaughlin merged 2 commits intomainfrom
wren/feat/task-unification
Mar 23, 2026
Merged

feat: tasks dashboard, comments, and enriched MCP tools (by Wren)#228
conoremclaughlin merged 2 commits intomainfrom
wren/feat/task-unification

Conversation

@conoremclaughlin
Copy link
Owner

Summary

  • Tasks dashboard (/tasks) — gorgeous new page with stats row, status filter pills, task group nesting with collapsible sections, and clickable status toggle (complete/reopen tasks inline)
  • Task comments — inline comment thread on each task card with agent-colored avatars (wren=sky, myra=rose, lumen=amber, etc.), text input + send button, real-time updates
  • task_comments migration — new table following artifact_comments pattern, with agent attribution, threading via parent_comment_id, soft-delete
  • 3 admin API endpointsGET /tasks/:id/comments, POST /tasks/:id/comments, DELETE /tasks/:taskId/comments/:commentId
  • Enriched list_tasks MCP tool — now returns taskGroupId, taskGroupTitle, createdBy, blockedBy, dueDate, metadata; supports new groupId filter parameter
  • New add_task_comment MCP tool — SBs can comment on tasks with automatic agent identity attribution
  • useApiPut hook — new frontend mutation hook for PUT requests
  • Sidebar — Tasks moved from Platform to Team section
  • Playwright SKILL.md — added 1440x900 minimum viewport guidance for desktop screenshots

Test plan

  • Navigate to /tasks — verify stats row, filter pills, task cards render with real data
  • Click status icon on a pending task — verify it marks as completed and moves to Completed section
  • Click "comment" on a task — verify inline thread expands with input
  • Post a comment — verify it appears with author avatar and timestamp
  • Filter by Completed/Active/Blocked — verify correct tasks shown
  • Verify list_tasks MCP tool returns new fields (taskGroupId, createdBy, blockedBy, dueDate, metadata)
  • Verify add_task_comment MCP tool creates comment with agent attribution
  • Type-check passes: npx tsc --noEmit for both web and api packages

🤖 Generated with Claude Code

— Wren

@conoremclaughlin conoremclaughlin force-pushed the wren/feat/task-unification branch from a6be267 to 8ad67e3 Compare March 23, 2026 17:44
- New /tasks page with stats row, status filters, task group nesting,
  collapsible sections, and clickable status toggle (complete/reopen)
- Inline comment thread on each task card with agent-colored avatars
- task_comments migration + 3 admin API endpoints (list/create/delete)
- Enriched list_tasks MCP tool: now returns taskGroupId, taskGroupTitle,
  createdBy, blockedBy, dueDate, metadata; supports groupId filter
- New add_task_comment MCP tool with automatic agent attribution
- useApiPut hook for frontend mutations
- Tasks moved to Team section in sidebar
- Playwright SKILL.md: 1440x900 minimum viewport for desktop screenshots

Co-Authored-By: Wren <noreply@anthropic.com>
@conoremclaughlin conoremclaughlin force-pushed the wren/feat/task-unification branch from 8ad67e3 to 17db349 Compare March 23, 2026 17:45
… on reopen

Two review blockers from Lumen:

1. add_task_comment now resolves identity with workspace scoping
   (getRequestContext().workspaceId) and accepts agentId param.
   Previously used getEffectiveAgentId(undefined) with no workspace.

2. Reopening a task (status change to non-completed) now clears
   completed_at in both MCP handler and admin REST endpoint.
   Previously, reopened tasks retained the green 'done' badge.

Tests updated to expect completed_at: null in update payloads.

Co-Authored-By: Wren <noreply@anthropic.com>
@conoremclaughlin conoremclaughlin merged commit 0081db5 into main Mar 23, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant