⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: repeat tasks from the create task modal
olozano-dbf8b806fdb2
diff --git a/apps/api/src/task/controllers/create-task.ts b/apps/api/src/task/controllers/create-task.tsindex e833e3ad1..c60be55ca 100644--- a/apps/api/src/task/controllers/create-task.ts+++ b/apps/api/src/task/controllers/create-task.ts@@ -21,6 +21,7 @@ import {assertValidTaskStatus,isCustomFieldValueEmpty,} from "../validate-task-fields";+import type { TaskRecurrence } from "../recurrence/schema";import { claimTaskNumber } from "./claim-task-numbers";import { nextTaskPosition } from "./next-task-position";@@ -55,6 +56,7 @@ async function createTask({dueDate,description,priority,+ recurrence,customFields,draftAssetIds,}: {@@ -67,6 +69,7 @@ async function createTask({dueDate?: Date;description?: string;priority?: string;+ recurrence?: TaskRecurrence;customFields?: CustomFieldInput[];draftAssetIds?: string[];}) {@@ -152,6 +155,7 @@ async function createTask({dueDate: dueDate || null,description: description || "",priority: resolvedPriority,+ recurrence: recurrence ?? null,number: taskNumber,position: nextPosition,})diff --git a/apps/api/src/task/index.ts b/apps/api/src/task/index.tsindex add394ec4..d14e3256e 100644--- a/apps/api/src/task/index.ts+++ b/apps/api/src/task/index.ts@@ -916,6 +916,7 @@ const task = apiRouter<BaseVariables & { workspaceId: string }>()priority,status,userId,+ recurrence,customFields,draftAssetIds,} = c.req.valid("json");@@ -941,6 +942,7 @@ const task = apiRouter<BaseVariables & { workspaceId: string }>()dueDate: parsedDueDate,priority,status,+ recurrence,customFields,draftAssetIds,});diff --git a/apps/api/src/task/schema.ts b/apps/api/src/task/schema.tsindex 457e25082..6c8f62e19 100644--- a/apps/api/src/task/schema.ts+++ b/apps/api/src/task/schema.ts@@ -82,6 +82,9 @@ export const createTaskBody = z.object({priority,status: z.string().openapi({ description: "The target column's slug." }),userId: z.string().optional().openapi({ description: "Assignee, if any." }),+ recurrence: taskRecurrenceSchema+ .optional()+ .openapi({ description: "Omit to create a task that does not repeat." }),draftAssetIds: z.array(z.string()).max(100).optional(),customFields: z.array(z.object({ fieldId: z.string(), value: z.string() }))diff --git a/apps/docs/core/functional/plan-and-execute-tasks.mdx b/apps/docs/core/functional/plan-and-execute-tasks.mdxindex a091b29ad..6894b2929 100644--- a/apps/docs/core/functional/plan-and-execute-tasks.mdx+++ b/apps/docs/core/functional/plan-and-execute-tasks.mdx@@ -53,7 +53,7 @@ Use the attachment button, paste, or drag a file into the editor to add supporti## Repeat a task-For work that comes back on a schedule, such as a weekly report, open the task's due date and choose **Repeat**. Pick **Daily**, **Weekly**, **Monthly**, or **Yearly**, or **Periodically** to repeat every few days, weeks, months, or years. Weekly patterns can repeat on several days, such as Monday and Thursday. The calendar highlights the upcoming dates.+For work that comes back on a schedule, such as a weekly report, open the task's due date and choose **Repeat**. You can do this while creating the task or later. Pick **Daily**, **Weekly**, **Monthly**, or **Yearly**, or **Periodically** to repeat every few days, weeks, months, or years. Weekly patterns can repeat on several days, such as Monday and Thursday. The calendar highlights the upcoming dates.When a repeating task moves into a done column, Kaneo creates the next task in the project's first open column. The next task keeps the title, description, assignee, priority, labels, and custom fields. It is due on the next date of the pattern after the completed task's due date, and its start date moves by the same number of days. A task without a due date repeats from the moment it is completed, with no start date.diff --git a/apps/docs/openapi.json b/apps/docs/openapi.jsonindex 95bfaa2d6..07095e0e7 100644--- a/apps/docs/openapi.json+++ b/apps/docs/openapi.json@@ -9753,6 +9753,16 @@"type": "string","description": "Assignee, if any."},+ "recurrence": {+ "allOf": [+ {+ "$ref": "#/components/schemas/TaskRecurrence"+ },+ {+ "description": "Omit to create a task that does not repeat."+ }+ ]+ },"draftAssetIds": {"type": "array","items": {diff --git a/apps/web/src/components/shared/modals/create-task-modal.test.tsx b/apps/web/src/components/shared/modals/create-task-modal.test.tsxindex fea9ebf16..0c575d98e 100644--- a/apps/web/src/components/shared/modals/create-task-modal.test.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.test.tsx@@ -178,7 +178,10 @@ vi.mock("@/lib/toast", () => ({}));vi.mock("react-i18next", () => ({- useTranslation: () => ({ t: (key: string) => key }),+ useTranslation: () => ({+ t: (key: string) => key,+ i18n: { language: "en-US" },+ }),initReactI18next: { type: "3rdParty", init: vi.fn() },}));@@ -326,6 +329,27 @@ describe("CreateTaskModal", () => {);});+ it("creates a repeating task from the due date picker", async () => {+ render(<CreateTaskModal open onClose={vi.fn()} />, {+ wrapper: createWrapper(),+ });+ await chooseBeta();+ enterTitle();+ fireEvent.click(screen.getByText("common:modals.createTask.dueDate"));+ fireEvent.click(await screen.findByText("tasks:popover.recurrence.toggle"));+ submit();+ await vi.waitFor(() =>+ expect(createTask).toHaveBeenCalledWith(+ expect.objectContaining({+ recurrence: expect.objectContaining({+ frequency: "weekly",+ interval: 1,+ }),+ }),+ ),+ );+ });+it("waits for the chosen project's columns before submitting", async () => {projectColumns = undefined;render(<CreateTaskModal open onClose={vi.fn()} />, {diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex c6984a21f..2315e7a59 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -13,6 +13,8 @@ import {import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import TaskDescriptionEditor from "@/components/task/task-description-editor";+import TaskDueDatePicker from "@/components/task/task-due-date-picker";+import { TaskRecurrenceBadge } from "@/components/task/task-recurrence-badge";import {Accordion,AccordionContent,@@ -95,6 +97,7 @@ import { getPriorityIcon } from "@/lib/priority";import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";import type Task from "@/types/task";+import type { TaskRecurrence } from "@/types/task/recurrence";import { getInitialTaskColumn } from "./initial-task-column";type CreateTaskModalProps = {@@ -252,6 +255,7 @@ function CreateTaskModalContent({const [assigneeId, setAssigneeId] = useState("");const [startDate, setStartDate] = useState<Date | undefined>(undefined);const [dueDate, setDueDate] = useState<Date | undefined>(undefined);+ const [recurrence, setRecurrence] = useState<TaskRecurrence | null>(null);const [createMore, setCreateMore] = useState(false);const [labels, setLabels] = useState<Label[]>([]);const [discardConfirmationOpen, setDiscardConfirmationOpen] = useState(false);@@ -372,6 +376,7 @@ function CreateTaskModalContent({assigneeId ||startDate ||dueDate ||+ recurrence ||selectedProjectId ||labels.length > 0 ||stagedAssetsRef.current.length > 0 ||@@ -519,6 +524,7 @@ function CreateTaskModalContent({projectId: resolvedProjectId,startDate: startDate ? startDate.toISOString() : undefined,dueDate: dueDate ? dueDate.toISOString() : undefined,+ recurrence: recurrence ?? undefined,status: submitStatus,draftAssetIds: stagedAssetsRef.current.filter((id) =>description.includes(`/asset/${id}`),@@ -557,6 +563,7 @@ function CreateTaskModalContent({setAssigneeId("");setStartDate(undefined);setDueDate(undefined);+ setRecurrence(null);setLabels([]);setLabelsStep("select");setSearchValue("");@@ -1314,7 +1321,7 @@ function CreateTaskModalContent({type="button"className={cn("flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-md transition-colors border border-border hover:bg-accent/50",- dueDate+ dueDate || recurrence? "bg-accent/30 text-foreground": "text-muted-foreground",)}@@ -1325,28 +1332,18 @@ function CreateTaskModalContent({? formatDateMedium(dueDate): t("common:modals.createTask.dueDate")}</span>+ <TaskRecurrenceBadge task={{ recurrence }} asText /></button></PopoverTrigger>- <PopoverContent className="p-0" align="start">- <Calendar- mode="single"- selected={dueDate}- onSelect={setDueDate}- className="w-full bg-popover"+ <PopoverContent className="w-72 p-0" align="start">+ <TaskDueDatePicker+ dueDate={dueDate}+ startDate={startDate}+ recurrence={recurrence}+ onDateChange={setDueDate}+ onRecurrenceChange={setRecurrence}+ onClear={() => setDueDate(undefined)}/>- {dueDate && (- <div className="p-2 border-t border-border">- <Button- type="button"- variant="outline"- size="sm"- className="w-full text-xs"- onClick={() => setDueDate(undefined)}- >- {t("common:modals.createTask.clearDueDate")}- </Button>- </div>- )}</PopoverContent></Popover>diff --git a/apps/web/src/components/task/task-due-date-picker.tsx b/apps/web/src/components/task/task-due-date-picker.tsxnew file mode 100644index 000000000..397482834--- /dev/null+++ b/apps/web/src/components/task/task-due-date-picker.tsx@@ -0,0 +1,91 @@+import { Repeat, X } from "lucide-react";+import { useMemo } from "react";+import { useTranslation } from "react-i18next";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import { cn } from "@/lib/cn";+import { defaultRecurrence } from "@/lib/default-recurrence";+import { upcomingOccurrences } from "@/lib/next-occurrence-date";+import type { TaskRecurrence } from "@/types/task/recurrence";+import TaskRecurrenceSettings from "./task-recurrence-settings";++type TaskDueDatePickerProps = {+ dueDate: Date | undefined;+ startDate?: Date;+ recurrence: TaskRecurrence | null;+ onDateChange: (date: Date | undefined) => void;+ onRecurrenceChange: (recurrence: TaskRecurrence | null) => void;+ onClear: () => void;+};++// Shared by an existing task's due date popover and the create task modal.+export default function TaskDueDatePicker({+ dueDate,+ startDate,+ recurrence,+ onDateChange,+ onRecurrenceChange,+ onClear,+}: TaskDueDatePickerProps) {+ const { t } = useTranslation();+ const upcoming = useMemo(+ () =>+ dueDate && recurrence ? upcomingOccurrences(dueDate, recurrence, 8) : [],+ [dueDate, recurrence],+ );++ return (+ <>+ <Calendar+ mode="single"+ selected={dueDate}+ defaultMonth={dueDate}+ onSelect={onDateChange}+ disabled={startDate ? { before: startDate } : undefined}+ modifiers={{ repeats: upcoming }}+ modifiersClassNames={{+ repeats:+ "[&>button]:bg-primary/12 [&>button]:font-medium [&>button]:text-primary",+ }}+ className="w-full bg-popover"+ />+ {recurrence && (+ <TaskRecurrenceSettings+ recurrence={recurrence}+ defaultWeekday={(dueDate ?? new Date()).getDay()}+ onChange={onRecurrenceChange}+ />+ )}+ <div className="flex items-center justify-between border-t border-border p-1.5">+ <Button+ type="button"+ variant="ghost"+ size="sm"+ aria-pressed={Boolean(recurrence)}+ className={cn(+ "gap-2 text-muted-foreground hover:text-foreground",+ recurrence && "bg-accent text-foreground",+ )}+ onClick={() =>+ onRecurrenceChange(recurrence ? null : defaultRecurrence(dueDate))+ }+ >+ <Repeat className="h-4 w-4" />+ {t("tasks:popover.recurrence.toggle")}+ </Button>+ {dueDate && (+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="gap-2 text-muted-foreground hover:text-foreground"+ onClick={onClear}+ >+ <X className="h-4 w-4" />+ {t("tasks:popover.dueDate.clear")}+ </Button>+ )}+ </div>+ </>+ );+}diff --git a/apps/web/src/components/task/task-due-date-popover.tsx b/apps/web/src/components/task/task-due-date-popover.tsxindex fd2259772..aaffd3c26 100644--- a/apps/web/src/components/task/task-due-date-popover.tsx+++ b/apps/web/src/components/task/task-due-date-popover.tsx@@ -1,8 +1,5 @@-import { Repeat, X } from "lucide-react";import { useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";import {Popover,PopoverContent,@@ -11,12 +8,10 @@ import {import { useUpdateTaskDueDate } from "@/hooks/mutations/task/use-update-task-due-date";import { useUpdateTaskRecurrence } from "@/hooks/mutations/task/use-update-task-recurrence";import { useWorkspacePermission } from "@/hooks/use-workspace-permission";-import { cn } from "@/lib/cn";-import { upcomingOccurrences } from "@/lib/next-occurrence-date";import { toast } from "@/lib/toast";import type Task from "@/types/task";import type { TaskRecurrence } from "@/types/task/recurrence";-import TaskRecurrenceSettings from "./task-recurrence-settings";+import TaskDueDatePicker from "./task-due-date-picker";type TaskDueDatePopoverProps = {task: Task;@@ -38,10 +33,9 @@ export default function TaskDueDatePopover({() => (task.dueDate ? new Date(task.dueDate) : undefined),[task.dueDate],);- const upcoming = useMemo(- () =>- dueDate && recurrence ? upcomingOccurrences(dueDate, recurrence, 8) : [],- [dueDate, recurrence],+ const startDate = useMemo(+ () => (task.startDate ? new Date(task.startDate) : undefined),+ [task.startDate],);const handleDateChange = async (date: Date | undefined) => {@@ -74,76 +68,23 @@ export default function TaskDueDatePopover({}};- const toggleRepeat = () =>- handleRecurrenceChange(- recurrence- ? null- : {- frequency: "weekly",- interval: 1,- weekdays: [(dueDate ?? new Date()).getDay()],- // Keeps the next due date on the same local day across DST changes.- timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC",- },- );-if (!canEdit) return <>{children}</>;return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger asChild>{children}</PopoverTrigger><PopoverContent className="w-72 p-0" align="start">- <Calendar- mode="single"- selected={dueDate}- defaultMonth={dueDate}- onSelect={handleDateChange}- disabled={- task.startDate ? { before: new Date(task.startDate) } : undefined- }- modifiers={{ repeats: upcoming }}- modifiersClassNames={{- repeats:- "[&>button]:bg-primary/12 [&>button]:font-medium [&>button]:text-primary",+ <TaskDueDatePicker+ dueDate={dueDate}+ startDate={startDate}+ recurrence={recurrence}+ onDateChange={handleDateChange}+ onRecurrenceChange={handleRecurrenceChange}+ onClear={() => {+ setOpen(false);+ void handleDateChange(undefined);}}- className="w-full bg-popover"/>- {recurrence && (- <TaskRecurrenceSettings- recurrence={recurrence}- defaultWeekday={(dueDate ?? new Date()).getDay()}- onChange={handleRecurrenceChange}- />- )}- <div className="flex items-center justify-between border-t border-border p-1.5">- <Button- variant="ghost"- size="sm"- aria-pressed={Boolean(recurrence)}- className={cn(- "gap-2 text-muted-foreground hover:text-foreground",- recurrence && "bg-accent text-foreground",- )}- onClick={toggleRepeat}- >- <Repeat className="h-4 w-4" />- {t("tasks:popover.recurrence.toggle")}- </Button>- {task.dueDate && (- <Button- variant="ghost"- size="sm"- className="gap-2 text-muted-foreground hover:text-foreground"- onClick={() => {- setOpen(false);- void handleDateChange(undefined);- }}- >- <X className="h-4 w-4" />- {t("tasks:popover.dueDate.clear")}- </Button>- )}- </div></PopoverContent></Popover>);diff --git a/apps/web/src/fetchers/task/create-task.ts b/apps/web/src/fetchers/task/create-task.tsindex 252de24fa..0b1445688 100644--- a/apps/web/src/fetchers/task/create-task.ts+++ b/apps/web/src/fetchers/task/create-task.ts@@ -18,6 +18,7 @@ async function createTask(priority: CreateTaskRequest["priority"],customFields?: { fieldId: string; value: string }[],draftAssetIds?: string[],+ recurrence?: CreateTaskRequest["recurrence"],) {if (!projectId) {throw new Error("No project selected for task creation");@@ -32,6 +33,7 @@ async function createTask(startDate: startDate?.toISOString() || undefined,dueDate: dueDate?.toISOString() || undefined,priority,+ recurrence,customFields,draftAssetIds,},diff --git a/apps/web/src/hooks/mutations/task/use-create-task.ts b/apps/web/src/hooks/mutations/task/use-create-task.tsindex 6d98c175f..2a58ce07c 100644--- a/apps/web/src/hooks/mutations/task/use-create-task.ts+++ b/apps/web/src/hooks/mutations/task/use-create-task.ts@@ -20,6 +20,7 @@ function useCreateTask() {priority,customFields,draftAssetIds,+ recurrence,}: CreateTaskRequest) =>createTask(title,@@ -32,6 +33,7 @@ function useCreateTask() {priority,customFields,draftAssetIds,+ recurrence,),onSuccess: (_data, variables) => {invalidateMyWork(queryClient);diff --git a/apps/web/src/lib/default-recurrence.ts b/apps/web/src/lib/default-recurrence.tsnew file mode 100644index 000000000..906310230--- /dev/null+++ b/apps/web/src/lib/default-recurrence.ts@@ -0,0 +1,12 @@+import type { TaskRecurrence } from "@/types/task/recurrence";++// Turning repeat on starts weekly, on the due date's weekday.+export function defaultRecurrence(dueDate: Date | undefined): TaskRecurrence {+ return {+ frequency: "weekly",+ interval: 1,+ weekdays: [(dueDate ?? new Date()).getDay()],+ // Keeps the next due date on the same local day across DST changes.+ timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC",+ };+}diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex f3a2e80cb..8fbdc6a8e 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -126,7 +126,6 @@"startDate": "Başlama tarixi","dueDate": "Son tarix","clearStartDate": "Başlama tarixini təmizlə",- "clearDueDate": "Son tarixi təmizlə","assign": "Təyin et","assignUnassigned": "Təyin olunmayıb","assignUnassignedTitle": "Təyin olunmayıb",diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 2f584804c..21073a2d5 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -126,7 +126,6 @@"startDate": "Startdatum","dueDate": "Fälligkeitsdatum","clearStartDate": "Startdatum entfernen",- "clearDueDate": "Fälligkeitsdatum entfernen","assign": "Zuweisen","assignUnassigned": "Nicht zugewiesen","assignUnassignedTitle": "Nicht zugewiesen",diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex a91604796..91d824837 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -126,7 +126,6 @@"startDate": "Ημερομηνία έναρξης","dueDate": "Ημερομηνία λήξης","clearStartDate": "Εκκαθάριση ημερομηνίας έναρξης",- "clearDueDate": "Εκκαθάριση ημερομηνίας λήξης","assign": "Ανάθεση","assignUnassigned": "Χωρίς ανάθεση","assignUnassignedTitle": "Χωρίς ανάθεση",diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex b0807de15..4287ba662 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -133,7 +133,6 @@"startDate": "Start date","dueDate": "Due date","clearStartDate": "Clear start date",- "clearDueDate": "Clear due date","assign": "Assign","assignUnassigned": "Unassigned","assignUnassignedTitle": "Unassigned",diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 29e923ebf..69aef9e6a 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -126,7 +126,6 @@"startDate": "Fecha de inicio","dueDate": "Fecha de vencimiento","clearStartDate": "Borrar fecha de inicio",- "clearDueDate": "Borrar fecha de vencimiento","assign": "Asignar","assignUnassigned": "Sin asignar","assignUnassignedTitle": "Sin asignar",diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 3c23dd1cd..1e9064042 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -126,7 +126,6 @@"startDate": "Date de début","dueDate": "Date d'échéance","clearStartDate": "Supprimer la date de début",- "clearDueDate": "Supprimer la date d'échéance","assign": "Assigner","assignUnassigned": "Non assigné","assignUnassignedTitle": "Non assigné",diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex 92f09693b..6fef48d9e 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -126,7 +126,6 @@"startDate": "शुरू की तारीख","dueDate": "नियत तारीख","clearStartDate": "शुरू की तारीख साफ़ करें",- "clearDueDate": "नियत तारीख साफ़ करें","assign": "सौंपें","assignUnassigned": "असाइन नहीं","assignUnassignedTitle": "असाइन नहीं",diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex 8bc8d2c0e..873d7678b 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -126,7 +126,6 @@"startDate": "Tanggal mulai","dueDate": "Tenggat","clearStartDate": "Hapus tanggal mulai",- "clearDueDate": "Hapus tenggat","assign": "Tugaskan","assignUnassigned": "Belum ditugaskan","assignUnassignedTitle": "Belum ditugaskan",diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex dc7d82110..6469e0e78 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -126,7 +126,6 @@"startDate": "Data inizio","dueDate": "Data scadenza","clearStartDate": "Cancella data inizio",- "clearDueDate": "Cancella data scadenza","assign": "Assegna","assignUnassigned": "Non assegnato","assignUnassignedTitle": "Non assegnato",diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex cd2233509..06995f6fe 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -126,7 +126,6 @@"startDate": "開始日","dueDate": "期限","clearStartDate": "開始日をクリア",- "clearDueDate": "期限をクリア","assign": "担当者を割り当て","assignUnassigned": "未割り当て","assignUnassignedTitle": "未割り当て",diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 45cb62e10..d5a12ee0c 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -126,7 +126,6 @@"startDate": "시작일","dueDate": "마감일","clearStartDate": "시작일 지우기",- "clearDueDate": "마감일 지우기","assign": "할당","assignUnassigned": "미할당","assignUnassignedTitle": "미할당",diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex 309898f91..fbeae35b0 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -126,7 +126,6 @@"startDate": "Почетен датум","dueDate": "Краен рок","clearStartDate": "Исчисти почетен датум",- "clearDueDate": "Исчисти краен рок","assign": "Додели","assignUnassigned": "Недоделен","assignUnassignedTitle": "Недоделен",diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex 1d258bdea..6432f7ec0 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -126,7 +126,6 @@"startDate": "Startdatum","dueDate": "Einddatum","clearStartDate": "Startdatum wissen",- "clearDueDate": "Einddatum wissen","assign": "Toewijzen","assignUnassigned": "Niet toegewezen","assignUnassignedTitle": "Niet toegewezen",diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex 978ca99df..118706c22 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -126,7 +126,6 @@"startDate": "Data rozpoczęcia","dueDate": "Termin","clearStartDate": "Wyczyść datę rozpoczęcia",- "clearDueDate": "Wyczyść termin","assign": "Przypisz","assignUnassigned": "Nieprzypisane","assignUnassignedTitle": "Nieprzypisane",diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 9ace4f11e..8b76f2dd5 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -126,7 +126,6 @@"startDate": "Data de início","dueDate": "Data de vencimento","clearStartDate": "Limpar data de início",- "clearDueDate": "Limpar data de vencimento","assign": "Atribuir","assignUnassigned": "Não atribuído","assignUnassignedTitle": "Não atribuído",diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex c1cc2dabb..f1be064b8 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -126,7 +126,6 @@"startDate": "Дата начала","dueDate": "Срок выполнения","clearStartDate": "Очистить дату начала",- "clearDueDate": "Очистить срок выполнения","assign": "Назначить","assignUnassigned": "Не назначено","assignUnassignedTitle": "Не назначено",diff --git a/i18n/schema.json b/i18n/schema.jsonindex f6eef263a..2e91750d8 100644--- a/i18n/schema.json+++ b/i18n/schema.json@@ -498,9 +498,6 @@"clearStartDate": {"type": "string"},- "clearDueDate": {- "type": "string"- },"assign": {"type": "string"},@@ -612,7 +609,6 @@"startDate","dueDate","clearStartDate",- "clearDueDate","assign","assignUnassigned","assignUnassignedTitle",diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 7e6006621..2c568587c 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -126,7 +126,6 @@"startDate": "Başlangıç tarihi","dueDate": "Bitiş tarihi","clearStartDate": "Başlangıç tarihini temizle",- "clearDueDate": "Bitiş tarihini temizle","assign": "Ata","assignUnassigned": "Atanmamış","assignUnassignedTitle": "Atanmamış",diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex 06a4edb0e..6d8529994 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -126,7 +126,6 @@"startDate": "Дата початку","dueDate": "Дата завершення","clearStartDate": "Очистити дату початку",- "clearDueDate": "Очистити дату завершення","assign": "Призначити","assignUnassigned": "Не призначено","assignUnassignedTitle": "Не призначено",diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex 825d703de..cca77b441 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -126,7 +126,6 @@"startDate": "Ngày bắt đầu","dueDate": "Ngày đến hạn","clearStartDate": "Xóa ngày bắt đầu",- "clearDueDate": "Xóa ngày đến hạn","assign": "Giao việc","assignUnassigned": "Chưa giao","assignUnassignedTitle": "Chưa giao",diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex 2fd6885b5..81615f28e 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -126,7 +126,6 @@"startDate": "开始日期","dueDate": "截止日期","clearStartDate": "清除开始日期",- "clearDueDate": "清除截止日期","assign": "指派","assignUnassigned": "未指派","assignUnassignedTitle": "未指派",diff --git a/i18n/zh-TW.json b/i18n/zh-TW.jsonindex 411df4e44..abbc9495c 100644--- a/i18n/zh-TW.json+++ b/i18n/zh-TW.json@@ -126,7 +126,6 @@"startDate": "開始日期","dueDate": "截止日期","clearStartDate": "清除開始日期",- "clearDueDate": "清除截止日期","assign": "指派","assignUnassigned": "未指派","assignUnassignedTitle": "未指派",diff --git a/tests/api-integration/task-recurrence.test.ts b/tests/api-integration/task-recurrence.test.tsindex 6a7ed8fb6..e6a39fa38 100644--- a/tests/api-integration/task-recurrence.test.ts+++ b/tests/api-integration/task-recurrence.test.ts@@ -121,6 +121,37 @@ describe("API integration: recurring tasks", () => {expect(stored?.recurrence).toBeNull();});+ it("creates a task that already repeats", async () => {+ const { project, app } = await seedProject();+ const recurrence = { ...weekly, weekdays: [1, 4] };++ const created = await request(app, "POST", `/api/task/${project.id}`, {+ title: "Water the plants",+ description: "",+ priority: "no-priority",+ status: "to-do",+ dueDate: "2026-03-10T00:00:00.000Z",+ recurrence,+ });+ expect(created.status).toBe(200);+ const task = await created.json();+ expect(task).toMatchObject({ recurrence });++ const stored = await db.query.taskTable.findFirst({+ where: eq(schema.taskTable.id, task.id),+ });+ expect(stored?.recurrence).toEqual(recurrence);++ const invalid = await request(app, "POST", `/api/task/${project.id}`, {+ title: "Water the plants",+ description: "",+ priority: "no-priority",+ status: "to-do",+ recurrence: { ...weekly, frequency: "daily", weekdays: [1] },+ });+ expect(invalid.status).toBe(400);+ });+it("rejects invalid recurrence rules", async () => {const { project, columns, app } = await seedProject();const task = await seedTask(project.id, columns.todo.id);