Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/(dashboard)/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ export async function createCodePlanAction(formData: FormData) {
type,
tags,
targetAssetIds: [],
assigneeIds: [],
deadline,
specUrl,
},
Expand Down
16 changes: 7 additions & 9 deletions app/(dashboard)/tasks/tasks-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,9 @@ export function TasksClient({

return (
<>
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between mb-8">
<div>
<h1 className="text-2xl font-bold tracking-tight">Tasks</h1>
<p className="text-muted-foreground">Track and manage tasks across all code plans</p>
</div>
<Button onClick={() => setCreateOpen(true)}>
<Plus className="mr-2 h-4 w-4" />
New Task
</Button>
<div className="mb-8">
<h1 className="text-2xl font-bold tracking-tight">Tasks</h1>
<p className="text-muted-foreground">Track and manage tasks across all code plans</p>
</div>

<TaskPanel
Expand Down Expand Up @@ -277,6 +271,10 @@ export function TasksClient({

{/* Filters */}
<div className="flex flex-col gap-4 sm:flex-row sm:items-center mb-6">
<Button onClick={() => setCreateOpen(true)}>
<Plus className="mr-2 h-4 w-4" />
New Task
</Button>
<Tabs value={statusFilter} onValueChange={(v) => { setStatusFilter(v as TaskStatus | 'all' | 'open'); setPage(0) }} className="w-full sm:w-auto">
<TabsList className="bg-muted">
<TabsTrigger value="open">Open</TabsTrigger>
Expand Down
2 changes: 1 addition & 1 deletion app/api/mcp/[transport]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ const handler = createMcpHandler(
async ({ workItemIds, ownerEmail, ...data }, extra) => {
requireWrite(extra)
const ownerId = ownerEmail ? await resolveAssigneeEmail(uid(extra), ownerEmail) : undefined
const plan = await createCodePlan({ ...data, ownerId, assigneeIds: [] }, uid(extra))
const plan = await createCodePlan({ ...data, ownerId }, uid(extra))
for (const workItemId of workItemIds) await linkWorkItemToPlan(workItemId, plan.id)
return json(plan)
},
Expand Down
1 change: 1 addition & 0 deletions lib/db/migrations/postgres/0010_drop_plan_assignees.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE "code_plan_assignees";
7 changes: 7 additions & 0 deletions lib/db/migrations/postgres/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
"when": 1783480000000,
"tag": "0009_task_percent",
"breakpoints": true
},
{
"idx": 10,
"version": "7",
"when": 1784058835573,
"tag": "0010_drop_plan_assignees",
"breakpoints": true
}
]
}
1 change: 1 addition & 0 deletions lib/db/migrations/sqlite/0010_drop_plan_assignees.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE `code_plan_assignees`;
Loading
Loading