28: task templates - localStorage templates (Bug fix, Feature work, Quick meeting) in create dialog

This commit is contained in:
2026-07-29 19:26:17 +00:00
parent 0835961bc9
commit cd5d7a96ff
2 changed files with 104 additions and 0 deletions
@@ -21,6 +21,7 @@ import {
SelectValue,
} from '@/components/ui/select';
import { toast } from 'sonner';
import { TaskTemplates } from '@/components/tasks/task-templates';
interface TaskCreateDialogProps {
open: boolean;
@@ -107,6 +108,13 @@ export function TaskCreateDialog({
<DialogDescription>Create a new task to track your work.</DialogDescription>
</DialogHeader>
<form className="space-y-4" onSubmit={handleSubmit}>
<TaskTemplates onSelect={(t) => {
setTitle(t.title);
setDescription(t.description);
setPriority(t.priority);
setStatus(t.status);
}} />
<div className="space-y-2">
<Label htmlFor="task-title">Title *</Label>
<Input