⚡ 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(web): redesign task cards and the date picker
Andrej8cceae17aacb
diff --git a/apps/web/src/components/backlog-list-view/backlog-task-row.test.tsx b/apps/web/src/components/backlog-list-view/backlog-task-row.test.tsxindex a23868efa..38a79c424 100644--- a/apps/web/src/components/backlog-list-view/backlog-task-row.test.tsx+++ b/apps/web/src/components/backlog-list-view/backlog-task-row.test.tsx@@ -1,10 +1,12 @@+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import {act,cleanup,fireEvent,- render,+ render as renderWithoutClient,screen,} from "@testing-library/react";+import type { ReactElement, ReactNode } from "react";import {afterEach,beforeEach,@@ -19,10 +21,20 @@ import type { ProjectWithTasks } from "@/types/project";import type Task from "@/types/task";import BacklogTaskRow from "./backlog-task-row";+const testQueryClient = new QueryClient();+const render = (ui: ReactElement) =>+ renderWithoutClient(ui, {+ wrapper: ({ children }: { children: ReactNode }) => (+ <QueryClientProvider client={testQueryClient}>+ {children}+ </QueryClientProvider>+ ),+ });+const { sortableKeyDown } = vi.hoisted(() => ({ sortableKeyDown: vi.fn() }));const { useSortable } = vi.hoisted(() => ({useSortable: vi.fn((_options: { id: string }) => ({- attributes: { role: "button" },+ attributes: { role: "button", tabIndex: 0 },listeners: { onKeyDown: sortableKeyDown },setNodeRef: vi.fn(),transform: null,@@ -169,7 +181,8 @@ describe("backlog row subscriptions", () => {it("takes keyboard focus when the row is focused", () => {render(<BacklogTaskRow task={task} />);- fireEvent.focus(screen.getByRole("button", { name: /First task/ }));+ fireEvent.keyDown(document, { key: "Tab" });+ act(() => screen.getByRole("button", { name: /First task/ }).focus());expect(useBacklogBulkSelectionStore.getState().focusedTaskId).toBe(task.id);});@@ -223,7 +236,9 @@ describe("backlog row subscriptions", () => {"task-1",]);expect(- screen.getByRole("button", { name: /First task/ }).closest(".ring-2"),+ screen+ .getByRole("button", { name: /First task/ })+ .closest(".ring-board-card-focus"),).not.toBeNull();useSortable.mockClear();@@ -234,10 +249,14 @@ describe("backlog row subscriptions", () => {useSortable.mock.calls.map(([options]) => options.id).sort(),).toEqual(["task-1", "task-2"]);expect(- screen.getByRole("button", { name: /First task/ }).closest(".ring-2"),+ screen+ .getByRole("button", { name: /First task/ })+ .closest(".ring-board-card-focus"),).toBeNull();expect(- screen.getByRole("button", { name: /Second task/ }).closest(".ring-2"),+ screen+ .getByRole("button", { name: /Second task/ })+ .closest(".ring-board-card-focus"),).not.toBeNull();});diff --git a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx b/apps/web/src/components/backlog-list-view/backlog-task-row.tsxindex af6490e66..63dc42d9e 100644--- a/apps/web/src/components/backlog-list-view/backlog-task-row.tsx+++ b/apps/web/src/components/backlog-list-view/backlog-task-row.tsx@@ -2,11 +2,9 @@ import { useRestoreTaskFocus } from "@/components/project/task-view-keys/use-resimport { useSortable } from "@dnd-kit/sortable";import { CSS } from "@dnd-kit/utilities";import { useNavigate } from "@tanstack/react-router";-import { format } from "date-fns";-import { Calendar, CalendarClock, CalendarX, Trash2Icon } from "lucide-react";+import { Trash2Icon } from "lucide-react";import { type CSSProperties, memo, useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import { TaskProgressBadges } from "@/components/task/task-progress-badges";import {AlertDialog,AlertDialogClose,@@ -16,29 +14,21 @@ import {AlertDialogHeader,AlertDialogTitle,} from "@/components/ui/alert-dialog";-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";-import { CardFieldList } from "@/components/custom-fields/card-field-list";-import { useTaskCardFields } from "@/components/custom-fields/use-task-card-fields";import { useDeleteTask } from "@/hooks/mutations/task/use-delete-task";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { cn } from "@/lib/cn";-import {- dueDateStatusColors,- getDueDateStatus,- isTaskCompleted,-} from "@/lib/due-date-status";-import { getInitials } from "@/lib/get-initials";-import { getPriorityIcon } from "@/lib/priority";+import { isKeyboardFocus } from "@/lib/is-keyboard-focus";+import { isOwnDomEvent } from "@/lib/is-own-dom-event";+import { isTaskCompleted } from "@/lib/due-date-status";import { toast } from "@/lib/toast";import useBacklogBulkSelectionStore from "@/store/backlog-bulk-selection";import useProjectStore from "@/store/project";-import { useUserPreferencesStore } from "@/store/user-preferences";import type Task from "@/types/task";import TaskCardContextMenuContent from "../kanban-board/task-card-context-menu/task-card-context-menu-content";-import { TaskLabels } from "../kanban-board/task-labels";import { ContextMenu, ContextMenuTrigger } from "../ui/context-menu";+import { TaskRowBody } from "../list-view/task-row-body";import { EASE_OUT_CSS } from "@/lib/motion";type BacklogTaskRowProps = {@@ -67,13 +57,6 @@ const BacklogTaskRow = memo(function BacklogTaskRow({const projectColumns = useProjectStore((state) => state.project?.columns);const taskIsCompleted = isTaskCompleted(task.status, projectColumns);const { data: workspace } = useActiveWorkspace();- const {- showAssignees,- showPriority,- showDueDates,- showLabels,- showTaskNumbers,- } = useUserPreferencesStore();const [isDeleteTaskModalOpen, setIsDeleteTaskModalOpen] = useState(false);const { mutateAsync: deleteTask } = useDeleteTask();const toggleSelection = useBacklogBulkSelectionStore(@@ -106,8 +89,6 @@ const BacklogTaskRow = memo(function BacklogTaskRow({);}, [workspaceUsers, task.userId]);- const cardFields = useTaskCardFields(task.projectId, task.id);-const style: CSSProperties = {transform: CSS.Transform.toString(transform),transition: transition || `transform 200ms ${EASE_OUT_CSS}`,@@ -115,7 +96,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({};const handleClick = (e: React.MouseEvent) => {- if (!projectId || !task) return;+ if (!projectId || !task || !isOwnDomEvent(e)) return;if (e.defaultPrevented) return;if (e.shiftKey) {@@ -176,7 +157,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({isDragging && "opacity-50",isTaskSelected &&"bg-accent/60 shadow-sm ring-1 ring-inset ring-ring/30",- isTaskFocused && "ring-2 ring-inset ring-ring/50",+ isTaskFocused && "ring-1 ring-board-card-focus ring-inset",)}><ContextMenu>@@ -185,7 +166,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({<divonClick={handleClick}className={cn(- "group relative flex cursor-pointer items-center gap-3 px-4 py-1.5 outline-none transition-colors",+ "group relative flex h-10 cursor-pointer items-center gap-3 px-3.5 outline-none transition-colors",isTaskSelected ? "bg-accent/45" : "hover:bg-accent/60",)}data-task-id={task.id}@@ -193,72 +174,20 @@ const BacklogTaskRow = memo(function BacklogTaskRow({{...attributes}{...listeners}onKeyDown={handleKeyDown}- onFocus={() => setFocusedTask(task.id)}+ onFocus={(event) => {+ if (event.target !== event.currentTarget) return;+ setFocusedTask(isKeyboardFocus(event) ? task.id : null);+ }}>- {showPriority && (- <div className="flex-shrink-0 first:[&_svg]:h-4 first:[&_svg]:w-4">- {getPriorityIcon(task.priority ?? "")}- </div>- )}- {showTaskNumbers && (- <div className="text-xs font-mono text-muted-foreground flex-shrink-0">- {projectSlug}-{task.number}- </div>- )}-- <div className="flex-1 min-w-0 flex items-center gap-2">- <div className="flex items-center gap-2 justify-between w-full">- <span className="text-sm text-foreground truncate">- {task.title}- </span>- <div className="flex items-center gap-1">- <TaskProgressBadges task={task} />- <CardFieldList fields={cardFields} max={3} />- {showLabels && <TaskLabels labels={task.labels ?? []} />}- </div>- </div>- </div>-- {showDueDates && task.dueDate && (- <div- className={`flex items-center gap-1 text-[10px] px-2 py-1 rounded flex-shrink-0 ${dueDateStatusColors[getDueDateStatus(task.dueDate, taskIsCompleted)]}`}- >- {getDueDateStatus(task.dueDate, taskIsCompleted) ===- "overdue" && <CalendarX className="w-3 h-3" />}- {getDueDateStatus(task.dueDate, taskIsCompleted) ===- "due-soon" && <CalendarClock className="w-3 h-3" />}- {(getDueDateStatus(task.dueDate, taskIsCompleted) ===- "far-future" ||- getDueDateStatus(task.dueDate, taskIsCompleted) ===- "no-due-date") && <Calendar className="w-3 h-3" />}- <span>{format(new Date(task.dueDate), "MMM d")}</span>- </div>- )}-- {showAssignees && (- <div className="flex-shrink-0">- {task.userId ? (- <Avatar className="h-6 w-6">- <AvatarImage- src={assignee?.user?.image ?? ""}- alt={assignee?.user?.name || ""}- />- <AvatarFallback className="text-xs font-medium border border-border/30">- {getInitials(assignee?.user?.name)}- </AvatarFallback>- </Avatar>- ) : (- <div- className="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title={t("tasks:assignee.unassigned")}- >- <span className="text-[10px] font-medium text-muted-foreground">- ?- </span>- </div>- )}- </div>- )}+ <TaskRowBody+ task={task}+ projectSlug={projectSlug}+ workspaceId={workspace?.id ?? ""}+ isCompleted={taskIsCompleted}+ assigneeName={assignee?.user?.name ?? task.assigneeName}+ assigneeImage={assignee?.user?.image}+ showPullRequests={false}+ /></div></ContextMenuTrigger>diff --git a/apps/web/src/components/backlog-list-view/backlog-toolbar-actions.tsx b/apps/web/src/components/backlog-list-view/backlog-toolbar-actions.tsxnew file mode 100644index 000000000..3fd0af6ae--- /dev/null+++ b/apps/web/src/components/backlog-list-view/backlog-toolbar-actions.tsx@@ -0,0 +1,57 @@+import { ArrowRight, Plus } from "lucide-react";+import { useTranslation } from "react-i18next";+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/components/ui/tooltip";++type BacklogToolbarActionsProps = {+ onPlan: () => void;+ onMoveAll: () => void;+};++export function BacklogToolbarActions({+ onPlan,+ onMoveAll,+}: BacklogToolbarActionsProps) {+ const { t } = useTranslation();+ const planLabel = t("tasks:backlog.plan");+ const moveAllLabel = t("tasks:backlog.moveAllTooltip");++ return (+ <>+ <Tooltip>+ <TooltipTrigger+ render={+ <Button+ variant="ghost"+ size="icon-sm"+ aria-label={planLabel}+ onClick={onPlan}+ />+ }+ >+ <Plus />+ </TooltipTrigger>+ <TooltipContent>{planLabel}</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger+ render={+ <Button+ variant="ghost"+ size="icon-sm"+ aria-label={moveAllLabel}+ onClick={onMoveAll}+ />+ }+ >+ <ArrowRight />+ </TooltipTrigger>+ <TooltipContent>{moveAllLabel}</TooltipContent>+ </Tooltip>+ </>+ );+}diff --git a/apps/web/src/components/bulk-selection/bulk-bar.tsx b/apps/web/src/components/bulk-selection/bulk-bar.tsxindex 029118ac1..1d8730f90 100644--- a/apps/web/src/components/bulk-selection/bulk-bar.tsx+++ b/apps/web/src/components/bulk-selection/bulk-bar.tsx@@ -2,14 +2,14 @@ import {Archive,ArrowDownToLine,ArrowUpToLine,- CircleDashed,- SignalHigh,+ CircleDot,Tag,Trash2,UserRound,} from "lucide-react";import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";+import { PriorityGlyph } from "@/components/task-chips/priority-glyph";import { cn } from "@/lib/cn";import { Toolbar } from "../ui/toolbar";import { barButtonClass } from "./bar-button-class";@@ -64,7 +64,11 @@ export function BulkBar({const options = useBulkOptions(actions);const { mounted, hidden, displayCount } = useToolbarPresence(actions.count);const [commandOpen, setCommandOpen] = useState(false);- useBulkSelectionKeys({ selectAll, clearSelection });+ useBulkSelectionKeys({+ hasSelection: actions.count > 0,+ selectAll,+ clearSelection,+ });const request = useBulkRequestStore((state) => state.request);useEffect(() => {@@ -192,7 +196,7 @@ export function BulkBar({<div className="ms-1.5 flex items-center gap-0.5">{variant === "board" && can.edit && (<BulkOptionPopover- icon={<CircleDashed />}+ icon={<CircleDot />}label={t("tasks:status.label")}placeholder={t("tasks:bulk.statusPlaceholder")}options={options.columnOptions}@@ -204,7 +208,7 @@ export function BulkBar({)}{can.edit && (<BulkOptionPopover- icon={<SignalHigh />}+ icon={<PriorityGlyph priority="high" />}label={t("tasks:priority.label")}placeholder={t("tasks:bulk.priorityPlaceholder")}options={options.priorityOptions}@@ -240,7 +244,7 @@ export function BulkBar({)}{can.edit && (<BulkDueDatePopover- onSelect={(date) => void actions.setDueDate(date)}+ onSelect={(date) => void actions.setDueDate(date ?? undefined)}onDismiss={dismissTemporary}returnFocus={focusedTaskElement}/>diff --git a/apps/web/src/components/bulk-selection/bulk-due-date-popover.tsx b/apps/web/src/components/bulk-selection/bulk-due-date-popover.tsxindex 46ec13b4c..13edb4df7 100644--- a/apps/web/src/components/bulk-selection/bulk-due-date-popover.tsx+++ b/apps/web/src/components/bulk-selection/bulk-due-date-popover.tsx@@ -1,7 +1,7 @@-import { CalendarDays, X } from "lucide-react";+import { CalendarDays } from "lucide-react";import { useState } from "react";import { useTranslation } from "react-i18next";-import { Calendar } from "@/components/ui/calendar";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";import {Popover,PopoverContent,@@ -16,7 +16,7 @@ export function BulkDueDatePopover({onDismiss,returnFocus,}: {- onSelect: (date: Date | undefined) => void;+ onSelect: (date: Date | null) => void;onDismiss?: () => void;returnFocus?: () => HTMLElement | null;}) {@@ -28,7 +28,7 @@ export function BulkDueDatePopover({);const label = t("tasks:dueDate.label");- const select = (date: Date | undefined) => {+ const select = (date: Date | null) => {setOpen(false);onSelect(date);};@@ -54,20 +54,17 @@ export function BulkDueDatePopover({side="top"align="start"sideOffset={8}- className="p-0"+ className="w-65 p-0"finalFocus={() => (openedByRequest() && returnFocus?.()) || true}>- <Calendar mode="single" onSelect={select} className="bg-popover" />- <div className="border-border/80 border-t p-1">- <button- type="button"- onClick={() => select(undefined)}- className="flex h-8 w-full items-center gap-2 rounded-md px-2 text-[13px] text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent"- >- <X aria-hidden="true" className="size-3.5" />- {t("tasks:dueDate.clear")}- </button>- </div>+ <DatePickerMenu+ label={label}+ placeholder={t("tasks:datePicker.dueDatePlaceholder")}+ clearLabel={t("tasks:dueDate.clear")}+ value={null}+ onChange={select}+ canClear+ /></PopoverContent></Popover>);diff --git a/apps/web/src/components/bulk-selection/use-bulk-actions.ts b/apps/web/src/components/bulk-selection/use-bulk-actions.tsindex bc20afc14..41da94b78 100644--- a/apps/web/src/components/bulk-selection/use-bulk-actions.ts+++ b/apps/web/src/components/bulk-selection/use-bulk-actions.ts@@ -1,7 +1,7 @@import {ArchiveIcon,CalendarDaysIcon,- CircleDashedIcon,+ CircleDotIcon,type LucideIcon,SignalHighIcon,SquareKanbanIcon,@@ -84,7 +84,7 @@ export function useBulkActions(run(() => operations.bulkChangeStatus({ taskIds: taskIds(), status }),t("tasks:bulk.updateSuccess", { count }),- CircleDashedIcon,+ CircleDotIcon,t("tasks:bulk.updateError"),),setPriority: (priority: string) =>diff --git a/apps/web/src/components/bulk-selection/use-bulk-selection-keys.test.tsx b/apps/web/src/components/bulk-selection/use-bulk-selection-keys.test.tsxindex b800c6c12..41d1f2a3b 100644--- a/apps/web/src/components/bulk-selection/use-bulk-selection-keys.test.tsx+++ b/apps/web/src/components/bulk-selection/use-bulk-selection-keys.test.tsx@@ -1,8 +1,9 @@-import { renderHook } from "@testing-library/react";+import { cleanup, renderHook } from "@testing-library/react";import { afterEach, describe, expect, it, vi } from "vite-plus/test";import { useBulkSelectionKeys } from "./use-bulk-selection-keys";afterEach(() => {+ cleanup();document.body.innerHTML = "";});@@ -15,16 +16,43 @@ describe("useBulkSelectionKeys", () => {it("clears the selection on Escape outside popups", () => {const clearSelection = vi.fn();renderHook(() =>- useBulkSelectionKeys({ selectAll: vi.fn(), clearSelection }),+ useBulkSelectionKeys({+ hasSelection: true,+ selectAll: vi.fn(),+ clearSelection,+ }),);press(document.body, { key: "Escape" });expect(clearSelection).toHaveBeenCalledTimes(1);});+ it("lets Escape through when nothing is selected", () => {+ const clearSelection = vi.fn();+ renderHook(() =>+ useBulkSelectionKeys({+ hasSelection: false,+ selectAll: vi.fn(),+ clearSelection,+ }),+ );+ const event = new KeyboardEvent("keydown", {+ key: "Escape",+ bubbles: true,+ cancelable: true,+ });+ document.body.dispatchEvent(event);+ expect(clearSelection).not.toHaveBeenCalled();+ expect(event.defaultPrevented).toBe(false);+ });+it("leaves the selection alone when Escape closes a menu or popover", () => {const clearSelection = vi.fn();renderHook(() =>- useBulkSelectionKeys({ selectAll: vi.fn(), clearSelection }),+ useBulkSelectionKeys({+ hasSelection: true,+ selectAll: vi.fn(),+ clearSelection,+ }),);document.body.innerHTML ='<div role="dialog"><input /></div><div role="menu"><button>x</button></div>';@@ -36,7 +64,11 @@ describe("useBulkSelectionKeys", () => {it("selects all with the modifier key unless the person is typing", () => {const selectAll = vi.fn();renderHook(() =>- useBulkSelectionKeys({ selectAll, clearSelection: vi.fn() }),+ useBulkSelectionKeys({+ hasSelection: false,+ selectAll,+ clearSelection: vi.fn(),+ }),);document.body.innerHTML = "<input />";press(document.querySelector("input") as Element, {diff --git a/apps/web/src/components/bulk-selection/use-bulk-selection-keys.ts b/apps/web/src/components/bulk-selection/use-bulk-selection-keys.tsindex 19b37153f..90718d1a8 100644--- a/apps/web/src/components/bulk-selection/use-bulk-selection-keys.ts+++ b/apps/web/src/components/bulk-selection/use-bulk-selection-keys.ts@@ -9,11 +9,16 @@ export function isInsidePopup(target: EventTarget | null) {}type Selection = {+ hasSelection: boolean;selectAll: () => void;clearSelection: () => void;};-export function useBulkSelectionKeys({ selectAll, clearSelection }: Selection) {+export function useBulkSelectionKeys({+ hasSelection,+ selectAll,+ clearSelection,+}: Selection) {useEffect(() => {const handleKeyDown = (event: KeyboardEvent) => {const target = event.target;@@ -28,6 +33,7 @@ export function useBulkSelectionKeys({ selectAll, clearSelection }: Selection) {}if (event.key === "Escape") {+ if (!hasSelection) return;if (event.defaultPrevented || isInsidePopup(target)) return;event.preventDefault();clearSelection();@@ -36,5 +42,5 @@ export function useBulkSelectionKeys({ selectAll, clearSelection }: Selection) {document.addEventListener("keydown", handleKeyDown);return () => document.removeEventListener("keydown", handleKeyDown);- }, [selectAll, clearSelection]);+ }, [hasSelection, selectAll, clearSelection]);}diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsxindex e69734219..f31a96dca 100644--- a/apps/web/src/components/command-palette/index.tsx+++ b/apps/web/src/components/command-palette/index.tsx@@ -174,7 +174,7 @@ function CommandPalette() {return (<><CommandDialog open={open} onOpenChange={setOpen}>- <CommandDialogPopup instant>+ <CommandDialogPopup instant finalFocus={false}><Command items={groupedItems}><CommandInputplaceholder={t("navigation:commandPalette.inputPlaceholder")}diff --git a/apps/web/src/components/common/date-picker/date-limit-hint.tsx b/apps/web/src/components/common/date-picker/date-limit-hint.tsxnew file mode 100644index 000000000..819131490--- /dev/null+++ b/apps/web/src/components/common/date-picker/date-limit-hint.tsx@@ -0,0 +1,11 @@+export function DateLimitHint({ children }: { children: string }) {+ return (+ <div className="flex h-8 items-center gap-2 border-border/80 border-t px-3 text-muted-foreground text-xs">+ <span+ aria-hidden="true"+ className="size-1 shrink-0 rounded-full bg-muted-foreground"+ />+ {children}+ </div>+ );+}diff --git a/apps/web/src/components/common/date-picker/date-picker-menu.tsx b/apps/web/src/components/common/date-picker/date-picker-menu.tsxnew file mode 100644index 000000000..617fc4db1--- /dev/null+++ b/apps/web/src/components/common/date-picker/date-picker-menu.tsx@@ -0,0 +1,140 @@+import { isAfter, isBefore, isSameDay, startOfDay } from "date-fns";+import { Calendar, CalendarDays, X } from "lucide-react";+import { useState } from "react";+import type { Matcher } from "react-day-picker";+import { useTranslation } from "react-i18next";+import { OptionMenu } from "@/components/common/option-menu/option-menu";+import type { OptionMenuItem } from "@/components/common/option-menu/option-menu-item";+import { useUserPreferencesStore } from "@/store/user-preferences";+import { DateLimitHint } from "./date-limit-hint";+import { DatePickerMonthView } from "./date-picker-month-view";+import { parseDateQuery } from "./parse-date-query";+import { formatPickerDay, QUICK_DATE_LABEL_KEYS } from "./quick-date-labels";+import { getQuickDates } from "./quick-dates";++type DateBounds = { before?: Date; after?: Date };++type DatePickerMenuProps = {+ label: string;+ placeholder: string;+ clearLabel: string;+ value: Date | null;+ onChange: (date: Date | null) => void;+ bounds?: DateBounds;+ formatLimit?: (date: string) => string;+ canClear?: boolean;+};++const PICK = "pick";+const CLEAR = "clear";+const TYPED = "typed";++function isAllowed(date: Date, bounds?: DateBounds) {+ const day = startOfDay(date);+ if (bounds?.before && isBefore(day, startOfDay(bounds.before))) return false;+ if (bounds?.after && isAfter(day, startOfDay(bounds.after))) return false;+ return true;+}++export function DatePickerMenu({+ label,+ placeholder,+ clearLabel,+ value,+ onChange,+ bounds,+ formatLimit,+ canClear = value !== null,+}: DatePickerMenuProps) {+ const { t } = useTranslation();+ const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);+ const [view, setView] = useState<"menu" | "month">("menu");+ const [query, setQuery] = useState("");+ const now = new Date();++ const quickDates = getQuickDates(now, weekStartsOn).filter((item) =>+ isAllowed(item.date, bounds),+ );+ const typed = parseDateQuery(query, now, weekStartsOn);+ const typedDate = typed && isAllowed(typed, bounds) ? typed : null;++ const options: OptionMenuItem[] = [+ ...(typedDate+ ? [+ {+ value: TYPED,+ label: formatPickerDay(typedDate),+ icon: <Calendar />,+ pinned: true,+ },+ ]+ : []),+ ...quickDates.map((item) => ({+ value: item.id,+ label: t(QUICK_DATE_LABEL_KEYS[item.id]),+ hint: formatPickerDay(item.date),+ icon: <Calendar />,+ selected: value ? isSameDay(value, item.date) : false,+ })),+ {+ value: PICK,+ label: t("tasks:datePicker.pickDate"),+ icon: <CalendarDays />,+ },+ ...(canClear ? [{ value: CLEAR, label: clearLabel, icon: <X /> }] : []),+ ];++ const limit = bounds?.before ?? bounds?.after;+ const limitHint =+ limit && formatLimit ? formatLimit(formatPickerDay(limit)) : null;++ const disabledDays: Matcher[] = [];+ if (bounds?.before) disabledDays.push({ before: bounds.before });+ if (bounds?.after) disabledDays.push({ after: bounds.after });++ const select = (selected: string) => {+ if (selected === PICK) {+ setView("month");+ return;+ }+ if (selected === CLEAR) {+ onChange(null);+ return;+ }+ if (selected === TYPED) {+ if (typedDate) onChange(typedDate);+ return;+ }+ const quick = quickDates.find((item) => item.id === selected);+ if (quick) onChange(quick.date);+ };++ if (view === "month") {+ return (+ <DatePickerMonthView+ placeholder={placeholder}+ value={value}+ valueLabel={value ? formatPickerDay(value) : null}+ disabled={disabledDays}+ limit={limit}+ limitHint={limitHint}+ onBack={() => setView("menu")}+ onSelect={onChange}+ />+ );+ }++ return (+ <>+ <OptionMenu+ label={label}+ placeholder={placeholder}+ options={options}+ onSelect={select}+ onQueryChange={setQuery}+ inputHint={value ? formatPickerDay(value) : undefined}+ />+ {limitHint && <DateLimitHint>{limitHint}</DateLimitHint>}+ </>+ );+}diff --git a/apps/web/src/components/common/date-picker/date-picker-month-view.tsx b/apps/web/src/components/common/date-picker/date-picker-month-view.tsxnew file mode 100644index 000000000..a64e1e821--- /dev/null+++ b/apps/web/src/components/common/date-picker/date-picker-month-view.tsx@@ -0,0 +1,55 @@+import { ChevronLeft } from "lucide-react";+import type { Matcher } from "react-day-picker";+import { DateLimitHint } from "./date-limit-hint";+import { MonthGrid } from "./month-grid";++type DatePickerMonthViewProps = {+ placeholder: string;+ value: Date | null;+ valueLabel: string | null;+ disabled: Matcher[];+ limit: Date | undefined;+ limitHint: string | null;+ onBack: () => void;+ onSelect: (date: Date) => void;+};++export function DatePickerMonthView({+ placeholder,+ value,+ valueLabel,+ disabled,+ limit,+ limitHint,+ onBack,+ onSelect,+}: DatePickerMonthViewProps) {+ return (+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- Escape steps back to the list instead of closing the popover+ <div+ onKeyDown={(event) => {+ if (event.key !== "Escape") return;+ event.preventDefault();+ event.stopPropagation();+ onBack();+ }}+ >+ <button+ type="button"+ onClick={onBack}+ className="flex h-10 w-full cursor-pointer items-center gap-2 border-border/80 border-b px-3 text-left text-[13px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:text-foreground"+ >+ <ChevronLeft aria-hidden="true" className="size-3.5 shrink-0" />+ <span className="min-w-0 flex-1 truncate">{placeholder}</span>+ {valueLabel && <span className="shrink-0 text-xs">{valueLabel}</span>}+ </button>+ <MonthGrid+ value={value}+ onSelect={onSelect}+ disabled={disabled}+ marked={limit}+ />+ {limitHint && <DateLimitHint>{limitHint}</DateLimitHint>}+ </div>+ );+}diff --git a/apps/web/src/components/common/date-picker/month-grid.tsx b/apps/web/src/components/common/date-picker/month-grid.tsxnew file mode 100644index 000000000..c096fba99--- /dev/null+++ b/apps/web/src/components/common/date-picker/month-grid.tsx@@ -0,0 +1,87 @@+import { startOfDay } from "date-fns";+import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";+import { DayPicker, type Matcher } from "react-day-picker";+import { cn } from "@/lib/cn";+import { useUserPreferencesStore } from "@/store/user-preferences";++const navButtonClass =+ "flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-40 [&_svg]:size-3.5";++const classNames = {+ root: "px-2.5 pb-2.5",+ months: "relative",+ month: "flex flex-col",+ month_caption: "flex h-10 items-center px-0.5",+ caption_label: "font-medium text-[13px] text-foreground",+ nav: "absolute end-0 top-0 z-1 flex h-10 items-center gap-0.5",+ button_previous: navButtonClass,+ button_next: navButtonClass,+ month_grid: "w-full border-separate border-spacing-y-1",+ weekday: "h-6 p-0 font-normal text-[11px] text-muted-foreground/70",+ day: "p-0 text-center",+ day_button:+ "relative mx-auto flex size-7.5 cursor-pointer items-center justify-center rounded-lg text-[13px] text-foreground/85 outline-none transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring/40",+ today:+ "*:ring-1 *:ring-foreground/20 *:ring-inset not-data-selected:not-data-disabled:*:text-foreground",+ selected:+ "*:bg-foreground *:font-medium *:text-background *:hover:bg-foreground",+ outside: "not-data-selected:*:text-muted-foreground/40",+ disabled: "*:pointer-events-none *:text-muted-foreground/40",+ hidden: "invisible",+};++const modifiersClassNames = {+ past: "not-data-selected:*:text-muted-foreground/70",+ limit:+ "*:after:absolute *:after:bottom-0.5 *:after:start-1/2 *:after:size-1 *:after:-translate-x-1/2 *:after:rounded-full *:after:bg-muted-foreground data-selected:*:after:bg-background",+};++function Chevron({+ orientation,+ className,+}: {+ orientation?: "left" | "right" | "up" | "down";+ className?: string;+}) {+ const Icon = orientation === "left" ? ChevronLeftIcon : ChevronRightIcon;+ return (+ <Icon aria-hidden="true" className={cn(className, "rtl:rotate-180")} />+ );+}++type MonthGridProps = {+ value: Date | null;+ onSelect: (date: Date) => void;+ disabled?: Matcher[];+ marked?: Date;+ autoFocus?: boolean;+};++export function MonthGrid({+ value,+ onSelect,+ disabled,+ marked,+ autoFocus = true,+}: MonthGridProps) {+ const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);+ const today = startOfDay(new Date());++ return (+ <DayPicker+ mode="single"+ required+ autoFocus={autoFocus}+ showOutsideDays+ selected={value ?? undefined}+ defaultMonth={value ?? today}+ onSelect={onSelect}+ disabled={disabled}+ weekStartsOn={weekStartsOn}+ modifiers={{ past: { before: today }, limit: marked ?? false }}+ modifiersClassNames={modifiersClassNames}+ classNames={classNames}+ components={{ Chevron }}+ />+ );+}diff --git a/apps/web/src/components/common/date-picker/parse-date-query.test.ts b/apps/web/src/components/common/date-picker/parse-date-query.test.tsnew file mode 100644index 000000000..5226d9504--- /dev/null+++ b/apps/web/src/components/common/date-picker/parse-date-query.test.ts@@ -0,0 +1,39 @@+import { describe, expect, it } from "vite-plus/test";+import { parseDateQuery } from "./parse-date-query";++const now = new Date(2026, 9, 13, 15, 30);+const parse = (query: string) => parseDateQuery(query, now, 1);+const day = (month: number, date: number, year = 2026) =>+ new Date(year, month, date);++describe("parseDateQuery", () => {+ it.each([+ ["today", day(9, 13)],+ ["Tomorrow", day(9, 14)],+ ["tmr", day(9, 14)],+ ["next week", day(9, 19)],+ ["next month", day(10, 13)],+ ["weekend", day(9, 17)],+ ["in 3 days", day(9, 16)],+ ["2w", day(9, 27)],+ ["+1m", day(10, 13)],+ ["fri", day(9, 16)],+ ["next mon", day(9, 19)],+ ["tue", day(9, 20)],+ ["oct 21", day(9, 21)],+ ["21 October", day(9, 21)],+ ["dec 3rd", day(11, 3)],+ ["jan 5", day(0, 5, 2027)],+ ["mar 2 2028", day(2, 2, 2028)],+ ["2026-11-02", day(10, 2)],+ ])("reads %s", (query, expected) => {+ expect(parse(query)).toEqual(expected);+ });++ it.each(["", "t", "soon", "feb 30", "2026-02-31", "ju 4"])(+ "ignores %s",+ (query) => {+ expect(parse(query)).toBeNull();+ },+ );+});diff --git a/apps/web/src/components/common/date-picker/parse-date-query.ts b/apps/web/src/components/common/date-picker/parse-date-query.tsnew file mode 100644index 000000000..c530b51d1--- /dev/null+++ b/apps/web/src/components/common/date-picker/parse-date-query.ts@@ -0,0 +1,122 @@+import {+ addDays,+ addMonths,+ addWeeks,+ addYears,+ type Day,+ nextDay,+ startOfDay,+} from "date-fns";+import { getNextWeek, getThisWeekend } from "./quick-dates";++const WEEKDAYS = [+ "sunday",+ "monday",+ "tuesday",+ "wednesday",+ "thursday",+ "friday",+ "saturday",+];++const MONTHS = [+ "january",+ "february",+ "march",+ "april",+ "may",+ "june",+ "july",+ "august",+ "september",+ "october",+ "november",+ "december",+];++const ADD_UNIT = { d: addDays, w: addWeeks, m: addMonths } as const;++function matchPrefix(word: string, names: string[], minLength: number) {+ if (word.length < minLength) return -1;+ const matches = names.flatMap((name, index) =>+ name.startsWith(word) ? [index] : [],+ );+ return matches.length === 1 ? matches[0] : -1;+}++function dateFromParts(year: number, month: number, day: number) {+ const date = new Date(year, month, day);+ return date.getMonth() === month && date.getDate() === day ? date : null;+}++function parseMonthDay(+ monthName: string,+ day: string,+ year: string | undefined,+ today: Date,+) {+ const month = matchPrefix(monthName, MONTHS, 3);+ if (month < 0) return null;+ const date = dateFromParts(+ year ? Number(year) : today.getFullYear(),+ month,+ Number(day),+ );+ if (!date) return null;+ return !year && date < today ? addYears(date, 1) : date;+}++export function parseDateQuery(+ query: string,+ now: Date,+ weekStartsOn: Day,+): Date | null {+ const text = query.trim().toLowerCase().replace(/\s+/g, " ");+ if (!text) return null;+ const today = startOfDay(now);++ if (["today", "tod", "now"].includes(text)) return today;+ if (["tomorrow", "tmr", "tmrw", "tom"].includes(text)) {+ return addDays(today, 1);+ }+ if (text === "next week") return getNextWeek(today, weekStartsOn);+ if (text === "next month") return addMonths(today, 1);+ if (text === "weekend" || text === "this weekend") {+ return getThisWeekend(today);+ }++ const relative = text.match(+ /^(?:in )?\+?(\d{1,3}) ?(d|days?|w|weeks?|m|months?)$/,+ );+ if (relative) {+ const unit = relative[2][0] as keyof typeof ADD_UNIT;+ return ADD_UNIT[unit](today, Number(relative[1]));+ }++ const weekday = text.match(/^(?:next |this |on )?([a-z]+)$/);+ if (weekday) {+ const index = matchPrefix(weekday[1], WEEKDAYS, 2);+ return index >= 0 ? nextDay(today, index as Day) : null;+ }++ const iso = text.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);+ if (iso) {+ return dateFromParts(Number(iso[1]), Number(iso[2]) - 1, Number(iso[3]));+ }++ const monthFirst = text.match(+ /^([a-z]+)\.? (\d{1,2})(?:st|nd|rd|th)?(?:,? (\d{4}))?$/,+ );+ if (monthFirst) {+ return parseMonthDay(monthFirst[1], monthFirst[2], monthFirst[3], today);+ }++ const dayFirst = text.match(+ /^(\d{1,2})(?:st|nd|rd|th)? ([a-z]+)\.?(?:,? (\d{4}))?$/,+ );+ if (dayFirst) {+ return parseMonthDay(dayFirst[2], dayFirst[1], dayFirst[3], today);+ }++ return null;+}diff --git a/apps/web/src/components/common/date-picker/quick-date-labels.ts b/apps/web/src/components/common/date-picker/quick-date-labels.tsnew file mode 100644index 000000000..76e9b44e9--- /dev/null+++ b/apps/web/src/components/common/date-picker/quick-date-labels.ts@@ -0,0 +1,12 @@+import { formatDate } from "@/lib/format";+import type { QuickDateId } from "./quick-dates";++export const QUICK_DATE_LABEL_KEYS: Record<QuickDateId, string> = {+ today: "tasks:due.today",+ tomorrow: "tasks:due.tomorrow",+ weekend: "tasks:datePicker.thisWeekend",+ "next-week": "tasks:datePicker.nextWeek",+};++export const formatPickerDay = (date: Date) =>+ formatDate(date, { weekday: "short", month: "short", day: "numeric" });diff --git a/apps/web/src/components/common/date-picker/quick-dates.test.ts b/apps/web/src/components/common/date-picker/quick-dates.test.tsnew file mode 100644index 000000000..371b059c3--- /dev/null+++ b/apps/web/src/components/common/date-picker/quick-dates.test.ts@@ -0,0 +1,29 @@+import { describe, expect, it } from "vite-plus/test";+import { getQuickDates } from "./quick-dates";++const ids = (now: Date) => getQuickDates(now, 1).map((item) => item.id);++describe("getQuickDates", () => {+ it("offers every pick midweek", () => {+ expect(getQuickDates(new Date(2026, 9, 13, 9), 1)).toEqual([+ { id: "today", date: new Date(2026, 9, 13) },+ { id: "tomorrow", date: new Date(2026, 9, 14) },+ { id: "weekend", date: new Date(2026, 9, 17) },+ { id: "next-week", date: new Date(2026, 9, 19) },+ ]);+ });++ it("drops picks that land on an earlier one", () => {+ expect(ids(new Date(2026, 9, 16))).toEqual([+ "today",+ "tomorrow",+ "next-week",+ ]);+ expect(ids(new Date(2026, 9, 18))).toEqual(["today", "tomorrow"]);+ });++ it("starts next week on the preferred day", () => {+ const sunday = getQuickDates(new Date(2026, 9, 13), 0).at(-1);+ expect(sunday?.date).toEqual(new Date(2026, 9, 18));+ });+});diff --git a/apps/web/src/components/common/date-picker/quick-dates.ts b/apps/web/src/components/common/date-picker/quick-dates.tsnew file mode 100644index 000000000..9b6cebfaa--- /dev/null+++ b/apps/web/src/components/common/date-picker/quick-dates.ts@@ -0,0 +1,34 @@+import {+ addDays,+ addWeeks,+ type Day,+ isSameDay,+ isWeekend,+ nextSaturday,+ startOfDay,+ startOfWeek,+} from "date-fns";++export type QuickDateId = "today" | "tomorrow" | "weekend" | "next-week";++export function getThisWeekend(today: Date) {+ return isWeekend(today) ? today : nextSaturday(today);+}++export function getNextWeek(today: Date, weekStartsOn: Day) {+ return startOfWeek(addWeeks(today, 1), { weekStartsOn });+}++export function getQuickDates(now: Date, weekStartsOn: Day) {+ const today = startOfDay(now);+ const dates: { id: QuickDateId; date: Date }[] = [+ { id: "today", date: today },+ { id: "tomorrow", date: addDays(today, 1) },+ { id: "weekend", date: getThisWeekend(today) },+ { id: "next-week", date: getNextWeek(today, weekStartsOn) },+ ];+ return dates.filter(+ (item, index) =>+ dates.findIndex((other) => isSameDay(other.date, item.date)) === index,+ );+}diff --git a/apps/web/src/components/common/option-menu/option-menu-item.ts b/apps/web/src/components/common/option-menu/option-menu-item.tsindex 759bd063a..61c34f33d 100644--- a/apps/web/src/components/common/option-menu/option-menu-item.ts+++ b/apps/web/src/components/common/option-menu/option-menu-item.ts@@ -5,4 +5,6 @@ export type OptionMenuItem = {label: string;icon?: ReactNode;selected?: boolean;+ hint?: string;+ pinned?: boolean;};diff --git a/apps/web/src/components/common/option-menu/option-menu.tsx b/apps/web/src/components/common/option-menu/option-menu.tsxindex 1f3cfa81f..1b8fc3740 100644--- a/apps/web/src/components/common/option-menu/option-menu.tsx+++ b/apps/web/src/components/common/option-menu/option-menu.tsx@@ -12,6 +12,7 @@ type OptionMenuProps = {onSelect: (value: string) => void;onQueryChange?: (query: string) => void;status?: ReactNode;+ inputHint?: ReactNode;};export function OptionMenu({@@ -21,12 +22,13 @@ export function OptionMenu({onSelect,onQueryChange,status,+ inputHint,}: OptionMenuProps) {const { t } = useTranslation();const [query, setQuery] = useState("");const needle = query.trim().toLowerCase();- const filtered = options.filter((option) =>- option.label.toLowerCase().includes(needle),+ const filtered = options.filter(+ (option) => option.pinned || option.label.toLowerCase().includes(needle),);const selectByNumber = (key: string) => {@@ -69,15 +71,22 @@ export function OptionMenu({autoHighlight="always"keepHighlight>- <Autocomplete.Input- autoFocus- aria-label={label}- placeholder={placeholder}- onKeyDown={(event) => {- if (selectByNumber(event.key)) event.preventDefault();- }}- className="h-10 w-full border-border/80 border-b bg-transparent px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground"- />+ <div className="flex h-10 items-center border-border/80 border-b">+ <Autocomplete.Input+ autoFocus+ aria-label={label}+ placeholder={placeholder}+ onKeyDown={(event) => {+ if (selectByNumber(event.key)) event.preventDefault();+ }}+ className="h-full min-w-0 flex-1 bg-transparent px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground"+ />+ {inputHint && (+ <span className="shrink-0 pe-3 text-muted-foreground text-xs">+ {inputHint}+ </span>+ )}+ </div>{status ? (<div className="px-3 py-5 text-muted-foreground text-xs">{status}</div>) : (@@ -104,6 +113,11 @@ export function OptionMenu({<span className="min-w-0 flex-1 truncate">{option.label}</span>+ {option.hint && (+ <span className="shrink-0 text-muted-foreground text-xs">+ {option.hint}+ </span>+ )}{option.selected ? (<Checkaria-hidden="true"diff --git a/apps/web/src/components/common/unassigned-avatar.tsx b/apps/web/src/components/common/unassigned-avatar.tsxindex d0d0ca69c..9693f520f 100644--- a/apps/web/src/components/common/unassigned-avatar.tsx+++ b/apps/web/src/components/common/unassigned-avatar.tsx@@ -5,7 +5,7 @@ export function UnassignedAvatar({ className }: { className?: string }) {<spanaria-hidden="true"className={cn(- "flex shrink-0 items-center justify-center rounded-full border border-border bg-muted font-medium text-[9px] text-muted-foreground leading-none",+ "flex shrink-0 items-center justify-center rounded-full border border-avatar-border bg-avatar-unassigned font-medium text-[9px] text-avatar-unassigned-foreground leading-none",className,)}>diff --git a/apps/web/src/components/custom-fields/card-field-chip.tsx b/apps/web/src/components/custom-fields/card-field-chip.tsxindex f7f8160a1..0e3c2251f 100644--- a/apps/web/src/components/custom-fields/card-field-chip.tsx+++ b/apps/web/src/components/custom-fields/card-field-chip.tsx@@ -3,13 +3,12 @@ import {TooltipContent,TooltipTrigger,} from "@/components/ui/tooltip";+import { taskChipClass } from "@/components/task-chips/task-chip-class";import type { CardField } from "./card-fields";import { CheckboxMark } from "./checkbox-mark";-import { CustomFieldTypeIcon } from "./custom-field-type-icon";import { formatCustomFieldValue } from "./format-custom-field-value";-export const cardChipClass =- "inline-flex h-5 min-w-0 shrink-0 items-center gap-1 rounded-[5px] border border-border px-1.5 font-medium text-[11px] text-foreground/85 transition-colors hover:bg-accent";+export const cardChipClass = taskChipClass;export function CardFieldChip({ field }: { field: CardField }) {const display = formatCustomFieldValue(field.type, field.value, "short");@@ -24,12 +23,10 @@ export function CardFieldChip({ field }: { field: CardField }) {</>) : (<>- <CustomFieldTypeIcon- type={field.type}- className="size-3 shrink-0 text-muted-foreground"- />- <span className="sr-only">{field.name}: </span>- <span className="max-w-18 truncate">{display?.text}</span>+ <span className="max-w-24 truncate text-muted-foreground">+ {field.name}+ </span>+ <span className="max-w-24 truncate">{display?.text}</span>{!!display?.more && (<span className="text-muted-foreground">+{display.more}</span>)}diff --git a/apps/web/src/components/custom-fields/card-field-list.test.tsx b/apps/web/src/components/custom-fields/card-field-list.test.tsxindex a101dac41..82a5a3f77 100644--- a/apps/web/src/components/custom-fields/card-field-list.test.tsx+++ b/apps/web/src/components/custom-fields/card-field-list.test.tsx@@ -43,6 +43,12 @@ describe("CardFieldList", () => {expect(screen.queryByRole("button")).toBeNull();});+ it("names each value", () => {+ render(<CardFieldList fields={fields.slice(0, 1)} max={3} />);+ expect(screen.getByText("Story points")).toBeInTheDocument();+ expect(screen.getByText("5")).toBeInTheDocument();+ });+it("renders nothing without fields", () => {const { container } = render(<CardFieldList fields={[]} max={2} />);expect(container).toBeEmptyDOMElement();diff --git a/apps/web/src/components/custom-fields/custom-field-popover.tsx b/apps/web/src/components/custom-fields/custom-field-popover.tsxindex ee89176fd..cd525599c 100644--- a/apps/web/src/components/custom-fields/custom-field-popover.tsx+++ b/apps/web/src/components/custom-fields/custom-field-popover.tsx@@ -5,6 +5,7 @@ import {PopoverContent,PopoverTrigger,} from "@/components/ui/popover";+import { cn } from "@/lib/cn";import { DateFieldEditor } from "./date-field-editor";import { OptionFieldEditor } from "./option-field-editor";import { parseMultiselect } from "./parse-multiselect";@@ -63,7 +64,11 @@ export function CustomFieldPopover({}}><PopoverTrigger asChild>{children}</PopoverTrigger>- <PopoverContent side={side} align="start" className="p-0">+ <PopoverContent+ side={side}+ align="start"+ className={cn("p-0", field.type === "date" && "w-65")}+ >{isText && (<TextFieldEditorfield={field}@@ -77,6 +82,7 @@ export function CustomFieldPopover({)}{field.type === "date" && (<DateFieldEditor+ name={field.name}value={value}required={field.required}onSelect={(next) => {diff --git a/apps/web/src/components/custom-fields/date-field-editor.tsx b/apps/web/src/components/custom-fields/date-field-editor.tsxindex 14e469d82..bfd226172 100644--- a/apps/web/src/components/custom-fields/date-field-editor.tsx+++ b/apps/web/src/components/custom-fields/date-field-editor.tsx@@ -1,63 +1,32 @@import { format, isValid, parseISO } from "date-fns";import { useTranslation } from "react-i18next";-import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";type DateFieldEditorProps = {+ name: string;value: string;required: boolean;onSelect: (value: string) => void;};-const toValue = (date: Date) => format(date, "yyyy-MM-dd");-export function DateFieldEditor({+ name,value,required,onSelect,}: DateFieldEditorProps) {const { t } = useTranslation();- const parsed = value ? parseISO(value) : undefined;- const selected = parsed && isValid(parsed) ? parsed : undefined;+ const parsed = value ? parseISO(value) : null;+ const selected = parsed && isValid(parsed) ? parsed : null;return (- <div>- <Calendar- mode="single"- selected={selected}- defaultMonth={selected}- onSelect={(date) => {- if (date) onSelect(toValue(date));- else if (!required) onSelect("");- }}- className="bg-popover"- />- <div className="flex items-center justify-between border-border/80 border-t px-2 py-1.5">- <Button- type="button"- variant="ghost"- size="xs"- onClick={() => onSelect(toValue(new Date()))}- >- {t("tasks:customFields.today")}- </Button>- {required ? (- <span className="px-2 text-muted-foreground text-xs">- {t("tasks:customFields.required")}- </span>- ) : (- <Button- type="button"- variant="ghost"- size="xs"- disabled={!value}- onClick={() => onSelect("")}- className="text-muted-foreground"- >- {t("tasks:customFields.clear")}- </Button>- )}- </div>- </div>+ <DatePickerMenu+ label={name}+ placeholder={t("tasks:datePicker.datePlaceholder")}+ clearLabel={t("tasks:customFields.clear")}+ value={selected}+ onChange={(date) => onSelect(date ? format(date, "yyyy-MM-dd") : "")}+ canClear={!required && selected !== null}+ />);}diff --git a/apps/web/src/components/kanban-board/column/column-dropzone.tsx b/apps/web/src/components/kanban-board/column/column-dropzone.tsxindex be1273627..fbeb24b54 100644--- a/apps/web/src/components/kanban-board/column/column-dropzone.tsx+++ b/apps/web/src/components/kanban-board/column/column-dropzone.tsx@@ -38,7 +38,7 @@ export function ColumnDropzone({items={column.tasks}strategy={disableSorting ? keepOrder : verticalListSortingStrategy}>- <div className="flex flex-col gap-2">+ <div className="flex flex-col gap-1.5"><AnimatePresence initial={false} mode="popLayout">{column.tasks.map((task) => (<motion.divdiff --git a/apps/web/src/components/kanban-board/column/column-header.tsx b/apps/web/src/components/kanban-board/column/column-header.tsxindex 6ee3ad1bd..94c68598f 100644--- a/apps/web/src/components/kanban-board/column/column-header.tsx+++ b/apps/web/src/components/kanban-board/column/column-header.tsx@@ -57,15 +57,15 @@ export function ColumnHeader({};return (- <div className="flex items-center justify-between gap-2">+ <div className="flex h-8 items-center justify-between gap-2"><div className="flex min-w-0 items-center gap-2">- <span className="text-muted-foreground">+ <span className="text-chip-icon">{getColumnIcon(column.id, column.isFinal, column.icon)}</span>- <span className="truncate text-sm font-medium text-foreground/95">+ <span className="truncate font-medium text-[13px] text-board-title leading-5">{column.name}</span>- <span className="rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground">+ <span className="text-board-id text-xs tabular-nums">{column.tasks.length}</span></div>@@ -76,21 +76,21 @@ export function ColumnHeader({type="button"disabled={disableCollectionActions}onClick={() => setIsArchiveModalOpen(true)}- className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-colors hover:bg-accent/50"+ className="flex size-6 cursor-pointer items-center justify-center rounded-md text-chip-icon transition-colors hover:bg-chip-hover hover:text-board-title"title={t("tasks:listView.archiveAllTooltip")}aria-label={t("tasks:listView.archiveAllTooltip")}>- <Archive className="w-4 h-4 text-muted-foreground" />+ <Archive className="size-3.5" /></button>)}{canCreate && (<buttontype="button"onClick={() => setIsTaskModalOpen(true)}- className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-colors hover:bg-accent/50"+ className="flex size-6 cursor-pointer items-center justify-center rounded-md text-chip-icon transition-colors hover:bg-chip-hover hover:text-board-title"title={t("tasks:kanban.addTask")}>- <Plus className="w-4 h-4 text-muted-foreground" />+ <Plus className="size-3.5" /></button>)}</div>diff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsxindex e1bd51449..052280f84 100644--- a/apps/web/src/components/kanban-board/column/index.tsx+++ b/apps/web/src/components/kanban-board/column/index.tsx@@ -25,8 +25,8 @@ export const columnVariants = cva(},variants: {isDropzoneOver: {- true: "shadow-md",- false: "border-border/70 hover:border-border/90",+ true: "",+ false: "",},backgroundImage: {true: "before:content-[''] before:absolute before:inset-0 before:rounded-[calc(var(--radius-xl)-1px)] before:pointer-events-none",@@ -37,22 +37,24 @@ export const columnVariants = cva({isDropzoneOver: false,backgroundImage: false,- class: "border bg-muted/40 shadow-xs/5 dark:bg-card/90",+ class: "bg-board-lane",},{isDropzoneOver: true,backgroundImage: false,- class: "border bg-accent/60 border-ring/40 ring-2 ring-ring/30",+ class: "bg-board-lane ring-2 ring-board-card-ring",},{isDropzoneOver: false,backgroundImage: true,- class: "bg-background before:bg-muted before:dark:bg-card shadow-md",+ class:+ "border border-border/70 bg-background shadow-md before:bg-muted before:dark:bg-card",},{isDropzoneOver: true,backgroundImage: true,- class: "bg-background ring-2 ring-focus/60 before:bg-accent/60",+ class:+ "border border-border/70 bg-background ring-2 ring-focus/60 before:bg-accent/60",},],},@@ -80,13 +82,13 @@ function Column({backgroundImage: !!background,})}>- <div className="shrink-0 border-b border-border/60 px-3 py-2">+ <div className="shrink-0 pt-1 pr-2 pl-3"><ColumnHeadercolumn={column}disableCollectionActions={disableCollectionActions}/></div>- <div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden p-2 [-webkit-overflow-scrolling:touch]">+ <div className="min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-1.5 pt-1.5 pb-1.5 [-webkit-overflow-scrolling:touch]"><ColumnDropzonecolumn={column}activeTaskId={activeTaskId}diff --git a/apps/web/src/components/kanban-board/task-card-context-menu/due-date-submenu.tsx b/apps/web/src/components/kanban-board/task-card-context-menu/due-date-submenu.tsxnew file mode 100644index 000000000..450416ed6--- /dev/null+++ b/apps/web/src/components/kanban-board/task-card-context-menu/due-date-submenu.tsx@@ -0,0 +1,108 @@+import { isBefore, isSameDay, startOfDay } from "date-fns";+import { Calendar, CalendarDays, X } from "lucide-react";+import { useTranslation } from "react-i18next";+import { MonthGrid } from "@/components/common/date-picker/month-grid";+import {+ formatPickerDay,+ QUICK_DATE_LABEL_KEYS,+} from "@/components/common/date-picker/quick-date-labels";+import { getQuickDates } from "@/components/common/date-picker/quick-dates";+import {+ ContextMenuCheckboxItem,+ ContextMenuItem,+ ContextMenuSeparator,+ ContextMenuSub,+ ContextMenuSubContent,+ ContextMenuSubTrigger,+} from "@/components/ui/context-menu";+import { useUpdateTaskDueDate } from "@/hooks/mutations/task/use-update-task-due-date";+import { toast } from "@/lib/toast";+import { useUserPreferencesStore } from "@/store/user-preferences";+import type Task from "@/types/task";++export function DueDateSubmenu({ task }: { task: Task }) {+ const { t } = useTranslation();+ const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);+ const { mutateAsync: updateTaskDueDate } = useUpdateTaskDueDate();+ const value = task.dueDate ? new Date(task.dueDate) : null;+ const start = task.startDate ? new Date(task.startDate) : undefined;+ const quickDates = getQuickDates(new Date(), weekStartsOn).filter(+ (item) => !start || !isBefore(item.date, startOfDay(start)),+ );++ const setDueDate = async (date: Date | null) => {+ try {+ await updateTaskDueDate({+ ...task,+ dueDate: date?.toISOString() ?? null,+ });+ } catch (error) {+ toast.error(+ error instanceof Error ? error.message : t("tasks:dueDate.updateError"),+ );+ }+ };++ return (+ <ContextMenuSub>+ <ContextMenuSubTrigger>+ <Calendar className="size-3.5 text-muted-foreground" />+ <span>{t("tasks:dueDate.label")}</span>+ </ContextMenuSubTrigger>+ <ContextMenuSubContent className="w-60">+ {quickDates.map((item) => (+ <ContextMenuCheckboxItem+ key={item.id}+ checked={value ? isSameDay(value, item.date) : false}+ onCheckedChange={() => setDueDate(item.date)}+ closeOnClick+ >+ <Calendar className="size-3.5 text-muted-foreground" />+ <span className="flex-1 whitespace-nowrap">+ {t(QUICK_DATE_LABEL_KEYS[item.id])}+ </span>+ <span className="whitespace-nowrap text-muted-foreground text-xs">+ {formatPickerDay(item.date)}+ </span>+ </ContextMenuCheckboxItem>+ ))}+ <ContextMenuSeparator />+ <ContextMenuSub>+ <ContextMenuSubTrigger inset>+ <CalendarDays className="size-3.5 text-muted-foreground" />+ <span>{t("tasks:datePicker.pickDate")}</span>+ </ContextMenuSubTrigger>+ <ContextMenuSubContent className="w-65 p-0">+ <MonthGrid+ value={value}+ onSelect={setDueDate}+ disabled={start ? [{ before: start }] : []}+ marked={start}+ autoFocus={false}+ />+ </ContextMenuSubContent>+ </ContextMenuSub>+ {value && (+ <ContextMenuItem+ inset+ className="[&>svg]:mx-0"+ onClick={() => setDueDate(null)}+ >+ <X className="size-3.5 text-muted-foreground" />+ <span>{t("tasks:dueDate.clear")}</span>+ </ContextMenuItem>+ )}+ {start && (+ <>+ <ContextMenuSeparator />+ <p className="py-1.5 ps-8 pe-2 text-muted-foreground text-xs">+ {t("tasks:datePicker.startsOn", {+ date: formatPickerDay(start),+ })}+ </p>+ </>+ )}+ </ContextMenuSubContent>+ </ContextMenuSub>+ );+}diff --git a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.test.tsx b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.test.tsxindex 111e7dbd6..638ad8fe7 100644--- a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.test.tsx+++ b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.test.tsx@@ -129,6 +129,7 @@ vi.mock("react-i18next", () => ({t: (key: string, options?: { title?: string }) =>options?.title ? `${key}|${options.title}` : key,}),+ initReactI18next: { type: "3rdParty", init: vi.fn() },}));const task = {diff --git a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsxindex 9042aff53..864560e20 100644--- a/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx+++ b/apps/web/src/components/kanban-board/task-card-context-menu/task-card-context-menu-content.tsx@@ -1,9 +1,16 @@import { useQueryClient } from "@tanstack/react-query";-import { X, LinkIcon } from "lucide-react";+import {+ Archive,+ CircleDot,+ Clock,+ Copy,+ LinkIcon,+ Trash2,+ UserRound,+} from "lucide-react";import { useMemo } from "react";import { useTranslation } from "react-i18next";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";-import { Calendar } from "@/components/ui/calendar";import {ContextMenuCheckboxItem,ContextMenuContent,@@ -17,7 +24,6 @@ import { useDuplicateTask } from "@/hooks/mutations/task/use-duplicate-task";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useUpdateTaskAssignee } from "@/hooks/mutations/task/use-update-task-assignee";import { useUpdateTaskDescription } from "@/hooks/mutations/task/use-update-task-description";-import { useUpdateTaskDueDate } from "@/hooks/mutations/task/use-update-task-due-date";import { useUpdateTaskStatus } from "@/hooks/mutations/task/use-update-task-status";import { useUpdateTaskPriority } from "@/hooks/mutations/task/use-update-task-status-priority";import { useUpdateTaskTitle } from "@/hooks/mutations/task/use-update-task-title";@@ -34,6 +40,8 @@ import { getTaskPath } from "@/lib/task-link";import { toast } from "@/lib/toast";import useProjectStore from "@/store/project";import type Task from "@/types/task";+import { PriorityGlyph } from "@/components/task-chips/priority-glyph";+import { DueDateSubmenu } from "./due-date-submenu";type TaskCardContext = {worskpaceId: string;@@ -80,7 +88,6 @@ export default function TaskCardContextMenuContent({const { mutateAsync: updateTaskAssignee } = useUpdateTaskAssignee();const { mutateAsync: updateTaskTitle } = useUpdateTaskTitle();const { mutateAsync: updateTaskDescription } = useUpdateTaskDescription();- const { mutateAsync: updateTaskDueDate } = useUpdateTaskDueDate();const { mutate: duplicateTask } = useDuplicateTask();const { canCreateTasks, canUpdateTasks, canDeleteTasks, canAssignTasks } =useWorkspacePermission();@@ -162,7 +169,8 @@ export default function TaskCardContextMenuContent({return (<ContextMenuContent className="w-46">- <ContextMenuItem onClick={handleCopyTaskLink}>+ <ContextMenuItem className="[&>svg]:mx-0" onClick={handleCopyTaskLink}>+ <LinkIcon className="size-3.5 text-muted-foreground" /><span>{t("tasks:contextMenu.copyLink")}</span></ContextMenuItem>@@ -170,7 +178,8 @@ export default function TaskCardContextMenuContent({{canEdit && (<ContextMenuSub>- <ContextMenuSubTrigger className="gap-2">+ <ContextMenuSubTrigger>+ <PriorityGlyph priority="high" /><span>{t("tasks:priority.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48">@@ -203,6 +212,7 @@ export default function TaskCardContextMenuContent({{canEdit && (<ContextMenuSub><ContextMenuSubTrigger>+ <CircleDot className="size-3.5 text-muted-foreground" /><span>{t("tasks:status.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48">@@ -222,65 +232,12 @@ export default function TaskCardContextMenuContent({</ContextMenuSub>)}- {canEdit && (- <ContextMenuSub>- <ContextMenuSubTrigger>- <span>{t("tasks:dueDate.label")}</span>- </ContextMenuSubTrigger>- <ContextMenuSubContent className="w-fit min-w-0 p-0">- <div className="p-2">- <Calendar- mode="single"- selected={task.dueDate ? new Date(task.dueDate) : undefined}- onSelect={async (date) => {- try {- await updateTaskDueDate({- ...task,- dueDate: date?.toISOString() || null,- });- } catch (error) {- toast.error(- error instanceof Error- ? error.message- : t("tasks:dueDate.updateError"),- );- }- }}- className="w-full bg-popover!"- />- </div>- {task.dueDate && (- <>- <ContextMenuSeparator />- <ContextMenuItem- className="gap-2 text-muted-foreground"- onClick={async () => {- try {- await updateTaskDueDate({- ...task,- dueDate: null,- });- } catch (error) {- toast.error(- error instanceof Error- ? error.message- : t("tasks:dueDate.clearError"),- );- }- }}- >- <X className="h-4 w-4" />- <span>{t("tasks:dueDate.clear")}</span>- </ContextMenuItem>- </>- )}- </ContextMenuSubContent>- </ContextMenuSub>- )}+ {canEdit && <DueDateSubmenu task={task} />}{canAssign && usersOptions && (<ContextMenuSub><ContextMenuSubTrigger>+ <UserRound className="size-3.5 text-muted-foreground" /><span>{t("tasks:assignee.label")}</span></ContextMenuSubTrigger><ContextMenuSubContent className="w-48">@@ -327,7 +284,11 @@ export default function TaskCardContextMenuContent({<ContextMenuSeparator />{canCreate && (- <ContextMenuItem onClick={handleDuplicateTask}>+ <ContextMenuItem+ className="[&>svg]:mx-0"+ onClick={handleDuplicateTask}+ >+ <Copy className="size-3.5 text-muted-foreground" /><span>{t("tasks:actions.duplicate")}</span></ContextMenuItem>)}@@ -335,14 +296,18 @@ export default function TaskCardContextMenuContent({{canEdit && (<><ContextMenuItem+ className="[&>svg]:mx-0"onClick={() => handleChange("status", "archived")}>+ <Archive className="size-3.5 text-muted-foreground" /><span>{t("tasks:actions.archive")}</span></ContextMenuItem>{task.status !== "planned" && (<ContextMenuItem+ className="[&>svg]:mx-0"onClick={() => handleChange("status", "planned")}>+ <Clock className="size-3.5 text-muted-foreground" /><span>{t("tasks:actions.markAsPlanned")}</span></ContextMenuItem>)}@@ -356,7 +321,7 @@ export default function TaskCardContextMenuContent({<ContextMenuSeparator /><ContextMenuItem- className="text-destructive"+ className="text-destructive [&>svg]:mx-0"onClick={(e) => {e.preventDefault();setTimeout(() => {@@ -364,6 +329,7 @@ export default function TaskCardContextMenuContent({}, 0);}}>+ <Trash2 className="size-3.5" /><span>{t("tasks:actions.delete")}</span></ContextMenuItem></>diff --git a/apps/web/src/components/kanban-board/task-card.test.tsx b/apps/web/src/components/kanban-board/task-card.test.tsxindex 2d751999b..9eb7e32cc 100644--- a/apps/web/src/components/kanban-board/task-card.test.tsx+++ b/apps/web/src/components/kanban-board/task-card.test.tsx@@ -1,4 +1,6 @@+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { cleanup, render, screen } from "@testing-library/react";+import type { ReactNode } from "react";import { afterEach, expect, it, vi } from "vite-plus/test";import type Task from "@/types/task";import TaskCard from "./task-card";@@ -65,6 +67,12 @@ vi.mock("./task-card-context-menu/task-card-context-menu-content", () => ({}));afterEach(cleanup);++const queryClient = new QueryClient();+const wrapper = ({ children }: { children: ReactNode }) => (+ <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>+);+it("keeps details in the rendered open column despite a final column sharing its slug", () => {const task: Task = {id: "task",@@ -83,7 +91,9 @@ it("keeps details in the rendered open column despite a final column sharing itsassigneeName: null,labels: [{ id: "label", name: "Regression label", color: "red" }],};- const view = render(<TaskCard task={task} isFinalColumn={false} />);+ const view = render(<TaskCard task={task} isFinalColumn={false} />, {+ wrapper,+ });expect(screen.getByText("Regression label")).toBeVisible();view.rerender(<TaskCard task={task} isFinalColumn />);expect(screen.queryByText("Regression label")).not.toBeInTheDocument();diff --git a/apps/web/src/components/kanban-board/task-card/index.tsx b/apps/web/src/components/kanban-board/task-card/index.tsxindex bf1f334a3..9d67dc504 100644--- a/apps/web/src/components/kanban-board/task-card/index.tsx+++ b/apps/web/src/components/kanban-board/task-card/index.tsx@@ -7,6 +7,7 @@ import type Task from "@/types/task";import TaskCardContent from "./task-card-content";import { useTaskCardClick } from "./use-task-card-click";import { EASE_OUT_CSS } from "@/lib/motion";+import { isKeyboardFocus } from "@/lib/is-keyboard-focus";type TaskCardProps = {task: Task;@@ -56,7 +57,10 @@ function TaskCard({role="button"tabIndex={0}onKeyDown={handleKeyDown}- onFocus={() => setFocusedTask(task.id)}+ onFocus={(event) => {+ if (event.target !== event.currentTarget) return;+ setFocusedTask(isKeyboardFocus(event) ? task.id : null);+ }}className="outline-none"><TaskCardContentdiff --git a/apps/web/src/components/kanban-board/task-card/task-card-content.tsx b/apps/web/src/components/kanban-board/task-card/task-card-content.tsxindex a4fb24b3e..cfdde5e14 100644--- a/apps/web/src/components/kanban-board/task-card/task-card-content.tsx+++ b/apps/web/src/components/kanban-board/task-card/task-card-content.tsx@@ -1,8 +1,6 @@-import { format } from "date-fns";-import { Calendar, CalendarClock, CalendarX, Trash2Icon } from "lucide-react";+import { Trash2Icon } from "lucide-react";import { memo, useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import { TaskProgressBadges } from "@/components/task/task-progress-badges";import { TaskPullRequests } from "@/components/task/task-pull-requests";import {AlertDialog,@@ -13,39 +11,31 @@ import {AlertDialogHeader,AlertDialogTitle,} from "@/components/ui/alert-dialog";-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";import { ContextMenu, ContextMenuTrigger } from "@/components/ui/context-menu";import { CardFieldList } from "@/components/custom-fields/card-field-list";+import { CheckboxMark } from "@/components/custom-fields/checkbox-mark";+import { AssigneeButton } from "@/components/task-chips/assignee-button";+import { ChecklistChip } from "@/components/task-chips/checklist-chip";+import { DueDateChip } from "@/components/task-chips/due-date-chip";+import { LabelChips } from "@/components/task-chips/label-chips";+import { PriorityChip } from "@/components/task-chips/priority-chip";+import { SubtasksChip } from "@/components/task-chips/subtasks-chip";+import { taskChipClass } from "@/components/task-chips/task-chip-class";import { useTaskCardFields } from "@/components/custom-fields/use-task-card-fields";import { useDeleteTask } from "@/hooks/mutations/task/use-delete-task";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { cn } from "@/lib/cn";-import {- type DueDateStatus,- getDueDateStatus,- isTaskCompleted,-} from "@/lib/due-date-status";-import { getInitials } from "@/lib/get-initials";-import { getPriorityLabel } from "@/lib/i18n/domain";-import { getPriorityIcon } from "@/lib/priority";+import { isTaskCompleted } from "@/lib/due-date-status";import { toast } from "@/lib/toast";import useBulkSelectionStore from "@/store/bulk-selection";import useProjectStore from "@/store/project";import { useUserPreferencesStore } from "@/store/user-preferences";import type Task from "@/types/task";import TaskCardContextMenuContent from "../task-card-context-menu/task-card-context-menu-content";-import { TaskLabels } from "../task-labels";import { useTaskCardClick } from "./use-task-card-click";-const dueDateTextColors: Record<DueDateStatus, string> = {- overdue: "text-destructive-foreground",- "due-soon": "text-warning-foreground",- "far-future": "text-muted-foreground",- "no-due-date": "text-muted-foreground",-};-type TaskCardContentProps = {task: Task;disableDragDrop: boolean;@@ -63,10 +53,9 @@ function TaskCardContent({const { project } = useProjectStore();const taskIsCompleted =isFinalColumn ?? isTaskCompleted(task.status, project?.columns);- const dueDateStatus = getDueDateStatus(task.dueDate, taskIsCompleted);- const isOverdue = dueDateStatus === "overdue";const hasPriority = Boolean(task.priority) && task.priority !== "no-priority";const { data: workspace } = useActiveWorkspace();+ const workspaceId = workspace?.id ?? "";const { mutateAsync: deleteTask } = useDeleteTask();const {showAssignees,@@ -74,7 +63,9 @@ function TaskCardContent({showDueDates,showLabels,showTaskNumbers,+ showTaskItemCounts,} = useUserPreferencesStore();+const [isDeleteTaskModalOpen, setIsDeleteTaskModalOpen] = useState<boolean | null>(null);@@ -85,12 +76,11 @@ function TaskCardContent({const isTaskFocused = useBulkSelectionStore((state) => state.focusedTaskId === task.id,);+ const showIdRow = showTaskNumbers || showAssignees || isTaskSelected;const cardFields = useTaskCardFields(task.projectId, task.id);- const { data: workspaceUsers } = useGetActiveWorkspaceUsers(- workspace?.id ?? "",- );+ const { data: workspaceUsers } = useGetActiveWorkspaceUsers(workspaceId);const assignee = useMemo(() => {return workspaceUsers?.members?.find(@@ -123,125 +113,86 @@ function TaskCardContent({<divonClick={handleClick}className={cn(- "group relative rounded-lg border p-3 transition-[background-color,border-color,box-shadow,scale] duration-150 ease-out active:scale-[0.98]",+ "group relative flex flex-col rounded-[10px] border p-3 transition-[background-color,border-color,box-shadow,scale] duration-150 ease-out [&:active:not(:has(:is(button,a):active))]:scale-[0.98]",disableDragDrop ? "cursor-default" : "cursor-move",- // Finished work steps back so open cards draw the eye.taskIsCompleted- ? "bg-background/60"- : "bg-background shadow-xs/5",+ ? "border-board-card-done-border bg-board-card-done"+ : "border-board-card-border bg-board-card shadow-board-card",isDragging- ? "border-ring/40 bg-card shadow-lg"- : "hover:bg-background hover:shadow-sm",- isTaskSelected- ? "border-ring/40 bg-accent/50 shadow-sm ring-1 ring-inset ring-ring/30"- : isOverdue- ? "border-destructive/70 ring-[3px] ring-destructive/10"- : "border-border hover:border-border/90",- isTaskFocused && "outline-2 -outline-offset-2 outline-ring/50",+ ? "border-board-card-border-hover bg-board-card shadow-[0_8px_24px_rgb(0_0_0/0.12)]"+ : !isTaskFocused && "hover:border-board-card-border-hover",+ isTaskSelected &&+ "border-board-card-selected-border bg-board-card-selected",+ isTaskFocused && "border-board-card-focus",)}>- {showTaskNumbers && (- <div className="mb-2 font-medium text-[11px] text-muted-foreground/90">- {project?.slug}-{task.number}- </div>- )}-- {showAssignees && (- <div className="absolute top-3 right-3">- {task.userId ? (- <Avatar className="h-5 w-5">- <AvatarImage- src={assignee?.user?.image ?? ""}- alt={assignee?.user?.name || ""}- />- <AvatarFallback className="text-xs font-medium border border-border/30">- {getInitials(assignee?.user?.name)}- </AvatarFallback>- </Avatar>- ) : (- <div- className="flex h-5 w-5 items-center justify-center rounded-full border border-border bg-muted"- title={t("tasks:assignee.unassigned")}- >- <span className="text-[10px] font-medium text-muted-foreground">- ?+ {showIdRow && (+ <div className="flex h-4.5 items-center justify-between gap-2">+ <div className="flex min-w-0 items-center gap-1.5">+ {isTaskSelected && (+ <CheckboxMark checked className="size-3.5 shrink-0" />+ )}+ {showTaskNumbers && (+ <span+ className={cn(+ "truncate font-mono text-[11px] leading-3.5",+ taskIsCompleted+ ? "text-board-id-done"+ : "text-board-id",+ )}+ >+ {project?.slug}-{task.number}</span>- </div>- )}- </div>- )}-- <div className={cn("pr-6", !taskIsCompleted && "mb-2.5")}>- <div- className={cn(- "overflow-hidden break-words leading-5 font-medium text-[15px]",- taskIsCompleted- ? "text-muted-foreground"- : "text-foreground/95",+ )}+ </div>+ {showAssignees && (+ <AssigneeButton+ task={task}+ workspaceId={workspaceId}+ name={assignee?.user?.name ?? task.assigneeName}+ image={assignee?.user?.image}+ avatarFallbackClassName={cn(+ isTaskSelected && "bg-avatar-selected",+ taskIsCompleted &&+ "bg-avatar-done text-avatar-foreground-done",+ )}+ />)}- style={{- display: "-webkit-box",- WebkitLineClamp: 3,- WebkitBoxOrient: "vertical",- wordBreak: "break-word",- hyphens: "auto",- }}- >- {task.title}- </div>- </div>-- {!taskIsCompleted && showLabels && Boolean(task.labels?.length) && (- <div className="mb-2.5">- <TaskLabels labels={task.labels ?? []} /></div>)}- {!taskIsCompleted && (- <CardFieldList fields={cardFields} max={2} className="mb-2.5" />- )}-<divclassName={cn(- "flex flex-wrap items-center gap-x-2.5 gap-y-1.5 empty:hidden",- taskIsCompleted && "hidden",+ "line-clamp-3 break-words text-[13px] leading-[18px]",+ showIdRow && "mt-1",+ taskIsCompleted+ ? "text-board-title-done"+ : "font-medium text-board-title",)}>- {showPriority && hasPriority && (- <span- className="inline-flex h-5.5 items-center"- title={getPriorityLabel(task.priority ?? "")}- >- {getPriorityIcon(task.priority ?? "")}- </span>- )}-- <TaskProgressBadges task={task} />-- {showDueDates && task.dueDate && (- <div- className={cn(- "flex h-5.5 items-center gap-1 text-[10px]",- isOverdue && "font-medium",- dueDateTextColors[dueDateStatus],- )}- >- {dueDateStatus === "overdue" && (- <CalendarX className="w-3 h-3" />- )}- {dueDateStatus === "due-soon" && (- <CalendarClock className="w-3 h-3" />- )}- {(dueDateStatus === "far-future" ||- dueDateStatus === "no-due-date") && (- <Calendar className="w-3 h-3" />- )}- <span>{format(new Date(task.dueDate), "MMM d")}</span>- </div>- )}-- <TaskPullRequests externalLinks={task.externalLinks} />+ {task.title}</div>++ {!taskIsCompleted && (+ <div className="mt-2.5 flex flex-wrap items-center gap-1 empty:hidden">+ {showPriority && hasPriority && <PriorityChip task={task} />}+ {showDueDates && <DueDateChip task={task} />}+ <SubtasksChip task={task} workspaceId={workspaceId} />+ {showTaskItemCounts && <ChecklistChip task={task} />}+ <TaskPullRequests+ externalLinks={task.externalLinks}+ className={cn(taskChipClass, "bg-transparent font-normal")}+ />+ {showLabels && (+ <LabelChips task={task} workspaceId={workspaceId} />+ )}+ <CardFieldList+ fields={cardFields}+ max={2}+ className="contents"+ />+ </div>+ )}</div></ContextMenuTrigger>diff --git a/apps/web/src/components/kanban-board/task-card/use-task-card-click.ts b/apps/web/src/components/kanban-board/task-card/use-task-card-click.tsindex 09908ba4d..93090ac5c 100644--- a/apps/web/src/components/kanban-board/task-card/use-task-card-click.ts+++ b/apps/web/src/components/kanban-board/task-card/use-task-card-click.ts@@ -1,5 +1,6 @@import { useNavigate } from "@tanstack/react-router";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";+import { isOwnDomEvent } from "@/lib/is-own-dom-event";import useBulkSelectionStore from "@/store/bulk-selection";import useProjectStore from "@/store/project";import type Task from "@/types/task";@@ -17,7 +18,7 @@ export function useTaskCardClick(task: Task) {);function handleClick(e: React.MouseEvent<HTMLDivElement>) {- if (!project || !task || !workspace) return;+ if (!project || !task || !workspace || !isOwnDomEvent(e)) return;if (e.shiftKey) {e.preventDefault();diff --git a/apps/web/src/components/list-view/task-row-body.tsx b/apps/web/src/components/list-view/task-row-body.tsxnew file mode 100644index 000000000..9be7fc547--- /dev/null+++ b/apps/web/src/components/list-view/task-row-body.tsx@@ -0,0 +1,123 @@+import { useTranslation } from "react-i18next";+import { CardFieldList } from "@/components/custom-fields/card-field-list";+import { useTaskCardFields } from "@/components/custom-fields/use-task-card-fields";+import TaskPriorityPopover from "@/components/task/task-priority-popover";+import { TaskPullRequests } from "@/components/task/task-pull-requests";+import { AssigneeButton } from "@/components/task-chips/assignee-button";+import { ChecklistChip } from "@/components/task-chips/checklist-chip";+import { DueDateChip } from "@/components/task-chips/due-date-chip";+import { LabelChips } from "@/components/task-chips/label-chips";+import { stopCardEvents } from "@/components/task-chips/stop-card-events";+import { SubtasksChip } from "@/components/task-chips/subtasks-chip";+import { cn } from "@/lib/cn";+import { getPriorityLabel } from "@/lib/i18n/domain";+import { getPriorityIcon } from "@/lib/priority";+import { useUserPreferencesStore } from "@/store/user-preferences";+import type Task from "@/types/task";++const inlineMetaClass =+ "h-5 gap-1 border-transparent bg-transparent px-1 font-normal text-muted-foreground hover:border-transparent hover:text-foreground data-popup-open:border-transparent";++const rowButtonClass =+ "flex shrink-0 cursor-pointer items-center rounded-md outline-none transition-colors hover:bg-accent focus-visible:ring-[3px] focus-visible:ring-ring/25 data-popup-open:bg-accent";++type TaskRowBodyProps = {+ task: Task;+ projectSlug: string | undefined;+ workspaceId: string;+ isCompleted: boolean;+ assigneeName: string | null | undefined;+ assigneeImage: string | null | undefined;+ showPullRequests?: boolean;+};++export function TaskRowBody({+ task,+ projectSlug,+ workspaceId,+ isCompleted,+ assigneeName,+ assigneeImage,+ showPullRequests = true,+}: TaskRowBodyProps) {+ const { t } = useTranslation();+ const {+ showAssignees,+ showPriority,+ showDueDates,+ showLabels,+ showTaskNumbers,+ showTaskItemCounts,+ } = useUserPreferencesStore();+ const cardFields = useTaskCardFields(task.projectId, task.id);+ const priorityLabel = `${t("tasks:priority.label")}: ${getPriorityLabel(task.priority ?? "")}`;++ return (+ <>+ {showPriority && (+ <TaskPriorityPopover task={task}>+ <button+ type="button"+ aria-label={priorityLabel}+ title={priorityLabel}+ className={cn(+ rowButtonClass,+ "size-5.5 justify-center [&_svg]:size-3.5",+ )}+ {...stopCardEvents}+ >+ {getPriorityIcon(task.priority ?? "")}+ </button>+ </TaskPriorityPopover>+ )}+ {showTaskNumbers && (+ <span className="w-13 shrink-0 truncate font-mono text-muted-foreground text-xs">+ {projectSlug}-{task.number}+ </span>+ )}++ <div className="flex min-w-0 flex-1 items-center gap-2">+ <span className="truncate text-foreground text-sm">{task.title}</span>+ <div className="flex shrink-0 items-center gap-0.5">+ <SubtasksChip+ task={task}+ workspaceId={workspaceId}+ className={inlineMetaClass}+ />+ {showTaskItemCounts && (+ <ChecklistChip task={task} className={inlineMetaClass} />+ )}+ {showPullRequests && (+ <TaskPullRequests+ externalLinks={task.externalLinks}+ className={cn(inlineMetaClass, "rounded-md")}+ />+ )}+ </div>+ </div>++ <div className="flex shrink-0 items-center justify-end gap-1">+ <CardFieldList fields={cardFields} max={3} />+ {showLabels && (+ <LabelChips task={task} workspaceId={workspaceId} max={2} />+ )}+ </div>++ {showDueDates && (+ <div className="flex w-24 shrink-0 justify-end">+ <DueDateChip task={task} isCompleted={isCompleted} />+ </div>+ )}++ {showAssignees && (+ <AssigneeButton+ task={task}+ workspaceId={workspaceId}+ name={assigneeName}+ image={assigneeImage}+ avatarClassName="size-5.5 text-[9px]"+ />+ )}+ </>+ );+}diff --git a/apps/web/src/components/list-view/task-row.test.tsx b/apps/web/src/components/list-view/task-row.test.tsxindex 843305ba9..71ab0579a 100644--- a/apps/web/src/components/list-view/task-row.test.tsx+++ b/apps/web/src/components/list-view/task-row.test.tsx@@ -1,5 +1,13 @@import { DndContext, KeyboardSensor } from "@dnd-kit/core";-import { cleanup, fireEvent, render, screen } from "@testing-library/react";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import {+ act,+ cleanup,+ fireEvent,+ render as renderWithoutClient,+ screen,+} from "@testing-library/react";+import type { ReactElement, ReactNode } from "react";import {afterEach,beforeEach,@@ -16,6 +24,16 @@ import { PublicTaskCard } from "../public-project/task-card";import { PublicTaskRow } from "../public-project/task-row";import TaskRow from "./task-row";+const testQueryClient = new QueryClient();+const render = (ui: ReactElement) =>+ renderWithoutClient(ui, {+ wrapper: ({ children }: { children: ReactNode }) => (+ <QueryClientProvider client={testQueryClient}>+ {children}+ </QueryClientProvider>+ ),+ });+const useExternalLinks = vi.fn((_taskId: string) => ({ data: [] }));const useGetLabelsByTask = vi.fn((_taskId: string) => ({ data: [] }));const { navigate } = vi.hoisted(() => ({@@ -187,7 +205,8 @@ describe("TaskRow", () => {);const row = screen.getByRole("button", { name: /Row from payload/ });- fireEvent.focus(row);+ fireEvent.keyDown(document, { key: "Tab" });+ act(() => row.focus());expect(useBulkSelectionStore.getState().focusedTaskId).toBe(task.id);expect(row).toHaveAttribute("data-task-id", task.id);@@ -195,6 +214,24 @@ describe("TaskRow", () => {},);+ it.each(["board", "list"])(+ "leaves keyboard focus off on pointer focus in the %s view",+ (view) => {+ useBulkSelectionStore.getState().setFocusedTask("other-task");+ render(+ view === "board" ? (+ <TaskCard task={task} />+ ) : (+ <TaskRow task={task} projectSlug="kan" />+ ),+ );++ fireEvent.focus(screen.getByRole("button", { name: /Row from payload/ }));++ expect(useBulkSelectionStore.getState().focusedTaskId).toBeNull();+ },+ );+it.each(["board", "list"])("selects a visible range with Shift+click and preserves Ctrl/Cmd toggling in the %s view",(view) => {diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsxindex cf65d4b12..8f0d4012d 100644--- a/apps/web/src/components/list-view/task-row.tsx+++ b/apps/web/src/components/list-view/task-row.tsx@@ -2,12 +2,9 @@ import { useRestoreTaskFocus } from "@/components/project/task-view-keys/use-resimport { useSortable } from "@dnd-kit/sortable";import { CSS } from "@dnd-kit/utilities";import { useNavigate } from "@tanstack/react-router";-import { format } from "date-fns";-import { Calendar, CalendarClock, CalendarX, Trash2Icon } from "lucide-react";+import { Trash2Icon } from "lucide-react";import { type CSSProperties, useMemo, useState, memo } from "react";import { useTranslation } from "react-i18next";-import { TaskProgressBadges } from "@/components/task/task-progress-badges";-import { TaskPullRequests } from "@/components/task/task-pull-requests";import {AlertDialog,AlertDialogClose,@@ -17,29 +14,21 @@ import {AlertDialogHeader,AlertDialogTitle,} from "@/components/ui/alert-dialog";-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";import { useDeleteTask } from "@/hooks/mutations/task/use-delete-task";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";import { cn } from "@/lib/cn";-import {- dueDateStatusColors,- getDueDateStatus,- isTaskCompleted,-} from "@/lib/due-date-status";-import { getInitials } from "@/lib/get-initials";-import { getPriorityIcon } from "@/lib/priority";+import { isKeyboardFocus } from "@/lib/is-keyboard-focus";+import { isOwnDomEvent } from "@/lib/is-own-dom-event";+import { isTaskCompleted } from "@/lib/due-date-status";import { toast } from "@/lib/toast";import useBulkSelectionStore from "@/store/bulk-selection";import useProjectStore from "@/store/project";-import { useUserPreferencesStore } from "@/store/user-preferences";import type Task from "@/types/task";import TaskCardContextMenuContent from "../kanban-board/task-card-context-menu/task-card-context-menu-content";-import { CardFieldList } from "@/components/custom-fields/card-field-list";-import { useTaskCardFields } from "@/components/custom-fields/use-task-card-fields";-import { TaskLabels } from "../kanban-board/task-labels";import { ContextMenu, ContextMenuTrigger } from "../ui/context-menu";+import { TaskRowBody } from "./task-row-body";import { EASE_OUT_CSS } from "@/lib/motion";type TaskRowProps = {@@ -65,14 +54,6 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {const { project } = useProjectStore();const taskIsCompleted = isTaskCompleted(task.status, project?.columns);const { data: workspace } = useActiveWorkspace();- const {- showAssignees,- showPriority,- showDueDates,- showLabels,- showTaskNumbers,- } = useUserPreferencesStore();- const cardFields = useTaskCardFields(task.projectId, task.id);const [isDeleteTaskModalOpen, setIsDeleteTaskModalOpen] = useState<boolean | null>(null);@@ -111,7 +92,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {};const handleClick = (e: React.MouseEvent) => {- if (!project || !task) return;+ if (!project || !task || !isOwnDomEvent(e)) return;if (e.defaultPrevented) return;if (e.shiftKey) {@@ -172,7 +153,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {isDragging && "opacity-50",isTaskSelected &&"bg-accent/60 shadow-sm ring-1 ring-inset ring-ring/30",- isTaskFocused && "ring-2 ring-inset ring-ring/50",+ isTaskFocused && "ring-1 ring-board-card-focus ring-inset",)}><ContextMenu@@ -185,7 +166,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {<divonClick={handleClick}className={cn(- "group relative flex cursor-pointer items-center gap-3 px-4 py-1.5 outline-none transition-colors",+ "group relative flex h-10 cursor-pointer items-center gap-3 px-3.5 outline-none transition-colors",isTaskSelected ? "bg-accent/45" : "hover:bg-accent/60",)}data-task-id={task.id}@@ -193,77 +174,19 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {{...attributes}{...listeners}onKeyDown={handleKeyDown}- onFocus={() => setFocusedTask(task.id)}+ onFocus={(event) => {+ if (event.target !== event.currentTarget) return;+ setFocusedTask(isKeyboardFocus(event) ? task.id : null);+ }}>- {showPriority && (- <div className="flex-shrink-0 first:[&_svg]:h-4 first:[&_svg]:w-4">- {getPriorityIcon(task.priority ?? "")}- </div>- )}- {showTaskNumbers && (- <div className="text-xs font-mono text-muted-foreground flex-shrink-0">- {projectSlug}-{task.number}- </div>- )}-- <div className="flex-1 min-w-0 flex items-center gap-2">- <div className="flex items-center gap-2 justify-between w-full">- <span className="text-sm text-foreground truncate">- {task.title}- </span>- <div className="flex items-center gap-1">- <TaskProgressBadges task={task} />- <CardFieldList fields={cardFields} max={3} />- {showLabels && <TaskLabels labels={task.labels ?? []} />}-- <TaskPullRequests- externalLinks={task.externalLinks}- className="border-border bg-sidebar"- />- </div>- </div>- </div>-- {showDueDates && task.dueDate && (- <div- className={`flex items-center gap-1 text-[10px] px-2 py-1 rounded flex-shrink-0 ${dueDateStatusColors[getDueDateStatus(task.dueDate, taskIsCompleted)]}`}- >- {getDueDateStatus(task.dueDate, taskIsCompleted) ===- "overdue" && <CalendarX className="w-3 h-3" />}- {getDueDateStatus(task.dueDate, taskIsCompleted) ===- "due-soon" && <CalendarClock className="w-3 h-3" />}- {(getDueDateStatus(task.dueDate, taskIsCompleted) ===- "far-future" ||- getDueDateStatus(task.dueDate, taskIsCompleted) ===- "no-due-date") && <Calendar className="w-3 h-3" />}- <span>{format(new Date(task.dueDate), "MMM d")}</span>- </div>- )}-- {showAssignees && (- <div className="flex-shrink-0">- {task.userId ? (- <Avatar className="h-6 w-6">- <AvatarImage- src={assignee?.user?.image ?? ""}- alt={assignee?.user?.name || ""}- />- <AvatarFallback className="text-xs font-medium border border-border/30">- {getInitials(assignee?.user?.name)}- </AvatarFallback>- </Avatar>- ) : (- <div- className="w-6 h-6 rounded-full bg-muted border border-border flex items-center justify-center"- title={t("tasks:assignee.unassigned")}- >- <span className="text-[10px] font-medium text-muted-foreground">- ?- </span>- </div>- )}- </div>- )}+ <TaskRowBody+ task={task}+ projectSlug={projectSlug}+ workspaceId={workspace?.id ?? ""}+ isCompleted={taskIsCompleted}+ assigneeName={assignee?.user?.name ?? task.assigneeName}+ assigneeImage={assignee?.user?.image}+ /></div></ContextMenuTrigger>diff --git a/apps/web/src/components/project/custom-fields/field-dialog/date-default-picker.tsx b/apps/web/src/components/project/custom-fields/field-dialog/date-default-picker.tsxindex bc2933d43..f42d8917f 100644--- a/apps/web/src/components/project/custom-fields/field-dialog/date-default-picker.tsx+++ b/apps/web/src/components/project/custom-fields/field-dialog/date-default-picker.tsx@@ -2,9 +2,9 @@ import { format, isValid, parseISO } from "date-fns";import { CalendarIcon } from "lucide-react";import { useState } from "react";import { useTranslation } from "react-i18next";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";import { formatDateDefault } from "@/components/project/custom-fields/describe-custom-field";import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";import {Popover,PopoverContent,@@ -49,33 +49,18 @@ export function DateDefaultPicker({: t("settings:customFields.noDefault")}</Button></PopoverTrigger>- <PopoverContent align="end" className="w-auto">- <Calendar- mode="single"- selected={selected}- defaultMonth={selected}- captionLayout="dropdown"- onSelect={(date) => {+ <PopoverContent align="end" className="w-65 p-0">+ <DatePickerMenu+ label={t("settings:customFields.defaultLabel")}+ placeholder={t("tasks:datePicker.datePlaceholder")}+ clearLabel={t("settings:customFields.clearDefault")}+ value={selected ?? null}+ canClear={clearable && selected !== undefined}+ onChange={(date) => {onChange(date ? format(date, "yyyy-MM-dd") : "");setOpen(false);}}/>- {clearable && selected ? (- <div className="border-t p-2">- <Button- type="button"- variant="ghost"- size="sm"- className="w-full"- onClick={() => {- onChange("");- setOpen(false);- }}- >- {t("settings:customFields.clearDefault")}- </Button>- </div>- ) : null}</PopoverContent></Popover>);diff --git a/apps/web/src/components/project/task-filters/filter-listbox-item.tsx b/apps/web/src/components/project/task-filters/filter-listbox-item.tsxindex 772abed11..d0815e004 100644--- a/apps/web/src/components/project/task-filters/filter-listbox-item.tsx+++ b/apps/web/src/components/project/task-filters/filter-listbox-item.tsx@@ -39,7 +39,7 @@ export function FilterListboxItem({</span>)}{entry.icon && (- <span className="inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-4">+ <span className="inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-3.5">{entry.icon}</span>)}diff --git a/apps/web/src/components/project/task-filters/use-filter-subjects.tsx b/apps/web/src/components/project/task-filters/use-filter-subjects.tsxindex b79736bd4..ab78a666c 100644--- a/apps/web/src/components/project/task-filters/use-filter-subjects.tsx+++ b/apps/web/src/components/project/task-filters/use-filter-subjects.tsx@@ -1,10 +1,4 @@-import {- CalendarDays,- CircleDashed,- SignalHigh,- Tag,- UserRound,-} from "lucide-react";+import { CalendarDays, CircleDot, Tag, UserRound } from "lucide-react";import { useTranslation } from "react-i18next";import { getColumnIcon } from "@/lib/column";import { getPriorityLabel } from "@/lib/i18n/domain";@@ -20,6 +14,8 @@ import {import type { ProjectWithTasks } from "@/types/project";import type Task from "@/types/task";import { customFieldIcon } from "@/components/custom-fields/custom-field-icon";+import { formatCustomFieldValue } from "@/components/custom-fields/format-custom-field-value";+import { PriorityGlyph } from "@/components/task-chips/priority-glyph";import type { FilterSubject, TaskFilterControls } from "./filter-subject";import { LabelFilterDot } from "./label-filter-dot";import { MemberFilterAvatar } from "./member-filter-avatar";@@ -96,7 +92,7 @@ export function useFilterSubjects({? [listSubject("status", {label: t("tasks:boardFilters.subjects.status"),- icon: <CircleDashed />,+ icon: <CircleDot />,options: columns.map((column) => ({value: column.id,label: column.name,@@ -123,7 +119,7 @@ export function useFilterSubjects({}),listSubject("priority", {label: t("tasks:boardFilters.subjects.priority"),- icon: <SignalHigh />,+ icon: <PriorityGlyph priority="high" />,options: PRIORITIES.map((priority) => ({value: priority,label: getPriorityLabel(priority),@@ -189,7 +185,9 @@ export function useFilterSubjects({? value === "true"? "True": "False"- : value,+ : field.type === "date"+ ? (formatCustomFieldValue("date", value, "medium")?.text ?? value)+ : value,})),selected: filters.customFields?.[field.id] ?? [],onToggle: (value) => controls.updateCustomFieldFilter(field.id, value),diff --git a/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.test.tsx b/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.test.tsxindex 3f68f7c11..a0130504d 100644--- a/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.test.tsx+++ b/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.test.tsx@@ -103,6 +103,28 @@ describe("useTaskViewShortcuts", () => {expect(mocks.navigate).not.toHaveBeenCalled();});+ it("clears the focused task on Escape", async () => {+ renderView();+ press({ key: "j", code: "KeyJ" });+ await nextFrame();+ expect(document.activeElement?.getAttribute("data-task-id")).toBe("a");++ press({ key: "Escape", code: "Escape" });++ expect(focused()).toBeNull();+ expect(document.activeElement).toBe(document.body);+ });++ it("leaves Escape to the selection while tasks are selected", () => {+ renderView();+ focus("a");+ act(() => useBulkSelectionStore.getState().selectTasks(["a"]));++ press({ key: "Escape", code: "Escape" });++ expect(focused()).toBe("a");+ });+it("keeps the open preview on the focused task", async () => {window.history.replaceState({}, "", "/board?taskId=a");renderView();diff --git a/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.ts b/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.tsindex d2c5acb6a..4b4bbd194 100644--- a/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.ts+++ b/apps/web/src/components/project/task-view-keys/use-task-view-shortcuts.ts@@ -1,6 +1,8 @@import { useNavigate } from "@tanstack/react-router";import { LinkIcon } from "lucide-react";+import { useEffect } from "react";import { useTranslation } from "react-i18next";+import { isInsidePopup } from "@/components/bulk-selection/use-bulk-selection-keys";import { useShortcut } from "@/lib/shortcuts/use-shortcut";import { toast } from "@/lib/toast";import { focusTaskElement } from "./focus-task-element";@@ -56,7 +58,9 @@ export function useTaskViewShortcuts({};const step = (direction: FocusDirection) =>- focus(stepFocus(getGroups(), layout, focused(), direction));+ focus(+ stepFocus(getGroups(), layout, focused() ?? peekedTaskId(), direction),+ );const move = (direction: MoveDirection) => {const taskId = focused();@@ -72,6 +76,27 @@ export function useTaskViewShortcuts({if (found) run(found.group);};+ useEffect(() => {+ if (!enabled) return;+ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key !== "Escape" || event.defaultPrevented) return;+ if (isInsidePopup(event.target) || peekedTaskId()) return;+ const state = selection.getState();+ if (!state.focusedTaskId || state.selectedTaskIds.size > 0) return;+ event.preventDefault();+ state.setFocusedTask(null);+ const activeElement = document.activeElement;+ if (+ activeElement instanceof HTMLElement &&+ activeElement.closest("[data-task-id]")+ ) {+ activeElement.blur();+ }+ };+ document.addEventListener("keydown", handleKeyDown);+ return () => document.removeEventListener("keydown", handleKeyDown);+ }, [enabled, selection]);+const active = { enabled };const board = { enabled: enabled && layout === "board" };const movable = { enabled: enabled && canMove && Boolean(onMove) };diff --git a/apps/web/src/components/settings/nav/settings-sidebar-header.tsx b/apps/web/src/components/settings/nav/settings-sidebar-header.tsxindex 038c729cb..a6cfa3fc1 100644--- a/apps/web/src/components/settings/nav/settings-sidebar-header.tsx+++ b/apps/web/src/components/settings/nav/settings-sidebar-header.tsx@@ -1,6 +1,5 @@import { ChevronLeft } from "lucide-react";import { useTranslation } from "react-i18next";-import { Kbd } from "@/components/ui/kbd";import {SidebarHeader,SidebarMenu,@@ -28,9 +27,6 @@ export function SettingsSidebarHeader({ onLeave }: SettingsSidebarHeaderProps) {><ChevronLeft aria-hidden="true" /><span className="flex-1">{t("navigation:page.settingsTitle")}</span>- <Kbd aria-hidden="true" className="hidden md:inline-flex">- Esc- </Kbd></SidebarMenuButton></SidebarMenuItem></SidebarMenu>diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex 4a8b1270c..6dd3cadb9 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -39,8 +39,8 @@ import {BreadcrumbList,BreadcrumbSeparator,} from "@/components/ui/breadcrumb";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";import {Dialog,DialogContent,@@ -216,6 +216,8 @@ function CreateTaskModalContent({const [assigneeId, setAssigneeId] = useState("");const [startDate, setStartDate] = useState<Date | undefined>(undefined);const [dueDate, setDueDate] = useState<Date | undefined>(undefined);+ const [startDateOpen, setStartDateOpen] = useState(false);+ const [dueDateOpen, setDueDateOpen] = useState(false);const [createMore, setCreateMore] = useState(false);const [labels, setLabels] = useState<Label[]>([]);const [discardConfirmationOpen, setDiscardConfirmationOpen] = useState(false);@@ -884,7 +886,7 @@ function CreateTaskModalContent({{statusLabel}</div>- <Popover>+ <Popover open={startDateOpen} onOpenChange={setStartDateOpen}><PopoverTrigger asChild><buttontype="button"@@ -903,26 +905,19 @@ function CreateTaskModalContent({</span></button></PopoverTrigger>- <PopoverContent className="p-0" align="start">- <Calendar- mode="single"- selected={startDate}- onSelect={setStartDate}- className="w-full bg-popover"+ <PopoverContent className="w-65 p-0" align="start">+ <DatePickerMenu+ label={t("common:modals.createTask.startDate")}+ placeholder={t("tasks:datePicker.startDatePlaceholder")}+ clearLabel={t("common:modals.createTask.clearStartDate")}+ value={startDate ?? null}+ onChange={(date) => {+ setStartDate(date ?? undefined);+ setStartDateOpen(false);+ }}+ bounds={dueDate ? { after: dueDate } : undefined}+ formatLimit={(date) => t("tasks:due.fullDate", { date })}/>- {startDate && (- <div className="p-2 border-t border-border">- <Button- type="button"- variant="outline"- size="sm"- className="w-full text-xs"- onClick={() => setStartDate(undefined)}- >- {t("common:modals.createTask.clearStartDate")}- </Button>- </div>- )}</PopoverContent></Popover>@@ -1045,7 +1040,7 @@ function CreateTaskModalContent({</PopoverContent></Popover>- <Popover>+ <Popover open={dueDateOpen} onOpenChange={setDueDateOpen}><PopoverTrigger asChild><buttontype="button"@@ -1064,26 +1059,21 @@ function CreateTaskModalContent({</span></button></PopoverTrigger>- <PopoverContent className="p-0" align="start">- <Calendar- mode="single"- selected={dueDate}- onSelect={setDueDate}- className="w-full bg-popover"+ <PopoverContent className="w-65 p-0" align="start">+ <DatePickerMenu+ label={t("common:modals.createTask.dueDate")}+ placeholder={t("tasks:datePicker.dueDatePlaceholder")}+ clearLabel={t("common:modals.createTask.clearDueDate")}+ value={dueDate ?? null}+ onChange={(date) => {+ setDueDate(date ?? undefined);+ setDueDateOpen(false);+ }}+ bounds={startDate ? { before: startDate } : undefined}+ formatLimit={(date) =>+ t("tasks:datePicker.startsOn", { date })+ }/>- {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-chips/assignee-button.tsx b/apps/web/src/components/task-chips/assignee-button.tsxnew file mode 100644index 000000000..704d594d7--- /dev/null+++ b/apps/web/src/components/task-chips/assignee-button.tsx@@ -0,0 +1,48 @@+import { useTranslation } from "react-i18next";+import TaskAssigneePopover from "@/components/task/task-assignee-popover";+import { AssigneeAvatar } from "@/components/task/properties/assignee-avatar";+import type Task from "@/types/task";+import { stopCardEvents } from "./stop-card-events";++type AssigneeButtonProps = {+ task: Task;+ workspaceId: string;+ name: string | null | undefined;+ image: string | null | undefined;+ avatarClassName?: string;+ avatarFallbackClassName?: string;+};++export function AssigneeButton({+ task,+ workspaceId,+ name,+ image,+ avatarClassName,+ avatarFallbackClassName,+}: AssigneeButtonProps) {+ const { t } = useTranslation();+ const label = task.userId+ ? name || t("tasks:assignee.label")+ : t("tasks:assignee.unassigned");++ return (+ <TaskAssigneePopover task={task} workspaceId={workspaceId}>+ <button+ type="button"+ aria-label={label}+ title={label}+ className="relative flex shrink-0 cursor-pointer rounded-full outline-none ring-offset-1 ring-offset-board-card transition-shadow before:absolute before:-inset-1 hover:ring-2 hover:ring-chip-border-hover focus-visible:ring-[3px] focus-visible:ring-board-card-ring data-popup-open:ring-2 data-popup-open:ring-chip-border-open"+ {...stopCardEvents}+ >+ <AssigneeAvatar+ name={name}+ image={image}+ assigned={Boolean(task.userId)}+ className={avatarClassName}+ fallbackClassName={avatarFallbackClassName}+ />+ </button>+ </TaskAssigneePopover>+ );+}diff --git a/apps/web/src/components/task-chips/checklist-chip.tsx b/apps/web/src/components/task-chips/checklist-chip.tsxnew file mode 100644index 000000000..6ae27bf5c--- /dev/null+++ b/apps/web/src/components/task-chips/checklist-chip.tsx@@ -0,0 +1,44 @@+import { SquareCheck } from "lucide-react";+import { useMemo } from "react";+import { useTranslation } from "react-i18next";+import { cn } from "@/lib/cn";+import { getTaskItemStats } from "@/lib/get-task-item-stats";+import type Task from "@/types/task";+import { taskChipClass } from "./task-chip-class";++type ChecklistChipProps = {+ task: Task;+ className?: string;+};++export function ChecklistChip({ task, className }: ChecklistChipProps) {+ const { t } = useTranslation();+ const stats = useMemo(+ () =>+ task.descriptionDeferred ? null : getTaskItemStats(task.description),+ [task.description, task.descriptionDeferred],+ );+ if (!stats?.total) return null;++ const label = t("tasks:checklistProgress", {+ completed: stats.completed,+ total: stats.total,+ });++ return (+ <span+ title={label}+ className={cn(+ taskChipClass,+ "cursor-default tabular-nums hover:border-chip-border hover:bg-transparent",+ className,+ )}+ >+ <SquareCheck aria-hidden="true" className="text-chip-icon" />+ <span className="sr-only">{label}</span>+ <span aria-hidden="true">+ {stats.completed}/{stats.total}+ </span>+ </span>+ );+}diff --git a/apps/web/src/components/task-chips/due-date-chip.tsx b/apps/web/src/components/task-chips/due-date-chip.tsxnew file mode 100644index 000000000..3e411bdfd--- /dev/null+++ b/apps/web/src/components/task-chips/due-date-chip.tsx@@ -0,0 +1,39 @@+import { Calendar } from "lucide-react";+import { useTranslation } from "react-i18next";+import TaskDueDatePopover from "@/components/task/task-due-date-popover";+import { cn } from "@/lib/cn";+import { formatDateMedium } from "@/lib/format";+import { getRelativeDueDate } from "@/lib/relative-due-date";+import type Task from "@/types/task";+import { formatRelativeDueDate } from "./format-relative-due-date";+import { stopCardEvents } from "./stop-card-events";+import { taskChipClass } from "./task-chip-class";++type DueDateChipProps = {+ task: Task;+ isCompleted?: boolean;+};++export function DueDateChip({ task, isCompleted = false }: DueDateChipProps) {+ const { t } = useTranslation();+ if (!task.dueDate) return null;++ const relative = getRelativeDueDate(task.dueDate);+ const overdue = relative.kind === "overdue" && !isCompleted;++ return (+ <TaskDueDatePopover task={task}>+ <button+ type="button"+ title={t("tasks:due.fullDate", {+ date: formatDateMedium(task.dueDate),+ })}+ className={cn(taskChipClass, overdue && "font-medium text-due-overdue")}+ {...stopCardEvents}+ >+ <Calendar className={cn(!overdue && "text-chip-icon")} />+ {formatRelativeDueDate(relative, task.dueDate, t)}+ </button>+ </TaskDueDatePopover>+ );+}diff --git a/apps/web/src/components/task-chips/format-relative-due-date.ts b/apps/web/src/components/task-chips/format-relative-due-date.tsnew file mode 100644index 000000000..1537f747d--- /dev/null+++ b/apps/web/src/components/task-chips/format-relative-due-date.ts@@ -0,0 +1,26 @@+import type { TFunction } from "i18next";+import { formatDateMedium, formatDateShort } from "@/lib/format";+import type { RelativeDueDate } from "@/lib/relative-due-date";++export function formatRelativeDueDate(+ relative: RelativeDueDate,+ dueDate: string | Date,+ t: TFunction,+) {+ switch (relative.kind) {+ case "overdue":+ return relative.days >= 14+ ? t("tasks:due.overdueWeeks", { count: relative.weeks })+ : t("tasks:due.overdueDays", { count: relative.days });+ case "today":+ return t("tasks:due.today");+ case "tomorrow":+ return t("tasks:due.tomorrow");+ case "soon":+ return t("tasks:due.inDays", { count: relative.days });+ case "date":+ return relative.sameYear+ ? formatDateShort(dueDate)+ : formatDateMedium(dueDate);+ }+}diff --git a/apps/web/src/components/task-chips/label-chips.tsx b/apps/web/src/components/task-chips/label-chips.tsxnew file mode 100644index 000000000..7ea9d13e3--- /dev/null+++ b/apps/web/src/components/task-chips/label-chips.tsx@@ -0,0 +1,66 @@+import { useTranslation } from "react-i18next";+import TaskLabelsPopover from "@/components/task/task-labels-popover";+import { cn } from "@/lib/cn";+import { localeCompareSort } from "@/lib/format";+import { resolveLabelColor } from "@/lib/label-color";+import type Task from "@/types/task";+import { stopCardEvents } from "./stop-card-events";+import { taskChipClass } from "./task-chip-class";++type LabelChipsProps = {+ task: Task;+ workspaceId: string;+ max?: number;+};++export function LabelChips({ task, workspaceId, max = 2 }: LabelChipsProps) {+ const { t, i18n } = useTranslation();+ const labels = task.labels ?? [];+ if (labels.length === 0) return null;++ const locale = i18n.resolvedLanguage || i18n.language;+ const sorted = [...labels].sort((a, b) =>+ localeCompareSort(a.name, b.name, locale),+ );+ const visible = sorted.slice(0, max);+ const hidden = sorted.length - visible.length;++ return (+ <TaskLabelsPopover task={task} workspaceId={workspaceId}>+ <button+ type="button"+ aria-label={t("tasks:popover.labels.editLabels")}+ title={sorted.map((label) => label.name).join(", ")}+ className="group/labels inline-flex min-w-0 max-w-full cursor-pointer flex-wrap items-center gap-1 rounded-md outline-none focus-visible:ring-[3px] focus-visible:ring-board-card-ring"+ {...stopCardEvents}+ >+ {visible.map((label) => (+ <span+ key={label.id}+ className={cn(+ taskChipClass,+ "max-w-36 gap-1.5 group-hover/labels:border-chip-border-hover group-hover/labels:bg-chip-hover group-data-popup-open/labels:border-chip-border-open group-data-popup-open/labels:bg-chip-open",+ )}+ >+ <span+ aria-hidden="true"+ className="size-1.5 shrink-0 rounded-full"+ style={{ backgroundColor: resolveLabelColor(label.color) }}+ />+ <span className="truncate">{label.name}</span>+ </span>+ ))}+ {hidden > 0 && (+ <span+ className={cn(+ taskChipClass,+ "font-medium text-chip-muted group-hover/labels:border-chip-border-hover group-hover/labels:bg-chip-hover group-data-popup-open/labels:border-chip-border-open group-data-popup-open/labels:bg-chip-open",+ )}+ >+ +{hidden}+ </span>+ )}+ </button>+ </TaskLabelsPopover>+ );+}diff --git a/apps/web/src/components/task-chips/priority-chip.tsx b/apps/web/src/components/task-chips/priority-chip.tsxnew file mode 100644index 000000000..0b9859649--- /dev/null+++ b/apps/web/src/components/task-chips/priority-chip.tsx@@ -0,0 +1,30 @@+import { useTranslation } from "react-i18next";+import TaskPriorityPopover from "@/components/task/task-priority-popover";+import { cn } from "@/lib/cn";+import { getPriorityLabel } from "@/lib/i18n/domain";+import type Task from "@/types/task";+import { PriorityGlyph } from "./priority-glyph";+import { stopCardEvents } from "./stop-card-events";+import { taskChipClass } from "./task-chip-class";++export function PriorityChip({ task }: { task: Task }) {+ const { t } = useTranslation();+ const label = `${t("tasks:priority.label")}: ${getPriorityLabel(task.priority ?? "")}`;++ return (+ <TaskPriorityPopover task={task}>+ <button+ type="button"+ aria-label={label}+ title={label}+ className={cn(+ taskChipClass,+ "w-5.5 justify-center px-0 [&_svg]:size-3.5",+ )}+ {...stopCardEvents}+ >+ <PriorityGlyph priority={task.priority} />+ </button>+ </TaskPriorityPopover>+ );+}diff --git a/apps/web/src/components/task-chips/priority-glyph.tsx b/apps/web/src/components/task-chips/priority-glyph.tsxnew file mode 100644index 000000000..3b73d6dd5--- /dev/null+++ b/apps/web/src/components/task-chips/priority-glyph.tsx@@ -0,0 +1,48 @@+import { cn } from "@/lib/cn";++const MARKS = [3, 7, 11];++const FILLED: Record<string, number> = {+ low: 1,+ medium: 2,+ high: 3,+ urgent: 3,+};++type PriorityGlyphProps = {+ priority: string | null | undefined;+ className?: string;+};++export function PriorityGlyph({ priority, className }: PriorityGlyphProps) {+ const filled = FILLED[priority ?? ""] ?? 0;+ const urgent = priority === "urgent";++ return (+ <svg+ viewBox="0 0 14 14"+ aria-hidden="true"+ className={cn("size-3.5 shrink-0", className)}+ >+ {MARKS.map((x, index) => {+ const tone =+ index >= filled+ ? "fill-priority-bar-empty stroke-priority-bar-empty"+ : urgent+ ? "fill-priority-urgent stroke-priority-urgent"+ : "fill-priority-bar stroke-priority-bar";+ return (+ <g key={x} className={tone}>+ <path+ d={`M${x} 2.5v5.5`}+ fill="none"+ strokeWidth="1.7"+ strokeLinecap="round"+ />+ <circle cx={x} cy="11" r="1" stroke="none" />+ </g>+ );+ })}+ </svg>+ );+}diff --git a/apps/web/src/components/task-chips/stop-card-events.ts b/apps/web/src/components/task-chips/stop-card-events.tsnew file mode 100644index 000000000..2d676c707--- /dev/null+++ b/apps/web/src/components/task-chips/stop-card-events.ts@@ -0,0 +1,9 @@+import type { SyntheticEvent } from "react";++const stop = (event: SyntheticEvent) => event.stopPropagation();++export const stopCardEvents = {+ onClick: stop,+ onPointerDown: stop,+ onTouchEnd: stop,+};diff --git a/apps/web/src/components/task-chips/subtask-progress-glyph.tsx b/apps/web/src/components/task-chips/subtask-progress-glyph.tsxnew file mode 100644index 000000000..551c15e03--- /dev/null+++ b/apps/web/src/components/task-chips/subtask-progress-glyph.tsx@@ -0,0 +1,55 @@+const RADIUS = 4.75;+const CIRCUMFERENCE = 2 * Math.PI * RADIUS;++type SubtaskProgressGlyphProps = {+ completed: number;+ total: number;+};++export function SubtaskProgressGlyph({+ completed,+ total,+}: SubtaskProgressGlyphProps) {+ if (total > 0 && completed >= total) {+ return (+ <svg viewBox="0 0 12 12" aria-hidden="true">+ <circle cx="6" cy="6" r="5.5" className="fill-priority-bar" />+ <path+ d="m3.6 6.2 1.6 1.6 3.2-3.4"+ fill="none"+ className="stroke-board-card"+ strokeWidth="1.4"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+ }++ const progress = total > 0 ? completed / total : 0;+ return (+ <svg viewBox="0 0 12 12" aria-hidden="true" className="-rotate-90">+ <circle+ cx="6"+ cy="6"+ r={RADIUS}+ fill="none"+ className="stroke-priority-bar-empty"+ strokeWidth="1.5"+ />+ {completed > 0 && (+ <circle+ cx="6"+ cy="6"+ r={RADIUS}+ fill="none"+ className="stroke-priority-bar"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeDasharray={CIRCUMFERENCE}+ strokeDashoffset={CIRCUMFERENCE * (1 - progress)}+ />+ )}+ </svg>+ );+}diff --git a/apps/web/src/components/task-chips/subtasks-chip.tsx b/apps/web/src/components/task-chips/subtasks-chip.tsxnew file mode 100644index 000000000..6b4ee1541--- /dev/null+++ b/apps/web/src/components/task-chips/subtasks-chip.tsx@@ -0,0 +1,93 @@+import { useNavigate } from "@tanstack/react-router";+import { useState } from "react";+import { useTranslation } from "react-i18next";+import {+ HoverCard,+ HoverCardContent,+ HoverCardTrigger,+} from "@/components/ui/preview-card";+import { cn } from "@/lib/cn";+import type Task from "@/types/task";+import { stopCardEvents } from "./stop-card-events";+import { SubtaskProgressGlyph } from "./subtask-progress-glyph";+import { SubtasksHoverList } from "./subtasks-hover-list";+import { taskChipClass } from "./task-chip-class";++type SubtasksChipProps = {+ task: Task;+ workspaceId: string;+ className?: string;+};++export function SubtasksChip({+ task,+ workspaceId,+ className,+}: SubtasksChipProps) {+ const { t } = useTranslation();+ const navigate = useNavigate();+ const [open, setOpen] = useState(false);+ const counts = task.subtaskCounts;+ if (!counts?.total) return null;++ const openTask = (subtask: Pick<Task, "id" | "projectId">) => {+ setOpen(false);+ if (subtask.projectId === task.projectId) {+ navigate({ to: ".", search: { taskId: subtask.id } });+ return;+ }+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId",+ params: {+ workspaceId,+ projectId: subtask.projectId,+ taskId: subtask.id,+ },+ });+ };++ return (+ <HoverCard+ open={open}+ onOpenChange={setOpen}+ openDelay={200}+ closeDelay={100}+ >+ <HoverCardTrigger asChild>+ <button+ type="button"+ aria-label={t("tasks:subtasks.progress", {+ completed: counts.completed,+ total: counts.total,+ })}+ className={cn(taskChipClass, "tabular-nums", className)}+ {...stopCardEvents}+ onClick={(event) => {+ event.stopPropagation();+ setOpen(true);+ }}+ >+ <SubtaskProgressGlyph+ completed={counts.completed}+ total={counts.total}+ />+ {counts.completed}/{counts.total}+ </button>+ </HoverCardTrigger>+ <HoverCardContent+ side="bottom"+ align="start"+ className="w-auto p-0"+ {...stopCardEvents}+ >+ {open && (+ <SubtasksHoverList+ taskId={task.id}+ workspaceId={workspaceId}+ onOpenTask={openTask}+ />+ )}+ </HoverCardContent>+ </HoverCard>+ );+}diff --git a/apps/web/src/components/task-chips/subtasks-hover-list.tsx b/apps/web/src/components/task-chips/subtasks-hover-list.tsxnew file mode 100644index 000000000..caf9f0a76--- /dev/null+++ b/apps/web/src/components/task-chips/subtasks-hover-list.tsx@@ -0,0 +1,98 @@+import { useTranslation } from "react-i18next";+import { AssigneeAvatar } from "@/components/task/properties/assignee-avatar";+import { useProjectSlugs } from "@/components/task/sections/use-project-slugs";+import CircularProgress from "@/components/ui/circular-progress";+import useGetTaskRelations from "@/hooks/queries/task-relation/use-get-task-relations";+import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";+import { cn } from "@/lib/cn";+import { getColumnIcon } from "@/lib/column";+import type Task from "@/types/task";++type SubtasksHoverListProps = {+ taskId: string;+ workspaceId: string;+ onOpenTask: (task: Pick<Task, "id" | "projectId">) => void;+};++export function SubtasksHoverList({+ taskId,+ workspaceId,+ onOpenTask,+}: SubtasksHoverListProps) {+ const { t } = useTranslation();+ const { data: relations = [], isLoading } = useGetTaskRelations(taskId);+ const displayIdOf = useProjectSlugs(workspaceId);+ const { data: workspaceUsers } = useGetActiveWorkspaceUsers(workspaceId);++ const subtasks = relations.flatMap((relation) =>+ relation.relationType === "subtask" &&+ relation.sourceTaskId === taskId &&+ relation.targetTask+ ? [relation.targetTask]+ : [],+ );+ const completed = subtasks.filter((subtask) => subtask.isCompleted).length;++ return (+ <div className="flex w-72 max-w-[calc(100vw-2rem)] flex-col">+ <div className="flex h-9 items-center gap-2 border-border border-b px-3">+ <CircularProgress+ completed={completed}+ total={subtasks.length}+ size={14}+ />+ <span className="font-medium text-[13px] text-foreground">+ {t("tasks:subtasks.title")}+ </span>+ <span className="truncate text-muted-foreground text-xs">+ {t("tasks:subtasks.progress", {+ completed,+ total: subtasks.length,+ })}+ </span>+ </div>+ <div className="flex flex-col p-1">+ {isLoading ? (+ <p className="px-2 py-2 text-muted-foreground text-xs">+ {t("common:empty.loading")}+ </p>+ ) : (+ subtasks.map((subtask) => (+ <button+ key={subtask.id}+ type="button"+ onClick={() => onOpenTask(subtask)}+ className="flex h-8.5 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-md px-2 text-left outline-none transition-colors hover:bg-accent focus-visible:bg-accent"+ >+ <span className="flex size-3.5 shrink-0 items-center justify-center [&_svg]:size-3.5">+ {getColumnIcon(subtask.status, subtask.isCompleted)}+ </span>+ <span className="w-13 shrink-0 truncate font-mono text-[11px] text-muted-foreground">+ {displayIdOf(subtask.projectId, subtask.number)}+ </span>+ <span+ className={cn(+ "min-w-0 flex-1 truncate text-[13px]",+ subtask.isCompleted+ ? "text-muted-foreground line-through"+ : "text-foreground",+ )}+ >+ {subtask.title}+ </span>+ <AssigneeAvatar+ name={subtask.assigneeName}+ image={+ workspaceUsers?.members?.find(+ (member) => member.userId === subtask.userId,+ )?.user?.image+ }+ assigned={Boolean(subtask.userId)}+ />+ </button>+ ))+ )}+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/task-chips/task-chip-class.ts b/apps/web/src/components/task-chips/task-chip-class.tsnew file mode 100644index 000000000..86302a538--- /dev/null+++ b/apps/web/src/components/task-chips/task-chip-class.ts@@ -0,0 +1,2 @@+export const taskChipClass =+ "inline-flex h-5.5 min-w-0 shrink-0 cursor-pointer items-center gap-1.25 rounded-md border border-chip-border px-1.5 text-chip-foreground text-xs outline-none transition-colors hover:border-chip-border-hover hover:bg-chip-hover focus-visible:border-board-card-focus focus-visible:ring-[3px] focus-visible:ring-board-card-ring data-popup-open:border-chip-border-open data-popup-open:bg-chip-open [&_svg]:size-3 [&_svg]:shrink-0";diff --git a/apps/web/src/components/task/properties/assignee-avatar.tsx b/apps/web/src/components/task/properties/assignee-avatar.tsxindex 6be3280dd..8dbe3064f 100644--- a/apps/web/src/components/task/properties/assignee-avatar.tsx+++ b/apps/web/src/components/task/properties/assignee-avatar.tsx@@ -1,20 +1,36 @@import { UnassignedAvatar } from "@/components/common/unassigned-avatar";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import { cn } from "@/lib/cn";import { getInitials } from "@/lib/get-initials";type AssigneeAvatarProps = {name: string | null | undefined;image: string | null | undefined;assigned: boolean;+ className?: string;+ fallbackClassName?: string;};-export function AssigneeAvatar({ name, image, assigned }: AssigneeAvatarProps) {- if (!assigned) return <UnassignedAvatar className="size-4.5" />;+export function AssigneeAvatar({+ name,+ image,+ assigned,+ className,+ fallbackClassName,+}: AssigneeAvatarProps) {+ if (!assigned) {+ return <UnassignedAvatar className={cn("size-4.5", className)} />;+ }return (- <Avatar className="size-4.5 shrink-0">+ <Avatar className={cn("size-4.5 shrink-0", className)}><AvatarImage src={image ?? ""} alt="" />- <AvatarFallback className="font-semibold text-[8px]">+ <AvatarFallback+ className={cn(+ "border border-avatar-border bg-avatar font-semibold text-[8px] text-avatar-foreground",+ fallbackClassName,+ )}+ >{getInitials(name)}</AvatarFallback></Avatar>diff --git a/apps/web/src/components/task/task-due-date-popover.tsx b/apps/web/src/components/task/task-due-date-popover.tsxindex 3ae5401c6..5cd94ea44 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,6 @@-import { X } from "lucide-react";import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";import {Popover,PopoverContent,@@ -28,11 +26,11 @@ export default function TaskDueDatePopover({const { canUpdateTasks } = useWorkspacePermission();const canEdit = canUpdateTasks();- const handleDateChange = async (date: Date | undefined) => {+ const handleDateChange = async (date: Date | null) => {try {await updateTaskDueDate({...task,- dueDate: date?.toISOString() || null,+ dueDate: date?.toISOString() ?? null,});setOpen(false);} catch (error) {@@ -49,29 +47,18 @@ export default function TaskDueDatePopover({return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger asChild>{children}</PopoverTrigger>- <PopoverContent className="p-0" align="start">- <Calendar- mode="single"- selected={task.dueDate ? new Date(task.dueDate) : undefined}- onSelect={handleDateChange}- disabled={+ <PopoverContent className="w-65 p-0" align="start">+ <DatePickerMenu+ label={t("tasks:dueDate.label")}+ placeholder={t("tasks:datePicker.dueDatePlaceholder")}+ clearLabel={t("tasks:popover.dueDate.clear")}+ value={task.dueDate ? new Date(task.dueDate) : null}+ onChange={handleDateChange}+ bounds={task.startDate ? { before: new Date(task.startDate) } : undefined}- className="w-full bg-popover"+ formatLimit={(date) => t("tasks:datePicker.startsOn", { date })}/>- {task.dueDate && (- <div className="pt-2 border-t border-border">- <Button- variant="ghost"- size="sm"- className="w-full justify-start gap-2 text-muted-foreground hover:text-foreground"- onClick={() => handleDateChange(undefined)}- >- <X className="h-4 w-4" />- {t("tasks:popover.dueDate.clear")}- </Button>- </div>- )}</PopoverContent></Popover>);diff --git a/apps/web/src/components/task/task-labels-popover.tsx b/apps/web/src/components/task/task-labels-popover.tsxindex 0275112db..c00fd1411 100644--- a/apps/web/src/components/task/task-labels-popover.tsx+++ b/apps/web/src/components/task/task-labels-popover.tsx@@ -53,8 +53,35 @@ export default function TaskLabelsPopover({workspaceId,children,}: TaskLabelsPopoverProps) {- const { t } = useTranslation();const [open, setOpen] = useState(false);+ const { canUpdateLabels } = useWorkspacePermission();++ if (!canUpdateLabels()) return <>{children}</>;++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>{children}</PopoverTrigger>+ <PopoverContent className="w-60 p-0" align="start">+ {open && (+ <TaskLabelsMenu+ task={task}+ workspaceId={workspaceId}+ onClose={() => setOpen(false)}+ />+ )}+ </PopoverContent>+ </Popover>+ );+}++type TaskLabelsMenuProps = {+ task: Task;+ workspaceId: string;+ onClose: () => void;+};++function TaskLabelsMenu({ task, workspaceId, onClose }: TaskLabelsMenuProps) {+ const { t } = useTranslation();const [query, setQuery] = useState("");const [newLabelName, setNewLabelName] = useState<string | null>(null);const queryClient = useQueryClient();@@ -62,13 +89,10 @@ export default function TaskLabelsPopover({const { mutateAsync: attachLabel } = useAttachLabelToTask();const { mutateAsync: createLabel } = useCreateLabel();const { mutateAsync: detachLabel } = useDetachLabelFromTask();- const { canCreateLabels, canUpdateLabels } = useWorkspacePermission();+ const { canCreateLabels } = useWorkspacePermission();const { data: taskLabels = [] } = useGetLabelsByTask(task.id);const { data: workspaceLabels = [] } = useGetLabelsByWorkspace(workspaceId);-- if (!canUpdateLabels()) return <>{children}</>;-const name = query.trim();const assignedNames = new Set(taskLabels.map((label) => label.name));const canCreateLabel =@@ -110,7 +134,7 @@ export default function TaskLabelsPopover({const createWithColor = async (color: string) => {if (!newLabelName) return;- setOpen(false);+ onClose();try {const created = await createLabel({name: newLabelName,@@ -147,44 +171,29 @@ export default function TaskLabelsPopover({: []),];- return (- <Popover- open={open}- onOpenChange={(next) => {- setOpen(next);- if (next) return;- setQuery("");- setNewLabelName(null);+ return newLabelName === null ? (+ <OptionMenu+ key="labels"+ label={t("tasks:properties.labels")}+ placeholder={t("tasks:popover.labels.searchPlaceholder")}+ options={labelOptions}+ onQueryChange={setQuery}+ onSelect={(value) => {+ if (value === CREATE_LABEL) setNewLabelName(name);+ else void toggleLabel(value);}}- >- <PopoverTrigger asChild>{children}</PopoverTrigger>- <PopoverContent className="w-60 p-0" align="start">- {newLabelName === null ? (- <OptionMenu- key="labels"- label={t("tasks:properties.labels")}- placeholder={t("tasks:popover.labels.searchPlaceholder")}- options={labelOptions}- onQueryChange={setQuery}- onSelect={(value) => {- if (value === CREATE_LABEL) setNewLabelName(name);- else void toggleLabel(value);- }}- />- ) : (- <OptionMenu- key="colors"- label={t("tasks:popover.labels.chooseColor")}- placeholder={t("tasks:popover.labels.chooseColor")}- options={labelColors.map((color) => ({- value: color.value,- label: t(`tasks:popover.labels.colors.${color.key}`),- icon: <ColorDot color={color.color} />,- }))}- onSelect={createWithColor}- />- )}- </PopoverContent>- </Popover>+ />+ ) : (+ <OptionMenu+ key="colors"+ label={t("tasks:popover.labels.chooseColor")}+ placeholder={t("tasks:popover.labels.chooseColor")}+ options={labelColors.map((color) => ({+ value: color.value,+ label: t(`tasks:popover.labels.colors.${color.key}`),+ icon: <ColorDot color={color.color} />,+ }))}+ onSelect={createWithColor}+ />);}diff --git a/apps/web/src/components/task/task-pull-requests/pull-request-row.tsx b/apps/web/src/components/task/task-pull-requests/pull-request-row.tsxindex 1209668fc..919ef734f 100644--- a/apps/web/src/components/task/task-pull-requests/pull-request-row.tsx+++ b/apps/web/src/components/task/task-pull-requests/pull-request-row.tsx@@ -18,6 +18,7 @@ export function PullRequestRow({ pullRequest }: PullRequestRowProps) {merged: t("tasks:pr.merged"),draft: t("tasks:pr.draft"),open: t("tasks:pr.open"),+ closed: t("tasks:pr.closed"),}[status];return (diff --git a/apps/web/src/components/task/task-pull-requests/pull-request-status-icon.tsx b/apps/web/src/components/task/task-pull-requests/pull-request-status-icon.tsxindex 25fa26370..3acb93cbc 100644--- a/apps/web/src/components/task/task-pull-requests/pull-request-status-icon.tsx+++ b/apps/web/src/components/task/task-pull-requests/pull-request-status-icon.tsx@@ -1,11 +1,12 @@-import { GitMerge, GitPullRequest } from "lucide-react";+import { GitMerge, GitPullRequest, GitPullRequestClosed } from "lucide-react";import { cn } from "@/lib/cn";import type { PullRequestStatus } from "@/lib/pull-request";const statusClassName: Record<PullRequestStatus, string> = {- merged: "text-info-foreground",+ merged: "text-violet-600 dark:text-violet-400",draft: "text-muted-foreground",open: "text-success-foreground",+ closed: "text-destructive-foreground",};type PullRequestStatusIconProps = {@@ -17,7 +18,12 @@ export function PullRequestStatusIcon({status,className,}: PullRequestStatusIconProps) {- const Icon = status === "merged" ? GitMerge : GitPullRequest;+ const Icon =+ status === "merged"+ ? GitMerge+ : status === "closed"+ ? GitPullRequestClosed+ : GitPullRequest;return (<Iconaria-hiddendiff --git a/apps/web/src/components/task/task-start-date-popover.tsx b/apps/web/src/components/task/task-start-date-popover.tsxindex 8a1b9b8e4..fc5e1b884 100644--- a/apps/web/src/components/task/task-start-date-popover.tsx+++ b/apps/web/src/components/task/task-start-date-popover.tsx@@ -1,8 +1,6 @@-import { X } from "lucide-react";import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button } from "@/components/ui/button";-import { Calendar } from "@/components/ui/calendar";+import { DatePickerMenu } from "@/components/common/date-picker/date-picker-menu";import {Popover,PopoverContent,@@ -28,11 +26,11 @@ export default function TaskStartDatePopover({const { canUpdateTasks } = useWorkspacePermission();const canEdit = canUpdateTasks();- const handleDateChange = async (date: Date | undefined) => {+ const handleDateChange = async (date: Date | null) => {try {await updateTask({...task,- startDate: date?.toISOString() || null,+ startDate: date?.toISOString() ?? null,});setOpen(false);} catch (error) {@@ -49,29 +47,16 @@ export default function TaskStartDatePopover({return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger asChild>{children}</PopoverTrigger>- <PopoverContent className="p-0" align="start">- <Calendar- mode="single"- selected={task.startDate ? new Date(task.startDate) : undefined}- onSelect={handleDateChange}- disabled={- task.dueDate ? { after: new Date(task.dueDate) } : undefined- }- className="w-full bg-popover"+ <PopoverContent className="w-65 p-0" align="start">+ <DatePickerMenu+ label={t("tasks:properties.startDate")}+ placeholder={t("tasks:datePicker.startDatePlaceholder")}+ clearLabel={t("tasks:popover.startDate.clear")}+ value={task.startDate ? new Date(task.startDate) : null}+ onChange={handleDateChange}+ bounds={task.dueDate ? { after: new Date(task.dueDate) } : undefined}+ formatLimit={(date) => t("tasks:due.fullDate", { date })}/>- {task.startDate && (- <div className="pt-2 border-t border-border">- <Button- variant="ghost"- size="sm"- className="w-full justify-start gap-2 text-muted-foreground hover:text-foreground"- onClick={() => handleDateChange(undefined)}- >- <X className="h-4 w-4" />- {t("tasks:popover.startDate.clear")}- </Button>- </div>- )}</PopoverContent></Popover>);diff --git a/apps/web/src/components/task/task-subtasks.tsx b/apps/web/src/components/task/task-subtasks.tsxindex 670177bbc..3c669f427 100644--- a/apps/web/src/components/task/task-subtasks.tsx+++ b/apps/web/src/components/task/task-subtasks.tsx@@ -15,10 +15,8 @@ import {import { Button } from "@/components/ui/button";import CircularProgress from "@/components/ui/circular-progress";import { Input } from "@/components/ui/input";-import getColumns from "@/fetchers/column/get-columns";import useCreateTask from "@/hooks/mutations/task/use-create-task";import { useDeleteTask } from "@/hooks/mutations/task/use-delete-task";-import { useUpdateTaskStatus } from "@/hooks/mutations/task/use-update-task-status";import useCreateTaskRelation from "@/hooks/mutations/task-relation/use-create-task-relation";import { useGetColumns } from "@/hooks/queries/column/use-get-columns";import useGetTaskRelations from "@/hooks/queries/task-relation/use-get-task-relations";@@ -32,6 +30,7 @@ import { SectionAddButton } from "./sections/section-add-button";import { SectionHeader } from "./sections/section-header";import { useProjectSlugs } from "./sections/use-project-slugs";import SubtaskRow from "./subtask-row";+import { useToggleTaskCompletion } from "./use-toggle-task-completion";type TaskSubtasksProps = {taskId: string;@@ -64,7 +63,6 @@ export default function TaskSubtasks({const createTask = useCreateTask();const createRelation = useCreateTaskRelation();const { mutateAsync: deleteTask } = useDeleteTask();- const { mutateAsync: updateTaskStatus } = useUpdateTaskStatus();const { data: columns = [], isLoading: isLoadingColumns } =useGetColumns(projectId);const { canCreateTasks, canUpdateTasks } = useWorkspacePermission();@@ -133,33 +131,7 @@ export default function TaskSubtasks({return [currentTask];};- const handleToggleComplete = async (taskObj: Task) => {- try {- // Fetch at activation so a cached workflow cannot send a stale status.- const taskColumns = await queryClient.fetchQuery({- queryKey: ["columns", taskObj.projectId],- queryFn: () => getColumns(taskObj.projectId),- staleTime: 0,- });- const completed = taskColumns.some(- (column) => column.slug === taskObj.status && column.isFinal,- );- const nextColumn = taskColumns.find(- (column) => column.isFinal !== completed,- );- if (!nextColumn) {- toast.error(t("tasks:subtasks.noCompletionColumn"));- return;- }- await updateTaskStatus({ ...taskObj, status: nextColumn.slug });- } catch (error) {- toast.error(- error instanceof Error- ? error.message- : t("tasks:popover.status.updateError"),- );- }- };+ const handleToggleComplete = useToggleTaskCompletion();const getAssignee = (userId: string | null) => {if (!userId || !workspaceUsers?.members) return null;diff --git a/apps/web/src/components/task/use-toggle-task-completion.ts b/apps/web/src/components/task/use-toggle-task-completion.tsnew file mode 100644index 000000000..bf2d421a2--- /dev/null+++ b/apps/web/src/components/task/use-toggle-task-completion.ts@@ -0,0 +1,36 @@+import { useTranslation } from "react-i18next";+import getColumns from "@/fetchers/column/get-columns";+import { useUpdateTaskStatus } from "@/hooks/mutations/task/use-update-task-status";+import { toast } from "@/lib/toast";+import queryClient from "@/query-client";+import type Task from "@/types/task";++export function useToggleTaskCompletion() {+ const { t } = useTranslation();+ const { mutateAsync: updateTaskStatus } = useUpdateTaskStatus();++ return async (task: Task) => {+ try {+ const columns = await queryClient.fetchQuery({+ queryKey: ["columns", task.projectId],+ queryFn: () => getColumns(task.projectId),+ staleTime: 0,+ });+ const completed = columns.some(+ (column) => column.slug === task.status && column.isFinal,+ );+ const nextColumn = columns.find((column) => column.isFinal !== completed);+ if (!nextColumn) {+ toast.error(t("tasks:subtasks.noCompletionColumn"));+ return;+ }+ await updateTaskStatus({ ...task, status: nextColumn.slug });+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t("tasks:popover.status.updateError"),+ );+ }+ };+}diff --git a/apps/web/src/components/ui/calendar.tsx b/apps/web/src/components/ui/calendar.tsxdeleted file mode 100644index 74c6c1ac7..000000000--- a/apps/web/src/components/ui/calendar.tsx+++ /dev/null@@ -1,143 +0,0 @@-"use client";--import {- ChevronLeftIcon,- ChevronRightIcon,- ChevronsUpDownIcon,-} from "lucide-react";-import type * as React from "react";-import { DayPicker } from "react-day-picker";--import { cn } from "@/lib/cn";-import { useUserPreferencesStore } from "@/store/user-preferences";--const buttonClassNames =- "relative flex size-(--cell-size) text-base sm:text-sm items-center justify-center rounded-lg text-foreground not-in-data-selected:hover:bg-accent disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0";--function Calendar({- className,- classNames,- showOutsideDays = true,- components: userComponents,- weekStartsOn: weekStartsOnProp,- ...props-}: React.ComponentProps<typeof DayPicker>) {- const preferredWeekStartsOn = useUserPreferencesStore(- (state) => state.weekStartsOn,- );- const defaultClassNames = {- button_next: buttonClassNames,- button_previous: buttonClassNames,- caption_label:- "text-base sm:text-sm font-medium flex items-center gap-2 h-full",- day: "size-(--cell-size) text-sm py-px",- day_button: cn(- buttonClassNames,- "in-[[data-selected]:not(.range-middle)]:transition-[color,background-color,border-radius,box-shadow] in-data-disabled:pointer-events-none focus-visible:z-1 in-data-selected:bg-primary in-data-selected:text-primary-foreground in-data-disabled:text-muted-foreground/70 in-data-disabled:line-through in-data-outside:text-muted-foreground/70 in-data-selected:in-data-outside:text-primary-foreground outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] in-[.range-start:not(.range-end)]:rounded-e-none in-[.range-end:not(.range-start)]:rounded-s-none in-[.range-middle]:rounded-none in-[.range-middle]:in-data-selected:bg-accent in-[.range-middle]:in-data-selected:text-foreground",- ),- dropdown: "absolute bg-popover inset-0 opacity-0",- dropdown_root:- "relative has-focus:border-ring has-focus:ring-ring/50 has-focus:ring-[3px] border border-input shadow-xs/5 rounded-lg px-[calc(--spacing(3)-1px)] h-9 sm:h-8 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-me-1",- dropdowns:- "w-full flex items-center text-base sm:text-sm justify-center h-(--cell-size) gap-1.5 *:[span]:font-medium",- hidden: "invisible",- month: "w-full",- month_caption:- "relative mx-(--cell-size) px-1 mb-1 flex h-(--cell-size) items-center justify-center z-2",- months: "relative flex flex-col sm:flex-row gap-2",- nav: "absolute top-0 flex w-full justify-between z-1",- outside:- "text-muted-foreground data-selected:bg-accent/50 data-selected:text-muted-foreground",- range_end: "range-end",- range_middle: "range-middle",- range_start: "range-start",- today:- "*:after:pointer-events-none *:after:absolute *:after:bottom-1 *:after:start-1/2 *:after:z-1 *:after:size-[3px] *:after:-translate-x-1/2 *:after:rounded-full *:after:bg-primary [&[data-selected]:not(.range-middle)>*]:after:bg-background [&[data-disabled]>*]:after:bg-foreground/30 *:after:transition-colors",- week_number:- "size-(--cell-size) p-0 text-xs font-medium text-muted-foreground/70",- weekday:- "size-(--cell-size) p-0 text-xs font-medium text-muted-foreground/70",- };- const mergedClassNames: typeof defaultClassNames = Object.keys(- defaultClassNames,- ).reduce(- (acc, key) => {- const userClass = classNames?.[key as keyof typeof classNames];- const baseClass =- defaultClassNames[key as keyof typeof defaultClassNames];-- acc[key as keyof typeof defaultClassNames] = userClass- ? cn(baseClass, userClass)- : baseClass;-- return acc;- },- { ...defaultClassNames } as typeof defaultClassNames,- );-- const defaultComponents = {- Chevron: ({- className,- orientation,- ...props- }: {- className?: string;- orientation?: "left" | "right" | "up" | "down";- }) => {- if (orientation === "left") {- return (- <ChevronLeftIcon- className={cn(className, "rtl:rotate-180")}- {...props}- aria-hidden="true"- />- );- }-- if (orientation === "right") {- return (- <ChevronRightIcon- className={cn(className, "rtl:rotate-180")}- {...props}- aria-hidden="true"- />- );- }-- return (- <ChevronsUpDownIcon- className={className}- {...props}- aria-hidden="true"- />- );- },- };-- const mergedComponents = {- ...defaultComponents,- ...userComponents,- };-- return (- <DayPicker- className={cn(- "w-fit [--cell-size:--spacing(10)] sm:[--cell-size:--spacing(9)]",- className,- )}- classNames={mergedClassNames}- components={mergedComponents}- data-slot="calendar"- formatters={{- formatMonthDropdown: (date) =>- date.toLocaleString("default", { month: "short" }),- }}- mode="single"- showOutsideDays={showOutsideDays}- weekStartsOn={weekStartsOnProp ?? preferredWeekStartsOn}- {...props}- />- );-}--export { Calendar };diff --git a/apps/web/src/constants/column-icons.ts b/apps/web/src/constants/column-icons.tsindex 15b543fed..f718d7ad5 100644--- a/apps/web/src/constants/column-icons.ts+++ b/apps/web/src/constants/column-icons.ts@@ -4,6 +4,7 @@ import {Circle,CircleDashed,CircleDot,+ Clock,Search,} from "lucide-react";import projectIcons from "./project-icons";@@ -14,7 +15,7 @@ export const DEFAULT_COLUMN_ICON_NAMES = {"in-review": "Search",done: "CheckCircle2",archived: "Archive",- planned: "CircleDashed",+ planned: "Clock",} as const;const columnIcons = {@@ -24,6 +25,7 @@ const columnIcons = {Search,CheckCircle2,CircleDashed,+ Clock,Archive,};diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex 566427354..451d15c65 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -110,6 +110,41 @@ input:-webkit-autofill:active {--color-code-foreground: var(--code-foreground);--color-code-highlight: var(--code-highlight);--color-code: var(--code);+ --color-board-lane: var(--board-lane);+ --color-board-card: var(--board-card);+ --color-board-card-border: var(--board-card-border);+ --color-board-card-border-hover: var(--board-card-border-hover);+ --color-board-card-selected: var(--board-card-selected);+ --color-board-card-selected-border: var(--board-card-selected-border);+ --color-board-card-focus: var(--board-card-focus);+ --color-board-card-ring: var(--board-card-ring);+ --color-board-card-done: var(--board-card-done);+ --color-board-card-done-border: var(--board-card-done-border);+ --color-board-id: var(--board-id);+ --color-board-id-done: var(--board-id-done);+ --color-board-title: var(--board-title);+ --color-board-title-done: var(--board-title-done);+ --color-chip-border: var(--chip-border);+ --color-chip-border-hover: var(--chip-border-hover);+ --color-chip-hover: var(--chip-hover);+ --color-chip-border-open: var(--chip-border-open);+ --color-chip-open: var(--chip-open);+ --color-chip-foreground: var(--chip-foreground);+ --color-chip-muted: var(--chip-muted);+ --color-chip-icon: var(--chip-icon);+ --color-priority-bar: var(--priority-bar);+ --color-priority-bar-empty: var(--priority-bar-empty);+ --color-priority-urgent: var(--priority-urgent);+ --color-due-overdue: var(--due-overdue);+ --color-avatar: var(--avatar);+ --color-avatar-selected: var(--avatar-selected);+ --color-avatar-done: var(--avatar-done);+ --color-avatar-border: var(--avatar-border);+ --color-avatar-foreground: var(--avatar-foreground);+ --color-avatar-foreground-done: var(--avatar-foreground-done);+ --color-avatar-unassigned: var(--avatar-unassigned);+ --color-avatar-unassigned-foreground: var(--avatar-unassigned-foreground);+ --shadow-board-card: var(--board-card-shadow);--color-border: var(--border);--color-background: var(--background);--color-accent-foreground: var(--accent-foreground);@@ -199,6 +234,41 @@ input:-webkit-autofill:active {--code: var(--color-white);--code-foreground: var(--foreground);--code-highlight: --alpha(var(--color-black) / 4%);+ --board-lane: #00000005;+ --board-card: #ffffff;+ --board-card-border: #00000014;+ --board-card-border-hover: #0000002e;+ --board-card-selected: #f2f2f2;+ --board-card-selected-border: #00000038;+ --board-card-focus: #8a8a8a;+ --board-card-ring: #8a8a8a40;+ --board-card-shadow: 0 1px 2px #0000000a;+ --board-card-done: #ffffff99;+ --board-card-done-border: #0000000f;+ --board-id: #8a8a8a;+ --board-id-done: #a3a3a3;+ --board-title: #171717;+ --board-title-done: #737373;+ --chip-border: #00000017;+ --chip-border-hover: #00000029;+ --chip-hover: #0000000a;+ --chip-border-open: #00000033;+ --chip-open: #0000000f;+ --chip-foreground: #404040;+ --chip-muted: #737373;+ --chip-icon: #8a8a8a;+ --priority-bar: #525252;+ --priority-bar-empty: #00000021;+ --priority-urgent: #dc2626;+ --due-overdue: #dc2626;+ --avatar: #e5e5e5;+ --avatar-selected: #e0e0e0;+ --avatar-done: #ededed;+ --avatar-border: #00000017;+ --avatar-foreground: #404040;+ --avatar-foreground-done: #737373;+ --avatar-unassigned: #f5f5f5;+ --avatar-unassigned-foreground: #8a8a8a;}.dark {@@ -255,6 +325,41 @@ input:-webkit-autofill:active {--code: color-mix(in srgb, var(--background) 98%, var(--color-white));--code-foreground: var(--foreground);--code-highlight: --alpha(var(--color-white) / 4%);+ --board-lane: #0000001f;+ --board-card: #1c1c1c;+ --board-card-border: transparent;+ --board-card-border-hover: #ffffff2e;+ --board-card-selected: #262626;+ --board-card-selected-border: #ffffff3d;+ --board-card-focus: #a3a3a3;+ --board-card-ring: #a3a3a333;+ --board-card-shadow: 0 1px 2px #00000033, 0 4px 12px -4px #00000059;+ --board-card-done: #ffffff03;+ --board-card-done-border: #ffffff0a;+ --board-id: #707070;+ --board-id-done: #5c5c5c;+ --board-title: #ededed;+ --board-title-done: #707070;+ --chip-border: #ffffff17;+ --chip-border-hover: #ffffff29;+ --chip-hover: #ffffff0a;+ --chip-border-open: #ffffff33;+ --chip-open: #ffffff0f;+ --chip-foreground: #cfcfcf;+ --chip-muted: #8f8f8f;+ --chip-icon: #8a8a8a;+ --priority-bar: #a3a3a3;+ --priority-bar-empty: #ffffff24;+ --priority-urgent: #e5484d;+ --due-overdue: #ff6467;+ --avatar: #2e2e2e;+ --avatar-selected: #383838;+ --avatar-done: #222222;+ --avatar-border: #ffffff17;+ --avatar-foreground: #d4d4d4;+ --avatar-foreground-done: #707070;+ --avatar-unassigned: #262626;+ --avatar-unassigned-foreground: #8a8a8a;}@layer base {diff --git a/apps/web/src/lib/is-keyboard-focus.ts b/apps/web/src/lib/is-keyboard-focus.tsnew file mode 100644index 000000000..aa4d41b77--- /dev/null+++ b/apps/web/src/lib/is-keyboard-focus.ts@@ -0,0 +1,7 @@+import type { FocusEvent } from "react";++export function isKeyboardFocus(event: FocusEvent<Element>) {+ return (+ event.target instanceof Element && event.target.matches(":focus-visible")+ );+}diff --git a/apps/web/src/lib/is-own-dom-event.test.ts b/apps/web/src/lib/is-own-dom-event.test.tsnew file mode 100644index 000000000..67f9a47e3--- /dev/null+++ b/apps/web/src/lib/is-own-dom-event.test.ts@@ -0,0 +1,25 @@+import type { SyntheticEvent } from "react";+import { describe, expect, it } from "vite-plus/test";+import { isOwnDomEvent } from "./is-own-dom-event";++const eventFor = (currentTarget: Element, target: EventTarget) =>+ ({ currentTarget, target }) as unknown as SyntheticEvent<Element>;++describe("isOwnDomEvent", () => {+ it("accepts events from the element and its DOM children", () => {+ const card = document.createElement("div");+ const chip = document.createElement("button");+ card.append(chip);++ expect(isOwnDomEvent(eventFor(card, card))).toBe(true);+ expect(isOwnDomEvent(eventFor(card, chip))).toBe(true);+ });++ it("rejects events that bubbled through a portal", () => {+ const card = document.createElement("div");+ const menuOption = document.createElement("div");+ document.body.append(card, menuOption);++ expect(isOwnDomEvent(eventFor(card, menuOption))).toBe(false);+ });+});diff --git a/apps/web/src/lib/is-own-dom-event.ts b/apps/web/src/lib/is-own-dom-event.tsnew file mode 100644index 000000000..29f09bde0--- /dev/null+++ b/apps/web/src/lib/is-own-dom-event.ts@@ -0,0 +1,7 @@+import type { SyntheticEvent } from "react";++export function isOwnDomEvent(event: SyntheticEvent<Element>) {+ return (+ event.target instanceof Node && event.currentTarget.contains(event.target)+ );+}diff --git a/apps/web/src/lib/priority.tsx b/apps/web/src/lib/priority.tsxindex 6f5f947dd..1c465eadb 100644--- a/apps/web/src/lib/priority.tsx+++ b/apps/web/src/lib/priority.tsx@@ -1,32 +1,9 @@-import {- ChevronDown,- ChevronsUp,- ChevronUp,- CircleAlert,- Minus,-} from "lucide-react";+import { Minus } from "lucide-react";+import { PriorityGlyph } from "@/components/task-chips/priority-glyph";export function getPriorityIcon(priority: string) {- switch (priority) {- case "urgent":- return (- <CircleAlert className="h-[12px] w-[12px] text-destructive-foreground" />- );- case "high":- return (- <ChevronsUp className="h-[12px] w-[12px] text-warning-foreground" />- );- case "medium":- return (- <ChevronUp className="h-[12px] w-[12px] text-warning-foreground/80" />- );- case "low":- return (- <ChevronDown className="h-[12px] w-[12px] text-info-foreground/85" />- );- case "no-priority":- return <Minus className="h-[12px] w-[12px] text-muted-foreground" />;- default:- return <Minus className="h-[12px] w-[12px] text-muted-foreground" />;+ if (!priority || priority === "no-priority") {+ return <Minus className="size-3.5 text-muted-foreground" />;}+ return <PriorityGlyph priority={priority} />;}diff --git a/apps/web/src/lib/pull-request.ts b/apps/web/src/lib/pull-request.tsindex cac8992e8..de8d041f1 100644--- a/apps/web/src/lib/pull-request.ts+++ b/apps/web/src/lib/pull-request.ts@@ -3,7 +3,7 @@ import type { ExternalLink } from "@/types/external-link";export type PullRequest = ExternalLink & { href: string };-export type PullRequestStatus = "merged" | "draft" | "open";+export type PullRequestStatus = "merged" | "draft" | "open" | "closed";export function getPullRequests(externalLinks: ExternalLink[] | null | undefined,@@ -17,6 +17,7 @@ export function getPullRequests(export function getPullRequestStatus(pr: ExternalLink): PullRequestStatus {if (pr.metadata?.merged === true) return "merged";+ if (pr.metadata?.state === "closed") return "closed";if (pr.metadata?.draft === true) return "draft";return "open";}@@ -27,7 +28,8 @@ export function getPullRequestsStatus(const statuses = pullRequests.map(getPullRequestStatus);if (statuses.every((status) => status === "merged")) return "merged";if (statuses.includes("open")) return "open";- return "draft";+ if (statuses.includes("draft")) return "draft";+ return "closed";}export function getPullRequestRepoName(url: string) {diff --git a/apps/web/src/lib/relative-due-date.test.ts b/apps/web/src/lib/relative-due-date.test.tsnew file mode 100644index 000000000..bf1eb118c--- /dev/null+++ b/apps/web/src/lib/relative-due-date.test.ts@@ -0,0 +1,61 @@+import { describe, expect, it } from "vite-plus/test";+import { getRelativeDueDate } from "./relative-due-date";++const now = new Date(2026, 9, 14, 9, 30);++describe("getRelativeDueDate", () => {+ it("counts calendar days, not 24 hour blocks", () => {+ expect(getRelativeDueDate(new Date(2026, 9, 13, 23, 59), now)).toEqual({+ kind: "overdue",+ days: 1,+ weeks: 0,+ });+ expect(getRelativeDueDate(new Date(2026, 9, 15, 0, 1), now)).toEqual({+ kind: "tomorrow",+ });+ });++ it("names today and tomorrow", () => {+ expect(getRelativeDueDate(new Date(2026, 9, 14, 18), now)).toEqual({+ kind: "today",+ });+ expect(getRelativeDueDate(new Date(2026, 9, 15), now)).toEqual({+ kind: "tomorrow",+ });+ });++ it("counts days up to six days out", () => {+ expect(getRelativeDueDate(new Date(2026, 9, 17), now)).toEqual({+ kind: "soon",+ days: 3,+ });+ expect(getRelativeDueDate(new Date(2026, 9, 20), now)).toEqual({+ kind: "soon",+ days: 6,+ });+ });++ it("falls back to the date a week or more out", () => {+ expect(getRelativeDueDate(new Date(2026, 9, 21), now)).toEqual({+ kind: "date",+ sameYear: true,+ });+ expect(getRelativeDueDate(new Date(2027, 0, 8), now)).toEqual({+ kind: "date",+ sameYear: false,+ });+ });++ it("switches overdue to weeks after two weeks", () => {+ expect(getRelativeDueDate(new Date(2026, 9, 1), now)).toEqual({+ kind: "overdue",+ days: 13,+ weeks: 1,+ });+ expect(getRelativeDueDate(new Date(2026, 8, 23), now)).toEqual({+ kind: "overdue",+ days: 21,+ weeks: 3,+ });+ });+});diff --git a/apps/web/src/lib/relative-due-date.ts b/apps/web/src/lib/relative-due-date.tsnew file mode 100644index 000000000..7b3a73bff--- /dev/null+++ b/apps/web/src/lib/relative-due-date.ts@@ -0,0 +1,24 @@+import { differenceInCalendarDays, isSameYear } from "date-fns";++export type RelativeDueDate =+ | { kind: "overdue"; days: number; weeks: number }+ | { kind: "today" }+ | { kind: "tomorrow" }+ | { kind: "soon"; days: number }+ | { kind: "date"; sameYear: boolean };++export function getRelativeDueDate(+ dueDate: string | Date,+ now: Date = new Date(),+): RelativeDueDate {+ const due = new Date(dueDate);+ const days = differenceInCalendarDays(due, now);++ if (days < 0) {+ return { kind: "overdue", days: -days, weeks: Math.floor(-days / 7) };+ }+ if (days === 0) return { kind: "today" };+ if (days === 1) return { kind: "tomorrow" };+ if (days <= 6) return { kind: "soon", days };+ return { kind: "date", sameYear: isSameYear(due, now) };+}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsxindex ae577b1a4..66a8b3bae 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/backlog.tsx@@ -1,9 +1,10 @@import { createFileRoute, useNavigate } from "@tanstack/react-router";import { produce } from "immer";-import { ArrowRight, Plus, SquareKanbanIcon } from "lucide-react";+import { SquareKanbanIcon } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import BacklogListView from "@/components/backlog-list-view";+import { BacklogToolbarActions } from "@/components/backlog-list-view/backlog-toolbar-actions";import ProjectLayout from "@/components/common/project-layout";import PageTitle from "@/components/page-title";import { TaskDisplayOptions } from "@/components/project/display/task-display-options";@@ -14,7 +15,6 @@ import { useProjectTaskView } from "@/components/project/toolbar/use-project-tasimport { ConfirmDialog } from "@/components/settings/confirm-dialog";import CreateTaskModal from "@/components/shared/modals/create-task-modal";import TaskDetailsSheet from "@/components/task/task-details-sheet";-import { Button } from "@/components/ui/button";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";import { useBoardSort } from "@/hooks/use-board-sort";@@ -138,31 +138,10 @@ function RouteComponent() {<ProjectToolbarview={view}actions={- <>- <Button- variant="ghost"- size="sm"- aria-label={t("tasks:backlog.plan")}- onClick={() => setIsTaskModalOpen(true)}- >- <Plus />- <span className="hidden sm:inline">- {t("tasks:backlog.plan")}- </span>- </Button>- <Button- variant="ghost"- size="sm"- aria-label={t("tasks:backlog.moveAll")}- onClick={handleMoveAllPlannedToTodo}- title={t("tasks:backlog.moveAllTooltip")}- >- <ArrowRight />- <span className="hidden sm:inline">- {t("tasks:backlog.moveAll")}- </span>- </Button>- </>+ <BacklogToolbarActions+ onPlan={() => setIsTaskModalOpen(true)}+ onMoveAll={handleMoveAllPlannedToTodo}+ />}display={<TaskDisplayOptionsdiff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.test.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.test.tsxindex 25748cc30..a6ad76be2 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.test.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.test.tsx@@ -134,6 +134,7 @@ vi.mock("react-i18next", () => ({);},}),+ initReactI18next: { type: "3rdParty", init: vi.fn() },}));const GanttRoute = (Route as unknown as { component: ComponentType }).component;diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex 47736b0e2..2e8be95d6 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -3125,7 +3125,8 @@"open": "Açıq","label": "Birləşdirmə sorğusu","count_one": "{{count}} birləşdirmə sorğusu",- "count_other": "{{count}} birləşdirmə sorğusu"+ "count_other": "{{count}} birləşdirmə sorğusu",+ "closed": "Bağlı"},"assignee": {"label": "İcraçı",@@ -3222,7 +3223,6 @@"required": "Məcburi","enterKey": "Enter","toSave": "saxlamaq üçün",- "today": "Bu gün","clear": "Təmizlə","setValue": "{{field}} seçin…","noMatches": "Uyğun seçim yoxdur",@@ -3271,6 +3271,26 @@"markdownCopied": "Markdown kimi kopyalandı","copyFailed": "Mübadilə buferinə kopyalamaq alınmadı.","pageUrlCopied": "Səhifə URL-i kopyalandı"+ },+ "due": {+ "overdueDays_one": "{{count}} g gecikib",+ "overdueDays_other": "{{count}} g gecikib",+ "overdueWeeks_one": "{{count}} h gecikib",+ "overdueWeeks_other": "{{count}} h gecikib",+ "today": "Bu gün",+ "tomorrow": "Sabah",+ "inDays_one": "{{count}} gün sonra",+ "inDays_other": "{{count}} gün sonra",+ "fullDate": "Son tarix {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Son tarixi təyin et…",+ "startDatePlaceholder": "Başlama tarixini təyin et…",+ "datePlaceholder": "Tarix təyin et…",+ "thisWeekend": "Bu həftə sonu",+ "nextWeek": "Gələn həftə",+ "pickDate": "Tarix seç",+ "startsOn": "Başlayır: {{date}}"}},"invitations": {diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 66c8f3982..1f2dc9a1b 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -3116,7 +3116,8 @@"open": "Offen","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PRs"+ "count_other": "{{count}} PRs",+ "closed": "Geschlossen"},"assignee": {"label": "Zugewiesen an",@@ -3222,7 +3223,6 @@"required": "Pflichtfeld","enterKey": "Enter","toSave": "zum Speichern",- "today": "Heute","clear": "Leeren","setValue": "{{field}} festlegen…","noMatches": "Keine passenden Optionen",@@ -3271,6 +3271,26 @@"markdownCopied": "Als Markdown kopiert","copyFailed": "Kopieren in die Zwischenablage fehlgeschlagen.","pageUrlCopied": "Seiten-URL kopiert"+ },+ "due": {+ "overdueDays_one": "{{count}} Tg. überfällig",+ "overdueDays_other": "{{count}} Tg. überfällig",+ "overdueWeeks_one": "{{count}} Wo. überfällig",+ "overdueWeeks_other": "{{count}} Wo. überfällig",+ "today": "Heute",+ "tomorrow": "Morgen",+ "inDays_one": "In {{count}} Tag",+ "inDays_other": "In {{count}} Tagen",+ "fullDate": "Fällig am {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Fälligkeitsdatum festlegen…",+ "startDatePlaceholder": "Startdatum festlegen…",+ "datePlaceholder": "Datum festlegen…",+ "thisWeekend": "Dieses Wochenende",+ "nextWeek": "Nächste Woche",+ "pickDate": "Datum auswählen",+ "startsOn": "Beginnt {{date}}"}},"invitations": {diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex fafac352b..62dcad355 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -3116,7 +3116,8 @@"open": "Ανοιχτό","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PRs"+ "count_other": "{{count}} PRs",+ "closed": "Κλειστό"},"assignee": {"label": "Ανατεθειμένος",@@ -3222,7 +3223,6 @@"required": "Υποχρεωτικό","enterKey": "Enter","toSave": "για αποθήκευση",- "today": "Σήμερα","clear": "Εκκαθάριση","setValue": "Ορισμός {{field}}…","noMatches": "Δεν βρέθηκαν επιλογές",@@ -3271,6 +3271,26 @@"markdownCopied": "Αντιγράφηκε ως Markdown","copyFailed": "Δεν ήταν δυνατή η αντιγραφή στο πρόχειρο.","pageUrlCopied": "Το URL της σελίδας αντιγράφηκε"+ },+ "due": {+ "overdueDays_one": "Καθυστέρηση {{count}} ημ.",+ "overdueDays_other": "Καθυστέρηση {{count}} ημ.",+ "overdueWeeks_one": "Καθυστέρηση {{count}} εβδ.",+ "overdueWeeks_other": "Καθυστέρηση {{count}} εβδ.",+ "today": "Σήμερα",+ "tomorrow": "Αύριο",+ "inDays_one": "Σε {{count}} ημέρα",+ "inDays_other": "Σε {{count}} ημέρες",+ "fullDate": "Λήξη {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Ορισμός προθεσμίας…",+ "startDatePlaceholder": "Ορισμός ημερομηνίας έναρξης…",+ "datePlaceholder": "Ορισμός ημερομηνίας…",+ "thisWeekend": "Αυτό το Σαββατοκύριακο",+ "nextWeek": "Την επόμενη εβδομάδα",+ "pickDate": "Επιλογή ημερομηνίας",+ "startsOn": "Ξεκινά {{date}}"}},"invitations": {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex 5db4333b1..964e698f2 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -3015,8 +3015,8 @@"moveAllConfirm": "Move all {{count}} planned tasks to To Do?","moveAllSuccess": "Moved {{count}} tasks to To Do","plan": "Plan",- "moveAllTooltip": "Move All Planned to To Do",- "moveAll": "Move All",+ "moveAllTooltip": "Move all planned tasks to To Do",+ "moveAll": "Move all","addTask": "Add task","sections": {"planned": "Planned",@@ -3131,7 +3131,8 @@"open": "Open","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PRs"+ "count_other": "{{count}} PRs",+ "closed": "Closed"},"assignee": {"label": "Assignee",@@ -3217,7 +3218,6 @@"required": "Required","enterKey": "Enter","toSave": "to save",- "today": "Today","clear": "Clear","setValue": "Set {{field}}…","noMatches": "No matching options",@@ -3271,6 +3271,26 @@"markdownCopied": "Copied as Markdown","copyFailed": "Couldn't copy to the clipboard.","pageUrlCopied": "Copied page URL"+ },+ "due": {+ "overdueDays_one": "{{count}}d overdue",+ "overdueDays_other": "{{count}}d overdue",+ "overdueWeeks_one": "{{count}}w overdue",+ "overdueWeeks_other": "{{count}}w overdue",+ "today": "Today",+ "tomorrow": "Tomorrow",+ "inDays_one": "In {{count}} day",+ "inDays_other": "In {{count}} days",+ "fullDate": "Due {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Set due date…",+ "startDatePlaceholder": "Set start date…",+ "datePlaceholder": "Set date…",+ "thisWeekend": "This weekend",+ "nextWeek": "Next week",+ "pickDate": "Pick a date",+ "startsOn": "Starts {{date}}"}},"invitations": {diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 4c92f58cc..e9d14e52b 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -3154,7 +3154,8 @@"label": "Pull Request","count_one": "{{count}} PR","count_other": "{{count}} PRs",- "count_many": "{{count}} PRs"+ "count_many": "{{count}} PRs",+ "closed": "Cerrado"},"assignee": {"label": "Asignado",@@ -3272,7 +3273,6 @@"required": "Obligatorio","enterKey": "Intro","toSave": "para guardar",- "today": "Hoy","clear": "Borrar","setValue": "Establecer {{field}}…","noMatches": "No hay opciones que coincidan",@@ -3325,6 +3325,29 @@"markdownCopied": "Copiado como Markdown","copyFailed": "No se ha podido copiar al portapapeles.","pageUrlCopied": "URL de la página copiada"+ },+ "due": {+ "overdueDays_one": "{{count}} d de retraso",+ "overdueDays_many": "{{count}} d de retraso",+ "overdueDays_other": "{{count}} d de retraso",+ "overdueWeeks_one": "{{count}} sem. de retraso",+ "overdueWeeks_many": "{{count}} sem. de retraso",+ "overdueWeeks_other": "{{count}} sem. de retraso",+ "today": "Hoy",+ "tomorrow": "Mañana",+ "inDays_one": "En {{count}} día",+ "inDays_many": "En {{count}} días",+ "inDays_other": "En {{count}} días",+ "fullDate": "Vence el {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Establecer fecha límite…",+ "startDatePlaceholder": "Establecer fecha de inicio…",+ "datePlaceholder": "Establecer fecha…",+ "thisWeekend": "Este fin de semana",+ "nextWeek": "La próxima semana",+ "pickDate": "Elegir una fecha",+ "startsOn": "Empieza: {{date}}"}},"invitations": {diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex c27252906..06c8aa25c 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -3165,7 +3165,8 @@"label": "Pull Request","count_one": "{{count}} PR","count_other": "{{count}} PR",- "count_many": "{{count}} PR"+ "count_many": "{{count}} PR",+ "closed": "Fermée"},"assignee": {"label": "Assigné",@@ -3272,7 +3273,6 @@"required": "Requis","enterKey": "Entrée","toSave": "pour enregistrer",- "today": "Aujourd’hui","clear": "Effacer","setValue": "Définir {{field}}…","noMatches": "Aucune option correspondante",@@ -3325,6 +3325,29 @@"markdownCopied": "Copié en Markdown","copyFailed": "Impossible de copier dans le presse-papiers.","pageUrlCopied": "URL de la page copiée"+ },+ "due": {+ "overdueDays_one": "En retard de {{count}} j",+ "overdueDays_many": "En retard de {{count}} j",+ "overdueDays_other": "En retard de {{count}} j",+ "overdueWeeks_one": "En retard de {{count}} sem.",+ "overdueWeeks_many": "En retard de {{count}} sem.",+ "overdueWeeks_other": "En retard de {{count}} sem.",+ "today": "Aujourd’hui",+ "tomorrow": "Demain",+ "inDays_one": "Dans {{count}} jour",+ "inDays_many": "Dans {{count}} jours",+ "inDays_other": "Dans {{count}} jours",+ "fullDate": "Échéance le {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Définir l’échéance…",+ "startDatePlaceholder": "Définir la date de début…",+ "datePlaceholder": "Définir une date…",+ "thisWeekend": "Ce week-end",+ "nextWeek": "La semaine prochaine",+ "pickDate": "Choisir une date",+ "startsOn": "Commence le {{date}}"}},"invitations": {diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex 5c5b9af3d..e2be8ff69 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -3116,7 +3116,8 @@"open": "खुला","label": "पुल अनुरोध","count_one": "{{count}} PR",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "बंद"},"assignee": {"label": "सौंपा गया",@@ -3222,7 +3223,6 @@"required": "आवश्यक","enterKey": "Enter","toSave": "सहेजने के लिए",- "today": "आज","clear": "साफ़ करें","setValue": "{{field}} सेट करें…","noMatches": "कोई मिलता-जुलता विकल्प नहीं",@@ -3271,6 +3271,26 @@"markdownCopied": "Markdown के रूप में कॉपी हुआ","copyFailed": "क्लिपबोर्ड पर कॉपी नहीं हो सका।","pageUrlCopied": "पेज URL कॉपी हुआ"+ },+ "due": {+ "overdueDays_one": "{{count}} दिन देर",+ "overdueDays_other": "{{count}} दिन देर",+ "overdueWeeks_one": "{{count}} सप्ताह देर",+ "overdueWeeks_other": "{{count}} सप्ताह देर",+ "today": "आज",+ "tomorrow": "कल",+ "inDays_one": "{{count}} दिन में",+ "inDays_other": "{{count}} दिन में",+ "fullDate": "नियत तिथि {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "नियत तारीख सेट करें…",+ "startDatePlaceholder": "प्रारंभ तारीख सेट करें…",+ "datePlaceholder": "तारीख सेट करें…",+ "thisWeekend": "इस सप्ताहांत",+ "nextWeek": "अगले सप्ताह",+ "pickDate": "तारीख चुनें",+ "startsOn": "शुरुआत: {{date}}"}},"invitations": {diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex c0e125032..8fcced31e 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -3067,7 +3067,8 @@"draft": "Draf","open": "Terbuka","label": "Pull Request",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "Ditutup"},"assignee": {"label": "Penanggung jawab",@@ -3172,7 +3173,6 @@"required": "Wajib","enterKey": "Enter","toSave": "untuk menyimpan",- "today": "Hari ini","clear": "Hapus","setValue": "Atur {{field}}…","noMatches": "Tidak ada opsi yang cocok",@@ -3217,6 +3217,23 @@"markdownCopied": "Disalin sebagai Markdown","copyFailed": "Tidak dapat menyalin ke papan klip.","pageUrlCopied": "URL halaman disalin"+ },+ "due": {+ "overdueDays_other": "Terlambat {{count}} hr",+ "overdueWeeks_other": "Terlambat {{count}} mgg",+ "today": "Hari ini",+ "tomorrow": "Besok",+ "inDays_other": "{{count}} hari lagi",+ "fullDate": "Jatuh tempo {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Atur tenggat…",+ "startDatePlaceholder": "Atur tanggal mulai…",+ "datePlaceholder": "Atur tanggal…",+ "thisWeekend": "Akhir pekan ini",+ "nextWeek": "Minggu depan",+ "pickDate": "Pilih tanggal",+ "startsOn": "Mulai {{date}}"}},"invitations": {diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex f069cb375..3a6a9afc7 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -3165,7 +3165,8 @@"label": "Pull Request","count_one": "{{count}} PR","count_other": "{{count}} PR",- "count_many": "{{count}} PR"+ "count_many": "{{count}} PR",+ "closed": "Chiusa"},"assignee": {"label": "Assegnatario",@@ -3272,7 +3273,6 @@"required": "Obbligatorio","enterKey": "Invio","toSave": "per salvare",- "today": "Oggi","clear": "Cancella","setValue": "Imposta {{field}}…","noMatches": "Nessuna opzione corrispondente",@@ -3325,6 +3325,29 @@"markdownCopied": "Copiato come Markdown","copyFailed": "Impossibile copiare negli appunti.","pageUrlCopied": "URL della pagina copiato"+ },+ "due": {+ "overdueDays_one": "In ritardo di {{count}} g",+ "overdueDays_many": "In ritardo di {{count}} g",+ "overdueDays_other": "In ritardo di {{count}} g",+ "overdueWeeks_one": "In ritardo di {{count}} sett.",+ "overdueWeeks_many": "In ritardo di {{count}} sett.",+ "overdueWeeks_other": "In ritardo di {{count}} sett.",+ "today": "Oggi",+ "tomorrow": "Domani",+ "inDays_one": "Tra {{count}} giorno",+ "inDays_many": "Tra {{count}} giorni",+ "inDays_other": "Tra {{count}} giorni",+ "fullDate": "Scade il {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Imposta scadenza…",+ "startDatePlaceholder": "Imposta data di inizio…",+ "datePlaceholder": "Imposta data…",+ "thisWeekend": "Questo fine settimana",+ "nextWeek": "La prossima settimana",+ "pickDate": "Scegli una data",+ "startsOn": "Inizia {{date}}"}},"invitations": {diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex e9bbdae65..8f2811587 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -3076,7 +3076,8 @@"draft": "下書き","open": "オープン","label": "Pull Request",- "count_other": "{{count}} 件の PR"+ "count_other": "{{count}} 件の PR",+ "closed": "クローズ"},"assignee": {"label": "担当者",@@ -3172,7 +3173,6 @@"required": "必須","enterKey": "Enter","toSave": "で保存",- "today": "今日","clear": "クリア","setValue": "{{field}}を設定…","noMatches": "一致するオプションがありません",@@ -3217,6 +3217,23 @@"markdownCopied": "Markdown としてコピーしました","copyFailed": "クリップボードにコピーできませんでした。","pageUrlCopied": "ページの URL をコピーしました"+ },+ "due": {+ "overdueDays_other": "{{count}}日超過",+ "overdueWeeks_other": "{{count}}週超過",+ "today": "今日",+ "tomorrow": "明日",+ "inDays_other": "{{count}}日後",+ "fullDate": "期限 {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "期日を設定…",+ "startDatePlaceholder": "開始日を設定…",+ "datePlaceholder": "日付を設定…",+ "thisWeekend": "今週末",+ "nextWeek": "来週",+ "pickDate": "日付を選択",+ "startsOn": "開始: {{date}}"}},"invitations": {diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex eb9f64203..3ce41b27b 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -3081,7 +3081,8 @@"draft": "초안","open": "열림","label": "풀 리퀘스트",- "count_other": "PR {{count}}개"+ "count_other": "PR {{count}}개",+ "closed": "닫힘"},"assignee": {"label": "담당자",@@ -3172,7 +3173,6 @@"required": "필수","enterKey": "Enter","toSave": "키로 저장",- "today": "오늘","clear": "지우기","setValue": "{{field}} 설정…","noMatches": "일치하는 옵션이 없습니다",@@ -3217,6 +3217,23 @@"markdownCopied": "Markdown으로 복사했습니다","copyFailed": "클립보드에 복사하지 못했습니다.","pageUrlCopied": "페이지 URL을 복사했습니다"+ },+ "due": {+ "overdueDays_other": "{{count}}일 지남",+ "overdueWeeks_other": "{{count}}주 지남",+ "today": "오늘",+ "tomorrow": "내일",+ "inDays_other": "{{count}}일 후",+ "fullDate": "마감 {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "마감일 설정…",+ "startDatePlaceholder": "시작일 설정…",+ "datePlaceholder": "날짜 설정…",+ "thisWeekend": "이번 주말",+ "nextWeek": "다음 주",+ "pickDate": "날짜 선택",+ "startsOn": "시작: {{date}}"}},"invitations": {diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex b47819bcf..de21c6665 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -3116,7 +3116,8 @@"open": "Отворен","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PR-а"+ "count_other": "{{count}} PR-а",+ "closed": "Затворен"},"assignee": {"label": "Доделен",@@ -3222,7 +3223,6 @@"required": "Задолжително","enterKey": "Enter","toSave": "за зачувување",- "today": "Денес","clear": "Исчисти","setValue": "Постави {{field}}…","noMatches": "Нема соодветни опции",@@ -3271,6 +3271,26 @@"markdownCopied": "Копирано како Markdown","copyFailed": "Не може да се копира во клипбордот.","pageUrlCopied": "URL на страницата е копиран"+ },+ "due": {+ "overdueDays_one": "{{count}} д. задоцнето",+ "overdueDays_other": "{{count}} д. задоцнето",+ "overdueWeeks_one": "{{count}} нед. задоцнето",+ "overdueWeeks_other": "{{count}} нед. задоцнето",+ "today": "Денес",+ "tomorrow": "Утре",+ "inDays_one": "За {{count}} ден",+ "inDays_other": "За {{count}} дена",+ "fullDate": "Рок {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Постави рок…",+ "startDatePlaceholder": "Постави датум на почеток…",+ "datePlaceholder": "Постави датум…",+ "thisWeekend": "Овој викенд",+ "nextWeek": "Следната недела",+ "pickDate": "Избери датум",+ "startsOn": "Почнува: {{date}}"}},"invitations": {diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex 5cbf5d994..301d5eba0 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -3105,7 +3105,8 @@"open": "Open","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PR's"+ "count_other": "{{count}} PR's",+ "closed": "Gesloten"},"assignee": {"label": "Toegewezen persoon",@@ -3222,7 +3223,6 @@"required": "Verplicht","enterKey": "Enter","toSave": "om op te slaan",- "today": "Vandaag","clear": "Wissen","setValue": "{{field}} instellen…","noMatches": "Geen overeenkomende opties",@@ -3271,6 +3271,26 @@"markdownCopied": "Gekopieerd als Markdown","copyFailed": "Kopiëren naar het klembord is mislukt.","pageUrlCopied": "Pagina-URL gekopieerd"+ },+ "due": {+ "overdueDays_one": "{{count}} d te laat",+ "overdueDays_other": "{{count}} d te laat",+ "overdueWeeks_one": "{{count}} wk te laat",+ "overdueWeeks_other": "{{count}} wk te laat",+ "today": "Vandaag",+ "tomorrow": "Morgen",+ "inDays_one": "Over {{count}} dag",+ "inDays_other": "Over {{count}} dagen",+ "fullDate": "Deadline {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Vervaldatum instellen…",+ "startDatePlaceholder": "Startdatum instellen…",+ "datePlaceholder": "Datum instellen…",+ "thisWeekend": "Dit weekend",+ "nextWeek": "Volgende week",+ "pickDate": "Kies een datum",+ "startsOn": "Begint {{date}}"}},"invitations": {diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex 1d25b2740..a3129637b 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -3496,7 +3496,8 @@"draft": "Wersja robocza","label": "Pull request","merged": "Scalone",- "open": "Otwarte"+ "open": "Otwarte",+ "closed": "Zamknięty"},"priority": {"high": "Wysoki",@@ -3604,7 +3605,6 @@"required": "Wymagane","enterKey": "Enter","toSave": "aby zapisać",- "today": "Dzisiaj","clear": "Wyczyść","setValue": "Ustaw {{field}}…","noMatches": "Brak pasujących opcji",@@ -3661,6 +3661,32 @@"markdownCopied": "Skopiowano jako Markdown","copyFailed": "Nie udało się skopiować do schowka.","pageUrlCopied": "Skopiowano URL strony"+ },+ "due": {+ "overdueDays_one": "{{count}} d. po terminie",+ "overdueDays_few": "{{count}} d. po terminie",+ "overdueDays_many": "{{count}} d. po terminie",+ "overdueDays_other": "{{count}} d. po terminie",+ "overdueWeeks_one": "{{count}} tyg. po terminie",+ "overdueWeeks_few": "{{count}} tyg. po terminie",+ "overdueWeeks_many": "{{count}} tyg. po terminie",+ "overdueWeeks_other": "{{count}} tyg. po terminie",+ "today": "Dzisiaj",+ "tomorrow": "Jutro",+ "inDays_one": "Za {{count}} dzień",+ "inDays_few": "Za {{count}} dni",+ "inDays_many": "Za {{count}} dni",+ "inDays_other": "Za {{count}} dnia",+ "fullDate": "Termin {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Ustaw termin…",+ "startDatePlaceholder": "Ustaw datę rozpoczęcia…",+ "datePlaceholder": "Ustaw datę…",+ "thisWeekend": "Ten weekend",+ "nextWeek": "Przyszły tydzień",+ "pickDate": "Wybierz datę",+ "startsOn": "Początek: {{date}}"}},"press": {diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex a289deda0..924964447 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -3165,7 +3165,8 @@"label": "Pull Request","count_one": "{{count}} PR","count_other": "{{count}} PRs",- "count_many": "{{count}} PRs"+ "count_many": "{{count}} PRs",+ "closed": "Fechado"},"assignee": {"label": "Responsável",@@ -3272,7 +3273,6 @@"required": "Obrigatório","enterKey": "Enter","toSave": "para salvar",- "today": "Hoje","clear": "Limpar","setValue": "Definir {{field}}…","noMatches": "Nenhuma opção correspondente",@@ -3325,6 +3325,29 @@"markdownCopied": "Copiado como Markdown","copyFailed": "Não foi possível copiar para a área de transferência.","pageUrlCopied": "URL da página copiada"+ },+ "due": {+ "overdueDays_one": "{{count}} d de atraso",+ "overdueDays_many": "{{count}} d de atraso",+ "overdueDays_other": "{{count}} d de atraso",+ "overdueWeeks_one": "{{count}} sem. de atraso",+ "overdueWeeks_many": "{{count}} sem. de atraso",+ "overdueWeeks_other": "{{count}} sem. de atraso",+ "today": "Hoje",+ "tomorrow": "Amanhã",+ "inDays_one": "Em {{count}} dia",+ "inDays_many": "Em {{count}} dias",+ "inDays_other": "Em {{count}} dias",+ "fullDate": "Vence em {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Definir prazo…",+ "startDatePlaceholder": "Definir data de início…",+ "datePlaceholder": "Definir data…",+ "thisWeekend": "Este fim de semana",+ "nextWeek": "Próxima semana",+ "pickDate": "Escolher uma data",+ "startsOn": "Começa em {{date}}"}},"invitations": {diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex f1faed886..8e7fc0662 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -3234,7 +3234,8 @@"count_one": "{{count}} PR","count_few": "{{count}} PR","count_many": "{{count}} PR",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "Закрыт"},"assignee": {"label": "Исполнитель",@@ -3374,7 +3375,6 @@"required": "Обязательно","enterKey": "Enter","toSave": "чтобы сохранить",- "today": "Сегодня","clear": "Очистить","setValue": "Задать {{field}}…","noMatches": "Нет подходящих вариантов",@@ -3431,6 +3431,32 @@"markdownCopied": "Скопировано как Markdown","copyFailed": "Не удалось скопировать в буфер обмена.","pageUrlCopied": "URL страницы скопирован"+ },+ "due": {+ "overdueDays_one": "Просрочено на {{count}} д.",+ "overdueDays_few": "Просрочено на {{count}} д.",+ "overdueDays_many": "Просрочено на {{count}} д.",+ "overdueDays_other": "Просрочено на {{count}} д.",+ "overdueWeeks_one": "Просрочено на {{count}} нед.",+ "overdueWeeks_few": "Просрочено на {{count}} нед.",+ "overdueWeeks_many": "Просрочено на {{count}} нед.",+ "overdueWeeks_other": "Просрочено на {{count}} нед.",+ "today": "Сегодня",+ "tomorrow": "Завтра",+ "inDays_one": "Через {{count}} день",+ "inDays_few": "Через {{count}} дня",+ "inDays_many": "Через {{count}} дней",+ "inDays_other": "Через {{count}} дня",+ "fullDate": "Срок {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Установить срок…",+ "startDatePlaceholder": "Установить дату начала…",+ "datePlaceholder": "Установить дату…",+ "thisWeekend": "В эти выходные",+ "nextWeek": "На следующей неделе",+ "pickDate": "Выбрать дату",+ "startsOn": "Начало: {{date}}"}},"invitations": {diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 597b9e361..36c1e7f64 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -3116,7 +3116,8 @@"open": "Açık","label": "Pull Request","count_one": "{{count}} PR",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "Kapalı"},"assignee": {"label": "Atanan",@@ -3222,7 +3223,6 @@"required": "Zorunlu","enterKey": "Enter","toSave": "kaydetmek için",- "today": "Bugün","clear": "Temizle","setValue": "{{field}} ayarla…","noMatches": "Eşleşen seçenek yok",@@ -3271,6 +3271,26 @@"markdownCopied": "Markdown olarak kopyalandı","copyFailed": "Panoya kopyalanamadı.","pageUrlCopied": "Sayfa URL'si kopyalandı"+ },+ "due": {+ "overdueDays_one": "{{count}} g gecikti",+ "overdueDays_other": "{{count}} g gecikti",+ "overdueWeeks_one": "{{count}} hf gecikti",+ "overdueWeeks_other": "{{count}} hf gecikti",+ "today": "Bugün",+ "tomorrow": "Yarın",+ "inDays_one": "{{count}} gün içinde",+ "inDays_other": "{{count}} gün içinde",+ "fullDate": "Son tarih {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Bitiş tarihi belirle…",+ "startDatePlaceholder": "Başlangıç tarihi belirle…",+ "datePlaceholder": "Tarih belirle…",+ "thisWeekend": "Bu hafta sonu",+ "nextWeek": "Gelecek hafta",+ "pickDate": "Tarih seç",+ "startsOn": "Başlangıç: {{date}}"}},"invitations": {diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex 7f4f45f37..ec57ca094 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -3214,7 +3214,8 @@"count_one": "{{count}} PR","count_few": "{{count}} PR","count_many": "{{count}} PR",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "Закрито"},"assignee": {"label": "Виконавець",@@ -3322,7 +3323,6 @@"required": "Обов'язково","enterKey": "Enter","toSave": "щоб зберегти",- "today": "Сьогодні","clear": "Очистити","setValue": "Задати {{field}}…","noMatches": "Немає відповідних варіантів",@@ -3379,6 +3379,32 @@"markdownCopied": "Скопійовано як Markdown","copyFailed": "Не вдалося скопіювати в буфер обміну.","pageUrlCopied": "URL сторінки скопійовано"+ },+ "due": {+ "overdueDays_one": "Прострочено на {{count}} дн.",+ "overdueDays_few": "Прострочено на {{count}} дн.",+ "overdueDays_many": "Прострочено на {{count}} дн.",+ "overdueDays_other": "Прострочено на {{count}} дн.",+ "overdueWeeks_one": "Прострочено на {{count}} тиж.",+ "overdueWeeks_few": "Прострочено на {{count}} тиж.",+ "overdueWeeks_many": "Прострочено на {{count}} тиж.",+ "overdueWeeks_other": "Прострочено на {{count}} тиж.",+ "today": "Сьогодні",+ "tomorrow": "Завтра",+ "inDays_one": "Через {{count}} день",+ "inDays_few": "Через {{count}} дні",+ "inDays_many": "Через {{count}} днів",+ "inDays_other": "Через {{count}} дня",+ "fullDate": "Термін {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Установити термін…",+ "startDatePlaceholder": "Установити дату початку…",+ "datePlaceholder": "Установити дату…",+ "thisWeekend": "Цими вихідними",+ "nextWeek": "Наступного тижня",+ "pickDate": "Вибрати дату",+ "startsOn": "Початок: {{date}}"}},"invitations": {diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex 3ea8b73bb..7f075501f 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -3067,7 +3067,8 @@"draft": "Bản nháp","open": "Đang mở","label": "Pull Request",- "count_other": "{{count}} PR"+ "count_other": "{{count}} PR",+ "closed": "Đã đóng"},"assignee": {"label": "Người được giao",@@ -3172,7 +3173,6 @@"required": "Bắt buộc","enterKey": "Enter","toSave": "để lưu",- "today": "Hôm nay","clear": "Xóa","setValue": "Đặt {{field}}…","noMatches": "Không có tùy chọn phù hợp",@@ -3217,6 +3217,23 @@"markdownCopied": "Đã sao chép dưới dạng Markdown","copyFailed": "Không thể sao chép vào bộ nhớ tạm.","pageUrlCopied": "Đã sao chép URL trang"+ },+ "due": {+ "overdueDays_other": "Quá hạn {{count}} ngày",+ "overdueWeeks_other": "Quá hạn {{count}} tuần",+ "today": "Hôm nay",+ "tomorrow": "Ngày mai",+ "inDays_other": "Còn {{count}} ngày",+ "fullDate": "Hạn {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "Đặt hạn chót…",+ "startDatePlaceholder": "Đặt ngày bắt đầu…",+ "datePlaceholder": "Đặt ngày…",+ "thisWeekend": "Cuối tuần này",+ "nextWeek": "Tuần sau",+ "pickDate": "Chọn ngày",+ "startsOn": "Bắt đầu {{date}}"}},"invitations": {diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex 334f64c9f..89f56c25a 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -3081,7 +3081,8 @@"draft": "草稿","open": "打开","label": "Pull Request",- "count_other": "{{count}} 个 PR"+ "count_other": "{{count}} 个 PR",+ "closed": "已关闭"},"assignee": {"label": "负责人",@@ -3172,7 +3173,6 @@"required": "必填","enterKey": "Enter","toSave": "保存",- "today": "今天","clear": "清除","setValue": "设置{{field}}…","noMatches": "没有匹配的选项",@@ -3217,6 +3217,23 @@"markdownCopied": "已复制为 Markdown","copyFailed": "无法复制到剪贴板。","pageUrlCopied": "已复制页面 URL"+ },+ "due": {+ "overdueDays_other": "逾期 {{count}} 天",+ "overdueWeeks_other": "逾期 {{count}} 周",+ "today": "今天",+ "tomorrow": "明天",+ "inDays_other": "{{count}} 天后",+ "fullDate": "截止 {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "设置截止日期…",+ "startDatePlaceholder": "设置开始日期…",+ "datePlaceholder": "设置日期…",+ "thisWeekend": "本周末",+ "nextWeek": "下周",+ "pickDate": "选择日期",+ "startsOn": "开始于 {{date}}"}},"invitations": {diff --git a/i18n/zh-TW.json b/i18n/zh-TW.jsonindex be8b4f3d4..e59f5c423 100644--- a/i18n/zh-TW.json+++ b/i18n/zh-TW.json@@ -3081,7 +3081,8 @@"draft": "草稿","open": "開啟中","label": "Pull Request",- "count_other": "{{count}} 個 PR"+ "count_other": "{{count}} 個 PR",+ "closed": "已關閉"},"assignee": {"label": "負責人",@@ -3172,7 +3173,6 @@"required": "必填","enterKey": "Enter","toSave": "儲存",- "today": "今天","clear": "清除","setValue": "設定{{field}}…","noMatches": "沒有符合的選項",@@ -3217,6 +3217,23 @@"markdownCopied": "已複製為 Markdown","copyFailed": "無法複製到剪貼簿。","pageUrlCopied": "已複製頁面 URL"+ },+ "due": {+ "overdueDays_other": "逾期 {{count}} 天",+ "overdueWeeks_other": "逾期 {{count}} 週",+ "today": "今天",+ "tomorrow": "明天",+ "inDays_other": "{{count}} 天後",+ "fullDate": "截止 {{date}}"+ },+ "datePicker": {+ "dueDatePlaceholder": "設定截止日期…",+ "startDatePlaceholder": "設定開始日期…",+ "datePlaceholder": "設定日期…",+ "thisWeekend": "本週末",+ "nextWeek": "下週",+ "pickDate": "選擇日期",+ "startsOn": "開始於 {{date}}"}},"invitations": {