Merge branch 'feat/poweruser-capture'

# Conflicts:
#	apps/web/src/routes/_app/tasks.tsx
This commit is contained in:
2026-09-09 10:35:08 +00:00
8 changed files with 784 additions and 197 deletions
+18 -1
View File
@@ -33,6 +33,7 @@ import { cn } from "@/lib/utils";
import { parseTaskInput } from "@/lib/nlp";
import { RecurrencePicker } from "@/components/tasks/recurrence-picker";
import { BulkActionBar } from "@/components/tasks/bulk-action-bar";
import { showUndoToast } from "@/lib/undo/use-undo-toast";
const STATE_GROUP_COLUMNS: { id: StateGroup; label: string; colorClass: string }[] = [
{ id: "backlog", label: "Backlog", colorClass: "bg-slate-400" },
@@ -514,7 +515,23 @@ function TasksPage() {
const deleteMutation = useMutation({
mutationFn: (id: string) => api.delete("/tasks/" + id),
onSuccess: () => {
onSuccess: (_, deletedId) => {
const task = tasks.find((t) => t.id === deletedId);
if (task) {
showUndoToast(
"task",
deletedId,
{
title: task.title,
priority: task.priority,
dueDate: task.dueDate,
description: task.description,
domain: task.domainId || undefined,
},
queryClient,
["tasks"],
);
}
queryClient.invalidateQueries({ queryKey: ["tasks"] });
setPanelOpen(false);
},