Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(web): rework project views and custom fields

Andrej93f328d7382e
diff --git a/apps/web/src/components/account/change-password/change-password-dialog.tsx b/apps/web/src/components/account/change-password/change-password-dialog.tsx
index 6788df537..be87ac676 100644
--- a/apps/web/src/components/account/change-password/change-password-dialog.tsx
+++ b/apps/web/src/components/account/change-password/change-password-dialog.tsx
@@ -1,4 +1,5 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { KeyRoundIcon } from "lucide-react";
import { useMemo } from "react";
import { type Path, useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -90,7 +91,9 @@ export function ChangePasswordDialog({
currentPassword: values.currentPassword,
newPassword: values.newPassword,
});
- toast.success(t("settings:securityPage.updateSuccess"));
+ toast.success(t("settings:securityPage.updateSuccess"), {
+ icon: KeyRoundIcon,
+ });
handleOpenChange(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/account/change-password/change-password-settings.test.tsx b/apps/web/src/components/account/change-password/change-password-settings.test.tsx
index 882c4f8ba..ef8539f03 100644
--- a/apps/web/src/components/account/change-password/change-password-settings.test.tsx
+++ b/apps/web/src/components/account/change-password/change-password-settings.test.tsx
@@ -165,6 +165,7 @@ describe("ChangePasswordSettings", () => {
);
expect(m.success).toHaveBeenCalledWith(
"settings:securityPage.updateSuccess",
+ { icon: expect.anything() },
);
await waitFor(() =>
expect(
diff --git a/apps/web/src/components/activity/comment-card.tsx b/apps/web/src/components/activity/comment-card.tsx
index e4a5b639e..147b76810 100644
--- a/apps/web/src/components/activity/comment-card.tsx
+++ b/apps/web/src/components/activity/comment-card.tsx
@@ -1,5 +1,11 @@
import { useQueryClient } from "@tanstack/react-query";
-import { ExternalLink, FolderGit, Pencil, Trash2 } from "lucide-react";
+import {
+ ExternalLink,
+ FolderGit,
+ Pencil,
+ Trash2,
+ MessageSquareIcon,
+} from "lucide-react";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import CommentEditor from "@/components/activity/comment-editor";
@@ -127,7 +133,7 @@ export default function CommentCard({
setIsEditing(false);
await queryClient.invalidateQueries({ queryKey: ["activities", taskId] });
- toast.success(t("activity:comment.updated"));
+ toast.success(t("activity:comment.updated"), { icon: MessageSquareIcon });
} catch (error) {
console.error("Failed to update comment:", error);
toast.error(t("activity:comment.failedToUpdate"));
diff --git a/apps/web/src/components/activity/comment-editor.tsx b/apps/web/src/components/activity/comment-editor.tsx
index 718a658dd..e4f8b538c 100644
--- a/apps/web/src/components/activity/comment-editor.tsx
+++ b/apps/web/src/components/activity/comment-editor.tsx
@@ -24,6 +24,7 @@ import {
ListTodo,
Paperclip,
UnderlineIcon,
+ ImageUpIcon,
} from "lucide-react";
import type { MouseEvent as ReactMouseEvent } from "react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -348,6 +349,7 @@ export default function CommentEditor({
uploadedAsset.kind === "image"
? t("activity:comment.editor.imageUploaded")
: t("activity:comment.editor.fileAttached"),
+ { icon: ImageUpIcon },
);
} catch (error) {
toast.dismiss(loadingToast);
diff --git a/apps/web/src/components/activity/comment-input.tsx b/apps/web/src/components/activity/comment-input.tsx
index 14aa86d3d..8bece07fa 100644
--- a/apps/web/src/components/activity/comment-input.tsx
+++ b/apps/web/src/components/activity/comment-input.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
-import { ArrowUp, Paperclip } from "lucide-react";
+import { ArrowUp, Paperclip, MessageSquareIcon } from "lucide-react";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import CommentEditor from "@/components/activity/comment-editor";
@@ -43,7 +43,7 @@ export default function CommentInput({ taskId, projectId }: CommentInputProps) {
setContent("");
await queryClient.invalidateQueries({ queryKey: ["activities", taskId] });
- toast.success(t("activity:comment.added"));
+ toast.success(t("activity:comment.added"), { icon: MessageSquareIcon });
} catch (error) {
console.error("Failed to create comment:", error);
toast.error(t("activity:comment.failedToAdd"));
diff --git a/apps/web/src/components/backlog-list-view/backlog-section.tsx b/apps/web/src/components/backlog-list-view/backlog-section.tsx
index 289658118..b34efa824 100644
--- a/apps/web/src/components/backlog-list-view/backlog-section.tsx
+++ b/apps/web/src/components/backlog-list-view/backlog-section.tsx
@@ -5,9 +5,10 @@ import {
} from "@dnd-kit/sortable";
import { AnimatePresence, motion } from "framer-motion";
import { ChevronRight, type Clock, Plus } from "lucide-react";
-import { memo } from "react";
+import { memo, useState } from "react";
import { useTranslation } from "react-i18next";
import { cn } from "@/lib/cn";
+import { EASE_OUT } from "@/lib/motion";
import type Task from "@/types/task";
import BacklogTaskRow from "./backlog-task-row";
@@ -31,6 +32,7 @@ const BacklogSection = memo(function BacklogSection({
onAddTask?: () => void;
}) {
const { t } = useTranslation();
+ const [animateExpand, setAnimateExpand] = useState(false);
const { setNodeRef } = useDroppable({
id: sectionId,
data: {
@@ -49,13 +51,16 @@ const BacklogSection = memo(function BacklogSection({
<div className="flex items-center justify-between py-2 px-4 bg-muted/60 border-b border-border/50">
<button
type="button"
- onClick={() => onToggle(sectionId)}
+ onClick={() => {
+ setAnimateExpand(true);
+ onToggle(sectionId);
+ }}
aria-expanded={isExpanded}
className="touch-hitbox relative flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"
>
<ChevronRight
className={cn(
- "w-3 h-3 transition-transform",
+ "w-3 h-3 transition-transform duration-150 ease-out",
isExpanded && "rotate-90",
)}
/>
@@ -92,7 +97,11 @@ const BacklogSection = memo(function BacklogSection({
{isExpanded && (
<div
ref={setNodeRef}
- className="bg-card transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0"
+ className={cn(
+ "bg-card",
+ animateExpand &&
+ "transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0",
+ )}
>
<SortableContext items={tasks} strategy={verticalListSortingStrategy}>
<AnimatePresence initial={false} mode="popLayout">
@@ -102,7 +111,7 @@ const BacklogSection = memo(function BacklogSection({
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
- transition={{ duration: 0.15, ease: [0.23, 1, 0.32, 1] }}
+ transition={{ duration: 0.15, ease: EASE_OUT }}
>
<BacklogTaskRow task={task} />
</motion.div>
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.tsx
index 8433d6770..abea4ff74 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,12 +2,7 @@ import { 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,
- SlidersHorizontal,
-} from "lucide-react";
+import { Calendar, CalendarClock, CalendarX, 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";
@@ -22,13 +17,9 @@ import {
} from "@/components/ui/alert-dialog";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
-import {
- HoverCard,
- HoverCardContent,
- HoverCardTrigger,
-} from "@/components/ui/preview-card";
+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 useGetCustomFieldValuesByProject from "@/hooks/queries/custom-field/use-get-custom-field-values-by-project";
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";
@@ -47,6 +38,7 @@ 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 { EASE_OUT_CSS } from "@/lib/motion";
type BacklogTaskRowProps = {
task: Task;
@@ -64,7 +56,10 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
transform,
transition,
isDragging,
- } = useSortable({ id: task.id });
+ } = useSortable({
+ id: task.id,
+ transition: { duration: 200, easing: EASE_OUT_CSS },
+ });
const projectId = useProjectStore((state) => state.project?.id);
const projectSlug = useProjectStore((state) => state.project?.slug);
@@ -106,25 +101,11 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
);
}, [workspaceUsers, task.userId]);
- const { data: projectCustomFieldValues = [] } =
- useGetCustomFieldValuesByProject(task.projectId);
-
- const customFieldValues = useMemo(
- () => projectCustomFieldValues.filter((field) => field.taskId === task.id),
- [projectCustomFieldValues, task.id],
- );
-
- const activeCustomFieldValues = useMemo(
- () =>
- customFieldValues.filter(
- (field) => field.value !== null && field.value !== "",
- ),
- [customFieldValues],
- );
+ const cardFields = useTaskCardFields(task.projectId, task.id);
const style: CSSProperties = {
transform: CSS.Transform.toString(transform),
- transition: transition || "transform 200ms cubic-bezier(0.23, 1, 0.32, 1)",
+ transition: transition || `transform 200ms ${EASE_OUT_CSS}`,
touchAction: isDragging ? "none" : "auto",
};
@@ -174,7 +155,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
const handleDeleteTask = async () => {
try {
await deleteTask(task.id);
- toast.success(t("tasks:delete.success"));
+ toast.success(t("tasks:delete.success"), { icon: Trash2Icon });
} catch (error) {
toast.error(
error instanceof Error ? error.message : t("tasks:delete.error"),
@@ -186,6 +167,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
<div
ref={setNodeRef}
style={style}
+ data-kaneo-sortable
className={cn(
"border-b border-border/50 transition-colors duration-150",
isDragging && "opacity-50",
@@ -225,6 +207,7 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
</span>
<div className="flex items-center gap-1">
<TaskProgressBadges task={task} />
+ <CardFieldList fields={cardFields} max={3} />
{showLabels && <TaskLabels labels={task.labels ?? []} />}
</div>
</div>
@@ -246,53 +229,6 @@ const BacklogTaskRow = memo(function BacklogTaskRow({
</div>
)}
- {activeCustomFieldValues.length > 0 && (
- <HoverCard openDelay={200} closeDelay={100}>
- <HoverCardTrigger asChild>
- <button
- type="button"
- className="inline-flex items-center gap-1 rounded border border-border/70 bg-muted/55 px-2 py-1 text-[10px] font-medium text-muted-foreground cursor-default focus:outline-none focus:ring-2 focus:ring-ring/50 focus:ring-offset-1"
- onClick={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- onPointerDown={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- aria-label={t("tasks:customFields.ariaLabel", {
- count: activeCustomFieldValues.length,
- })}
- >
- <SlidersHorizontal className="w-3 h-3" />
- <span>{activeCustomFieldValues.length}</span>
- </button>
- </HoverCardTrigger>
- <HoverCardContent
- className="w-fit p-2.5"
- side="bottom"
- onClick={(e) => e.stopPropagation()}
- onPointerDown={(e) => e.stopPropagation()}
- >
- <div className="space-y-1.5">
- {activeCustomFieldValues.map((field) => (
- <div
- key={field.id}
- className="flex items-center justify-between gap-2 text-xs"
- >
- <span className="font-medium text-muted-foreground truncate">
- {field.fieldName}
- </span>
- <span className="text-foreground truncate max-w-24">
- {field.value}
- </span>
- </div>
- ))}
- </div>
- </HoverCardContent>
- </HoverCard>
- )}
-
{showAssignees && (
<div className="flex-shrink-0">
{task.userId ? (
diff --git a/apps/web/src/components/backlog-list-view/index.tsx b/apps/web/src/components/backlog-list-view/index.tsx
index 003d3ef44..90547e83c 100644
--- a/apps/web/src/components/backlog-list-view/index.tsx
+++ b/apps/web/src/components/backlog-list-view/index.tsx
@@ -17,6 +17,7 @@ import { useNavigate } from "@tanstack/react-router";
import { produce } from "immer";
import { Archive, Clock, Flag } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
+import { useReducedMotion } from "framer-motion";
import { useTranslation } from "react-i18next";
import { priorityColorsTaskCard } from "@/constants/priority-colors";
import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";
@@ -39,6 +40,7 @@ function BacklogListView({
disableDragDrop = false,
}: BacklogListViewProps) {
const { t } = useTranslation();
+ const reduceMotion = useReducedMotion();
const { mutate: updateTask } = useUpdateTask();
const setProject = useProjectStore((state) => state.setProject);
const setAvailableTasks = useBacklogBulkSelectionStore(
@@ -337,7 +339,7 @@ function BacklogListView({
</div>
</div>
- <DragOverlay>
+ <DragOverlay dropAnimation={reduceMotion ? null : undefined}>
{activeTask && (
<div className="bg-card border border-border rounded-lg shadow-lg p-2 max-w-[200px] cursor-grabbing">
<div className="flex items-center gap-2">
diff --git a/apps/web/src/components/billing/billing-settings-page.tsx b/apps/web/src/components/billing/billing-settings-page.tsx
index 2436b17f4..3c1c4fbc3 100644
--- a/apps/web/src/components/billing/billing-settings-page.tsx
+++ b/apps/web/src/components/billing/billing-settings-page.tsx
@@ -1,5 +1,6 @@
import { useRef } from "react";
import { useTranslation } from "react-i18next";
+import { CheckoutSuccessCallout } from "@/components/billing/checkout-success-callout";
import { CurrentPlanCard } from "@/components/billing/current-plan-card";
import { PlanPicker } from "@/components/billing/plan-picker";
import PageTitle from "@/components/page-title";
@@ -12,9 +13,13 @@ import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
type BillingSettingsPageProps = {
checkout: string | undefined;
+ onDismissCheckout: () => void;
};
-export function BillingSettingsPage({ checkout }: BillingSettingsPageProps) {
+export function BillingSettingsPage({
+ checkout,
+ onDismissCheckout,
+}: BillingSettingsPageProps) {
const { t } = useTranslation();
const { workspace, isAdmin } = useWorkspacePermission();
const workspaceId = workspace?.id;
@@ -66,6 +71,10 @@ export function BillingSettingsPage({ checkout }: BillingSettingsPageProps) {
: undefined
}
>
+ {checkout === "success" ? (
+ <CheckoutSuccessCallout onDismiss={onDismissCheckout} />
+ ) : null}
+
<SettingsSection title={t("settings:billing.currentPlan.title")}>
<CurrentPlanCard
billing={billing}
diff --git a/apps/web/src/components/billing/checkout-success-callout.test.tsx b/apps/web/src/components/billing/checkout-success-callout.test.tsx
new file mode 100644
index 000000000..29b880443
--- /dev/null
+++ b/apps/web/src/components/billing/checkout-success-callout.test.tsx
@@ -0,0 +1,22 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, expect, it, vi } from "vite-plus/test";
+import { CheckoutSuccessCallout } from "./checkout-success-callout";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+
+afterEach(cleanup);
+
+it("thanks the subscriber and can be dismissed", () => {
+ const onDismiss = vi.fn();
+ render(<CheckoutSuccessCallout onDismiss={onDismiss} />);
+
+ expect(
+ screen
+ .getByRole("status")
+ .textContent?.includes("settings:billing.checkoutSuccess.title"),
+ ).toBe(true);
+ fireEvent.click(screen.getByRole("button", { name: "common:actions.close" }));
+ expect(onDismiss).toHaveBeenCalledOnce();
+});
diff --git a/apps/web/src/components/billing/checkout-success-callout.tsx b/apps/web/src/components/billing/checkout-success-callout.tsx
new file mode 100644
index 000000000..00244296a
--- /dev/null
+++ b/apps/web/src/components/billing/checkout-success-callout.tsx
@@ -0,0 +1,38 @@
+import { X } from "lucide-react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import { DrawnCheck } from "./drawn-check";
+
+export function CheckoutSuccessCallout({
+ onDismiss,
+}: {
+ onDismiss: () => void;
+}) {
+ const { t } = useTranslation();
+
+ return (
+ <div
+ role="status"
+ className="flex items-center gap-3 rounded-xl border border-success/24 bg-success/8 p-4 text-success-foreground transition-[opacity,translate,scale] duration-300 ease-out starting:translate-y-2 starting:scale-98 starting:opacity-0 motion-reduce:starting:translate-y-0 motion-reduce:starting:scale-100 dark:bg-success/12"
+ >
+ <DrawnCheck />
+ <div className="min-w-0 flex-1 space-y-0.5">
+ <p className="font-medium text-sm">
+ {t("settings:billing.checkoutSuccess.title")}
+ </p>
+ <p className="text-xs opacity-80">
+ {t("settings:billing.checkoutSuccess.description")}
+ </p>
+ </div>
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ aria-label={t("common:actions.close")}
+ onClick={onDismiss}
+ className="shrink-0 text-success-foreground"
+ >
+ <X />
+ </Button>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/billing/drawn-check.tsx b/apps/web/src/components/billing/drawn-check.tsx
new file mode 100644
index 000000000..bdf1a8a0e
--- /dev/null
+++ b/apps/web/src/components/billing/drawn-check.tsx
@@ -0,0 +1,22 @@
+export function DrawnCheck() {
+ return (
+ <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-success/16 transition-[scale] duration-300 ease-out starting:scale-50 motion-reduce:starting:scale-100">
+ <svg
+ viewBox="0 0 24 24"
+ className="size-4"
+ aria-hidden="true"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth={2.5}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path
+ d="M5 12.5 10 17.5 19 7"
+ pathLength={1}
+ className="transition-[stroke-dashoffset] delay-150 duration-500 ease-out [stroke-dasharray:1] [stroke-dashoffset:0] starting:[stroke-dashoffset:1] motion-reduce:starting:[stroke-dashoffset:0]"
+ />
+ </svg>
+ </span>
+ );
+}
diff --git a/apps/web/src/components/board/board-toolbar.tsx b/apps/web/src/components/board/board-toolbar.tsx
deleted file mode 100644
index 2c88e2ab8..000000000
--- a/apps/web/src/components/board/board-toolbar.tsx
+++ /dev/null
@@ -1,867 +0,0 @@
-import { Filter, PanelsTopLeft, Rows3, X } from "lucide-react";
-import type { ReactNode } from "react";
-import { useTranslation } from "react-i18next";
-import SortControl from "@/components/common/sort-control";
-import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuGroup,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuTrigger,
-} from "@/components/ui/menu";
-import {
- type BoardFilters,
- DUE_DATE_FILTER_VALUES,
-} from "@/hooks/use-task-filters";
-import { cn } from "@/lib/cn";
-import { getColumnIcon } from "@/lib/column";
-import { getInitials } from "@/lib/get-initials";
-import { getPriorityLabel } from "@/lib/i18n/domain";
-import { resolveLabelColor } from "@/lib/label-color";
-import { getPriorityIcon } from "@/lib/priority";
-import type { SortConfig } from "@/lib/sort-tasks";
-import { useBackgroundStore } from "@/store/background";
-import type { ProjectWithTasks } from "@/types/project";
-
-type WorkspaceLabel = {
- id: string;
- name: string;
- color: string;
-};
-
-type ActiveUsers = {
- members?: Array<{
- userId: string;
- user?: {
- image?: string | null;
- name?: string | null;
- } | null;
- }>;
-};
-
-type BoardToolbarProps = {
- project?: ProjectWithTasks | null;
- filters: BoardFilters;
- updateFilter: (
- key: keyof BoardFilters,
- value: BoardFilters[keyof BoardFilters],
- ) => void;
- updateLabelFilter: (labelId: string) => void;
- updateCustomFieldFilter: (fieldId: string, value: string) => void;
- clearFilters: () => void;
- hasActiveFilters: boolean;
- users?: ActiveUsers;
- workspaceLabels: WorkspaceLabel[];
- viewMode: "board" | "list";
- setViewMode: (mode: "board" | "list") => void;
- sort: SortConfig;
- onSortChange: (sort: SortConfig) => void;
- customFieldDefinitions?: CustomFieldDefinition[];
- usedCustomFieldValues?: Record<string, string[]>;
-};
-
-function CheckSlot({ checked }: { checked: boolean }) {
- return (
- <span
- className={`inline-flex size-4 shrink-0 items-center justify-center rounded-[4px] border ${
- checked
- ? "border-primary bg-primary text-primary-foreground"
- : "border-input bg-background"
- }`}
- >
- {checked ? "✓" : null}
- </span>
- );
-}
-
-type ActiveFilterChipProps = {
- subject: string;
- operator: string;
- value: ReactNode;
- onClear: () => void;
-};
-
-function ActiveFilterChip({
- subject,
- operator,
- value,
- onClear,
-}: ActiveFilterChipProps) {
- const { background } = useBackgroundStore();
- return (
- <div
- className={cn(
- "inline-flex h-7 items-center rounded-md border border-border bg-background text-xs shadow-xs",
- {
- "bg-accent": !!background,
- },
- )}
- >
- <span className="px-2 font-medium text-foreground">{subject}</span>
- <span className="h-full w-px bg-border" />
- <span className="px-2 text-foreground/80">{operator}</span>
- <span className="h-full w-px bg-border" />
- <span className="flex px-2 text-foreground">{value}</span>
- <span className="h-full w-px bg-border" />
- <button
- className="inline-flex h-full w-7 items-center justify-center rounded-r-md text-foreground/70 hover:bg-accent/70 hover:text-foreground"
- onClick={onClear}
- type="button"
- >
- <X className="h-3.5 w-3.5" />
- </button>
- </div>
- );
-}
-
-function StackedIcons({
- items,
- itemClassName,
-}: {
- items: Array<{ id: string; node: ReactNode }>;
- itemClassName?: string;
-}) {
- if (items.length === 0) return null;
-
- return (
- <span className="inline-flex items-center -space-x-1.5">
- {items.slice(0, 3).map((item) => (
- <span
- key={item.id}
- className={`inline-flex size-4 items-center justify-center rounded-full bg-background ${
- itemClassName ?? ""
- }`}
- >
- {item.node}
- </span>
- ))}
- </span>
- );
-}
-
-export default function BoardToolbar({
- project,
- filters,
- updateFilter,
- updateLabelFilter,
- updateCustomFieldFilter,
- clearFilters,
- hasActiveFilters,
- users,
- workspaceLabels,
- viewMode,
- setViewMode,
- sort,
- onSortChange,
- customFieldDefinitions = [],
- usedCustomFieldValues = {},
-}: BoardToolbarProps) {
- const { t } = useTranslation();
- const selectedStatusIds = filters.status ?? [];
- const selectedPriorityIds = filters.priority ?? [];
- const selectedAssigneeIds = filters.assignee ?? [];
- const selectedDueDateFilters = filters.dueDate ?? [];
- const { background } = useBackgroundStore();
-
- const filterableCustomFields = customFieldDefinitions;
-
- const activeCustomFieldCount = filters.customFields
- ? Object.values(filters.customFields).reduce(
- (sum, vals) => sum + (vals?.length ?? 0),
- 0,
- )
- : 0;
-
- const getStatusDisplayName = (statusId: string) => {
- const column = project?.columns?.find((col) => col.id === statusId);
- return column?.name || statusId;
- };
- const getStatusIcon = (statusId: string) => {
- const column = project?.columns?.find((col) => col.id === statusId);
- return getColumnIcon(statusId, column?.isFinal, column?.icon);
- };
-
- const getPriorityDisplayName = (priority: string) =>
- getPriorityLabel(priority);
-
- const getAssigneeDisplayName = (userId: string) => {
- const member = users?.members?.find((m) => m.userId === userId);
- return member?.user?.name || t("common:people.unknown");
- };
- const getAssigneeAvatar = (userId: string) => {
- const member = users?.members?.find((m) => m.userId === userId);
- return (
- <Avatar className="h-4 w-4">
- <AvatarImage
- src={member?.user?.image ?? ""}
- alt={member?.user?.name || ""}
- />
- <AvatarFallback className="border border-border/30 text-[9px] font-medium">
- {getInitials(member?.user?.name)}
- </AvatarFallback>
- </Avatar>
- );
- };
-
- const uniqueLabels = workspaceLabels.reduce(
- (acc: WorkspaceLabel[], label: WorkspaceLabel) => {
- const existing = acc.find(
- (l) => l.name === label.name && l.color === label.color,
- );
- if (!existing) acc.push(label);
- return acc;
- },
- [],
- );
-
- const isLabelGroupSelected = (label: { name: string; color: string }) => {
- return workspaceLabels
- .filter((l) => l.name === label.name && l.color === label.color)
- .some((l) => filters.labels?.includes(l.id));
- };
-
- const toggleStatusFilter = (statusId: string) => {
- const exists = selectedStatusIds.includes(statusId);
- const next = exists
- ? selectedStatusIds.filter((id) => id !== statusId)
- : [...selectedStatusIds, statusId];
- updateFilter("status", next.length > 0 ? next : null);
- };
-
- const togglePriorityFilter = (priority: string) => {
- const exists = selectedPriorityIds.includes(priority);
- const next = exists
- ? selectedPriorityIds.filter((id) => id !== priority)
- : [...selectedPriorityIds, priority];
- updateFilter("priority", next.length > 0 ? next : null);
- };
-
- const toggleAssigneeFilter = (userId: string) => {
- const exists = selectedAssigneeIds.includes(userId);
- const next = exists
- ? selectedAssigneeIds.filter((id) => id !== userId)
- : [...selectedAssigneeIds, userId];
- updateFilter("assignee", next.length > 0 ? next : null);
- };
-
- const toggleDueDateFilter = (dueDate: string) => {
- const exists = selectedDueDateFilters.includes(dueDate);
- const next = exists
- ? selectedDueDateFilters.filter((id) => id !== dueDate)
- : [...selectedDueDateFilters, dueDate];
- updateFilter("dueDate", next.length > 0 ? next : null);
- };
-
- const toggleLabelGroup = (label: { name: string; color: string }) => {
- const matching = workspaceLabels.filter(
- (l) => l.name === label.name && l.color === label.color,
- );
- const anySelected = matching.some((l) => filters.labels?.includes(l.id));
-
- for (const l of matching) {
- if (
- (anySelected && filters.labels?.includes(l.id)) ||
- (!anySelected && !filters.labels?.includes(l.id))
- ) {
- updateLabelFilter(l.id);
- }
- }
- };
-
- const clearLabelFilters = () => {
- if (!filters.labels || filters.labels.length === 0) return;
- for (const labelId of filters.labels) updateLabelFilter(labelId);
- };
-
- const clearCustomFieldFilter = (fieldId: string) => {
- const current = filters.customFields ?? {};
- const updated = { ...current };
- delete updated[fieldId];
- updateFilter(
- "customFields",
- Object.keys(updated).length > 0 ? updated : null,
- );
- };
-
- const clearAllCustomFieldFilters = () => {
- updateFilter("customFields", null);
- };
-
- return (
- <div className="border-border/80 border-b bg-card/80 backdrop-blur supports-[backdrop-filter]:bg-card/70">
- <div className="flex min-h-10 items-center px-2 py-1.5 md:px-3">
- <div className="flex w-full flex-wrap items-center justify-between gap-2">
- <div className="flex flex-wrap items-center gap-1.5">
- <DropdownMenu>
- <DropdownMenuTrigger
- render={
- <button
- type="button"
- className={cn(
- "inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-background px-2.5 text-foreground text-xs font-medium outline-none ring-0 hover:bg-accent/60",
- {
- "bg-accent hover:bg-input": !!background,
- },
- )}
- />
- }
- >
- <Filter className="h-3 w-3" />
- {t("common:actions.filter")}
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-56" align="start">
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:boardFilters.filterBy")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- <DropdownMenuSeparator />
-
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- {t("tasks:boardFilters.subjects.status")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-72">
- <div className="grid grid-cols-1 gap-1 p-1">
- <button
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedStatusIds.length === 0
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => updateFilter("status", null)}
- type="button"
- >
- <CheckSlot checked={selectedStatusIds.length === 0} />
- {t("tasks:boardFilters.allStatuses")}
- </button>
- {project?.columns?.map((column) => (
- <button
- key={column.id}
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedStatusIds.includes(column.id)
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => toggleStatusFilter(column.id)}
- type="button"
- >
- <CheckSlot
- checked={selectedStatusIds.includes(column.id)}
- />
- <span className="inline-flex h-4 w-4 items-center justify-center">
- {getStatusIcon(column.id)}
- </span>
- <span className="truncate">{column.name}</span>
- </button>
- ))}
- </div>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- {t("tasks:boardFilters.subjects.priority")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-72">
- <div className="grid grid-cols-1 gap-1 p-1">
- <button
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedPriorityIds.length === 0
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => updateFilter("priority", null)}
- type="button"
- >
- <CheckSlot checked={selectedPriorityIds.length === 0} />
- {t("tasks:boardFilters.allPriorities")}
- </button>
- {["urgent", "high", "medium", "low"].map((priority) => (
- <button
- key={priority}
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedPriorityIds.includes(priority)
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => togglePriorityFilter(priority)}
- type="button"
- >
- <CheckSlot
- checked={selectedPriorityIds.includes(priority)}
- />
- <span className="inline-flex h-4 w-4 items-center justify-center [&>svg]:h-4 [&>svg]:w-4">
- {getPriorityIcon(priority)}
- </span>
- <span className="truncate capitalize">
- {getPriorityDisplayName(priority)}
- </span>
- </button>
- ))}
- </div>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- {t("tasks:boardFilters.subjects.assignee")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-64">
- <div className="grid grid-cols-1 gap-1 p-1">
- <button
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedAssigneeIds.length === 0
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => updateFilter("assignee", null)}
- type="button"
- >
- <CheckSlot checked={selectedAssigneeIds.length === 0} />
- {t("tasks:boardFilters.allAssignees")}
- </button>
- {users?.members?.map((member) => (
- <button
- key={member.userId}
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedAssigneeIds.includes(member.userId)
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => toggleAssigneeFilter(member.userId)}
- type="button"
- >
- <CheckSlot
- checked={selectedAssigneeIds.includes(
- member.userId,
- )}
- />
- <span className="inline-flex items-center gap-2">
- <Avatar className="h-5 w-5">
- <AvatarImage
- src={member.user?.image ?? ""}
- alt={member.user?.name || ""}
- />
- <AvatarFallback className="border border-border/30 text-[10px] font-medium">
- {getInitials(member.user?.name)}
- </AvatarFallback>
- </Avatar>
- <span>{member.user?.name}</span>
- </span>
- </button>
- ))}
- </div>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- {t("tasks:boardFilters.subjects.dueDate")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-56">
- <div className="grid grid-cols-1 gap-1 p-1">
- <button
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedDueDateFilters.length === 0
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => updateFilter("dueDate", null)}
- type="button"
- >
- <CheckSlot
- checked={selectedDueDateFilters.length === 0}
- />
- {t("tasks:boardFilters.allDueDates")}
- </button>
- {[
- DUE_DATE_FILTER_VALUES.dueThisWeek,
- DUE_DATE_FILTER_VALUES.dueNextWeek,
- DUE_DATE_FILTER_VALUES.noDueDate,
- ].map((dueDate) => (
- <button
- key={dueDate}
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedDueDateFilters.includes(dueDate)
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => toggleDueDateFilter(dueDate)}
- type="button"
- >
- <CheckSlot
- checked={selectedDueDateFilters.includes(dueDate)}
- />
- {t(
- `tasks:backlog.filters.${
- dueDate === DUE_DATE_FILTER_VALUES.dueThisWeek
- ? "dueThisWeek"
- : dueDate === DUE_DATE_FILTER_VALUES.dueNextWeek
- ? "dueNextWeek"
- : "noDueDate"
- }`,
- )}
- </button>
- ))}
- </div>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- {t("tasks:properties.labels")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-64">
- <DropdownMenuItem
- onClick={clearLabelFilters}
- className="h-8 rounded-md text-sm"
- >
- <CheckSlot
- checked={!filters.labels || filters.labels.length === 0}
- />
- {t("tasks:boardFilters.allLabels")}
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- {uniqueLabels.length > 0 ? (
- uniqueLabels.map((label) => (
- <DropdownMenuItem
- key={label.id}
- onClick={() => toggleLabelGroup(label)}
- className="h-8 rounded-md text-sm"
- >
- <CheckSlot checked={isLabelGroupSelected(label)} />
- <span
- className="h-2.5 w-2.5 shrink-0 rounded-full"
- style={{
- backgroundColor: resolveLabelColor(label.color),
- }}
- />
- <span className="max-w-20 truncate">
- {label.name}
- </span>
- </DropdownMenuItem>
- ))
- ) : (
- <DropdownMenuItem
- disabled
- className="h-8 rounded-md text-sm text-muted-foreground"
- >
- {t("tasks:labels.empty")}
- </DropdownMenuItem>
- )}
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- {filterableCustomFields.length > 0 && (
- <DropdownMenuSub>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- <span className="flex flex-1 items-center justify-between gap-2">
- <span>{t("tasks:common.customFields")}</span>
- {activeCustomFieldCount > 0 && (
- <span className="ml-auto inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground">
- {activeCustomFieldCount}
- </span>
- )}
- </span>
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-52">
- {activeCustomFieldCount > 0 && (
- <>
- <button
- className="inline-flex h-7 w-full items-center gap-1.5 rounded-md px-2 text-left text-xs text-muted-foreground hover:bg-accent/60 hover:text-foreground"
- onClick={clearAllCustomFieldFilters}
- type="button"
- >
- {t("common:actions.clearAllFilters", {
- defaultValue: "Clear all",
- })}
- </button>
- <DropdownMenuSeparator />
- </>
- )}
-
- {filterableCustomFields.map((field) => {
- const selectedValues =
- filters.customFields?.[field.id] ?? [];
-
- let displayOptions: string[] = [];
- if (field.type === "dropdown") {
- displayOptions = field.options ?? [];
- } else if (field.type === "boolean") {
- displayOptions = ["true", "false"];
- } else {
- displayOptions =
- usedCustomFieldValues[field.id] ?? [];
- }
-
- const labelForOption = (opt: string) => {
- if (field.type === "boolean")
- return opt === "true" ? "True" : "False";
- return opt;
- };
-
- return (
- <DropdownMenuSub key={field.id}>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- <span className="flex flex-1 items-center justify-between gap-2">
- <span className="truncate">{field.name}</span>
- {selectedValues.length > 0 && (
- <span className="ml-auto inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground">
- {selectedValues.length}
- </span>
- )}
- </span>
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-48">
- <div className="grid grid-cols-1 gap-1 p-1">
- <button
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedValues.length === 0
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() =>
- clearCustomFieldFilter(field.id)
- }
- type="button"
- >
- <CheckSlot
- checked={selectedValues.length === 0}
- />
- {t("tasks:boardFilters.all")}
- </button>
- {displayOptions.length === 0 ? (
- <>
- <DropdownMenuSeparator />
- <span className="px-2 py-1 text-xs text-muted-foreground">
- {t("tasks:boardFilters.noValuesUsedYet")}
- </span>
- </>
- ) : (
- displayOptions.map((option) => (
- <button
- key={option}
- className={`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-left text-xs ${
- selectedValues.includes(option)
- ? "bg-accent text-accent-foreground"
- : "text-foreground/90 hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() =>
- updateCustomFieldFilter(
- field.id,
- option,
- )
- }
- type="button"
- >
- <CheckSlot
- checked={selectedValues.includes(
- option,
- )}
- />
- <span className="truncate">
- {labelForOption(option)}
- </span>
- </button>
- ))
- )}
- </div>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
- );
- })}
- </DropdownMenuSubContent>
- </DropdownMenuSub>
- )}
-
- {hasActiveFilters && (
- <>
- <DropdownMenuSeparator />
- <DropdownMenuItem
- onClick={clearFilters}
- className="h-8 rounded-md text-sm text-muted-foreground"
- >
- {t("common:actions.clearAllFilters")}
- </DropdownMenuItem>
- </>
- )}
- </DropdownMenuContent>
- </DropdownMenu>
-
- <SortControl sort={sort} onSortChange={onSortChange} />
-
- {selectedStatusIds.length > 0 && (
- <ActiveFilterChip
- subject={t("tasks:boardFilters.subjects.status")}
- operator={t("tasks:boardFilters.operators.isAnyOf")}
- value={
- <span className="inline-flex items-center gap-1.5">
- <StackedIcons
- items={selectedStatusIds.map((statusId) => ({
- id: statusId,
- node: getStatusIcon(statusId),
- }))}
- itemClassName="[&>svg]:h-3.5 [&>svg]:w-3.5"
- />
- <span>
- {selectedStatusIds.length === 1
- ? getStatusDisplayName(selectedStatusIds[0])
- : t("tasks:boardFilters.selectedCount", {
- count: selectedStatusIds.length,
- })}
- </span>
- </span>
- }
- onClear={() => updateFilter("status", null)}
- />
- )}
-
- {selectedPriorityIds.length > 0 && (
- <ActiveFilterChip
- subject={t("tasks:boardFilters.subjects.priority")}
- operator={t("tasks:boardFilters.operators.isAnyOf")}
- value={
- <span className="inline-flex items-center gap-1.5">
- <StackedIcons
- items={selectedPriorityIds.map((priority) => ({
- id: priority,
- node: getPriorityIcon(priority),
- }))}
- />
- <span>
- {selectedPriorityIds.length === 1
- ? getPriorityDisplayName(selectedPriorityIds[0])
- : t("tasks:boardFilters.selectedCount", {
- count: selectedPriorityIds.length,
- })}
- </span>
- </span>
- }
- onClear={() => updateFilter("priority", null)}
- />
- )}
-
- {selectedAssigneeIds.length > 0 && (
- <ActiveFilterChip
- subject={t("tasks:boardFilters.subjects.assignee")}
- operator={t("tasks:boardFilters.operators.isAnyOf")}
- value={
- <span className="inline-flex items-center gap-1.5">
- <StackedIcons
- items={selectedAssigneeIds.map((userId) => ({
- id: userId,
- node: getAssigneeAvatar(userId),
- }))}
- />
- <span>
- {selectedAssigneeIds.length === 1
- ? getAssigneeDisplayName(selectedAssigneeIds[0])
- : t("tasks:boardFilters.selectedCount", {
- count: selectedAssigneeIds.length,
- })}
- </span>
- </span>
- }
- onClear={() => updateFilter("assignee", null)}
- />
- )}
-
- {selectedDueDateFilters.length > 0 && (
- <ActiveFilterChip
- subject={t("tasks:boardFilters.subjects.dueDate")}
- operator={t("tasks:boardFilters.operators.isAnyOf")}
- value={
- selectedDueDateFilters.length === 1
- ? t(
- `tasks:backlog.filters.${
- selectedDueDateFilters[0] ===
- DUE_DATE_FILTER_VALUES.dueThisWeek
- ? "dueThisWeek"
- : selectedDueDateFilters[0] ===
- DUE_DATE_FILTER_VALUES.dueNextWeek
- ? "dueNextWeek"
- : "noDueDate"
- }`,
- )
- : t("tasks:boardFilters.selectedCount", {
- count: selectedDueDateFilters.length,
- })
- }
- onClear={() => updateFilter("dueDate", null)}
- />
- )}
-
- {filters.labels && filters.labels.length > 0 && (
- <ActiveFilterChip
- subject={t("tasks:boardFilters.subjects.labels")}
- operator={t("tasks:boardFilters.operators.includeAnyOf")}
- value={t("tasks:boardFilters.selectedCount", {
- count: filters.labels.length,
- })}
- onClear={clearLabelFilters}
- />
- )}
-
- {filters.customFields &&
- Object.entries(filters.customFields).map(([fieldId, values]) => {
- if (!values || values.length === 0) return null;
- const fieldDef = customFieldDefinitions.find(
- (f) => f.id === fieldId,
- );
- return (
- <ActiveFilterChip
- key={fieldId}
- subject={fieldDef?.name ?? fieldId}
- operator={t("tasks:boardFilters.operators.isAnyOf")}
- value={
- values.length === 1
- ? values[0]
- : t("tasks:boardFilters.selectedCount", {
- count: values.length,
- })
- }
- onClear={() => clearCustomFieldFilter(fieldId)}
- />
- );
- })}
- </div>
-
- <div className="inline-flex items-center gap-1">
- <button
- type="button"
- className={`inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium transition-colors ${
- viewMode === "board"
- ? "bg-accent text-foreground"
- : "text-muted-foreground hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => setViewMode("board")}
- >
- <PanelsTopLeft className="h-3 w-3" />
- {t("tasks:view.board")}
- </button>
- <button
- type="button"
- className={`inline-flex h-6 items-center gap-1 rounded-md px-2 text-xs font-medium transition-colors ${
- viewMode === "list"
- ? "bg-accent text-foreground"
- : "text-muted-foreground hover:bg-accent/60 hover:text-foreground"
- }`}
- onClick={() => setViewMode("list")}
- >
- <Rows3 className="h-3 w-3" />
- {t("tasks:view.list")}
- </button>
- </div>
- </div>
- </div>
- </div>
- );
-}
diff --git a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
index 9b369737c..ed9a2b7a4 100644
--- a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
+++ b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx
@@ -6,6 +6,13 @@ import {
Menu,
Trash2,
X,
+ CalendarDaysIcon,
+ TagIcon,
+ SignalHighIcon,
+ UserRoundIcon,
+ ArchiveIcon,
+ Trash2Icon,
+ SquareKanbanIcon,
} from "lucide-react";
import {
Fragment,
@@ -58,6 +65,10 @@ import useBacklogBulkSelectionStore from "@/store/backlog-bulk-selection";
import useProjectStore from "@/store/project";
import { Button } from "../ui/button";
import { Toolbar, ToolbarGroup, ToolbarSeparator } from "../ui/toolbar";
+import { cn } from "@/lib/cn";
+import { BulkDeleteConfirm } from "./bulk-delete-confirm";
+import { toolbarPresenceClass } from "./toolbar-presence-class";
+import { useToolbarPresence } from "./use-toolbar-presence";
type BacklogActionItem = {
value: string;
@@ -91,6 +102,7 @@ function BacklogBulkToolbar() {
const {
bulkMoveToBoard,
bulkDelete,
+ isDeleting,
bulkArchive,
bulkAssign,
bulkPriority,
@@ -112,9 +124,12 @@ function BacklogBulkToolbar() {
const canAssign = canAssignTasks();
const canEditLabels = canUpdateLabels();
const [isActionsOpen, setIsActionsOpen] = useState(false);
+ const [isDeleteConfirmOpen, setIsDeleteConfirmOpen] = useState(false);
+ const [deleteCount, setDeleteCount] = useState(0);
const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);
const selectedCount = selectedTaskIds.size;
+ const { mounted, hidden, displayCount } = useToolbarPresence(selectedCount);
const uniqueLabels = useMemo(() => {
const labelMap = new Map<string, (typeof workspaceLabels)[0]>();
@@ -161,6 +176,7 @@ function BacklogBulkToolbar() {
});
toast.success(
t("tasks:bulk.moveToBoardSuccess", { count: selectedCount }),
+ { icon: SquareKanbanIcon },
);
clearSelection();
} catch (_error) {
@@ -170,25 +186,31 @@ function BacklogBulkToolbar() {
[bulkMoveToBoard, selectedTaskIds, selectedCount, clearSelection, t],
);
- const handleBulkDelete = useCallback(async () => {
- if (!confirm(t("tasks:bulk.deleteConfirm", { count: selectedCount }))) {
- return;
- }
+ const requestBulkDelete = useCallback(() => {
+ setDeleteCount(selectedCount);
+ setIsActionsOpen(false);
+ setIsDeleteConfirmOpen(true);
+ }, [selectedCount]);
+ const handleBulkDelete = useCallback(async () => {
try {
await bulkDelete(Array.from(selectedTaskIds));
- toast.success(t("tasks:bulk.deleteSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.deleteSuccess", { count: deleteCount }), {
+ icon: Trash2Icon,
+ });
+ setIsDeleteConfirmOpen(false);
clearSelection();
- setIsActionsOpen(false);
} catch (_error) {
toast.error(t("tasks:bulk.deleteError"));
}
- }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection, t]);
+ }, [bulkDelete, selectedTaskIds, deleteCount, clearSelection, t]);
const handleBulkArchive = useCallback(async () => {
try {
await bulkArchive(Array.from(selectedTaskIds));
- toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }), {
+ icon: ArchiveIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -200,7 +222,9 @@ function BacklogBulkToolbar() {
async (userId: string) => {
try {
await bulkAssign({ taskIds: Array.from(selectedTaskIds), userId });
- toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }), {
+ icon: UserRoundIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -217,7 +241,9 @@ function BacklogBulkToolbar() {
taskIds: Array.from(selectedTaskIds),
priority,
});
- toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }), {
+ icon: SignalHighIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -236,6 +262,7 @@ function BacklogBulkToolbar() {
});
toast.success(
t("tasks:bulk.addLabelSuccess", { count: selectedCount }),
+ { icon: TagIcon },
);
clearSelection();
setIsActionsOpen(false);
@@ -253,7 +280,9 @@ function BacklogBulkToolbar() {
taskIds: Array.from(selectedTaskIds),
dueDate: date?.toISOString() ?? null,
});
- toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }), {
+ icon: CalendarDaysIcon,
+ });
clearSelection();
setIsDatePickerOpen(false);
} catch (_error) {
@@ -276,9 +305,7 @@ function BacklogBulkToolbar() {
value: "bulk-delete",
label: t("tasks:bulk.delete"),
icon: <Trash2 className="h-4 w-4 text-muted-foreground" />,
- onRun: () => {
- void handleBulkDelete();
- },
+ onRun: requestBulkDelete,
},
]
: []),
@@ -361,7 +388,7 @@ function BacklogBulkToolbar() {
canEditLabels,
projectMembers,
uniqueLabels,
- handleBulkDelete,
+ requestBulkDelete,
handleBulkArchive,
handleBulkAssign,
handleBulkPriority,
@@ -370,15 +397,21 @@ function BacklogBulkToolbar() {
t,
]);
- if (selectedCount === 0) return null;
+ if (!mounted) return null;
if (!canEdit && !canDelete && !canAssign && !canEditLabels) return null;
return (
- <div className="-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity] duration-200 ease-out starting:translate-y-3 starting:opacity-0 motion-reduce:starting:translate-y-0">
+ <div
+ inert={hidden}
+ className={cn(
+ "-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity,visibility] ease-out",
+ toolbarPresenceClass(hidden),
+ )}
+ >
<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8">
<ToolbarGroup className="px-1.5">
<span className="text-sm font-medium text-foreground">
- {t("tasks:bulk.selectedCount", { count: selectedCount })}
+ {t("tasks:bulk.selectedCount", { count: displayCount })}
</span>
</ToolbarGroup>
@@ -469,7 +502,7 @@ function BacklogBulkToolbar() {
</Toolbar>
<CommandDialog open={isActionsOpen} onOpenChange={setIsActionsOpen}>
- <CommandDialogPopup>
+ <CommandDialogPopup instant>
<Command items={groupedItems}>
<CommandInput placeholder={t("tasks:bulk.searchActions")} />
<CommandPanel>
@@ -503,6 +536,14 @@ function BacklogBulkToolbar() {
</Command>
</CommandDialogPopup>
</CommandDialog>
+
+ <BulkDeleteConfirm
+ open={isDeleteConfirmOpen}
+ count={deleteCount}
+ pending={isDeleting}
+ onOpenChange={setIsDeleteConfirmOpen}
+ onConfirm={() => void handleBulkDelete()}
+ />
</div>
);
}
diff --git a/apps/web/src/components/bulk-selection/bulk-delete-confirm.tsx b/apps/web/src/components/bulk-selection/bulk-delete-confirm.tsx
new file mode 100644
index 000000000..93b4e938b
--- /dev/null
+++ b/apps/web/src/components/bulk-selection/bulk-delete-confirm.tsx
@@ -0,0 +1,33 @@
+import { useTranslation } from "react-i18next";
+import { ConfirmDialog } from "@/components/settings/confirm-dialog";
+
+type BulkDeleteConfirmProps = {
+ open: boolean;
+ count: number;
+ pending: boolean;
+ onOpenChange: (open: boolean) => void;
+ onConfirm: () => void;
+};
+
+export function BulkDeleteConfirm({
+ open,
+ count,
+ pending,
+ onOpenChange,
+ onConfirm,
+}: BulkDeleteConfirmProps) {
+ const { t } = useTranslation();
+
+ return (
+ <ConfirmDialog
+ open={open}
+ onOpenChange={onOpenChange}
+ title={t("tasks:bulk.deleteConfirmTitle", { count })}
+ description={t("tasks:bulk.deleteConfirmDescription")}
+ confirmLabel={t("common:actions.delete")}
+ pendingLabel={t("common:actions.deleting")}
+ pending={pending}
+ onConfirm={onConfirm}
+ />
+ );
+}
diff --git a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
index 0d716975b..3a3c41fd3 100644
--- a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
+++ b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx
@@ -5,6 +5,14 @@ import {
Menu,
Trash2,
X,
+ CalendarDaysIcon,
+ TagIcon,
+ SignalHighIcon,
+ UserRoundIcon,
+ CircleDashedIcon,
+ ArchiveIcon,
+ Trash2Icon,
+ SquircleDashedIcon,
} from "lucide-react";
import {
Fragment,
@@ -51,6 +59,10 @@ import useBulkSelectionStore from "@/store/bulk-selection";
import useProjectStore from "@/store/project";
import { Button } from "../ui/button";
import { Toolbar, ToolbarGroup, ToolbarSeparator } from "../ui/toolbar";
+import { cn } from "@/lib/cn";
+import { BulkDeleteConfirm } from "./bulk-delete-confirm";
+import { toolbarPresenceClass } from "./toolbar-presence-class";
+import { useToolbarPresence } from "./use-toolbar-presence";
type BulkActionItem = {
value: string;
@@ -84,6 +96,7 @@ function BulkToolbar() {
const {
bulkMoveToBacklog,
bulkDelete,
+ isDeleting,
bulkArchive,
bulkChangeStatus,
bulkAssign,
@@ -106,9 +119,12 @@ function BulkToolbar() {
const canAssign = canAssignTasks();
const canEditLabels = canUpdateLabels();
const [isActionsOpen, setIsActionsOpen] = useState(false);
+ const [isDeleteConfirmOpen, setIsDeleteConfirmOpen] = useState(false);
+ const [deleteCount, setDeleteCount] = useState(0);
const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);
const selectedCount = selectedTaskIds.size;
+ const { mounted, hidden, displayCount } = useToolbarPresence(selectedCount);
const uniqueLabels = useMemo(() => {
const labelMap = new Map<string, (typeof workspaceLabels)[0]>();
@@ -151,6 +167,7 @@ function BulkToolbar() {
await bulkMoveToBacklog(Array.from(selectedTaskIds));
toast.success(
t("tasks:bulk.moveToBacklogSuccess", { count: selectedCount }),
+ { icon: SquircleDashedIcon },
);
clearSelection();
} catch (_error) {
@@ -158,25 +175,31 @@ function BulkToolbar() {
}
}, [bulkMoveToBacklog, selectedTaskIds, selectedCount, clearSelection, t]);
- const handleBulkDelete = useCallback(async () => {
- if (!confirm(t("tasks:bulk.deleteConfirm", { count: selectedCount }))) {
- return;
- }
+ const requestBulkDelete = useCallback(() => {
+ setDeleteCount(selectedCount);
+ setIsActionsOpen(false);
+ setIsDeleteConfirmOpen(true);
+ }, [selectedCount]);
+ const handleBulkDelete = useCallback(async () => {
try {
await bulkDelete(Array.from(selectedTaskIds));
- toast.success(t("tasks:bulk.deleteSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.deleteSuccess", { count: deleteCount }), {
+ icon: Trash2Icon,
+ });
+ setIsDeleteConfirmOpen(false);
clearSelection();
- setIsActionsOpen(false);
} catch (_error) {
toast.error(t("tasks:bulk.deleteError"));
}
- }, [bulkDelete, selectedTaskIds, selectedCount, clearSelection, t]);
+ }, [bulkDelete, selectedTaskIds, deleteCount, clearSelection, t]);
const handleBulkArchive = useCallback(async () => {
try {
await bulkArchive(Array.from(selectedTaskIds));
- toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.archiveSuccess", { count: selectedCount }), {
+ icon: ArchiveIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -191,7 +214,9 @@ function BulkToolbar() {
taskIds: Array.from(selectedTaskIds),
status,
});
- toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }), {
+ icon: CircleDashedIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -205,7 +230,9 @@ function BulkToolbar() {
async (userId: string) => {
try {
await bulkAssign({ taskIds: Array.from(selectedTaskIds), userId });
- toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.assignSuccess", { count: selectedCount }), {
+ icon: UserRoundIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -222,7 +249,9 @@ function BulkToolbar() {
taskIds: Array.from(selectedTaskIds),
priority,
});
- toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }), {
+ icon: SignalHighIcon,
+ });
clearSelection();
setIsActionsOpen(false);
} catch (_error) {
@@ -241,6 +270,7 @@ function BulkToolbar() {
});
toast.success(
t("tasks:bulk.addLabelSuccess", { count: selectedCount }),
+ { icon: TagIcon },
);
clearSelection();
setIsActionsOpen(false);
@@ -258,7 +288,9 @@ function BulkToolbar() {
taskIds: Array.from(selectedTaskIds),
dueDate: date?.toISOString() ?? null,
});
- toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }));
+ toast.success(t("tasks:bulk.updateSuccess", { count: selectedCount }), {
+ icon: CalendarDaysIcon,
+ });
clearSelection();
setIsDatePickerOpen(false);
} catch (_error) {
@@ -281,9 +313,7 @@ function BulkToolbar() {
value: "bulk-delete",
label: t("tasks:bulk.delete"),
icon: <Trash2 className="h-4 w-4 text-muted-foreground" />,
- onRun: () => {
- void handleBulkDelete();
- },
+ onRun: requestBulkDelete,
},
]
: []),
@@ -381,7 +411,7 @@ function BulkToolbar() {
project?.columns,
projectMembers,
uniqueLabels,
- handleBulkDelete,
+ requestBulkDelete,
handleBulkArchive,
handleBulkChangeStatus,
handleBulkAssign,
@@ -391,16 +421,22 @@ function BulkToolbar() {
t,
]);
- if (selectedCount === 0) return null;
+ if (!mounted) return null;
// Nothing the user can do in bulk → no toolbar.
if (!canEdit && !canDelete && !canAssign && !canEditLabels) return null;
return (
- <div className="-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity] duration-200 ease-out starting:translate-y-3 starting:opacity-0 motion-reduce:starting:translate-y-0">
+ <div
+ inert={hidden}
+ className={cn(
+ "-translate-x-1/2 fixed bottom-6 left-1/2 z-50 transition-[translate,opacity,visibility] ease-out",
+ toolbarPresenceClass(hidden),
+ )}
+ >
<Toolbar className="items-center gap-1 rounded-xl border-border/80 bg-background px-1.5 py-1 shadow-lg/8">
<ToolbarGroup className="px-1.5">
<span className="text-sm font-medium text-foreground">
- {t("tasks:bulk.selectedCount", { count: selectedCount })}
+ {t("tasks:bulk.selectedCount", { count: displayCount })}
</span>
</ToolbarGroup>
@@ -509,6 +545,14 @@ function BulkToolbar() {
</Command>
</CommandDialogPopup>
</CommandDialog>
+
+ <BulkDeleteConfirm
+ open={isDeleteConfirmOpen}
+ count={deleteCount}
+ pending={isDeleting}
+ onOpenChange={setIsDeleteConfirmOpen}
+ onConfirm={() => void handleBulkDelete()}
+ />
</div>
);
}
diff --git a/apps/web/src/components/bulk-selection/toolbar-presence-class.ts b/apps/web/src/components/bulk-selection/toolbar-presence-class.ts
new file mode 100644
index 000000000..fcc97cac9
--- /dev/null
+++ b/apps/web/src/components/bulk-selection/toolbar-presence-class.ts
@@ -0,0 +1,5 @@
+export function toolbarPresenceClass(hidden: boolean) {
+ return hidden
+ ? "pointer-events-none invisible translate-y-3 opacity-0 duration-150 motion-reduce:translate-y-0"
+ : "duration-200 starting:translate-y-3 starting:opacity-0 motion-reduce:starting:translate-y-0";
+}
diff --git a/apps/web/src/components/bulk-selection/use-toolbar-presence.test.ts b/apps/web/src/components/bulk-selection/use-toolbar-presence.test.ts
new file mode 100644
index 000000000..606aead49
--- /dev/null
+++ b/apps/web/src/components/bulk-selection/use-toolbar-presence.test.ts
@@ -0,0 +1,25 @@
+import { renderHook } from "@testing-library/react";
+import { expect, it } from "vite-plus/test";
+import { useToolbarPresence } from "./use-toolbar-presence";
+
+it("stays mounted after a selection clears and keeps the last count", () => {
+ const { result, rerender } = renderHook(
+ ({ count }) => useToolbarPresence(count),
+ { initialProps: { count: 0 } },
+ );
+ expect(result.current.mounted).toBe(false);
+
+ rerender({ count: 3 });
+ expect(result.current).toEqual({
+ mounted: true,
+ hidden: false,
+ displayCount: 3,
+ });
+
+ rerender({ count: 0 });
+ expect(result.current).toEqual({
+ mounted: true,
+ hidden: true,
+ displayCount: 3,
+ });
+});
diff --git a/apps/web/src/components/bulk-selection/use-toolbar-presence.ts b/apps/web/src/components/bulk-selection/use-toolbar-presence.ts
new file mode 100644
index 000000000..7658d9cb4
--- /dev/null
+++ b/apps/web/src/components/bulk-selection/use-toolbar-presence.ts
@@ -0,0 +1,17 @@
+import { useState } from "react";
+
+export function useToolbarPresence(selectedCount: number) {
+ const [mounted, setMounted] = useState(selectedCount > 0);
+ const [lastCount, setLastCount] = useState(selectedCount);
+
+ if (selectedCount > 0 && !mounted) setMounted(true);
+ if (selectedCount > 0 && selectedCount !== lastCount) {
+ setLastCount(selectedCount);
+ }
+
+ return {
+ mounted,
+ hidden: selectedCount === 0,
+ displayCount: selectedCount > 0 ? selectedCount : lastCount,
+ };
+}
diff --git a/apps/web/src/components/calendar/calendar-toolbar.tsx b/apps/web/src/components/calendar/calendar-toolbar.tsx
index eb62d99bf..5ccc91297 100644
--- a/apps/web/src/components/calendar/calendar-toolbar.tsx
+++ b/apps/web/src/components/calendar/calendar-toolbar.tsx
@@ -20,15 +20,12 @@ export default function CalendarToolbar({
const { t } = useTranslation();
return (
- <div className="border-b border-border/80 px-3 py-3 sm:px-4">
+ <div className="border-b border-border/80 px-3 py-2 sm:px-4">
<div className="flex items-center justify-between gap-3">
<div className="flex min-w-0 items-center gap-2">
- {/* The project switcher already names the view on phones. */}
- <h1 className="sr-only truncate text-sm font-semibold text-foreground sm:not-sr-only">
- {t("tasks:calendar.title")}
- </h1>
+ <h1 className="sr-only">{t("tasks:calendar.title")}</h1>
<span
- className="truncate text-sm font-medium text-foreground sm:font-normal sm:text-muted-foreground"
+ className="truncate text-sm font-semibold text-foreground"
data-testid="calendar-month-label"
>
{formatDate(visibleMonth, { month: "long", year: "numeric" })}
diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsx
index b07aada1d..046f30ca8 100644
--- a/apps/web/src/components/command-palette/index.tsx
+++ b/apps/web/src/components/command-palette/index.tsx
@@ -334,6 +334,7 @@ function CommandPalette() {
projectId={projectIdFromRoute}
status={isBacklogView ? "planned" : undefined}
onClose={() => setIsCreateTaskOpen(false)}
+ instant
/>
<CreateWorkspaceModal
open={isCreateWorkspaceOpen}
diff --git a/apps/web/src/components/common/header/mobile-project-nav.tsx b/apps/web/src/components/common/header/mobile-project-nav.tsx
index 7509b0877..e9c5190c8 100644
--- a/apps/web/src/components/common/header/mobile-project-nav.tsx
+++ b/apps/web/src/components/common/header/mobile-project-nav.tsx
@@ -1,13 +1,4 @@
-import type { LucideIcon } from "lucide-react";
-import {
- CalendarDays,
- CalendarRange,
- Check,
- ChevronsUpDown,
- Plus,
- SquareKanban,
- SquircleDashed,
-} from "lucide-react";
+import { Check, ChevronsUpDown, Plus } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
@@ -20,17 +11,10 @@ import icons from "@/constants/project-icons";
import useGetProjects from "@/hooks/queries/project/use-get-projects";
import { cn } from "@/lib/cn";
-type ProjectView = "backlog" | "board" | "calendar" | "gantt";
-
type MobileProjectNavProps = {
workspaceId: string;
projectId: string;
projectName?: string;
- activeView: ProjectView;
- onSelectBoard: () => void;
- onSelectBacklog: () => void;
- onSelectCalendar: () => void;
- onSelectGantt: () => void;
onSelectProject: (projectId: string) => void;
onAddProject: () => void;
};
@@ -39,11 +23,6 @@ export default function MobileProjectNav({
workspaceId,
projectId,
projectName,
- activeView,
- onSelectBoard,
- onSelectBacklog,
- onSelectCalendar,
- onSelectGantt,
onSelectProject,
onAddProject,
}: MobileProjectNavProps) {
@@ -54,38 +33,6 @@ export default function MobileProjectNav({
const CurrentIcon =
icons[currentProject?.icon as keyof typeof icons] || icons.Layout;
- const views: {
- id: ProjectView;
- label: string;
- icon: LucideIcon;
- onSelect: () => void;
- }[] = [
- {
- id: "backlog",
- label: t("tasks:view.backlog"),
- icon: SquircleDashed,
- onSelect: onSelectBacklog,
- },
- {
- id: "board",
- label: t("tasks:title"),
- icon: SquareKanban,
- onSelect: onSelectBoard,
- },
- {
- id: "calendar",
- label: t("tasks:calendar.title"),
- icon: CalendarRange,
- onSelect: onSelectCalendar,
- },
- {
- id: "gantt",
- label: t("tasks:view.gantt"),
- icon: CalendarDays,
- onSelect: onSelectGantt,
- },
- ];
-
const select = (action: () => void) => () => {
setOpen(false);
action();
@@ -111,31 +58,6 @@ export default function MobileProjectNav({
</PopoverTrigger>
<PopoverContent align="start" className="w-72 p-2">
<div className="space-y-3">
- <div className="space-y-1">
- <p className="px-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
- {t("tasks:view.heading")}
- </p>
- <div className="grid grid-cols-2 gap-1">
- {views.map(({ id, label, icon: Icon, onSelect }) => (
- <button
- key={id}
- type="button"
- onClick={select(onSelect)}
- aria-pressed={activeView === id}
- className={cn(
- "flex h-10 w-full items-center gap-2 rounded-md border px-2.5 text-sm font-medium transition-colors",
- activeView === id
- ? "border-border bg-secondary text-foreground"
- : "border-transparent text-muted-foreground hover:bg-accent",
- )}
- >
- <Icon className="size-4 shrink-0" />
- <span className="truncate">{label}</span>
- </button>
- ))}
- </div>
- </div>
-
<div className="space-y-1">
<p className="px-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
{t("navigation:sidebar.projects")}
diff --git a/apps/web/src/components/common/project-layout.test.tsx b/apps/web/src/components/common/project-layout.test.tsx
index 49c2b915b..097dc16f3 100644
--- a/apps/web/src/components/common/project-layout.test.tsx
+++ b/apps/web/src/components/common/project-layout.test.tsx
@@ -14,10 +14,16 @@ const project = vi.hoisted(() => ({
vi.mock("@tanstack/react-router", () => ({
useNavigate: () => vi.fn(),
useLocation: () => ({ pathname: "/board" }),
+ useRouter: () => ({
+ buildLocation: ({ to }: { to: string }) => ({ href: to }),
+ }),
Link: ({ children, to }: { children: ReactNode; to: string }) => (
<a href={to}>{children}</a>
),
}));
+vi.mock("@/components/project/views/use-project-view-shortcuts", () => ({
+ useProjectViewShortcuts: () => undefined,
+}));
vi.mock("react-i18next", () => ({
useTranslation: () => ({ t: (key: string) => key }),
}));
@@ -54,7 +60,13 @@ afterEach(cleanup);
function renderLayout() {
render(
- <ProjectLayout projectId="project-1" workspaceId="workspace-1">
+ <ProjectLayout
+ projectId="project-1"
+ workspaceId="workspace-1"
+ activeView="board"
+ toolbar={<button type="button">Toolbar action</button>}
+ summary={<span>5 tasks</span>}
+ >
<p>Board content</p>
</ProjectLayout>,
);
@@ -76,6 +88,7 @@ describe("ProjectLayout access states", () => {
}),
).toBeVisible();
expect(screen.queryByText("Board content")).toBeNull();
+ expect(screen.queryByText("Toolbar action")).toBeNull();
});
it("shows a not-found state on 404", () => {
@@ -94,5 +107,23 @@ describe("ProjectLayout access states", () => {
renderLayout();
expect(screen.getByText("Board content")).toBeVisible();
+ expect(screen.getByText("Toolbar action")).toBeVisible();
+ expect(screen.getByText("5 tasks")).toBeVisible();
+ });
+
+ it("marks tasks as current and links the backlog", () => {
+ project.current = { data: { name: "Alpha" }, error: null };
+ renderLayout();
+
+ expect(
+ screen
+ .getByRole("link", { name: "tasks:title" })
+ .getAttribute("aria-current"),
+ ).toBe("page");
+ const backlog = screen.getByRole("link", { name: "tasks:view.backlog" });
+ expect(backlog.getAttribute("aria-current")).toBeNull();
+ expect(backlog.getAttribute("href")).toBe(
+ "/dashboard/workspace/$workspaceId/project/$projectId/backlog",
+ );
});
});
diff --git a/apps/web/src/components/common/project-layout.tsx b/apps/web/src/components/common/project-layout.tsx
index f214debf4..544114dfd 100644
--- a/apps/web/src/components/common/project-layout.tsx
+++ b/apps/web/src/components/common/project-layout.tsx
@@ -1,18 +1,19 @@
import { useLocation, useNavigate } from "@tanstack/react-router";
-import {
- CalendarDays,
- CalendarRange,
- SquareKanban,
- SquircleDashed,
-} from "lucide-react";
import { type ReactNode, useState } from "react";
import { useTranslation } from "react-i18next";
import MobileProjectNav from "@/components/common/header/mobile-project-nav";
import ProjectCrumbSelect from "@/components/common/header/project-crumb-select";
import WorkspaceCrumbSelect from "@/components/common/header/workspace-crumb-select";
import Layout from "@/components/common/layout";
+import { ProjectScopeToggle } from "@/components/project/views/project-scope-toggle";
+import {
+ PROJECT_ROUTE_PATHS,
+ type ProjectRoute,
+ resolveProjectView,
+} from "@/components/project/views/project-views";
+import { useGoToProjectView } from "@/components/project/views/use-go-to-project-view";
+import { useProjectViewShortcuts } from "@/components/project/views/use-project-view-shortcuts";
import CreateProjectModal from "@/components/shared/modals/create-project-modal";
-import { Button } from "@/components/ui/button";
import { KbdSequence } from "@/components/ui/kbd";
import { SidebarTrigger } from "@/components/ui/sidebar";
import {
@@ -27,21 +28,26 @@ import { useProjectWebSocket } from "@/hooks/use-project-websocket";
import { cn } from "@/lib/cn";
import { getProjectUnavailableReason } from "@/lib/project-unavailable-reason";
import { useBackgroundStore } from "@/store/background";
+import { useUserPreferencesStore } from "@/store/user-preferences";
import ProjectUnavailable from "./project-unavailable";
type ProjectLayoutProps = {
projectId: string;
workspaceId: string;
- headerActions?: ReactNode;
+ toolbar?: ReactNode;
+ summary?: ReactNode;
+ filterBar?: ReactNode;
children: ReactNode;
showViewSwitcher?: boolean;
- activeView?: "backlog" | "board" | "calendar" | "gantt";
+ activeView?: ProjectRoute;
};
export default function ProjectLayout({
projectId,
workspaceId,
- headerActions,
+ toolbar,
+ summary,
+ filterBar,
children,
showViewSwitcher = true,
activeView,
@@ -57,10 +63,11 @@ export default function ProjectLayout({
const [isCreateProjectModalOpen, setIsCreateProjectModalOpen] =
useState(false);
const { background } = useBackgroundStore();
+ const viewMode = useUserPreferencesStore((state) => state.viewMode);
useProjectWebSocket(unavailableReason ? "" : projectId);
- const resolvedView =
+ const resolvedRoute: ProjectRoute =
activeView ??
(location.pathname.includes("/backlog")
? "backlog"
@@ -69,45 +76,19 @@ export default function ProjectLayout({
: location.pathname.includes("/gantt")
? "gantt"
: "board");
+ const currentView = resolveProjectView(resolvedRoute, viewMode);
+ const showViews = showViewSwitcher && !unavailableReason;
- const handleNavigateToBacklog = () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/backlog",
- params: { workspaceId, projectId },
- });
- };
-
- const handleNavigateToBoard = () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/board",
- params: { workspaceId, projectId },
- });
- };
-
- const handleNavigateToCalendar = () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/calendar",
- params: { workspaceId, projectId },
- });
- };
-
- const handleNavigateToGantt = () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",
- params: { workspaceId, projectId },
- });
- };
+ const goToView = useGoToProjectView({
+ workspaceId,
+ projectId,
+ currentRoute: resolvedRoute,
+ });
+ useProjectViewShortcuts(goToView, showViews);
const handleProjectSwitch = (nextProjectId: string) => {
navigate({
- to:
- resolvedView === "backlog"
- ? "/dashboard/workspace/$workspaceId/project/$projectId/backlog"
- : resolvedView === "calendar"
- ? "/dashboard/workspace/$workspaceId/project/$projectId/calendar"
- : resolvedView === "gantt"
- ? "/dashboard/workspace/$workspaceId/project/$projectId/gantt"
- : "/dashboard/workspace/$workspaceId/project/$projectId/board",
+ to: PROJECT_ROUTE_PATHS[resolvedRoute],
params: {
workspaceId,
projectId: nextProjectId,
@@ -122,115 +103,75 @@ export default function ProjectLayout({
"bg-card/90 backdrop-blur": !!background,
})}
>
- <div className="flex w-full items-center justify-between gap-2">
- <div className="flex min-w-0 items-center gap-2">
- <TooltipProvider>
- <Tooltip>
- <TooltipTrigger asChild>
- <SidebarTrigger className="-ml-1 h-7 w-7 cursor-pointer text-foreground/85 hover:text-foreground" />
- </TooltipTrigger>
- <TooltipContent>
- <p className="flex items-center gap-2 text-[10px]">
- {t("navigation:settingsLayout.toggleSidebar")}
- <KbdSequence
- keys={[
- shortcuts.sidebar.prefix,
- shortcuts.sidebar.toggle,
- ]}
- />
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
-
- <div className="h-4 w-px shrink-0 bg-border/80" />
+ <div className="flex w-full min-w-0 items-center gap-2">
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <SidebarTrigger className="-ml-1 h-7 w-7 shrink-0 cursor-pointer text-foreground/85 hover:text-foreground" />
+ </TooltipTrigger>
+ <TooltipContent>
+ <p className="flex items-center gap-2 text-[10px]">
+ {t("navigation:settingsLayout.toggleSidebar")}
+ <KbdSequence
+ keys={[shortcuts.sidebar.prefix, shortcuts.sidebar.toggle]}
+ />
+ </p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+
+ <div className="h-4 w-px shrink-0 bg-border/80" />
+
+ <div className="hidden min-w-0 items-center gap-1 md:flex">
+ <WorkspaceCrumbSelect />
+ <span className="text-foreground/30 text-xs">/</span>
+ <ProjectCrumbSelect
+ workspaceId={workspaceId}
+ projectId={projectId}
+ projectName={project?.name}
+ onSelectProject={handleProjectSwitch}
+ onAddProject={() => setIsCreateProjectModalOpen(true)}
+ />
+ </div>
- <div className="hidden min-w-0 items-center gap-1 md:flex">
- <WorkspaceCrumbSelect />
- <span className="text-foreground/30 text-xs">/</span>
- <ProjectCrumbSelect
- workspaceId={workspaceId}
- projectId={projectId}
- projectName={project?.name}
- onSelectProject={handleProjectSwitch}
- onAddProject={() => setIsCreateProjectModalOpen(true)}
- />
- </div>
+ <div className="min-w-0 md:hidden">
+ <MobileProjectNav
+ workspaceId={workspaceId}
+ projectId={projectId}
+ projectName={project?.name}
+ onSelectProject={handleProjectSwitch}
+ onAddProject={() => setIsCreateProjectModalOpen(true)}
+ />
+ </div>
+ </div>
+ </Layout.Header>
- <div className="min-w-0 md:hidden">
- <MobileProjectNav
+ {unavailableReason ? null : (
+ <TooltipProvider>
+ <div
+ className={cn(
+ "flex h-11 shrink-0 items-center gap-2.5 border-border/80 border-b px-2 sm:px-3",
+ { "bg-card/80 backdrop-blur": !!background },
+ )}
+ >
+ {showViewSwitcher && (
+ <ProjectScopeToggle
workspaceId={workspaceId}
projectId={projectId}
- projectName={project?.name}
- activeView={resolvedView}
- onSelectBacklog={handleNavigateToBacklog}
- onSelectBoard={handleNavigateToBoard}
- onSelectCalendar={handleNavigateToCalendar}
- onSelectGantt={handleNavigateToGantt}
- onSelectProject={handleProjectSwitch}
- onAddProject={() => setIsCreateProjectModalOpen(true)}
+ currentView={currentView}
+ onSelect={goToView}
/>
- </div>
-
- {showViewSwitcher && !unavailableReason && (
- <div className="hidden h-8 items-center gap-0.5 rounded-lg border border-border/80 bg-background p-0.5 sm:inline-flex">
- <Button
- variant={resolvedView === "backlog" ? "secondary" : "ghost"}
- size="xs"
- onClick={handleNavigateToBacklog}
- className={cn(
- "h-6 gap-1.5 rounded-md px-2 text-xs",
- resolvedView !== "backlog" && "text-muted-foreground",
- )}
- >
- <SquircleDashed className="size-3.5" />
- {t("tasks:view.backlog")}
- </Button>
- <Button
- variant={resolvedView === "board" ? "secondary" : "ghost"}
- size="xs"
- onClick={handleNavigateToBoard}
- className={cn(
- "h-6 gap-1.5 rounded-md px-2 text-xs",
- resolvedView !== "board" && "text-muted-foreground",
- )}
- >
- <SquareKanban className="size-3.5" />
- {t("tasks:title")}
- </Button>
- <Button
- variant={resolvedView === "calendar" ? "secondary" : "ghost"}
- size="xs"
- onClick={handleNavigateToCalendar}
- className={cn(
- "h-6 gap-1.5 rounded-md px-2 text-xs",
- resolvedView !== "calendar" && "text-muted-foreground",
- )}
- >
- <CalendarRange className="size-3.5" />
- {t("tasks:calendar.title")}
- </Button>
- <Button
- variant={resolvedView === "gantt" ? "secondary" : "ghost"}
- size="xs"
- onClick={handleNavigateToGantt}
- className={cn(
- "h-6 gap-1.5 rounded-md px-2 text-xs",
- resolvedView !== "gantt" && "text-muted-foreground",
- )}
- >
- <CalendarDays className="size-3.5" />
- {t("tasks:view.gantt")}
- </Button>
- </div>
)}
+ {summary}
+ <div className="ml-auto flex shrink-0 items-center gap-1">
+ {toolbar}
+ </div>
</div>
-
- <div className="flex shrink-0 items-center gap-1.5">
- {unavailableReason ? null : headerActions}
+ <div className={cn({ "bg-card/80 backdrop-blur": !!background })}>
+ {filterBar}
</div>
- </div>
- </Layout.Header>
+ </TooltipProvider>
+ )}
<Layout.Content>
{unavailableReason ? (
diff --git a/apps/web/src/components/common/sort-control.tsx b/apps/web/src/components/common/sort-control.tsx
deleted file mode 100644
index 5d68823c7..000000000
--- a/apps/web/src/components/common/sort-control.tsx
+++ /dev/null
@@ -1,195 +0,0 @@
-import { cva } from "class-variance-authority";
-import { ArrowDownAZ, ArrowUpAZ } from "lucide-react";
-import { useTranslation } from "react-i18next";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuGroup,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from "@/components/ui/menu";
-import { cn } from "@/lib/cn";
-import type { SortConfig, SortDirection, SortField } from "@/lib/sort-tasks";
-import { useBackgroundStore } from "@/store/background";
-
-type SortControlProps = {
- sort: SortConfig;
- onSortChange: (sort: SortConfig) => void;
-};
-
-function CheckSlot({ checked }: { checked: boolean }) {
- return (
- <span
- className={`inline-flex size-4 shrink-0 items-center justify-center rounded-[4px] border ${
- checked
- ? "border-primary bg-primary text-primary-foreground"
- : "border-input bg-background"
- }`}
- >
- {checked ? "\u2713" : null}
- </span>
- );
-}
-
-const sortControlVariants = cva(
- "inline-flex h-7 items-center gap-1.5 rounded-md border px-2.5 text-xs font-medium outline-none ring-0",
- {
- variants: {
- isActive: {
- true: "text-primary",
- false: "text-foreground",
- },
- backgroundImage: {
- true: "",
- },
- },
- compoundVariants: [
- {
- isActive: false,
- backgroundImage: false,
- class: "border-border bg-background hover:bg-accent/60",
- },
- {
- isActive: true,
- backgroundImage: false,
- class: "border-primary/30 bg-primary/10 hover:bg-primary/15",
- },
- {
- isActive: false,
- backgroundImage: true,
- class: "border-border bg-accent hover:bg-input",
- },
- {
- isActive: true,
- backgroundImage: true,
- class: "border-primary/30 bg-primary/15 hover:bg-primary/20",
- },
- ],
- },
-);
-
-export default function SortControl({ sort, onSortChange }: SortControlProps) {
- const { t } = useTranslation();
- const { background } = useBackgroundStore();
- const sortFields: { field: SortField; label: string }[] = [
- { field: "position", label: t("tasks:sort.fields.position") },
- { field: "createdAt", label: t("tasks:sort.fields.createdAt") },
- { field: "priority", label: t("tasks:sort.fields.priority") },
- { field: "dueDate", label: t("tasks:sort.fields.dueDate") },
- { field: "title", label: t("tasks:sort.fields.title") },
- { field: "number", label: t("tasks:sort.fields.number") },
- ];
- const isActive = sort.field !== "position";
- const activeLabel = sortFields.find((f) => f.field === sort.field)?.label;
-
- const handleFieldChange = (field: SortField) => {
- if (field === "position" || field === sort.field) {
- onSortChange({ field: "position", direction: "asc" });
- } else {
- const defaultDirection: SortDirection =
- field === "priority" ? "desc" : "asc";
- onSortChange({ field, direction: defaultDirection });
- }
- };
-
- const toggleDirection = () => {
- onSortChange({
- ...sort,
- direction: sort.direction === "asc" ? "desc" : "asc",
- });
- };
-
- return (
- <div className="inline-flex items-center gap-1">
- <DropdownMenu>
- <DropdownMenuTrigger
- render={
- <button
- type="button"
- className={sortControlVariants({
- isActive,
- backgroundImage: !!background,
- })}
- />
- }
- >
- {sort.direction === "asc" ? (
- <ArrowUpAZ className="h-3 w-3" />
- ) : (
- <ArrowDownAZ className="h-3 w-3" />
- )}
- {isActive ? activeLabel : t("tasks:sort.label")}
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-48" align="start">
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:sort.by")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- <DropdownMenuSeparator />
- {sortFields.map(({ field, label }) => (
- <DropdownMenuItem
- key={field}
- onClick={() => handleFieldChange(field)}
- className="h-8 rounded-md text-sm"
- >
- <CheckSlot checked={sort.field === field} />
- {label}
- </DropdownMenuItem>
- ))}
-
- {isActive && (
- <>
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:sort.direction")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- <DropdownMenuItem
- onClick={() => onSortChange({ ...sort, direction: "asc" })}
- className="h-8 rounded-md text-sm"
- >
- <CheckSlot checked={sort.direction === "asc"} />
- {t("tasks:sort.ascending")}
- </DropdownMenuItem>
- <DropdownMenuItem
- onClick={() => onSortChange({ ...sort, direction: "desc" })}
- className="h-8 rounded-md text-sm"
- >
- <CheckSlot checked={sort.direction === "desc"} />
- {t("tasks:sort.descending")}
- </DropdownMenuItem>
- </>
- )}
- </DropdownMenuContent>
- </DropdownMenu>
-
- {isActive && (
- <button
- type="button"
- onClick={toggleDirection}
- className={cn(
- "inline-flex h-7 w-7 items-center justify-center rounded-md border border-border bg-background text-foreground hover:bg-accent/60",
- {
- "bg-accent hover:bg-input": !!background,
- },
- )}
- title={
- sort.direction === "asc"
- ? t("tasks:sort.ascending")
- : t("tasks:sort.descending")
- }
- >
- {sort.direction === "asc" ? (
- <ArrowUpAZ className="h-3 w-3" />
- ) : (
- <ArrowDownAZ className="h-3 w-3" />
- )}
- </button>
- )}
- </div>
- );
-}
diff --git a/apps/web/src/components/custom-fields/card-field-chip.tsx b/apps/web/src/components/custom-fields/card-field-chip.tsx
new file mode 100644
index 000000000..f7f8160a1
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-field-chip.tsx
@@ -0,0 +1,42 @@
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+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 function CardFieldChip({ field }: { field: CardField }) {
+ const display = formatCustomFieldValue(field.type, field.value, "short");
+
+ return (
+ <Tooltip>
+ <TooltipTrigger render={<span className={cardChipClass} />}>
+ {field.type === "boolean" ? (
+ <>
+ <CheckboxMark checked className="size-3" />
+ <span className="max-w-18 truncate">{field.name}</span>
+ </>
+ ) : (
+ <>
+ <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>
+ {!!display?.more && (
+ <span className="text-muted-foreground">+{display.more}</span>
+ )}
+ </>
+ )}
+ </TooltipTrigger>
+ <TooltipContent>{field.name}</TooltipContent>
+ </Tooltip>
+ );
+}
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.tsx
new file mode 100644
index 000000000..a101dac41
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-field-list.test.tsx
@@ -0,0 +1,50 @@
+import { cleanup, render, screen } from "@testing-library/react";
+import { afterEach, describe, expect, it, vi } from "vite-plus/test";
+import { CardFieldList } from "./card-field-list";
+import type { CardField } from "./card-fields";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+ initReactI18next: { type: "3rdParty", init: vi.fn() },
+}));
+
+afterEach(() => {
+ cleanup();
+ document.body.innerHTML = "";
+});
+
+const fields: CardField[] = [
+ { fieldId: "points", name: "Story points", type: "number", value: "5" },
+ { fieldId: "billable", name: "Billable", type: "boolean", value: "true" },
+ { fieldId: "customer", name: "Customer", type: "text", value: "Acme Corp" },
+ {
+ fieldId: "platforms",
+ name: "Platforms",
+ type: "multiselect",
+ value: '["Web","iOS","Android"]',
+ },
+];
+
+describe("CardFieldList", () => {
+ it("shows the first chips and counts the rest", () => {
+ render(<CardFieldList fields={fields} max={2} />);
+ expect(screen.getByText("5")).toBeInTheDocument();
+ expect(screen.getByText("Billable")).toBeInTheDocument();
+ expect(screen.queryByText("Acme Corp")).toBeNull();
+ expect(
+ screen.getByRole("button", { name: "tasks:customFields.moreFields" }),
+ ).toHaveTextContent("+2");
+ });
+
+ it("formats multiselect values and skips the overflow chip when all fit", () => {
+ render(<CardFieldList fields={fields.slice(3)} max={3} />);
+ expect(screen.getByText("Web, iOS")).toBeInTheDocument();
+ expect(screen.getByText("+1")).toBeInTheDocument();
+ expect(screen.queryByRole("button")).toBeNull();
+ });
+
+ it("renders nothing without fields", () => {
+ const { container } = render(<CardFieldList fields={[]} max={2} />);
+ expect(container).toBeEmptyDOMElement();
+ });
+});
diff --git a/apps/web/src/components/custom-fields/card-field-list.tsx b/apps/web/src/components/custom-fields/card-field-list.tsx
new file mode 100644
index 000000000..8585ad50c
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-field-list.tsx
@@ -0,0 +1,71 @@
+import type { SyntheticEvent } from "react";
+import { useTranslation } from "react-i18next";
+import {
+ HoverCard,
+ HoverCardContent,
+ HoverCardTrigger,
+} from "@/components/ui/preview-card";
+import { cn } from "@/lib/cn";
+import { CardFieldChip, cardChipClass } from "./card-field-chip";
+import { CardFieldOverflowRow } from "./card-field-overflow-row";
+import type { CardField } from "./card-fields";
+
+type CardFieldListProps = {
+ fields: CardField[];
+ max: number;
+ className?: string;
+};
+
+const keepCardIdle = (event: SyntheticEvent) => {
+ event.stopPropagation();
+ event.preventDefault();
+};
+
+export function CardFieldList({ fields, max, className }: CardFieldListProps) {
+ const { t } = useTranslation();
+
+ if (fields.length === 0) return null;
+
+ const hidden = fields.slice(max);
+
+ return (
+ <div className={cn("flex min-w-0 items-center gap-1", className)}>
+ {fields.slice(0, max).map((field) => (
+ <CardFieldChip key={field.fieldId} field={field} />
+ ))}
+ {hidden.length > 0 && (
+ <HoverCard openDelay={200} closeDelay={100}>
+ <HoverCardTrigger asChild>
+ <button
+ type="button"
+ aria-label={t("tasks:customFields.moreFields", {
+ count: hidden.length,
+ })}
+ onClick={keepCardIdle}
+ onPointerDown={keepCardIdle}
+ className={cn(
+ cardChipClass,
+ "cursor-default text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring",
+ )}
+ >
+ +{hidden.length}
+ </button>
+ </HoverCardTrigger>
+ <HoverCardContent
+ side="bottom"
+ align="end"
+ className="w-auto p-1"
+ onClick={(event) => event.stopPropagation()}
+ onPointerDown={(event) => event.stopPropagation()}
+ >
+ <div className="grid auto-rows-7 grid-cols-[auto_auto_auto] items-center gap-x-3 px-1.5">
+ {hidden.map((field) => (
+ <CardFieldOverflowRow key={field.fieldId} field={field} />
+ ))}
+ </div>
+ </HoverCardContent>
+ </HoverCard>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/card-field-overflow-row.tsx b/apps/web/src/components/custom-fields/card-field-overflow-row.tsx
new file mode 100644
index 000000000..10ea94302
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-field-overflow-row.tsx
@@ -0,0 +1,32 @@
+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 function CardFieldOverflowRow({ field }: { field: CardField }) {
+ const display = formatCustomFieldValue(field.type, field.value, "short");
+
+ return (
+ <div className="contents text-xs">
+ <CustomFieldTypeIcon
+ type={field.type}
+ className="size-3.5 text-muted-foreground"
+ />
+ <span className="max-w-32 truncate font-medium text-muted-foreground">
+ {field.name}
+ </span>
+ {field.type === "boolean" ? (
+ <CheckboxMark checked />
+ ) : (
+ <span className="flex min-w-0 max-w-44 items-center gap-1.5 font-semibold text-foreground">
+ <span className="truncate">{display?.text}</span>
+ {!!display?.more && (
+ <span className="shrink-0 font-medium text-muted-foreground">
+ +{display.more}
+ </span>
+ )}
+ </span>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/card-fields.test.ts b/apps/web/src/components/custom-fields/card-fields.test.ts
new file mode 100644
index 000000000..65b438b4c
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-fields.test.ts
@@ -0,0 +1,51 @@
+import { describe, expect, it } from "vite-plus/test";
+import type { CustomFieldValue } from "@/hooks/queries/custom-field/use-get-custom-field-values-by-project";
+import { cardFieldsForTask } from "./card-fields";
+
+const value = (
+ taskId: string,
+ fieldId: string,
+ fieldType: string,
+ raw: string | null,
+ fieldPosition: number,
+): CustomFieldValue => ({
+ id: `${taskId}-${fieldId}`,
+ taskId,
+ fieldId,
+ value: raw,
+ fieldName: fieldId,
+ fieldPosition,
+ fieldType,
+ fieldOptions: null,
+});
+
+const values = [
+ value("t1", "release", "date", "2026-10-22", 2),
+ value("t1", "points", "number", "5", 0),
+ value("t1", "billable", "boolean", "false", 1),
+ value("t1", "platforms", "multiselect", "[]", 3),
+ value("t1", "customer", "text", "", 4),
+ value("t1", "urgent", "boolean", "true", 5),
+ value("t2", "points", "number", "3", 0),
+];
+
+describe("cardFieldsForTask", () => {
+ it("keeps filled fields for the task in field order", () => {
+ expect(cardFieldsForTask(values, "t1", []).map((f) => f.fieldId)).toEqual([
+ "points",
+ "release",
+ "urgent",
+ ]);
+ });
+
+ it("drops fields the person hid from cards", () => {
+ expect(
+ cardFieldsForTask(values, "t1", ["points"]).map((f) => f.fieldId),
+ ).toEqual(["release", "urgent"]);
+ });
+
+ it("returns nothing without data or values for the task", () => {
+ expect(cardFieldsForTask(undefined, "t1", [])).toEqual([]);
+ expect(cardFieldsForTask(values, "t3", [])).toEqual([]);
+ });
+});
diff --git a/apps/web/src/components/custom-fields/card-fields.ts b/apps/web/src/components/custom-fields/card-fields.ts
new file mode 100644
index 000000000..2b7894bbd
--- /dev/null
+++ b/apps/web/src/components/custom-fields/card-fields.ts
@@ -0,0 +1,52 @@
+import type { CustomFieldType } from "@/components/project/custom-fields/types";
+import type { CustomFieldValue } from "@/hooks/queries/custom-field/use-get-custom-field-values-by-project";
+import { isCustomFieldValueEmpty } from "./missing-required-fields";
+
+export type CardField = {
+ fieldId: string;
+ name: string;
+ type: CustomFieldType;
+ value: string;
+};
+
+const groupedByTask = new WeakMap<
+ CustomFieldValue[],
+ Map<string, CustomFieldValue[]>
+>();
+
+function valuesByTask(values: CustomFieldValue[]) {
+ const cached = groupedByTask.get(values);
+ if (cached) return cached;
+ const grouped = new Map<string, CustomFieldValue[]>();
+ for (const value of values) {
+ const list = grouped.get(value.taskId);
+ if (list) list.push(value);
+ else grouped.set(value.taskId, [value]);
+ }
+ for (const list of grouped.values()) {
+ list.sort((a, b) => a.fieldPosition - b.fieldPosition);
+ }
+ groupedByTask.set(values, grouped);
+ return grouped;
+}
+
+export function cardFieldsForTask(
+ values: CustomFieldValue[] | undefined,
+ taskId: string,
+ hiddenFieldIds: string[],
+): CardField[] {
+ if (!values) return [];
+ return (valuesByTask(values).get(taskId) ?? [])
+ .filter((entry) => !hiddenFieldIds.includes(entry.fieldId))
+ .map((entry) => ({
+ fieldId: entry.fieldId,
+ name: entry.fieldName,
+ type: entry.fieldType as CustomFieldType,
+ value: entry.value ?? "",
+ }))
+ .filter((field) =>
+ field.type === "boolean"
+ ? field.value === "true"
+ : !isCustomFieldValueEmpty(field.type, field.value),
+ );
+}
diff --git a/apps/web/src/components/custom-fields/checkbox-mark.tsx b/apps/web/src/components/custom-fields/checkbox-mark.tsx
new file mode 100644
index 000000000..c16a7f8a8
--- /dev/null
+++ b/apps/web/src/components/custom-fields/checkbox-mark.tsx
@@ -0,0 +1,25 @@
+import { Check } from "lucide-react";
+import { cn } from "@/lib/cn";
+
+export function CheckboxMark({
+ checked,
+ className,
+}: {
+ checked: boolean;
+ className?: string;
+}) {
+ return (
+ <span
+ aria-hidden="true"
+ className={cn(
+ "inline-flex size-3.5 shrink-0 items-center justify-center rounded-[4px] border",
+ checked
+ ? "border-foreground bg-foreground text-background"
+ : "border-muted-foreground/60",
+ className,
+ )}
+ >
+ {checked && <Check className="size-2.5" strokeWidth={3} />}
+ </span>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/custom-field-chip.test.tsx b/apps/web/src/components/custom-fields/custom-field-chip.test.tsx
new file mode 100644
index 000000000..49119e6b9
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-chip.test.tsx
@@ -0,0 +1,115 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, describe, expect, it, vi } from "vite-plus/test";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { CustomFieldChip } from "./custom-field-chip";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+ initReactI18next: { type: "3rdParty", init: vi.fn() },
+}));
+
+afterEach(() => {
+ cleanup();
+ document.body.innerHTML = "";
+});
+
+const field = (
+ overrides: Partial<CustomFieldDefinition>,
+): CustomFieldDefinition => ({
+ id: "field-1",
+ projectId: "project-1",
+ name: "Environment",
+ type: "text",
+ required: false,
+ defaultValue: null,
+ options: null,
+ position: 0,
+ createdAt: "",
+ updatedAt: "",
+ ...overrides,
+});
+
+describe("CustomFieldChip", () => {
+ it("toggles booleans in place without a popover", () => {
+ const onChange = vi.fn();
+ render(
+ <CustomFieldChip
+ field={field({ type: "boolean", name: "Billable" })}
+ value="false"
+ onChange={onChange}
+ />,
+ );
+ const toggle = screen.getByRole("checkbox", { name: "Billable" });
+ expect(toggle).toHaveAttribute("aria-checked", "false");
+ fireEvent.click(toggle);
+ expect(onChange).toHaveBeenCalledWith("true");
+ });
+
+ it("saves a dropdown pick", async () => {
+ const onChange = vi.fn();
+ render(
+ <CustomFieldChip
+ field={field({
+ type: "dropdown",
+ options: ["Staging", "Production"],
+ })}
+ value=""
+ onChange={onChange}
+ />,
+ );
+ fireEvent.click(screen.getByRole("button", { name: /Environment/ }));
+ fireEvent.click(await screen.findByText("Production"));
+ expect(onChange).toHaveBeenCalledWith("Production");
+ });
+
+ it("keeps the old text when Escape closes the editor", async () => {
+ const onChange = vi.fn();
+ render(
+ <CustomFieldChip
+ field={field({ name: "Customer" })}
+ value="Acme"
+ onChange={onChange}
+ />,
+ );
+ fireEvent.click(screen.getByRole("button", { name: /Customer/ }));
+ const input = await screen.findByLabelText("Customer");
+ fireEvent.change(input, { target: { value: "Other" } });
+ fireEvent.keyDown(input, { key: "Escape" });
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ it("never empties a required multiselect", async () => {
+ const onChange = vi.fn();
+ render(
+ <CustomFieldChip
+ field={field({
+ type: "multiselect",
+ name: "Platforms",
+ required: true,
+ options: ["Web", "iOS"],
+ })}
+ value='["Web"]'
+ onChange={onChange}
+ />,
+ );
+ fireEvent.click(screen.getByRole("button", { name: /Platforms/ }));
+ fireEvent.click(await screen.findByRole("option", { name: "Web" }));
+ expect(onChange).not.toHaveBeenCalled();
+ fireEvent.click(screen.getByRole("option", { name: "iOS" }));
+ expect(onChange).toHaveBeenCalledWith('["Web","iOS"]');
+ expect(screen.queryByText("tasks:customFields.clear")).toBeNull();
+ });
+
+ it("marks empty required fields for screen readers", () => {
+ render(
+ <CustomFieldChip
+ field={field({ name: "Customer", required: true })}
+ value=""
+ onChange={vi.fn()}
+ />,
+ );
+ expect(screen.getByRole("button", { name: /Customer/ })).toHaveTextContent(
+ "tasks:customFields.required",
+ );
+ });
+});
diff --git a/apps/web/src/components/custom-fields/custom-field-chip.tsx b/apps/web/src/components/custom-fields/custom-field-chip.tsx
new file mode 100644
index 000000000..65594fcb9
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-chip.tsx
@@ -0,0 +1,95 @@
+import { useTranslation } from "react-i18next";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { cn } from "@/lib/cn";
+import { CheckboxMark } from "./checkbox-mark";
+import { CustomFieldPopover } from "./custom-field-popover";
+import { CustomFieldTypeIcon } from "./custom-field-type-icon";
+import { formatCustomFieldValue } from "./format-custom-field-value";
+import { isCustomFieldValueEmpty } from "./missing-required-fields";
+import { propertyChipClass } from "./property-chip-class";
+
+type CustomFieldChipProps = {
+ field: CustomFieldDefinition;
+ value: string;
+ onChange: (value: string) => void;
+ invalid?: boolean;
+ disabled?: boolean;
+};
+
+export function CustomFieldChip({
+ field,
+ value,
+ onChange,
+ invalid = false,
+ disabled = false,
+}: CustomFieldChipProps) {
+ const { t } = useTranslation();
+
+ if (field.type === "boolean") {
+ const checked = value === "true";
+ return (
+ <button
+ type="button"
+ role="checkbox"
+ aria-checked={checked}
+ disabled={disabled}
+ onClick={() => onChange(checked ? "false" : "true")}
+ className={cn(
+ propertyChipClass,
+ checked && "bg-accent/30 text-foreground",
+ )}
+ >
+ <CheckboxMark checked={checked} />
+ <span className="truncate">{field.name}</span>
+ </button>
+ );
+ }
+
+ const display = formatCustomFieldValue(field.type, value, "short");
+ const missing = field.required && isCustomFieldValueEmpty(field.type, value);
+
+ const chip = (
+ <button
+ type="button"
+ disabled={disabled}
+ data-custom-field={field.id}
+ className={cn(
+ propertyChipClass,
+ display && "bg-accent/30",
+ invalid &&
+ "border-destructive/50 bg-destructive/8 text-destructive-foreground focus-visible:ring-destructive/40",
+ )}
+ >
+ <CustomFieldTypeIcon type={field.type} className="size-3.5 shrink-0" />
+ <span className="shrink-0">{field.name}</span>
+ {display && (
+ <span
+ className="min-w-0 max-w-40 truncate text-foreground"
+ title={display.text}
+ >
+ {display.text}
+ </span>
+ )}
+ {!!display?.more && <span className="shrink-0">+{display.more}</span>}
+ {missing && (
+ <>
+ {!invalid && (
+ <span
+ aria-hidden="true"
+ className="size-[5px] shrink-0 rounded-full bg-destructive-foreground in-data-popup-open:hidden"
+ />
+ )}
+ <span className="sr-only">{t("tasks:customFields.required")}</span>
+ </>
+ )}
+ </button>
+ );
+
+ if (disabled) return chip;
+
+ return (
+ <CustomFieldPopover field={field} value={value} onChange={onChange}>
+ {chip}
+ </CustomFieldPopover>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/custom-field-icon.ts b/apps/web/src/components/custom-fields/custom-field-icon.ts
new file mode 100644
index 000000000..e6b9fe8cf
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-icon.ts
@@ -0,0 +1,23 @@
+import {
+ Calendar,
+ Hash,
+ List,
+ type LucideIcon,
+ SquareCheck,
+ SquareChevronDown,
+ Type,
+} from "lucide-react";
+import type { CustomFieldType } from "@/components/project/custom-fields/types";
+
+const ICONS: Record<CustomFieldType, LucideIcon> = {
+ text: Type,
+ number: Hash,
+ date: Calendar,
+ dropdown: SquareChevronDown,
+ boolean: SquareCheck,
+ multiselect: List,
+};
+
+export function customFieldIcon(type: CustomFieldType): LucideIcon {
+ return ICONS[type] ?? Type;
+}
diff --git a/apps/web/src/components/custom-fields/custom-field-popover.tsx b/apps/web/src/components/custom-fields/custom-field-popover.tsx
new file mode 100644
index 000000000..ee89176fd
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-popover.tsx
@@ -0,0 +1,108 @@
+import { type ReactElement, useState } from "react";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import { DateFieldEditor } from "./date-field-editor";
+import { OptionFieldEditor } from "./option-field-editor";
+import { parseMultiselect } from "./parse-multiselect";
+import { TextFieldEditor } from "./text-field-editor";
+
+type CustomFieldPopoverProps = {
+ field: CustomFieldDefinition;
+ value: string;
+ onChange: (value: string) => void;
+ side?: "bottom" | "left";
+ children: ReactElement;
+};
+
+export function CustomFieldPopover({
+ field,
+ value,
+ onChange,
+ side = "bottom",
+ children,
+}: CustomFieldPopoverProps) {
+ const [open, setOpen] = useState(false);
+ const [draft, setDraft] = useState(value);
+ const isText = field.type === "text" || field.type === "number";
+
+ const commit = (next: string) => {
+ if (next === value) return;
+ if (field.required && next.trim() === "") return;
+ onChange(next);
+ };
+
+ const commitDraft = () => commit(draft.trim());
+
+ const close = () => setOpen(false);
+
+ const toggleOption = (option: string) => {
+ if (field.type === "dropdown") {
+ commit(option);
+ close();
+ return;
+ }
+ const selected = parseMultiselect(value);
+ const next = selected.includes(option)
+ ? selected.filter((item) => item !== option)
+ : [...selected, option];
+ if (field.required && next.length === 0) return;
+ commit(JSON.stringify(next));
+ };
+
+ return (
+ <Popover
+ open={open}
+ onOpenChange={(next, details) => {
+ if (next) setDraft(value);
+ else if (isText && details.reason !== "escape-key") commitDraft();
+ setOpen(next);
+ }}
+ >
+ <PopoverTrigger asChild>{children}</PopoverTrigger>
+ <PopoverContent side={side} align="start" className="p-0">
+ {isText && (
+ <TextFieldEditor
+ field={field}
+ draft={draft}
+ onDraftChange={setDraft}
+ onSubmit={() => {
+ commitDraft();
+ close();
+ }}
+ />
+ )}
+ {field.type === "date" && (
+ <DateFieldEditor
+ value={value}
+ required={field.required}
+ onSelect={(next) => {
+ commit(next);
+ close();
+ }}
+ />
+ )}
+ {(field.type === "dropdown" || field.type === "multiselect") && (
+ <OptionFieldEditor
+ field={field}
+ selected={
+ field.type === "dropdown"
+ ? value
+ ? [value]
+ : []
+ : parseMultiselect(value)
+ }
+ onToggle={toggleOption}
+ onClear={() => {
+ commit(field.type === "multiselect" ? "[]" : "");
+ close();
+ }}
+ />
+ )}
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/custom-field-row.tsx b/apps/web/src/components/custom-fields/custom-field-row.tsx
new file mode 100644
index 000000000..44301f145
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-row.tsx
@@ -0,0 +1,90 @@
+import { useTranslation } from "react-i18next";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { CheckboxMark } from "./checkbox-mark";
+import { CustomFieldPopover } from "./custom-field-popover";
+import { CustomFieldTypeIcon } from "./custom-field-type-icon";
+import { formatCustomFieldValue } from "./format-custom-field-value";
+
+type CustomFieldRowProps = {
+ field: CustomFieldDefinition;
+ value: string;
+ onChange: (value: string) => void;
+ disabled?: boolean;
+};
+
+const rowClass =
+ "group/row flex h-7 w-full min-w-0 items-center gap-2 rounded-md px-1.5 text-left text-xs outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring enabled:hover:bg-accent data-popup-open:bg-accent";
+
+export function CustomFieldRow({
+ field,
+ value,
+ onChange,
+ disabled = false,
+}: CustomFieldRowProps) {
+ const { t } = useTranslation();
+ const label = (
+ <>
+ <CustomFieldTypeIcon
+ type={field.type}
+ className="size-3.5 shrink-0 text-muted-foreground group-data-popup-open/row:text-sidebar-foreground"
+ />
+ <span className="w-26 shrink-0 truncate font-medium text-muted-foreground group-data-popup-open/row:text-sidebar-foreground">
+ {field.name}
+ </span>
+ </>
+ );
+
+ if (field.type === "boolean") {
+ const checked = value === "true";
+ return (
+ <button
+ type="button"
+ role="checkbox"
+ aria-checked={checked}
+ aria-label={field.name}
+ disabled={disabled}
+ onClick={() => onChange(checked ? "false" : "true")}
+ className={rowClass}
+ >
+ {label}
+ <CheckboxMark checked={checked} />
+ </button>
+ );
+ }
+
+ const display = formatCustomFieldValue(field.type, value, "medium");
+ const row = (
+ <button type="button" disabled={disabled} className={rowClass}>
+ {label}
+ {display ? (
+ <span className="flex min-w-0 items-center gap-1.5 font-semibold text-foreground">
+ <span className="truncate" title={display.text}>
+ {display.text}
+ </span>
+ {!!display.more && (
+ <span className="shrink-0 font-medium text-muted-foreground">
+ +{display.more}
+ </span>
+ )}
+ </span>
+ ) : (
+ <span className="truncate text-muted-foreground/70">
+ {t("tasks:customFields.empty")}
+ </span>
+ )}
+ </button>
+ );
+
+ if (disabled) return row;
+
+ return (
+ <CustomFieldPopover
+ field={field}
+ value={value}
+ onChange={onChange}
+ side="left"
+ >
+ {row}
+ </CustomFieldPopover>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/custom-field-type-icon.tsx b/apps/web/src/components/custom-fields/custom-field-type-icon.tsx
new file mode 100644
index 000000000..86b028088
--- /dev/null
+++ b/apps/web/src/components/custom-fields/custom-field-type-icon.tsx
@@ -0,0 +1,18 @@
+import { createElement } from "react";
+import type { CustomFieldType } from "@/components/project/custom-fields/types";
+import { customFieldIcon } from "./custom-field-icon";
+
+type CustomFieldTypeIconProps = {
+ type: CustomFieldType;
+ className?: string;
+};
+
+export function CustomFieldTypeIcon({
+ type,
+ className,
+}: CustomFieldTypeIconProps) {
+ return createElement(customFieldIcon(type), {
+ className,
+ "aria-hidden": true,
+ });
+}
diff --git a/apps/web/src/components/custom-fields/date-field-editor.tsx b/apps/web/src/components/custom-fields/date-field-editor.tsx
new file mode 100644
index 000000000..14e469d82
--- /dev/null
+++ b/apps/web/src/components/custom-fields/date-field-editor.tsx
@@ -0,0 +1,63 @@
+import { format, isValid, parseISO } from "date-fns";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import { Calendar } from "@/components/ui/calendar";
+
+type DateFieldEditorProps = {
+ value: string;
+ required: boolean;
+ onSelect: (value: string) => void;
+};
+
+const toValue = (date: Date) => format(date, "yyyy-MM-dd");
+
+export function DateFieldEditor({
+ value,
+ required,
+ onSelect,
+}: DateFieldEditorProps) {
+ const { t } = useTranslation();
+ const parsed = value ? parseISO(value) : undefined;
+ const selected = parsed && isValid(parsed) ? parsed : undefined;
+
+ 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>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/format-custom-field-value.test.ts b/apps/web/src/components/custom-fields/format-custom-field-value.test.ts
new file mode 100644
index 000000000..4d7004767
--- /dev/null
+++ b/apps/web/src/components/custom-fields/format-custom-field-value.test.ts
@@ -0,0 +1,33 @@
+import { describe, expect, it } from "vite-plus/test";
+import { formatCustomFieldValue } from "./format-custom-field-value";
+
+describe("formatCustomFieldValue", () => {
+ it("returns null for empty values and booleans", () => {
+ expect(formatCustomFieldValue("text", " ", "short")).toBeNull();
+ expect(formatCustomFieldValue("multiselect", "[]", "short")).toBeNull();
+ expect(formatCustomFieldValue("boolean", "true", "short")).toBeNull();
+ });
+
+ it("shows two options and counts the rest", () => {
+ expect(
+ formatCustomFieldValue("multiselect", '["Web","iOS","Android"]', "short"),
+ ).toEqual({ text: "Web, iOS", more: 1 });
+ });
+
+ it("formats dates as local calendar days", () => {
+ expect(formatCustomFieldValue("date", "2026-10-22", "short")?.text).toMatch(
+ /22/,
+ );
+ expect(
+ formatCustomFieldValue("date", "2026-10-22", "medium")?.text,
+ ).toMatch(/2026/);
+ });
+
+ it("keeps unparseable dates and plain values as typed", () => {
+ expect(formatCustomFieldValue("date", "soon", "short")?.text).toBe("soon");
+ expect(formatCustomFieldValue("number", "5", "short")).toEqual({
+ text: "5",
+ more: 0,
+ });
+ });
+});
diff --git a/apps/web/src/components/custom-fields/format-custom-field-value.ts b/apps/web/src/components/custom-fields/format-custom-field-value.ts
new file mode 100644
index 000000000..00edeb3be
--- /dev/null
+++ b/apps/web/src/components/custom-fields/format-custom-field-value.ts
@@ -0,0 +1,40 @@
+import { isValid, parseISO } from "date-fns";
+import type { CustomFieldType } from "@/components/project/custom-fields/types";
+import { formatDateMedium, formatDateShort } from "@/lib/format";
+import { parseMultiselect } from "./parse-multiselect";
+
+const VISIBLE_OPTIONS = 2;
+
+export type CustomFieldDisplay = { text: string; more: number };
+
+export function formatCustomFieldValue(
+ type: CustomFieldType,
+ raw: string,
+ dateStyle: "short" | "medium",
+): CustomFieldDisplay | null {
+ if (type === "boolean") return null;
+
+ if (type === "multiselect") {
+ const values = parseMultiselect(raw);
+ if (values.length === 0) return null;
+ return {
+ text: values.slice(0, VISIBLE_OPTIONS).join(", "),
+ more: Math.max(0, values.length - VISIBLE_OPTIONS),
+ };
+ }
+
+ const value = raw.trim();
+ if (!value) return null;
+
+ if (type === "date") {
+ const date = parseISO(value);
+ if (!isValid(date)) return { text: value, more: 0 };
+ return {
+ text:
+ dateStyle === "short" ? formatDateShort(date) : formatDateMedium(date),
+ more: 0,
+ };
+ }
+
+ return { text: value, more: 0 };
+}
diff --git a/apps/web/src/components/custom-fields/missing-required-fields.test.ts b/apps/web/src/components/custom-fields/missing-required-fields.test.ts
new file mode 100644
index 000000000..a3dac631b
--- /dev/null
+++ b/apps/web/src/components/custom-fields/missing-required-fields.test.ts
@@ -0,0 +1,57 @@
+import { describe, expect, it } from "vite-plus/test";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import {
+ findMissingRequiredFields,
+ isCustomFieldValueEmpty,
+} from "./missing-required-fields";
+
+const field = (
+ id: string,
+ type: CustomFieldDefinition["type"],
+ required = true,
+): CustomFieldDefinition => ({
+ id,
+ projectId: "p",
+ name: id,
+ type,
+ required,
+ defaultValue: null,
+ options: null,
+ position: 0,
+ createdAt: "",
+ updatedAt: "",
+});
+
+describe("isCustomFieldValueEmpty", () => {
+ it("treats blank text and empty multiselect arrays as empty", () => {
+ expect(isCustomFieldValueEmpty("text", " ")).toBe(true);
+ expect(isCustomFieldValueEmpty("multiselect", "[]")).toBe(true);
+ expect(isCustomFieldValueEmpty("multiselect", '["Web"]')).toBe(false);
+ });
+});
+
+describe("findMissingRequiredFields", () => {
+ it("returns required fields without a value, in order", () => {
+ const fields = [
+ field("customer", "text"),
+ field("points", "number"),
+ field("notes", "text", false),
+ field("platforms", "multiselect"),
+ ];
+ const missing = findMissingRequiredFields(fields, {
+ customer: "",
+ points: "5",
+ notes: "",
+ platforms: "[]",
+ });
+ expect(missing.map((f) => f.id)).toEqual(["customer", "platforms"]);
+ });
+
+ it("never flags booleans because off is a valid value", () => {
+ expect(
+ findMissingRequiredFields([field("billable", "boolean")], {
+ billable: "",
+ }),
+ ).toEqual([]);
+ });
+});
diff --git a/apps/web/src/components/custom-fields/missing-required-fields.ts b/apps/web/src/components/custom-fields/missing-required-fields.ts
new file mode 100644
index 000000000..059d8078c
--- /dev/null
+++ b/apps/web/src/components/custom-fields/missing-required-fields.ts
@@ -0,0 +1,22 @@
+import type {
+ CustomFieldDefinition,
+ CustomFieldType,
+} from "@/components/project/custom-fields/types";
+import { parseMultiselect } from "./parse-multiselect";
+
+export function isCustomFieldValueEmpty(type: CustomFieldType, raw: string) {
+ if (type === "multiselect") return parseMultiselect(raw).length === 0;
+ return raw.trim() === "";
+}
+
+export function findMissingRequiredFields(
+ fields: CustomFieldDefinition[],
+ values: Record<string, string>,
+) {
+ return fields.filter(
+ (field) =>
+ field.required &&
+ field.type !== "boolean" &&
+ isCustomFieldValueEmpty(field.type, values[field.id] ?? ""),
+ );
+}
diff --git a/apps/web/src/components/custom-fields/option-field-editor.tsx b/apps/web/src/components/custom-fields/option-field-editor.tsx
new file mode 100644
index 000000000..e8121703e
--- /dev/null
+++ b/apps/web/src/components/custom-fields/option-field-editor.tsx
@@ -0,0 +1,108 @@
+import { Autocomplete } from "@base-ui/react/autocomplete";
+import { Check, X } from "lucide-react";
+import { useState } from "react";
+import { useTranslation } from "react-i18next";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { cn } from "@/lib/cn";
+import { CheckboxMark } from "./checkbox-mark";
+
+type OptionFieldEditorProps = {
+ field: CustomFieldDefinition;
+ selected: string[];
+ onToggle: (option: string) => void;
+ onClear: () => void;
+};
+
+export function OptionFieldEditor({
+ field,
+ selected,
+ onToggle,
+ onClear,
+}: OptionFieldEditorProps) {
+ const { t } = useTranslation();
+ const [query, setQuery] = useState("");
+ const multiple = field.type === "multiselect";
+ const options = Array.from(new Set(field.options ?? []));
+ const needle = query.trim().toLowerCase();
+ const filtered = options.filter((option) =>
+ option.toLowerCase().includes(needle),
+ );
+
+ return (
+ <div className="w-60">
+ <Autocomplete.Root
+ items={options}
+ filteredItems={filtered}
+ value={query}
+ onValueChange={(value, details) => {
+ if (
+ details.reason === "input-change" ||
+ details.reason === "input-clear"
+ )
+ setQuery(value);
+ }}
+ inline
+ open
+ autoHighlight="always"
+ keepHighlight
+ >
+ <div className="flex items-center border-border/80 border-b">
+ <Autocomplete.Input
+ autoFocus
+ aria-label={field.name}
+ placeholder={t("tasks:customFields.setValue", {
+ field: field.name,
+ })}
+ className="h-10 min-w-0 flex-1 bg-transparent px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground"
+ />
+ {field.required && (
+ <span className="shrink-0 pe-3 text-muted-foreground text-xs">
+ {t("tasks:customFields.required")}
+ </span>
+ )}
+ </div>
+ <Autocomplete.Empty className="px-3 text-muted-foreground text-xs not-empty:py-5">
+ {t("tasks:customFields.noMatches")}
+ </Autocomplete.Empty>
+ <Autocomplete.List className="max-h-72 overflow-y-auto p-1 empty:hidden">
+ {(option: string) => {
+ const isSelected = selected.includes(option);
+ return (
+ <Autocomplete.Item
+ key={option}
+ value={option}
+ onClick={() => onToggle(option)}
+ className="flex h-8 cursor-default select-none items-center gap-2 rounded-md px-2 text-[13px] text-foreground outline-none data-highlighted:bg-accent"
+ >
+ {multiple ? (
+ <CheckboxMark checked={isSelected} />
+ ) : (
+ <Check
+ aria-hidden="true"
+ className={cn(
+ "size-3.5 shrink-0",
+ !isSelected && "invisible",
+ )}
+ />
+ )}
+ <span className="min-w-0 flex-1 truncate">{option}</span>
+ </Autocomplete.Item>
+ );
+ }}
+ </Autocomplete.List>
+ </Autocomplete.Root>
+ {!field.required && selected.length > 0 && (
+ <div className="border-border/80 border-t p-1">
+ <button
+ type="button"
+ onClick={onClear}
+ 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:customFields.clear")}
+ </button>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/parse-multiselect.test.ts b/apps/web/src/components/custom-fields/parse-multiselect.test.ts
new file mode 100644
index 000000000..537fa23f7
--- /dev/null
+++ b/apps/web/src/components/custom-fields/parse-multiselect.test.ts
@@ -0,0 +1,18 @@
+import { describe, expect, it } from "vite-plus/test";
+import { parseMultiselect } from "./parse-multiselect";
+
+describe("parseMultiselect", () => {
+ it("reads JSON arrays", () => {
+ expect(parseMultiselect('["Web","iOS"]')).toEqual(["Web", "iOS"]);
+ });
+
+ it("falls back to comma separated values", () => {
+ expect(parseMultiselect("Web, iOS,")).toEqual(["Web", "iOS"]);
+ });
+
+ it("returns nothing for empty or non-array input", () => {
+ expect(parseMultiselect("")).toEqual([]);
+ expect(parseMultiselect(null)).toEqual([]);
+ expect(parseMultiselect('{"a":1}')).toEqual([]);
+ });
+});
diff --git a/apps/web/src/components/custom-fields/parse-multiselect.ts b/apps/web/src/components/custom-fields/parse-multiselect.ts
new file mode 100644
index 000000000..db265b8ca
--- /dev/null
+++ b/apps/web/src/components/custom-fields/parse-multiselect.ts
@@ -0,0 +1,12 @@
+export function parseMultiselect(raw: string | null | undefined): string[] {
+ if (!raw) return [];
+ try {
+ const parsed = JSON.parse(raw);
+ return Array.isArray(parsed) ? parsed.map(String) : [];
+ } catch {
+ return raw
+ .split(",")
+ .map((value) => value.trim())
+ .filter(Boolean);
+ }
+}
diff --git a/apps/web/src/components/custom-fields/property-chip-class.ts b/apps/web/src/components/custom-fields/property-chip-class.ts
new file mode 100644
index 000000000..29fe8281d
--- /dev/null
+++ b/apps/web/src/components/custom-fields/property-chip-class.ts
@@ -0,0 +1,2 @@
+export const propertyChipClass =
+ "inline-flex h-7 max-w-full items-center gap-1.5 rounded-md border border-border px-2.5 font-medium text-muted-foreground text-xs outline-none transition-colors hover:bg-accent/50 focus-visible:ring-2 focus-visible:ring-ring data-popup-open:border-input data-popup-open:bg-accent disabled:pointer-events-none";
diff --git a/apps/web/src/components/custom-fields/text-field-editor.tsx b/apps/web/src/components/custom-fields/text-field-editor.tsx
new file mode 100644
index 000000000..52070174b
--- /dev/null
+++ b/apps/web/src/components/custom-fields/text-field-editor.tsx
@@ -0,0 +1,47 @@
+import { useTranslation } from "react-i18next";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { Kbd } from "@/components/ui/kbd";
+
+type TextFieldEditorProps = {
+ field: CustomFieldDefinition;
+ draft: string;
+ onDraftChange: (value: string) => void;
+ onSubmit: () => void;
+};
+
+export function TextFieldEditor({
+ field,
+ draft,
+ onDraftChange,
+ onSubmit,
+}: TextFieldEditorProps) {
+ const { t } = useTranslation();
+ const isNumber = field.type === "number";
+
+ return (
+ <div className="w-64">
+ <input
+ autoFocus
+ type={isNumber ? "number" : "text"}
+ inputMode={isNumber ? "decimal" : undefined}
+ value={draft}
+ aria-label={field.name}
+ placeholder={field.defaultValue || field.name}
+ onChange={(event) => onDraftChange(event.target.value)}
+ onKeyDown={(event) => {
+ if (event.key !== "Enter") return;
+ event.preventDefault();
+ onSubmit();
+ }}
+ className="h-10 w-full bg-transparent px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none"
+ />
+ <div className="flex items-center justify-between gap-2 border-border/80 border-t px-3 py-2 text-muted-foreground text-xs">
+ <span>{field.required ? t("tasks:customFields.required") : null}</span>
+ <span className="flex items-center gap-1">
+ <Kbd>{t("tasks:customFields.enterKey")}</Kbd>
+ {t("tasks:customFields.toSave")}
+ </span>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/custom-fields/use-task-card-fields.ts b/apps/web/src/components/custom-fields/use-task-card-fields.ts
new file mode 100644
index 000000000..bd640f251
--- /dev/null
+++ b/apps/web/src/components/custom-fields/use-task-card-fields.ts
@@ -0,0 +1,15 @@
+import { useMemo } from "react";
+import useGetCustomFieldValuesByProject from "@/hooks/queries/custom-field/use-get-custom-field-values-by-project";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+import { cardFieldsForTask } from "./card-fields";
+
+export function useTaskCardFields(projectId: string, taskId: string) {
+ const { data } = useGetCustomFieldValuesByProject(projectId);
+ const hiddenFieldIds = useUserPreferencesStore(
+ (state) => state.hiddenCardFieldIds,
+ );
+ return useMemo(
+ () => cardFieldsForTask(data, taskId, hiddenFieldIds),
+ [data, taskId, hiddenFieldIds],
+ );
+}
diff --git a/apps/web/src/components/gantt/gantt-window.test.tsx b/apps/web/src/components/gantt/gantt-window.test.tsx
index 67d4daac6..c80cbe3ab 100644
--- a/apps/web/src/components/gantt/gantt-window.test.tsx
+++ b/apps/web/src/components/gantt/gantt-window.test.tsx
@@ -51,12 +51,35 @@ vi.mock("@/store/user-preferences", () => ({
}));
vi.mock("@/lib/i18n/domain", () => ({
getStatusLabel: (status: string) => status,
+ getPriorityLabel: (priority: string) => priority,
}));
vi.mock("react-i18next", () => ({
useTranslation: () => ({ t: (key: string) => key }),
initReactI18next: { type: "3rdParty", init: vi.fn() },
}));
vi.mock("@/lib/toast", () => ({ toast: { error: vi.fn() } }));
+vi.mock("@/hooks/queries/task/use-description-matches", () => ({
+ useDescriptionMatches: () => ({
+ ids: new Set<string>(),
+ isLoading: false,
+ isError: false,
+ }),
+}));
+vi.mock("@/components/project/task-filters/use-task-filter-options", () => ({
+ useTaskFilterOptions: () => ({
+ members: [],
+ labels: [],
+ customFields: [],
+ usedCustomFieldValues: {},
+ }),
+}));
+const noCustomFieldValues = () => [];
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-all-custom-field-values-by-project",
+ () => ({
+ default: () => ({ getValuesForTask: noCustomFieldValues }),
+ }),
+);
await import("@/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt");
afterEach(() => {
diff --git a/apps/web/src/components/import/import-run-card.tsx b/apps/web/src/components/import/import-run-card.tsx
index 435ffd7a4..7d11d41c6 100644
--- a/apps/web/src/components/import/import-run-card.tsx
+++ b/apps/web/src/components/import/import-run-card.tsx
@@ -12,7 +12,11 @@ import {
} from "@/components/import/summarize-import-counts";
import { Progress } from "@/components/ui/progress";
import type { ImportRun } from "@/fetchers/import/get-import-run";
+import { cn } from "@/lib/cn";
import { formatRelativeTime } from "@/lib/format";
+import { useCompletionLinger } from "./use-completion-linger";
+
+const FINISH_LINGER_MS = 750;
type ImportRunCardProps = {
run: ImportRun;
@@ -23,6 +27,7 @@ type ImportRunCardProps = {
export function ImportRunCard({ run, source, progress }: ImportRunCardProps) {
const { t } = useTranslation();
const running = run.status === "running";
+ const finishing = useCompletionLinger(running, FINISH_LINGER_MS);
const copy = IMPORT_UNIT_COPY[source.unit];
const totals = summarizeImportCounts(
sumImportCounts(run.projects),
@@ -57,8 +62,15 @@ export function ImportRunCard({ run, source, progress }: ImportRunCardProps) {
<p className="text-muted-foreground text-xs">{meta}</p>
) : null}
</div>
- {running ? (
- <Progress value={progress.percent} aria-label={headline} />
+ {running || finishing ? (
+ <Progress
+ value={finishing ? 100 : progress.percent}
+ aria-label={headline}
+ className={cn(
+ finishing &&
+ "opacity-0 transition-opacity delay-500 duration-200 ease-out",
+ )}
+ />
) : null}
</div>
<ul className="divide-y divide-border border-border border-t">
diff --git a/apps/web/src/components/import/import-run-status-icon.tsx b/apps/web/src/components/import/import-run-status-icon.tsx
index fb3fbc9d2..43b62b618 100644
--- a/apps/web/src/components/import/import-run-status-icon.tsx
+++ b/apps/web/src/components/import/import-run-status-icon.tsx
@@ -1,17 +1,32 @@
import { Check, CircleDashed, X } from "lucide-react";
+import { useState } from "react";
import { Spinner } from "@/components/ui/spinner";
import type { ImportRunProject } from "@/fetchers/import/get-import-run";
+import { cn } from "@/lib/cn";
type ImportRunStatusIconProps = {
status: ImportRunProject["status"];
};
+const SETTLE_IN =
+ "transition-[scale,opacity] duration-200 ease-out starting:scale-50 starting:opacity-0 motion-reduce:starting:scale-100";
+
export function ImportRunStatusIcon({ status }: ImportRunStatusIconProps) {
+ const [previous, setPrevious] = useState(status);
+ const [settled, setSettled] = useState(false);
+ if (status !== previous) {
+ setPrevious(status);
+ setSettled(previous === "running");
+ }
+
if (status === "completed") {
return (
<span
aria-hidden="true"
- className="flex size-5 shrink-0 items-center justify-center rounded-full bg-success/8 text-success-foreground dark:bg-success/16"
+ className={cn(
+ "flex size-5 shrink-0 items-center justify-center rounded-full bg-success/8 text-success-foreground dark:bg-success/16",
+ settled && SETTLE_IN,
+ )}
>
<Check className="size-3" strokeWidth={3} />
</span>
@@ -22,7 +37,10 @@ export function ImportRunStatusIcon({ status }: ImportRunStatusIconProps) {
return (
<span
aria-hidden="true"
- className="flex size-5 shrink-0 items-center justify-center rounded-full bg-destructive/8 text-destructive-foreground dark:bg-destructive/16"
+ className={cn(
+ "flex size-5 shrink-0 items-center justify-center rounded-full bg-destructive/8 text-destructive-foreground dark:bg-destructive/16",
+ settled && SETTLE_IN,
+ )}
>
<X className="size-3" strokeWidth={3} />
</span>
diff --git a/apps/web/src/components/import/use-completion-linger.test.ts b/apps/web/src/components/import/use-completion-linger.test.ts
new file mode 100644
index 000000000..efe00ddb4
--- /dev/null
+++ b/apps/web/src/components/import/use-completion-linger.test.ts
@@ -0,0 +1,25 @@
+import { act, renderHook } from "@testing-library/react";
+import { afterEach, beforeEach, expect, it, vi } from "vite-plus/test";
+import { useCompletionLinger } from "./use-completion-linger";
+
+beforeEach(() => vi.useFakeTimers());
+afterEach(() => vi.useRealTimers());
+
+it("lingers only after an active run finishes", () => {
+ const { result, rerender } = renderHook(
+ ({ active }) => useCompletionLinger(active, 700),
+ { initialProps: { active: true } },
+ );
+ expect(result.current).toBe(false);
+
+ rerender({ active: false });
+ expect(result.current).toBe(true);
+
+ act(() => vi.advanceTimersByTime(700));
+ expect(result.current).toBe(false);
+});
+
+it("does not linger for a run that was already finished", () => {
+ const { result } = renderHook(() => useCompletionLinger(false, 700));
+ expect(result.current).toBe(false);
+});
diff --git a/apps/web/src/components/import/use-completion-linger.ts b/apps/web/src/components/import/use-completion-linger.ts
new file mode 100644
index 000000000..a4df659bf
--- /dev/null
+++ b/apps/web/src/components/import/use-completion-linger.ts
@@ -0,0 +1,19 @@
+import { useEffect, useState } from "react";
+
+export function useCompletionLinger(active: boolean, durationMs: number) {
+ const [previous, setPrevious] = useState(active);
+ const [lingering, setLingering] = useState(false);
+
+ if (active !== previous) {
+ setPrevious(active);
+ setLingering(previous && !active);
+ }
+
+ useEffect(() => {
+ if (!lingering) return;
+ const timer = window.setTimeout(() => setLingering(false), durationMs);
+ return () => window.clearTimeout(timer);
+ }, [lingering, durationMs]);
+
+ return lingering;
+}
diff --git a/apps/web/src/components/import/use-import-run-finished.ts b/apps/web/src/components/import/use-import-run-finished.ts
index a2ca56258..5d4bf503c 100644
--- a/apps/web/src/components/import/use-import-run-finished.ts
+++ b/apps/web/src/components/import/use-import-run-finished.ts
@@ -1,4 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
+import { ImportIcon } from "lucide-react";
import { useEffect, useRef } from "react";
import { useTranslation } from "react-i18next";
import { getImportRunOutcome } from "@/components/import/get-import-run-progress";
@@ -29,7 +30,9 @@ export function useImportRunFinished(run: ImportRun | undefined) {
} else if (outcome === "partial") {
toast.warning(t("settings:workspaceImport.toast.partial", { source }));
} else {
- toast.success(t("settings:workspaceImport.toast.finished", { source }));
+ toast.success(t("settings:workspaceImport.toast.finished", { source }), {
+ icon: ImportIcon,
+ });
}
}, [run, queryClient, t]);
}
diff --git a/apps/web/src/components/kanban-board/column/column-dropzone.tsx b/apps/web/src/components/kanban-board/column/column-dropzone.tsx
index e5a932489..be1273627 100644
--- a/apps/web/src/components/kanban-board/column/column-dropzone.tsx
+++ b/apps/web/src/components/kanban-board/column/column-dropzone.tsx
@@ -9,6 +9,9 @@ import TaskCard from "../task-card";
const keepOrder: SortingStrategy = () => null;
+const CARD_ENTER = { type: "spring", duration: 0.3, bounce: 0 } as const;
+const CARD_EXIT = { duration: 0.15, ease: [0.23, 1, 0.32, 1] } as const;
+
type ColumnDropzoneProps = {
column: ProjectWithTasks["columns"][number];
activeTaskId: string | null;
@@ -23,7 +26,12 @@ export function ColumnDropzone({
disableSorting = false,
}: ColumnDropzoneProps) {
const reduceMotion = useReducedMotion();
- const hidden = reduceMotion ? { opacity: 0 } : { opacity: 0, scale: 0.98 };
+ const hidden = reduceMotion
+ ? { opacity: 0 }
+ : { opacity: 0, transform: "scale(0.98)" };
+ const shown = reduceMotion
+ ? { opacity: 1 }
+ : { opacity: 1, transform: "scale(1)" };
return (
<SortableContext
@@ -36,9 +44,13 @@ export function ColumnDropzone({
<motion.div
key={task.id}
initial={task.id === activeTaskId ? false : hidden}
- animate={reduceMotion ? { opacity: 1 } : { opacity: 1, scale: 1 }}
- exit={task.id === activeTaskId ? undefined : hidden}
- transition={{ type: "spring", duration: 0.35, bounce: 0.15 }}
+ animate={shown}
+ exit={
+ task.id === activeTaskId
+ ? undefined
+ : { ...hidden, transition: CARD_EXIT }
+ }
+ transition={CARD_ENTER}
>
<TaskCard
task={task}
diff --git a/apps/web/src/components/kanban-board/column/column-header.tsx b/apps/web/src/components/kanban-board/column/column-header.tsx
index ba0b11621..6ee3ad1bd 100644
--- a/apps/web/src/components/kanban-board/column/column-header.tsx
+++ b/apps/web/src/components/kanban-board/column/column-header.tsx
@@ -1,5 +1,5 @@
import { produce } from "immer";
-import { Archive, Plus } from "lucide-react";
+import { Archive, Plus, ArchiveIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import CreateTaskModal from "@/components/shared/modals/create-task-modal";
@@ -50,7 +50,9 @@ export function ColumnHeader({
});
setProject(updatedProject);
- toast.success(t("tasks:archive.success", { count: column.tasks.length }));
+ toast.success(t("tasks:archive.success", { count: column.tasks.length }), {
+ icon: ArchiveIcon,
+ });
setIsArchiveModalOpen(false);
};
@@ -76,6 +78,7 @@ export function ColumnHeader({
onClick={() => setIsArchiveModalOpen(true)}
className="flex items-center rounded-md px-2 py-1 text-left text-muted-foreground transition-colors hover:bg-accent/50"
title={t("tasks:listView.archiveAllTooltip")}
+ aria-label={t("tasks:listView.archiveAllTooltip")}
>
<Archive className="w-4 h-4 text-muted-foreground" />
</button>
diff --git a/apps/web/src/components/kanban-board/index.tsx b/apps/web/src/components/kanban-board/index.tsx
index fbc3a21e8..ab7fc526c 100644
--- a/apps/web/src/components/kanban-board/index.tsx
+++ b/apps/web/src/components/kanban-board/index.tsx
@@ -27,10 +27,12 @@ import { boardCollisionDetection } from "./board-collision-detection";
import { findTaskColumn } from "./drag-preview/find-task-column";
import { moveBoardTask } from "./move-task";
import { useDragPreview } from "./drag-preview/use-drag-preview";
+import { useReducedMotion } from "framer-motion";
import { useEffect, useState } from "react";
import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
import { useProjectBackground } from "@/hooks/use-project-background";
import { cn } from "@/lib/cn";
+import { EASE_OUT_CSS } from "@/lib/motion";
import { useBackgroundStore } from "@/store/background";
import useBulkSelectionStore from "@/store/bulk-selection";
import useProjectStore from "@/store/project";
@@ -180,6 +182,7 @@ function KanbanBoard({
useSensor(KeyboardSensor),
);
+ const reduceMotion = useReducedMotion();
const dropAnimation: DropAnimation = {
sideEffects: defaultDropAnimationSideEffects({
styles: {
@@ -188,8 +191,8 @@ function KanbanBoard({
},
},
}),
- duration: 300,
- easing: "cubic-bezier(0.23, 1, 0.32, 1)",
+ duration: 250,
+ easing: EASE_OUT_CSS,
};
const handleDragStart = (event: DragStartEvent) => {
@@ -369,9 +372,9 @@ function KanbanBoard({
</div>
</div>
</div>
- <DragOverlay dropAnimation={dropAnimation}>
+ <DragOverlay dropAnimation={reduceMotion ? null : dropAnimation}>
{activeTask ? (
- <div className="transform rotate-1 scale-[1.03] shadow-lg">
+ <div className="rotate-1 scale-[1.03] shadow-lg transition-[rotate,scale] duration-150 ease-out starting:rotate-0 starting:scale-100 motion-reduce:transition-none">
<div className="ring-2 ring-ring/35 rounded-lg">
<TaskCard task={activeTask} isFinalColumn={activeIsFinal} />
</div>
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.tsx
index fa8f9373d..9042aff53 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,5 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
-import { X } from "lucide-react";
+import { X, LinkIcon } from "lucide-react";
import { useMemo } from "react";
import { useTranslation } from "react-i18next";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -116,7 +116,7 @@ export default function TaskCardContextMenuContent({
const taskLink = generateLink(path);
navigator.clipboard.writeText(taskLink);
- toast.success(t("tasks:contextMenu.copyLinkSuccess"));
+ toast.success(t("tasks:contextMenu.copyLinkSuccess"), { icon: LinkIcon });
};
const handleDuplicateTask = () => {
@@ -157,8 +157,6 @@ export default function TaskCardContextMenuContent({
toast.error(
error instanceof Error ? error.message : t("tasks:update.error"),
);
- } finally {
- toast.success(t("tasks:update.success"));
}
};
@@ -240,7 +238,6 @@ export default function TaskCardContextMenuContent({
...task,
dueDate: date?.toISOString() || null,
});
- toast.success(t("tasks:dueDate.updateSuccess"));
} catch (error) {
toast.error(
error instanceof Error
@@ -263,7 +260,6 @@ export default function TaskCardContextMenuContent({
...task,
dueDate: null,
});
- toast.success(t("tasks:dueDate.clearSuccess"));
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/kanban-board/task-card/index.tsx b/apps/web/src/components/kanban-board/task-card/index.tsx
index f2bfd76b8..20266d1df 100644
--- a/apps/web/src/components/kanban-board/task-card/index.tsx
+++ b/apps/web/src/components/kanban-board/task-card/index.tsx
@@ -4,6 +4,7 @@ import type { CSSProperties } from "react";
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";
type TaskCardProps = {
task: Task;
@@ -27,13 +28,13 @@ function TaskCard({
id: task.id,
disabled: disableDragDrop,
data: { isFinalColumn },
+ transition: { duration: 200, easing: EASE_OUT_CSS },
});
const { handleKeyDown } = useTaskCardClick(task, listeners);
const style: CSSProperties = {
transform: CSS.Transform.toString(transform),
- transition:
- transition || "transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",
+ transition: transition || `transform 200ms ${EASE_OUT_CSS}`,
opacity: isDragging ? 0.6 : 1,
touchAction: isDragging ? "none" : "auto",
zIndex: isDragging ? 999 : "auto",
@@ -43,6 +44,7 @@ function TaskCard({
<div
ref={setNodeRef}
style={style}
+ data-kaneo-sortable
{...attributes}
{...listeners}
role="button"
diff --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.tsx
index 30ba2bba6..b429b6aa3 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,10 +1,5 @@
import { format } from "date-fns";
-import {
- Calendar,
- CalendarClock,
- CalendarX,
- SlidersHorizontal,
-} from "lucide-react";
+import { Calendar, CalendarClock, CalendarX, Trash2Icon } from "lucide-react";
import { memo, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { TaskProgressBadges } from "@/components/task/task-progress-badges";
@@ -21,13 +16,9 @@ import {
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { ContextMenu, ContextMenuTrigger } from "@/components/ui/context-menu";
-import {
- HoverCard,
- HoverCardContent,
- HoverCardTrigger,
-} from "@/components/ui/preview-card";
+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 useGetCustomFieldValuesByProject from "@/hooks/queries/custom-field/use-get-custom-field-values-by-project";
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";
@@ -98,33 +89,7 @@ function TaskCardContent({
(state) => state.focusedTaskId === task.id,
);
- const { data: projectCustomFieldValues = [] } =
- useGetCustomFieldValuesByProject(task.projectId);
-
- const customFieldValues = useMemo(
- () =>
- projectCustomFieldValues
- .filter((field) => field.taskId === task.id)
- .sort((a, b) => a.fieldPosition - b.fieldPosition),
- [projectCustomFieldValues, task.id],
- );
-
- const activeCustomFieldValues = useMemo(
- () =>
- customFieldValues.filter((field) => {
- if (field.value === null || field.value === "") return false;
- if (field.fieldType === "multiselect") {
- try {
- const parsed = JSON.parse(field.value);
- return Array.isArray(parsed) && parsed.length > 0;
- } catch {
- return false;
- }
- }
- return true;
- }),
- [customFieldValues],
- );
+ const cardFields = useTaskCardFields(task.projectId, task.id);
const { data: workspaceUsers } = useGetActiveWorkspaceUsers(
workspace?.id ?? "",
@@ -141,7 +106,7 @@ function TaskCardContent({
const handleDeleteTask = async () => {
try {
await deleteTask(task.id);
- toast.success(t("tasks:delete.success"));
+ toast.success(t("tasks:delete.success"), { icon: Trash2Icon });
} catch (error) {
toast.error(
error instanceof Error ? error.message : t("tasks:delete.error"),
@@ -176,7 +141,7 @@ function TaskCardContent({
: isOverdue
? "border-destructive/70 ring-[3px] ring-destructive/10"
: "border-border hover:border-border/90",
- isTaskFocused && "ring-2 ring-inset ring-ring/50",
+ isTaskFocused && "outline-2 -outline-offset-2 outline-ring/50",
)}
>
{showTaskNumbers && (
@@ -236,6 +201,10 @@ function TaskCardContent({
</div>
)}
+ {!taskIsCompleted && (
+ <CardFieldList fields={cardFields} max={2} className="mb-2.5" />
+ )}
+
<div
className={cn(
"flex flex-wrap items-center gap-x-2.5 gap-y-1.5 empty:hidden",
@@ -251,71 +220,6 @@ function TaskCardContent({
</span>
)}
- {activeCustomFieldValues.length > 0 && (
- <HoverCard openDelay={200} closeDelay={100}>
- <HoverCardTrigger asChild>
- <button
- type="button"
- className="inline-flex items-center gap-1 rounded border border-border/70 bg-muted/55 px-2 py-1 text-[10px] font-medium text-muted-foreground cursor-default focus:outline-none focus:ring-2 focus:ring-ring/50 focus:ring-offset-1"
- onClick={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- onPointerDown={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- aria-label={t("tasks:customFields.ariaLabel", {
- count: activeCustomFieldValues.length,
- })}
- >
- <SlidersHorizontal className="w-3 h-3" />
- <span>{activeCustomFieldValues.length}</span>
- </button>
- </HoverCardTrigger>
- <HoverCardContent
- className="w-fit p-2.5"
- side="bottom"
- onClick={(e) => e.stopPropagation()}
- onPointerDown={(e) => e.stopPropagation()}
- >
- <div className="space-y-1.5">
- {activeCustomFieldValues.map((field) => {
- const value = field.value;
-
- if (!value) return null;
-
- let displayValue: string = value;
- if (field.fieldType === "multiselect") {
- try {
- const parsed = JSON.parse(value);
- if (Array.isArray(parsed)) {
- displayValue = parsed.join(", ");
- }
- } catch {
- displayValue = value;
- }
- }
-
- return (
- <div
- key={field.id}
- className="flex items-center justify-between gap-2 text-xs"
- >
- <span className="font-medium text-muted-foreground truncate">
- {field.fieldName}
- </span>
- <span className="text-foreground truncate max-w-24">
- {displayValue}
- </span>
- </div>
- );
- })}
- </div>
- </HoverCardContent>
- </HoverCard>
- )}
-
<TaskProgressBadges task={task} />
{showDueDates && task.dueDate && (
diff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsx
index 06d1afd38..f2acf1283 100644
--- a/apps/web/src/components/keyboard-shortcuts-help.tsx
+++ b/apps/web/src/components/keyboard-shortcuts-help.tsx
@@ -92,6 +92,10 @@ function useShortcutCategories(): ShortcutCategory[] {
keys: [shortcuts.view.prefix, shortcuts.view.calendar],
description: t("navigation:keyboardShortcuts.items.calendarView"),
},
+ {
+ keys: [shortcuts.view.prefix, shortcuts.view.gantt],
+ description: t("navigation:keyboardShortcuts.items.ganttView"),
+ },
],
},
{
@@ -168,7 +172,10 @@ export function KeyboardShortcutsHelp() {
return (
<Dialog open={open} onOpenChange={setOpen}>
- <DialogContent className="px-4 max-w-2xl max-h-[80vh] overflow-hidden flex flex-col">
+ <DialogContent
+ instant
+ className="px-4 max-w-2xl max-h-[80vh] overflow-hidden flex flex-col"
+ >
<DialogHeader>
<DialogTitle>{t("navigation:keyboardShortcuts.title")}</DialogTitle>
<DialogDescription>
diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsx
index 17c15dcc8..0d01be558 100644
--- a/apps/web/src/components/list-view/index.tsx
+++ b/apps/web/src/components/list-view/index.tsx
@@ -9,26 +9,20 @@ import {
MouseSensor,
TouchSensor,
type UniqueIdentifier,
- useDroppable,
useSensor,
useSensors,
} from "@dnd-kit/core";
import { snapCenterToCursor } from "@dnd-kit/modifiers";
-import {
- SortableContext,
- verticalListSortingStrategy,
-} from "@dnd-kit/sortable";
import { useNavigate } from "@tanstack/react-router";
-import { AnimatePresence, motion } from "framer-motion";
import { produce } from "immer";
-import { Archive, ChevronRight, Flag, Plus } from "lucide-react";
-import { useEffect, useState } from "react";
+import { Flag, ArchiveIcon } from "lucide-react";
+import { useCallback, useEffect, useState } from "react";
+import { useReducedMotion } from "framer-motion";
import { useTranslation } from "react-i18next";
import { priorityColorsTaskCard } from "@/constants/priority-colors";
import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";
import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
import { cn } from "@/lib/cn";
-import { getColumnIcon } from "@/lib/column";
import { toast } from "@/lib/toast";
import useBulkSelectionStore from "@/store/bulk-selection";
import useProjectStore from "@/store/project";
@@ -36,7 +30,7 @@ import type { ProjectWithTasks } from "@/types/project";
import BulkToolbar from "../bulk-selection/bulk-toolbar";
import { ArchiveTasksModal } from "../shared/modals/archive-tasks-modal";
import CreateTaskModal from "../shared/modals/create-task-modal";
-import TaskRow from "./task-row";
+import ListColumnSection from "./list-column-section";
type ListViewProps = {
project: ProjectWithTasks;
@@ -50,6 +44,7 @@ function ListView({
disableCollectionActions = false,
}: ListViewProps) {
const { t } = useTranslation();
+ const reduceMotion = useReducedMotion();
const { setProject } = useProjectStore();
const setAvailableTasks = useBulkSelectionStore(
(state) => state.setAvailableTasks,
@@ -245,23 +240,31 @@ function ListView({
setProject(updatedProject);
};
- const toggleSection = (sectionId: string) => {
+ const toggleSection = useCallback((sectionId: string) => {
setExpandedSections((prev) => ({
...prev,
[sectionId]: !prev[sectionId],
}));
- };
-
- const handleArchiveClick = (column: ProjectWithTasks["columns"][number]) => {
- if (
- disableCollectionActions ||
- !column.isFinal ||
- column.tasks.length === 0
- )
- return;
- setColumnToArchive(column.id);
- setIsArchiveModalOpen(true);
- };
+ }, []);
+
+ const handleAddTask = useCallback((columnId: string) => {
+ setIsTaskModalOpen(true);
+ setActiveColumn(columnId);
+ }, []);
+
+ const handleArchiveClick = useCallback(
+ (column: ProjectWithTasks["columns"][number]) => {
+ if (
+ disableCollectionActions ||
+ !column.isFinal ||
+ column.tasks.length === 0
+ )
+ return;
+ setColumnToArchive(column.id);
+ setIsArchiveModalOpen(true);
+ },
+ [disableCollectionActions],
+ );
const handleConfirmArchive = () => {
if (disableCollectionActions || !archiveColumn?.isFinal) return;
@@ -285,122 +288,13 @@ function ListView({
setProject(updatedProject);
toast.success(
t("tasks:archive.success", { count: archiveColumn.tasks.length }),
+ { icon: ArchiveIcon },
);
setIsArchiveModalOpen(false);
setColumnToArchive(null);
};
- function ColumnSection({
- column,
- }: {
- column: ProjectWithTasks["columns"][number];
- }) {
- const { setNodeRef } = useDroppable({
- id: column.id,
- data: {
- type: "column",
- column,
- },
- });
-
- const showDropIndicator = activeId && overColumnId === column.id;
-
- return (
- <div
- className={cn(
- "border-b border-border/50 transition-colors duration-150 overflow-auto",
- showDropIndicator && "border-l-4 border-l-ring bg-accent/35",
- )}
- >
- <div className="flex items-center justify-between py-2 px-4 bg-muted/60 border-b border-border/50">
- <button
- type="button"
- onClick={() => toggleSection(column.id)}
- aria-expanded={Boolean(expandedSections[column.id])}
- className="touch-hitbox relative flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"
- >
- <ChevronRight
- className={cn(
- "w-3 h-3 transition-transform",
- expandedSections[column.id] && "rotate-90",
- )}
- />
- <div className="flex items-center gap-2 h-4">
- {getColumnIcon(column.id, column.isFinal, column.icon)}
- <div className="flex items-center gap-1">
- <span className="mt-1 mr-1">{column.name}</span>
- <span className="text-xs text-muted-foreground mt-0.5">
- {column.tasks.length}
- </span>
- </div>
- </div>
- </button>
-
- <div className="flex items-center gap-1 pointer-coarse:gap-6">
- <button
- type="button"
- onClick={() => {
- setIsTaskModalOpen(true);
- setActiveColumn(column.id);
- }}
- className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"
- title={t("tasks:listView.addTask")}
- aria-label={t("tasks:listView.addTask")}
- >
- <Plus className="w-3 h-3" />
- </button>
-
- {column.isFinal && column.tasks.length > 0 && (
- <button
- type="button"
- disabled={disableCollectionActions}
- onClick={() => handleArchiveClick(column)}
- className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"
- title={t("tasks:listView.archiveAllTooltip")}
- aria-label={t("tasks:listView.archiveAllTooltip")}
- >
- <Archive className="w-3 h-3" />
- </button>
- )}
- </div>
- </div>
-
- {expandedSections[column.id] && (
- <div
- ref={setNodeRef}
- className="bg-card transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0"
- >
- <SortableContext
- items={column.tasks}
- strategy={verticalListSortingStrategy}
- >
- <AnimatePresence initial={false} mode="popLayout">
- {column.tasks.map((task) => (
- <motion.div
- key={task.id}
- initial={{ opacity: 0 }}
- animate={{ opacity: 1 }}
- exit={{ opacity: 0 }}
- transition={{ duration: 0.15, ease: [0.23, 1, 0.32, 1] }}
- >
- <TaskRow task={task} projectSlug={project?.slug ?? ""} />
- </motion.div>
- ))}
- </AnimatePresence>
- </SortableContext>
-
- {column.tasks.length === 0 && (
- <div className="py-6 px-4 text-center text-xs text-muted-foreground">
- {t("tasks:listView.noTasks")}
- </div>
- )}
- </div>
- )}
- </div>
- );
- }
-
if (!project?.columns) {
return null;
}
@@ -423,12 +317,24 @@ function ListView({
<div className="w-full h-full overflow-auto bg-muted/20">
<div className="divide-y divide-border/50">
{project.columns.map((column) => (
- <ColumnSection key={column.id} column={column} />
+ <ListColumnSection
+ key={column.id}
+ column={column}
+ projectSlug={project.slug ?? ""}
+ isExpanded={Boolean(expandedSections[column.id])}
+ showDropIndicator={
+ Boolean(activeId) && overColumnId === column.id
+ }
+ disableCollectionActions={disableCollectionActions}
+ onToggle={toggleSection}
+ onAddTask={handleAddTask}
+ onArchive={handleArchiveClick}
+ />
))}
</div>
</div>
- <DragOverlay>
+ <DragOverlay dropAnimation={reduceMotion ? null : undefined}>
{activeTask && (
<div className="bg-card border border-border rounded-lg shadow-lg p-2 max-w-[200px] cursor-grabbing">
<div className="flex items-center gap-2">
diff --git a/apps/web/src/components/list-view/list-column-section.tsx b/apps/web/src/components/list-view/list-column-section.tsx
new file mode 100644
index 000000000..e8a2c96ac
--- /dev/null
+++ b/apps/web/src/components/list-view/list-column-section.tsx
@@ -0,0 +1,145 @@
+import { useDroppable } from "@dnd-kit/core";
+import {
+ SortableContext,
+ verticalListSortingStrategy,
+} from "@dnd-kit/sortable";
+import { AnimatePresence, motion } from "framer-motion";
+import { Archive, ChevronRight, Plus } from "lucide-react";
+import { memo, useState } from "react";
+import { useTranslation } from "react-i18next";
+import { cn } from "@/lib/cn";
+import { getColumnIcon } from "@/lib/column";
+import { EASE_OUT } from "@/lib/motion";
+import type { ProjectWithTasks } from "@/types/project";
+import TaskRow from "./task-row";
+
+type Column = ProjectWithTasks["columns"][number];
+
+type ListColumnSectionProps = {
+ column: Column;
+ projectSlug: string;
+ isExpanded: boolean;
+ showDropIndicator: boolean;
+ disableCollectionActions: boolean;
+ onToggle: (columnId: string) => void;
+ onAddTask: (columnId: string) => void;
+ onArchive: (column: Column) => void;
+};
+
+const ListColumnSection = memo(function ListColumnSection({
+ column,
+ projectSlug,
+ isExpanded,
+ showDropIndicator,
+ disableCollectionActions,
+ onToggle,
+ onAddTask,
+ onArchive,
+}: ListColumnSectionProps) {
+ const { t } = useTranslation();
+ const [animateExpand, setAnimateExpand] = useState(false);
+ const { setNodeRef } = useDroppable({
+ id: column.id,
+ data: { type: "column", column },
+ });
+
+ return (
+ <div
+ className={cn(
+ "border-b border-border/50 transition-colors duration-150 overflow-auto",
+ showDropIndicator && "border-l-4 border-l-ring bg-accent/35",
+ )}
+ >
+ <div className="flex items-center justify-between py-2 px-4 bg-muted/60 border-b border-border/50">
+ <button
+ type="button"
+ onClick={() => {
+ setAnimateExpand(true);
+ onToggle(column.id);
+ }}
+ aria-expanded={isExpanded}
+ className="touch-hitbox relative flex items-center gap-2 text-sm font-medium text-foreground hover:text-foreground transition-colors"
+ >
+ <ChevronRight
+ className={cn(
+ "w-3 h-3 transition-transform duration-150 ease-out",
+ isExpanded && "rotate-90",
+ )}
+ />
+ <div className="flex items-center gap-2 h-4">
+ {getColumnIcon(column.id, column.isFinal, column.icon)}
+ <div className="flex items-center gap-1">
+ <span className="mt-1 mr-1">{column.name}</span>
+ <span className="text-xs text-muted-foreground mt-0.5">
+ {column.tasks.length}
+ </span>
+ </div>
+ </div>
+ </button>
+
+ <div className="flex items-center gap-1 pointer-coarse:gap-6">
+ <button
+ type="button"
+ onClick={() => onAddTask(column.id)}
+ className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"
+ title={t("tasks:listView.addTask")}
+ aria-label={t("tasks:listView.addTask")}
+ >
+ <Plus className="w-3 h-3" />
+ </button>
+
+ {column.isFinal && column.tasks.length > 0 && (
+ <button
+ type="button"
+ disabled={disableCollectionActions}
+ onClick={() => onArchive(column)}
+ className="touch-hitbox relative p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground transition-colors"
+ title={t("tasks:listView.archiveAllTooltip")}
+ aria-label={t("tasks:listView.archiveAllTooltip")}
+ >
+ <Archive className="w-3 h-3" />
+ </button>
+ )}
+ </div>
+ </div>
+
+ {isExpanded && (
+ <div
+ ref={setNodeRef}
+ className={cn(
+ "bg-card",
+ animateExpand &&
+ "transition-[translate,opacity] duration-150 ease-out starting:-translate-y-1 starting:opacity-0 motion-reduce:starting:translate-y-0",
+ )}
+ >
+ <SortableContext
+ items={column.tasks}
+ strategy={verticalListSortingStrategy}
+ >
+ <AnimatePresence initial={false} mode="popLayout">
+ {column.tasks.map((task) => (
+ <motion.div
+ key={task.id}
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.15, ease: EASE_OUT }}
+ >
+ <TaskRow task={task} projectSlug={projectSlug} />
+ </motion.div>
+ ))}
+ </AnimatePresence>
+ </SortableContext>
+
+ {column.tasks.length === 0 && (
+ <div className="py-6 px-4 text-center text-xs text-muted-foreground">
+ {t("tasks:listView.noTasks")}
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ );
+});
+
+export default ListColumnSection;
diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsx
index 855d202d2..970bf43b8 100644
--- a/apps/web/src/components/list-view/task-row.tsx
+++ b/apps/web/src/components/list-view/task-row.tsx
@@ -2,7 +2,7 @@ import { 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 } from "lucide-react";
+import { Calendar, CalendarClock, CalendarX, 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";
@@ -35,8 +35,11 @@ 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 { EASE_OUT_CSS } from "@/lib/motion";
type TaskRowProps = {
task: Task;
@@ -53,7 +56,10 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
transform,
transition,
isDragging,
- } = useSortable({ id: task.id });
+ } = useSortable({
+ id: task.id,
+ transition: { duration: 200, easing: EASE_OUT_CSS },
+ });
const { project } = useProjectStore();
const taskIsCompleted = isTaskCompleted(task.status, project?.columns);
@@ -65,6 +71,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
showLabels,
showTaskNumbers,
} = useUserPreferencesStore();
+ const cardFields = useTaskCardFields(task.projectId, task.id);
const [isDeleteTaskModalOpen, setIsDeleteTaskModalOpen] = useState<
boolean | null
>(null);
@@ -96,7 +103,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
const style: CSSProperties = {
transform: CSS.Transform.toString(transform),
- transition: transition || "transform 200ms cubic-bezier(0.23, 1, 0.32, 1)",
+ transition: transition || `transform 200ms ${EASE_OUT_CSS}`,
touchAction: isDragging ? "none" : "auto",
};
@@ -146,7 +153,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
const handleDeleteTask = async () => {
try {
await deleteTask(task.id);
- toast.success(t("tasks:delete.success"));
+ toast.success(t("tasks:delete.success"), { icon: Trash2Icon });
} catch (error) {
toast.error(
error instanceof Error ? error.message : t("tasks:delete.error"),
@@ -158,6 +165,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
<div
ref={setNodeRef}
style={style}
+ data-kaneo-sortable
className={cn(
"border-b border-border/50 transition-colors duration-150",
isDragging && "opacity-50",
@@ -201,6 +209,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
</span>
<div className="flex items-center gap-1">
<TaskProgressBadges task={task} />
+ <CardFieldList fields={cardFields} max={3} />
{showLabels && <TaskLabels labels={task.labels ?? []} />}
<TaskPullRequests
diff --git a/apps/web/src/components/nav-projects.tsx b/apps/web/src/components/nav-projects.tsx
index 773071701..d63009d8e 100644
--- a/apps/web/src/components/nav-projects.tsx
+++ b/apps/web/src/components/nav-projects.tsx
@@ -30,6 +30,8 @@ import {
Plus,
Settings,
Trash2,
+ Trash2Icon,
+ LinkIcon,
} from "lucide-react";
import { type CSSProperties, type ReactNode, useState } from "react";
import { createPortal } from "react-dom";
@@ -63,6 +65,7 @@ import useReorderProjects from "@/hooks/mutations/project/use-reorder-projects";
import useGetProjects from "@/hooks/queries/project/use-get-projects";
import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";
import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
+import { EASE_OUT_CSS } from "@/lib/motion";
import { toast } from "@/lib/toast";
import type { ProjectWithTasks } from "@/types/project";
import CreateProjectModal from "./shared/modals/create-project-modal";
@@ -94,7 +97,7 @@ function SortableProjectItem({
// replays the same move from a stale offset.
animateLayoutChanges: () => false,
// dnd-kit defaults to `ease`; this is the app's curve.
- transition: { duration: 200, easing: "var(--ease-out)" },
+ transition: { duration: 200, easing: EASE_OUT_CSS },
});
const style: CSSProperties = {
@@ -287,7 +290,7 @@ export function NavProjects() {
percentage={
project.statistics.completionPercentage
}
- className="text-muted-foreground max-md:hidden group-focus-within/menu-item:opacity-0 group-hover/menu-item:opacity-0 group-has-data-[state=open]/menu-item:opacity-0"
+ className="text-muted-foreground max-md:hidden group-focus-within/menu-item:opacity-0 group-hover/menu-item:opacity-0 group-has-data-popup-open/menu-item:opacity-0"
/>
</SidebarMenuButton>
@@ -301,7 +304,7 @@ export function NavProjects() {
onPointerDown={(event) =>
event.stopPropagation()
}
- className="absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-lg p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground after:-inset-2 after:absolute md:after:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0"
+ className="absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-lg p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground after:-inset-2 after:absolute md:after:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-popup-open:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0"
/>
}
>
@@ -332,6 +335,7 @@ export function NavProjects() {
);
toast.success(
t("navigation:projectList.linkCopied"),
+ { icon: LinkIcon },
);
}}
>
@@ -429,7 +433,9 @@ export function NavProjects() {
await deleteProject({
id: projectToDeleteId || "",
});
- toast.success(t("navigation:projectList.deletedToast"));
+ toast.success(t("navigation:projectList.deletedToast"), {
+ icon: Trash2Icon,
+ });
queryClient.invalidateQueries({
queryKey: ["projects"],
});
diff --git a/apps/web/src/components/onboarding/invite-step.tsx b/apps/web/src/components/onboarding/invite-step.tsx
index 561e64a91..e48832d3a 100644
--- a/apps/web/src/components/onboarding/invite-step.tsx
+++ b/apps/web/src/components/onboarding/invite-step.tsx
@@ -1,4 +1,4 @@
-import { Plus } from "lucide-react";
+import { Plus, SendIcon } from "lucide-react";
import { useEffect, useId, useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
@@ -84,7 +84,9 @@ export function InviteStep({
const sent = results.filter((r) => r.status === "fulfilled").length;
if (sent > 0) {
- toast.success(t("auth:onboarding.cloud.invite.sent", { count: sent }));
+ toast.success(t("auth:onboarding.cloud.invite.sent", { count: sent }), {
+ icon: SendIcon,
+ });
}
const failed: string[] = [];
results.forEach((result, i) => {
diff --git a/apps/web/src/components/project/calendar-feeds/calendar-feed-settings.test.tsx b/apps/web/src/components/project/calendar-feeds/calendar-feed-settings.test.tsx
index 0564dbf08..dd9954c45 100644
--- a/apps/web/src/components/project/calendar-feeds/calendar-feed-settings.test.tsx
+++ b/apps/web/src/components/project/calendar-feeds/calendar-feed-settings.test.tsx
@@ -150,6 +150,7 @@ describe("CalendarFeedSettings", () => {
await waitFor(() =>
expect(toast.success).toHaveBeenCalledWith(
"settings:calendarFeeds.created",
+ { icon: expect.anything() },
),
);
await waitFor(() =>
@@ -244,6 +245,7 @@ describe("CalendarFeedSettings", () => {
await waitFor(() =>
expect(toast.success).toHaveBeenCalledWith(
"settings:calendarFeeds.revoked",
+ { icon: expect.anything() },
),
);
});
diff --git a/apps/web/src/components/project/calendar-feeds/new-calendar-feed-form.tsx b/apps/web/src/components/project/calendar-feeds/new-calendar-feed-form.tsx
index 612a8b5ab..206306519 100644
--- a/apps/web/src/components/project/calendar-feeds/new-calendar-feed-form.tsx
+++ b/apps/web/src/components/project/calendar-feeds/new-calendar-feed-form.tsx
@@ -1,5 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
-import { LockIcon } from "lucide-react";
+import { LockIcon, CalendarPlusIcon } from "lucide-react";
import { useId, useState } from "react";
import { useTranslation } from "react-i18next";
import { CalendarFeedLabelPicker } from "@/components/project/calendar-feeds/calendar-feed-label-picker";
@@ -58,7 +58,9 @@ export function NewCalendarFeedForm({
await queryClient.invalidateQueries({
queryKey: calendarFeedsQueryKey(projectId),
});
- toast.success(t("settings:calendarFeeds.created"));
+ toast.success(t("settings:calendarFeeds.created"), {
+ icon: CalendarPlusIcon,
+ });
onClose();
},
onError: () => toast.error(t("settings:calendarFeeds.createError")),
diff --git a/apps/web/src/components/project/calendar-feeds/revoke-calendar-feed-dialog.tsx b/apps/web/src/components/project/calendar-feeds/revoke-calendar-feed-dialog.tsx
index f52a763c6..3d5003023 100644
--- a/apps/web/src/components/project/calendar-feeds/revoke-calendar-feed-dialog.tsx
+++ b/apps/web/src/components/project/calendar-feeds/revoke-calendar-feed-dialog.tsx
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { CalendarXIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { calendarFeedsQueryKey } from "@/components/project/calendar-feeds/use-calendar-feeds";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -26,7 +27,9 @@ export function RevokeCalendarFeedDialog({
await queryClient.invalidateQueries({
queryKey: calendarFeedsQueryKey(projectId),
});
- toast.success(t("settings:calendarFeeds.revoked"));
+ toast.success(t("settings:calendarFeeds.revoked"), {
+ icon: CalendarXIcon,
+ });
onOpenChange(false);
},
onError: () => toast.error(t("settings:calendarFeeds.revokeError")),
diff --git a/apps/web/src/components/project/code-hosting/copy-value-button.tsx b/apps/web/src/components/project/code-hosting/copy-value-button.tsx
index 778340c9b..fa54a9113 100644
--- a/apps/web/src/components/project/code-hosting/copy-value-button.tsx
+++ b/apps/web/src/components/project/code-hosting/copy-value-button.tsx
@@ -14,7 +14,7 @@ export function CopyValueButton({ value, label }: CopyValueButtonProps) {
const copy = async () => {
try {
await navigator.clipboard.writeText(value);
- toast.success(t("settings:codeHosting.copied"));
+ toast.success(t("settings:codeHosting.copied"), { icon: CopyIcon });
} catch (error) {
toast.error(
error instanceof Error && error.message
diff --git a/apps/web/src/components/project/custom-fields/custom-field-list.tsx b/apps/web/src/components/project/custom-fields/custom-field-list.tsx
index a3ad2024d..435149223 100644
--- a/apps/web/src/components/project/custom-fields/custom-field-list.tsx
+++ b/apps/web/src/components/project/custom-fields/custom-field-list.tsx
@@ -1,4 +1,4 @@
-import { List, Plus } from "lucide-react";
+import { List, Plus, Trash2Icon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { CustomFieldListSkeleton } from "@/components/project/custom-fields/custom-field-list-skeleton";
@@ -54,7 +54,9 @@ export function CustomFieldList({
try {
await deleteField({ id: pendingDelete.id });
setPendingDelete(null);
- toast.success(t("settings:customFields.deleteSuccess"));
+ toast.success(t("settings:customFields.deleteSuccess"), {
+ icon: Trash2Icon,
+ });
} catch (error) {
toast.error(errorMessage(error, t("settings:customFields.deleteError")));
}
diff --git a/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.test.tsx b/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.test.tsx
index 70b583fba..93fa9811f 100644
--- a/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.test.tsx
+++ b/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.test.tsx
@@ -139,6 +139,7 @@ describe("CustomFieldDialog", () => {
);
expect(toast.success).toHaveBeenCalledWith(
"settings:customFields.createSuccess",
+ { icon: expect.anything() },
);
expect(onOpenChange).toHaveBeenCalledWith(false);
});
diff --git a/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.tsx b/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.tsx
index 13a0c1cc5..cf998de22 100644
--- a/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.tsx
+++ b/apps/web/src/components/project/custom-fields/field-dialog/custom-field-dialog.tsx
@@ -1,3 +1,4 @@
+import { ListPlusIcon } from "lucide-react";
import { type FormEvent, useId, useState } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -82,7 +83,9 @@ export function CustomFieldDialog({
toast.success(t("settings:customFields.updateSuccess"));
} else {
await createField(toCreatePayload(form, projectId));
- toast.success(t("settings:customFields.createSuccess"));
+ toast.success(t("settings:customFields.createSuccess"), {
+ icon: ListPlusIcon,
+ });
}
onOpenChange(false);
} catch (error) {
diff --git a/apps/web/src/components/project/display/card-field-toggles.tsx b/apps/web/src/components/project/display/card-field-toggles.tsx
new file mode 100644
index 000000000..ede9f56b2
--- /dev/null
+++ b/apps/web/src/components/project/display/card-field-toggles.tsx
@@ -0,0 +1,64 @@
+import { useTranslation } from "react-i18next";
+import { Toggle } from "@/components/ui/toggle";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+
+export function CardFieldToggles() {
+ const { t } = useTranslation();
+ const preferences = useUserPreferencesStore();
+
+ const fields = [
+ {
+ id: "taskNumbers",
+ label: t("settings:preferencesPage.taskNumbers"),
+ pressed: preferences.showTaskNumbers,
+ onPressedChange: preferences.setShowTaskNumbers,
+ },
+ {
+ id: "assignees",
+ label: t("settings:preferencesPage.assignees"),
+ pressed: preferences.showAssignees,
+ onPressedChange: preferences.setShowAssignees,
+ },
+ {
+ id: "dueDates",
+ label: t("settings:preferencesPage.dueDates"),
+ pressed: preferences.showDueDates,
+ onPressedChange: preferences.setShowDueDates,
+ },
+ {
+ id: "labels",
+ label: t("settings:preferencesPage.labels"),
+ pressed: preferences.showLabels,
+ onPressedChange: preferences.setShowLabels,
+ },
+ {
+ id: "priority",
+ label: t("settings:preferencesPage.priority"),
+ pressed: preferences.showPriority,
+ onPressedChange: preferences.setShowPriority,
+ },
+ {
+ id: "checklist",
+ label: t("tasks:display.checklistProgress"),
+ pressed: preferences.showTaskItemCounts,
+ onPressedChange: preferences.setShowTaskItemCounts,
+ },
+ ];
+
+ return (
+ <div className="flex flex-wrap gap-1.5">
+ {fields.map((field) => (
+ <Toggle
+ key={field.id}
+ variant="outline"
+ size="sm"
+ pressed={field.pressed}
+ onPressedChange={field.onPressedChange}
+ className="px-2.5 text-xs text-muted-foreground data-pressed:text-foreground"
+ >
+ {field.label}
+ </Toggle>
+ ))}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/display/custom-field-toggles.test.tsx b/apps/web/src/components/project/display/custom-field-toggles.test.tsx
new file mode 100644
index 000000000..a554dfa29
--- /dev/null
+++ b/apps/web/src/components/project/display/custom-field-toggles.test.tsx
@@ -0,0 +1,53 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import {
+ afterEach,
+ beforeEach,
+ describe,
+ expect,
+ it,
+ vi,
+} from "vite-plus/test";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+import { CustomFieldToggles } from "./custom-field-toggles";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+ initReactI18next: { type: "3rdParty", init: vi.fn() },
+}));
+
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-custom-fields-by-project",
+ () => ({
+ default: () => ({
+ data: [
+ { id: "points", name: "Story points", type: "number" },
+ { id: "customer", name: "Customer", type: "text" },
+ ],
+ }),
+ }),
+);
+
+beforeEach(() => {
+ useUserPreferencesStore.setState({ hiddenCardFieldIds: [] });
+});
+
+afterEach(() => {
+ cleanup();
+});
+
+describe("CustomFieldToggles", () => {
+ it("hides and shows a field on cards, and reset shows it again", () => {
+ render(<CustomFieldToggles projectId="project-1" />);
+ const points = screen.getByRole("button", { name: "Story points" });
+ expect(points).toHaveAttribute("aria-pressed", "true");
+
+ fireEvent.click(points);
+ expect(useUserPreferencesStore.getState().hiddenCardFieldIds).toEqual([
+ "points",
+ ]);
+ expect(points).toHaveAttribute("aria-pressed", "false");
+
+ useUserPreferencesStore.getState().resetDisplayPreferences();
+ expect(useUserPreferencesStore.getState().hiddenCardFieldIds).toEqual([]);
+ });
+});
diff --git a/apps/web/src/components/project/display/custom-field-toggles.tsx b/apps/web/src/components/project/display/custom-field-toggles.tsx
new file mode 100644
index 000000000..f1ffcd078
--- /dev/null
+++ b/apps/web/src/components/project/display/custom-field-toggles.tsx
@@ -0,0 +1,44 @@
+import { useTranslation } from "react-i18next";
+import { CustomFieldTypeIcon } from "@/components/custom-fields/custom-field-type-icon";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { Toggle } from "@/components/ui/toggle";
+import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+
+export function CustomFieldToggles({ projectId }: { projectId: string }) {
+ const { t } = useTranslation();
+ const { data: fields = [] } = useGetCustomFieldsByProject(projectId) as {
+ data: CustomFieldDefinition[] | undefined;
+ };
+ const hiddenFieldIds = useUserPreferencesStore(
+ (state) => state.hiddenCardFieldIds,
+ );
+ const toggleCardFieldHidden = useUserPreferencesStore(
+ (state) => state.toggleCardFieldHidden,
+ );
+
+ if (fields.length === 0) return null;
+
+ return (
+ <div className="flex flex-col gap-1.5">
+ <span className="text-muted-foreground text-xs">
+ {t("tasks:customFields.fields")}
+ </span>
+ <div className="flex flex-wrap gap-1.5">
+ {fields.map((field) => (
+ <Toggle
+ key={field.id}
+ variant="outline"
+ size="sm"
+ pressed={!hiddenFieldIds.includes(field.id)}
+ onPressedChange={() => toggleCardFieldHidden(field.id)}
+ className="gap-1.5 px-2.5 text-muted-foreground text-xs data-pressed:text-foreground"
+ >
+ <CustomFieldTypeIcon type={field.type} className="size-3.5" />
+ {field.name}
+ </Toggle>
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/display/display-menu.tsx b/apps/web/src/components/project/display/display-menu.tsx
new file mode 100644
index 000000000..8f91a2045
--- /dev/null
+++ b/apps/web/src/components/project/display/display-menu.tsx
@@ -0,0 +1,48 @@
+import { SlidersHorizontal } from "lucide-react";
+import type { ReactNode } from "react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTitle,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+
+export function DisplayMenu({ children }: { children: ReactNode }) {
+ const { t } = useTranslation();
+ const title = t("tasks:display.title");
+
+ return (
+ <Popover>
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <PopoverTrigger
+ render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ aria-label={title}
+ className="data-popup-open:bg-accent"
+ />
+ }
+ />
+ }
+ >
+ <SlidersHorizontal />
+ </TooltipTrigger>
+ <TooltipContent>{title}</TooltipContent>
+ </Tooltip>
+ <PopoverContent align="end" className="w-80">
+ <PopoverTitle className="sr-only">{title}</PopoverTitle>
+ <div className="-mx-1 divide-y divide-border">{children}</div>
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/web/src/components/project/display/display-section.tsx b/apps/web/src/components/project/display/display-section.tsx
new file mode 100644
index 000000000..e35fc79e3
--- /dev/null
+++ b/apps/web/src/components/project/display/display-section.tsx
@@ -0,0 +1,18 @@
+import type { ReactNode } from "react";
+
+export function DisplaySection({
+ title,
+ children,
+}: {
+ title?: string;
+ children: ReactNode;
+}) {
+ return (
+ <div className="space-y-2.5 px-3 py-3">
+ {title && (
+ <p className="text-muted-foreground text-xs font-medium">{title}</p>
+ )}
+ {children}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/display/project-background-switch.tsx b/apps/web/src/components/project/display/project-background-switch.tsx
new file mode 100644
index 000000000..efdc74560
--- /dev/null
+++ b/apps/web/src/components/project/display/project-background-switch.tsx
@@ -0,0 +1,24 @@
+import { useId } from "react";
+import { useTranslation } from "react-i18next";
+import { Switch } from "@/components/ui/switch";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+
+export function ProjectBackgroundSwitch() {
+ const { t } = useTranslation();
+ const id = useId();
+ const checked = useUserPreferencesStore(
+ (state) => state.showProjectBackgrounds,
+ );
+ const setChecked = useUserPreferencesStore(
+ (state) => state.setShowProjectBackgrounds,
+ );
+
+ return (
+ <div className="flex items-center justify-between gap-3">
+ <label htmlFor={id} className="text-sm">
+ {t("tasks:display.projectBackground")}
+ </label>
+ <Switch id={id} checked={checked} onCheckedChange={setChecked} />
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/display/sort-fields.ts b/apps/web/src/components/project/display/sort-fields.ts
new file mode 100644
index 000000000..92d90f82b
--- /dev/null
+++ b/apps/web/src/components/project/display/sort-fields.ts
@@ -0,0 +1,17 @@
+import type { SortConfig, SortField } from "@/lib/sort-tasks";
+
+export const SORT_FIELDS: SortField[] = [
+ "position",
+ "createdAt",
+ "priority",
+ "dueDate",
+ "title",
+ "number",
+];
+
+export const MANUAL_SORT: SortConfig = { field: "position", direction: "asc" };
+
+export function nextSortForField(field: SortField): SortConfig {
+ if (field === "position") return MANUAL_SORT;
+ return { field, direction: field === "priority" ? "desc" : "asc" };
+}
diff --git a/apps/web/src/components/project/display/sort-order-control.tsx b/apps/web/src/components/project/display/sort-order-control.tsx
new file mode 100644
index 000000000..34959e8f9
--- /dev/null
+++ b/apps/web/src/components/project/display/sort-order-control.tsx
@@ -0,0 +1,80 @@
+import { ArrowDownWideNarrow, ArrowUpNarrowWide } from "lucide-react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import type { SortConfig, SortField } from "@/lib/sort-tasks";
+import { nextSortForField, SORT_FIELDS } from "./sort-fields";
+
+type SortOrderControlProps = {
+ sort: SortConfig;
+ onSortChange: (sort: SortConfig) => void;
+};
+
+export function SortOrderControl({
+ sort,
+ onSortChange,
+}: SortOrderControlProps) {
+ const { t } = useTranslation();
+ const label = t("tasks:display.sortBy");
+ const isManual = sort.field === "position";
+ const fieldLabels: Record<SortField, string> = {
+ position: t("tasks:sort.fields.position"),
+ createdAt: t("tasks:sort.fields.createdAt"),
+ priority: t("tasks:sort.fields.priority"),
+ dueDate: t("tasks:sort.fields.dueDate"),
+ title: t("tasks:sort.fields.title"),
+ number: t("tasks:sort.fields.number"),
+ };
+ const directionLabel =
+ sort.direction === "asc"
+ ? t("tasks:sort.ascending")
+ : t("tasks:sort.descending");
+
+ return (
+ <div className="flex items-center gap-2">
+ <span className="flex-1 text-sm">{label}</span>
+ <Select
+ value={sort.field}
+ onValueChange={(value) => {
+ if (value) onSortChange(nextSortForField(value as SortField));
+ }}
+ >
+ <SelectTrigger size="sm" className="w-40" aria-label={label}>
+ <SelectValue>{fieldLabels[sort.field]}</SelectValue>
+ </SelectTrigger>
+ <SelectContent>
+ {SORT_FIELDS.map((field) => (
+ <SelectItem key={field} value={field}>
+ {fieldLabels[field]}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <Button
+ variant="outline"
+ size="icon-sm"
+ disabled={isManual}
+ aria-label={`${t("tasks:sort.direction")}: ${directionLabel}`}
+ title={directionLabel}
+ onClick={() =>
+ onSortChange({
+ ...sort,
+ direction: sort.direction === "asc" ? "desc" : "asc",
+ })
+ }
+ >
+ {sort.direction === "asc" ? (
+ <ArrowUpNarrowWide />
+ ) : (
+ <ArrowDownWideNarrow />
+ )}
+ </Button>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/display/task-display-options.tsx b/apps/web/src/components/project/display/task-display-options.tsx
new file mode 100644
index 000000000..20410ed90
--- /dev/null
+++ b/apps/web/src/components/project/display/task-display-options.tsx
@@ -0,0 +1,68 @@
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import type { SortConfig } from "@/lib/sort-tasks";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+import { CardFieldToggles } from "./card-field-toggles";
+import { CustomFieldToggles } from "./custom-field-toggles";
+import { DisplaySection } from "./display-section";
+import { ProjectBackgroundSwitch } from "./project-background-switch";
+import { MANUAL_SORT } from "./sort-fields";
+import { SortOrderControl } from "./sort-order-control";
+
+type TaskDisplayOptionsProps = {
+ projectId: string;
+ sort: SortConfig;
+ onSortChange: (sort: SortConfig) => void;
+ layout: "cards" | "rows";
+ showBackgroundSwitch?: boolean;
+};
+
+export function TaskDisplayOptions({
+ projectId,
+ sort,
+ onSortChange,
+ layout,
+ showBackgroundSwitch = false,
+}: TaskDisplayOptionsProps) {
+ const { t } = useTranslation();
+ const resetDisplayPreferences = useUserPreferencesStore(
+ (state) => state.resetDisplayPreferences,
+ );
+
+ return (
+ <>
+ <DisplaySection>
+ <SortOrderControl sort={sort} onSortChange={onSortChange} />
+ </DisplaySection>
+ <DisplaySection
+ title={
+ layout === "cards"
+ ? t("tasks:display.showOnCards")
+ : t("tasks:display.showOnRows")
+ }
+ >
+ <div className="flex flex-col gap-3">
+ <CardFieldToggles />
+ <CustomFieldToggles projectId={projectId} />
+ </div>
+ </DisplaySection>
+ {showBackgroundSwitch && (
+ <DisplaySection>
+ <ProjectBackgroundSwitch />
+ </DisplaySection>
+ )}
+ <div className="flex justify-end px-2 py-1.5">
+ <Button
+ variant="ghost"
+ size="xs"
+ onClick={() => {
+ resetDisplayPreferences();
+ onSortChange(MANUAL_SORT);
+ }}
+ >
+ {t("common:actions.reset")}
+ </Button>
+ </div>
+ </>
+ );
+}
diff --git a/apps/web/src/components/project/display/week-start-control.tsx b/apps/web/src/components/project/display/week-start-control.tsx
new file mode 100644
index 000000000..2b4715521
--- /dev/null
+++ b/apps/web/src/components/project/display/week-start-control.tsx
@@ -0,0 +1,52 @@
+import { useTranslation } from "react-i18next";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import {
+ isWeekStartDay,
+ useUserPreferencesStore,
+ WEEK_START_DAYS,
+ type WeekStartDay,
+} from "@/store/user-preferences";
+
+export function WeekStartControl() {
+ const { t } = useTranslation();
+ const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);
+ const setWeekStartsOn = useUserPreferencesStore(
+ (state) => state.setWeekStartsOn,
+ );
+ const label = t("settings:preferencesPage.firstDayOfWeek");
+ const days: Record<WeekStartDay, string> = {
+ 0: t("settings:preferencesPage.weekStartsOnSunday"),
+ 1: t("settings:preferencesPage.weekStartsOnMonday"),
+ 6: t("settings:preferencesPage.weekStartsOnSaturday"),
+ };
+
+ return (
+ <div className="flex items-center justify-between gap-3">
+ <span className="text-sm">{label}</span>
+ <Select
+ value={String(weekStartsOn)}
+ onValueChange={(value) => {
+ const parsed = Number(value);
+ if (isWeekStartDay(parsed)) setWeekStartsOn(parsed);
+ }}
+ >
+ <SelectTrigger size="sm" className="w-36" aria-label={label}>
+ <SelectValue>{days[weekStartsOn]}</SelectValue>
+ </SelectTrigger>
+ <SelectContent>
+ {WEEK_START_DAYS.map((day) => (
+ <SelectItem key={day} value={String(day)}>
+ {days[day]}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/gitea-integration/gitea-connected-panel.tsx b/apps/web/src/components/project/gitea-integration/gitea-connected-panel.tsx
index 4a6b6dd43..ed7c4165f 100644
--- a/apps/web/src/components/project/gitea-integration/gitea-connected-panel.tsx
+++ b/apps/web/src/components/project/gitea-integration/gitea-connected-panel.tsx
@@ -1,3 +1,4 @@
+import { UnplugIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { isAccessVerified } from "@/components/project/code-hosting/access-verification-tone";
@@ -43,7 +44,9 @@ export function GiteaConnectedPanel({
const disconnect = async () => {
try {
await remove(projectId);
- toast.success(t("settings:giteaIntegration.toast.removed"));
+ toast.success(t("settings:giteaIntegration.toast.removed"), {
+ icon: UnplugIcon,
+ });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/gitea-integration/gitea-issues-section.tsx b/apps/web/src/components/project/gitea-integration/gitea-issues-section.tsx
index b46f81d7a..f745a782e 100644
--- a/apps/web/src/components/project/gitea-integration/gitea-issues-section.tsx
+++ b/apps/web/src/components/project/gitea-integration/gitea-issues-section.tsx
@@ -1,3 +1,4 @@
+import { ImportIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ImportIssuesSection } from "@/components/project/code-hosting/import-issues-section";
import useImportGiteaIssues from "@/hooks/mutations/gitea-integration/use-import-gitea-issues";
@@ -27,7 +28,9 @@ export function GiteaIssuesSection({
if (!canImport) return;
try {
await importIssues(projectId);
- toast.success(t("settings:giteaIntegration.toast.issuesImported"));
+ toast.success(t("settings:giteaIntegration.toast.issuesImported"), {
+ icon: ImportIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/project/gitea-integration/gitea-repository-section.tsx b/apps/web/src/components/project/gitea-integration/gitea-repository-section.tsx
index f8ea86d2d..0731dc965 100644
--- a/apps/web/src/components/project/gitea-integration/gitea-repository-section.tsx
+++ b/apps/web/src/components/project/gitea-integration/gitea-repository-section.tsx
@@ -1,3 +1,4 @@
+import { MessageSquareIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { AccessStatusLine } from "@/components/project/code-hosting/access-status-line";
import type { AccessVerificationResult } from "@/components/project/code-hosting/access-verification-tone";
@@ -51,6 +52,7 @@ export function GiteaRepositorySection({
next
? t("settings:giteaIntegration.toast.commentOnEnabled")
: t("settings:giteaIntegration.toast.commentOnDisabled"),
+ { icon: MessageSquareIcon },
);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/github-integration/github-connected-panel.tsx b/apps/web/src/components/project/github-integration/github-connected-panel.tsx
index ee8b5d331..6cdbd644e 100644
--- a/apps/web/src/components/project/github-integration/github-connected-panel.tsx
+++ b/apps/web/src/components/project/github-integration/github-connected-panel.tsx
@@ -1,3 +1,4 @@
+import { UnplugIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { DisconnectIntegrationButton } from "@/components/project/code-hosting/disconnect-integration-button";
import { GithubIssuesSection } from "@/components/project/github-integration/github-issues-section";
@@ -40,7 +41,9 @@ export function GithubConnectedPanel({
const disconnect = async () => {
try {
await remove(projectId);
- toast.success(t("settings:githubIntegration.toast.removed"));
+ toast.success(t("settings:githubIntegration.toast.removed"), {
+ icon: UnplugIcon,
+ });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/github-integration/github-integration-settings.test.tsx b/apps/web/src/components/project/github-integration/github-integration-settings.test.tsx
index 7cf4a4ed1..4b0e861e8 100644
--- a/apps/web/src/components/project/github-integration/github-integration-settings.test.tsx
+++ b/apps/web/src/components/project/github-integration/github-integration-settings.test.tsx
@@ -376,7 +376,10 @@ describe("connected GitHub repository", () => {
await waitFor(() =>
expect(toast.success).toHaveBeenCalledWith(
"settings:githubIntegration.toast.issuesImported",
- { description: "settings:githubIntegration.importSummary" },
+ {
+ description: "settings:githubIntegration.importSummary",
+ icon: expect.anything(),
+ },
),
);
});
diff --git a/apps/web/src/components/project/github-integration/github-issues-section.tsx b/apps/web/src/components/project/github-integration/github-issues-section.tsx
index 38dfde744..b2e7d5a18 100644
--- a/apps/web/src/components/project/github-integration/github-issues-section.tsx
+++ b/apps/web/src/components/project/github-integration/github-issues-section.tsx
@@ -1,3 +1,4 @@
+import { ImportIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ImportIssuesSection } from "@/components/project/code-hosting/import-issues-section";
import type { GithubIntegration } from "@/fetchers/github-integration/get-github-integration";
@@ -32,6 +33,7 @@ export function GithubIssuesSection({
...(progress?.pending ? { runId: progress.runId } : {}),
});
toast.success(t("settings:githubIntegration.toast.issuesImported"), {
+ icon: ImportIcon,
description: t("settings:githubIntegration.importSummary", result),
});
} catch (error) {
diff --git a/apps/web/src/components/project/github-integration/github-repository-section.tsx b/apps/web/src/components/project/github-integration/github-repository-section.tsx
index 22794b6e5..c91cdadae 100644
--- a/apps/web/src/components/project/github-integration/github-repository-section.tsx
+++ b/apps/web/src/components/project/github-integration/github-repository-section.tsx
@@ -1,3 +1,4 @@
+import { MessageSquareIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { CommentLinkRow } from "@/components/project/code-hosting/comment-link-row";
import { RepositoryLink } from "@/components/project/code-hosting/repository-link";
@@ -43,6 +44,7 @@ export function GithubRepositorySection({
checked
? t("settings:githubIntegration.toast.commentOnEnabled")
: t("settings:githubIntegration.toast.commentOnDisabled"),
+ { icon: MessageSquareIcon },
);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/gitlab-integration/gitlab-connected-panel.tsx b/apps/web/src/components/project/gitlab-integration/gitlab-connected-panel.tsx
index 439fa062c..67e986ea0 100644
--- a/apps/web/src/components/project/gitlab-integration/gitlab-connected-panel.tsx
+++ b/apps/web/src/components/project/gitlab-integration/gitlab-connected-panel.tsx
@@ -1,3 +1,4 @@
+import { UnplugIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { DisconnectIntegrationButton } from "@/components/project/code-hosting/disconnect-integration-button";
@@ -30,7 +31,9 @@ export function GitlabConnectedPanel({
const disconnect = async () => {
try {
await remove(projectId);
- toast.success(t("settings:gitlabIntegration.toast.removed"));
+ toast.success(t("settings:gitlabIntegration.toast.removed"), {
+ icon: UnplugIcon,
+ });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/gitlab-integration/gitlab-issues-section.tsx b/apps/web/src/components/project/gitlab-integration/gitlab-issues-section.tsx
index 66fc07d1d..59960f483 100644
--- a/apps/web/src/components/project/gitlab-integration/gitlab-issues-section.tsx
+++ b/apps/web/src/components/project/gitlab-integration/gitlab-issues-section.tsx
@@ -1,3 +1,4 @@
+import { ImportIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ImportIssuesSection } from "@/components/project/code-hosting/import-issues-section";
import useImportGitlabIssues from "@/hooks/mutations/gitlab-integration/use-import-gitlab-issues";
@@ -23,7 +24,9 @@ export function GitlabIssuesSection({
if (!canImport) return;
try {
await importIssues(projectId);
- toast.success(t("settings:gitlabIntegration.toast.issuesImported"));
+ toast.success(t("settings:gitlabIntegration.toast.issuesImported"), {
+ icon: ImportIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/project/gitlab-integration/gitlab-repository-section.tsx b/apps/web/src/components/project/gitlab-integration/gitlab-repository-section.tsx
index 2c717244d..79aca5a1f 100644
--- a/apps/web/src/components/project/gitlab-integration/gitlab-repository-section.tsx
+++ b/apps/web/src/components/project/gitlab-integration/gitlab-repository-section.tsx
@@ -1,3 +1,4 @@
+import { MessageSquareIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { CommentLinkRow } from "@/components/project/code-hosting/comment-link-row";
import { RepositoryLink } from "@/components/project/code-hosting/repository-link";
@@ -42,6 +43,7 @@ export function GitlabRepositorySection({
next
? t("settings:gitlabIntegration.toast.commentOnEnabled")
: t("settings:gitlabIntegration.toast.commentOnDisabled"),
+ { icon: MessageSquareIcon },
);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.test.tsx b/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.test.tsx
index f292433b8..0cdbefb22 100644
--- a/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.test.tsx
+++ b/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.test.tsx
@@ -220,6 +220,7 @@ describe("ChatWebhookSettings", () => {
);
expect(mocks.toastSuccess).toHaveBeenCalledWith(
"settings:slackIntegration.toast.disabled",
+ { icon: expect.anything() },
);
});
@@ -248,6 +249,7 @@ describe("ChatWebhookSettings", () => {
);
expect(mocks.toastSuccess).toHaveBeenCalledWith(
"settings:slackIntegration.toast.removed",
+ { icon: expect.anything() },
);
});
diff --git a/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.tsx b/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.tsx
index f58f5a2fe..673ada14c 100644
--- a/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.tsx
+++ b/apps/web/src/components/project/integrations/chat-webhook/chat-webhook-settings.tsx
@@ -1,4 +1,5 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { UnplugIcon, PlugIcon } from "lucide-react";
import React from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -91,6 +92,7 @@ export function ChatWebhookSettings({
await updateIntegration({ projectId, json: { isActive: checked } });
toast.success(
checked ? t(provider.keys.enabled) : t(provider.keys.disabled),
+ { icon: checked ? PlugIcon : UnplugIcon },
);
} catch (error) {
toast.error(
@@ -103,7 +105,7 @@ export function ChatWebhookSettings({
try {
await deleteIntegration(projectId);
form.reset(toChatWebhookFormValues(null));
- toast.success(t(provider.keys.removed));
+ toast.success(t(provider.keys.removed), { icon: UnplugIcon });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/integrations/generic-webhook/generic-webhook-integration-settings.tsx b/apps/web/src/components/project/integrations/generic-webhook/generic-webhook-integration-settings.tsx
index 7ac8f08df..970dd7b2f 100644
--- a/apps/web/src/components/project/integrations/generic-webhook/generic-webhook-integration-settings.tsx
+++ b/apps/web/src/components/project/integrations/generic-webhook/generic-webhook-integration-settings.tsx
@@ -1,4 +1,5 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { UnplugIcon, PlugIcon } from "lucide-react";
import React from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -102,6 +103,7 @@ export function GenericWebhookIntegrationSettings({
checked
? t("settings:genericWebhookIntegration.toast.enabled")
: t("settings:genericWebhookIntegration.toast.disabled"),
+ { icon: checked ? PlugIcon : UnplugIcon },
);
} catch (error) {
toast.error(
@@ -116,7 +118,9 @@ export function GenericWebhookIntegrationSettings({
try {
await deleteIntegration(projectId);
form.reset(toGenericWebhookFormValues(null));
- toast.success(t("settings:genericWebhookIntegration.toast.removed"));
+ toast.success(t("settings:genericWebhookIntegration.toast.removed"), {
+ icon: UnplugIcon,
+ });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/integrations/telegram/telegram-integration-settings.tsx b/apps/web/src/components/project/integrations/telegram/telegram-integration-settings.tsx
index 7ffd44dad..8533dd407 100644
--- a/apps/web/src/components/project/integrations/telegram/telegram-integration-settings.tsx
+++ b/apps/web/src/components/project/integrations/telegram/telegram-integration-settings.tsx
@@ -1,4 +1,5 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { UnplugIcon, PlugIcon } from "lucide-react";
import React from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -110,6 +111,7 @@ export function TelegramIntegrationSettings({
checked
? t("settings:telegramIntegration.toast.enabled")
: t("settings:telegramIntegration.toast.disabled"),
+ { icon: checked ? PlugIcon : UnplugIcon },
);
} catch (error) {
toast.error(
@@ -124,7 +126,9 @@ export function TelegramIntegrationSettings({
try {
await deleteIntegration(projectId);
form.reset(toTelegramFormValues(null));
- toast.success(t("settings:telegramIntegration.toast.removed"));
+ toast.success(t("settings:telegramIntegration.toast.removed"), {
+ icon: UnplugIcon,
+ });
return true;
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/project/sortable/use-sortable-row.ts b/apps/web/src/components/project/sortable/use-sortable-row.ts
index c1cd1b0ec..079bb59af 100644
--- a/apps/web/src/components/project/sortable/use-sortable-row.ts
+++ b/apps/web/src/components/project/sortable/use-sortable-row.ts
@@ -1,6 +1,7 @@
import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import type { CSSProperties } from "react";
+import { EASE_OUT_CSS } from "@/lib/motion";
export function useSortableRow(id: string, disabled: boolean) {
const {
@@ -11,7 +12,11 @@ export function useSortableRow(id: string, disabled: boolean) {
transform,
transition,
isDragging,
- } = useSortable({ id, disabled });
+ } = useSortable({
+ id,
+ disabled,
+ transition: { duration: 200, easing: EASE_OUT_CSS },
+ });
const rowStyle: CSSProperties = {
transform: CSS.Translate.toString(transform),
diff --git a/apps/web/src/components/project/task-filters/active-filter-chip.tsx b/apps/web/src/components/project/task-filters/active-filter-chip.tsx
new file mode 100644
index 000000000..f97f3515d
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/active-filter-chip.tsx
@@ -0,0 +1,28 @@
+import { X } from "lucide-react";
+import { useTranslation } from "react-i18next";
+import type { FilterSubject } from "./filter-subject";
+import { FilterOperatorMenu } from "./filter-operator-menu";
+import { FilterValueButton } from "./filter-value-button";
+
+export function ActiveFilterChip({ subject }: { subject: FilterSubject }) {
+ const { t } = useTranslation();
+
+ return (
+ <div className="inline-flex h-7 max-w-full origin-left items-stretch overflow-hidden rounded-md border border-border bg-background text-xs shadow-xs/5 transition-[opacity,scale] duration-150 ease-out *:border-border *:not-last:border-r starting:scale-95 starting:opacity-0 motion-reduce:starting:scale-100 dark:bg-input/32">
+ <span className="flex shrink-0 items-center gap-1.5 px-2 text-muted-foreground [&>svg]:size-3.5">
+ {subject.icon}
+ {subject.label}
+ </span>
+ <FilterOperatorMenu subject={subject} />
+ <FilterValueButton subject={subject} />
+ <button
+ type="button"
+ onClick={subject.onClear}
+ aria-label={t("tasks:filterBar.removeFilter", { name: subject.label })}
+ className="inline-flex w-7 shrink-0 items-center justify-center text-muted-foreground outline-none hover:bg-accent hover:text-foreground focus-visible:bg-accent"
+ >
+ <X className="size-3.5" />
+ </button>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/active-filters-bar.test.tsx b/apps/web/src/components/project/task-filters/active-filters-bar.test.tsx
new file mode 100644
index 000000000..92c11c426
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/active-filters-bar.test.tsx
@@ -0,0 +1,77 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, expect, it, vi } from "vite-plus/test";
+import { ActiveFiltersBar } from "./active-filters-bar";
+import type { FilterSubject } from "./filter-subject";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({
+ t: (key: string, options?: Record<string, unknown>) =>
+ options?.name ? `${key}:${options.name}` : key,
+ }),
+}));
+
+afterEach(cleanup);
+
+const subject = (overrides: Partial<FilterSubject>): FilterSubject => ({
+ id: "priority",
+ label: "Priority",
+ icon: null,
+ kind: "core",
+ operators: { positive: "is any of", negative: "is none of" },
+ options: [
+ { value: "high", label: "High" },
+ { value: "low", label: "Low" },
+ ],
+ selected: [],
+ negated: false,
+ onToggle: vi.fn(),
+ onNegate: vi.fn(),
+ onClear: vi.fn(),
+ emptyLabel: "None",
+ ...overrides,
+});
+
+it("renders nothing without active filters", () => {
+ const { container } = render(
+ <ActiveFiltersBar subjects={[subject({})]} onClear={vi.fn()} />,
+ );
+ expect(container.firstChild).toBeNull();
+});
+
+it("shows subject, operator and values, and clears them", () => {
+ const onClearSubject = vi.fn();
+ const onClearAll = vi.fn();
+ render(
+ <ActiveFiltersBar
+ subjects={[
+ subject({ selected: ["high", "low"], onClear: onClearSubject }),
+ ]}
+ onClear={onClearAll}
+ />,
+ );
+
+ expect(screen.getByText("Priority")).toBeVisible();
+ expect(screen.getByRole("button", { name: "is any of" })).toBeVisible();
+ expect(screen.getByRole("button", { name: "High, Low" })).toBeVisible();
+
+ fireEvent.click(
+ screen.getByRole("button", {
+ name: "tasks:filterBar.removeFilter:Priority",
+ }),
+ );
+ expect(onClearSubject).toHaveBeenCalledOnce();
+ fireEvent.click(
+ screen.getByRole("button", { name: "common:actions.clearAll" }),
+ );
+ expect(onClearAll).toHaveBeenCalledOnce();
+});
+
+it("shows the negative operator for an excluded subject", () => {
+ render(
+ <ActiveFiltersBar
+ subjects={[subject({ selected: ["high"], negated: true })]}
+ onClear={vi.fn()}
+ />,
+ );
+ expect(screen.getByRole("button", { name: "is none of" })).toBeVisible();
+});
diff --git a/apps/web/src/components/project/task-filters/active-filters-bar.tsx b/apps/web/src/components/project/task-filters/active-filters-bar.tsx
new file mode 100644
index 000000000..c49179b52
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/active-filters-bar.tsx
@@ -0,0 +1,38 @@
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import { ActiveFilterChip } from "./active-filter-chip";
+import { AddFilterButton } from "./add-filter-button";
+import type { FilterSubject } from "./filter-subject";
+
+type ActiveFiltersBarProps = {
+ subjects: FilterSubject[];
+ onClear: () => void;
+};
+
+export function ActiveFiltersBar({ subjects, onClear }: ActiveFiltersBarProps) {
+ const { t } = useTranslation();
+ const active = subjects.filter((subject) => subject.selected.length > 0);
+ if (active.length === 0) return null;
+
+ return (
+ <section
+ aria-label={t("tasks:filterBar.label")}
+ className="flex shrink-0 items-start gap-2 border-border/80 border-b px-2 py-2 sm:px-3"
+ >
+ <div className="flex min-w-0 flex-1 flex-wrap items-center gap-1.5">
+ {active.map((subject) => (
+ <ActiveFilterChip key={subject.id} subject={subject} />
+ ))}
+ <AddFilterButton subjects={subjects} />
+ </div>
+ <Button
+ variant="ghost"
+ size="xs"
+ onClick={onClear}
+ className="h-7 shrink-0"
+ >
+ {t("common:actions.clearAll")}
+ </Button>
+ </section>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/add-filter-button.tsx b/apps/web/src/components/project/task-filters/add-filter-button.tsx
new file mode 100644
index 000000000..cd887589e
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/add-filter-button.tsx
@@ -0,0 +1,34 @@
+import { Plus } from "lucide-react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import { FilterRootPanel } from "./filter-root-panel";
+import type { FilterSubject } from "./filter-subject";
+
+export function AddFilterButton({ subjects }: { subjects: FilterSubject[] }) {
+ const { t } = useTranslation();
+
+ return (
+ <Popover>
+ <PopoverTrigger
+ render={
+ <Button
+ variant="ghost"
+ size="icon-xs"
+ aria-label={t("tasks:filterMenu.addFilter")}
+ className="sm:size-7"
+ />
+ }
+ >
+ <Plus />
+ </PopoverTrigger>
+ <PopoverContent align="start" className="w-60">
+ <FilterRootPanel subjects={subjects} />
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-entries.test.ts b/apps/web/src/components/project/task-filters/filter-entries.test.ts
new file mode 100644
index 000000000..5d4bd73d5
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-entries.test.ts
@@ -0,0 +1,81 @@
+import { describe, expect, it, vi } from "vite-plus/test";
+import { rootFilterEntries, subjectFilterEntries } from "./filter-entries";
+import type { FilterSubject } from "./filter-subject";
+
+const subject = (overrides: Partial<FilterSubject>): FilterSubject => ({
+ id: "priority",
+ label: "Priority",
+ icon: null,
+ kind: "core",
+ operators: { positive: "is", negative: "is not" },
+ options: [
+ { value: "high", label: "High" },
+ { value: "low", label: "Low" },
+ ],
+ selected: ["high"],
+ negated: false,
+ onToggle: vi.fn(),
+ onNegate: vi.fn(),
+ onClear: vi.fn(),
+ emptyLabel: "None",
+ ...overrides,
+});
+
+const priority = subject({});
+const size = subject({
+ id: "customField:size",
+ label: "Size",
+ kind: "customField",
+ options: [{ value: "L", label: "Large" }],
+ selected: [],
+});
+
+describe("rootFilterEntries", () => {
+ it("lists subjects, with custom fields in their own group", () => {
+ const groups = rootFilterEntries([priority, size], "", "Custom fields");
+ expect(groups.map((group) => group.label)).toEqual([
+ undefined,
+ "Custom fields",
+ ]);
+ expect(groups[0].items[0]).toMatchObject({
+ label: "Priority",
+ badge: 1,
+ opensSubject: "priority",
+ });
+ });
+
+ it("searches subjects and values together", () => {
+ expect(
+ rootFilterEntries([priority, size], "pri", "Custom fields")[0].items.map(
+ (item) => item.label,
+ ),
+ ).toEqual(["Priority"]);
+
+ const groups = rootFilterEntries([priority, size], "l", "Custom fields");
+ const values = groups.flatMap((group) => group.items);
+ expect(values.map((item) => [item.label, item.meta])).toEqual([
+ ["Low", "Priority"],
+ ["Large", "Size"],
+ ]);
+
+ values[0].toggle?.();
+ expect(priority.onToggle).toHaveBeenCalledWith("low");
+ });
+});
+
+it("lists one subject's values with their checked state and counts", () => {
+ const counted = subject({
+ options: [
+ { value: "high", label: "High", count: 3 },
+ { value: "low", label: "Low" },
+ ],
+ });
+ const [group] = subjectFilterEntries(counted, "", (n) => `${n} tasks`);
+ expect(
+ group.items.map((item) => [item.label, item.checked, item.meta]),
+ ).toEqual([
+ ["High", true, "3 tasks"],
+ ["Low", false, undefined],
+ ]);
+ expect(subjectFilterEntries(counted, "zzz", String)).toEqual([]);
+});
diff --git a/apps/web/src/components/project/task-filters/filter-entries.ts b/apps/web/src/components/project/task-filters/filter-entries.ts
new file mode 100644
index 000000000..58b87742a
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-entries.ts
@@ -0,0 +1,96 @@
+import type { ReactNode } from "react";
+import type { FilterSubject } from "./filter-subject";
+
+export type FilterEntry = {
+ value: string;
+ label: string;
+ icon?: ReactNode;
+ meta?: string;
+ badge?: number;
+ checked?: boolean;
+ opensSubject?: string;
+ toggle?: () => void;
+};
+
+export type FilterEntryGroup = {
+ value: string;
+ label?: string;
+ items: FilterEntry[];
+};
+
+const matches = (text: string, query: string) =>
+ text.toLowerCase().includes(query.trim().toLowerCase());
+
+const subjectEntry = (subject: FilterSubject): FilterEntry => ({
+ value: `subject:${subject.id}`,
+ label: subject.label,
+ icon: subject.icon,
+ badge: subject.selected.length,
+ opensSubject: subject.id,
+});
+
+const optionEntries = (
+ subject: FilterSubject,
+ query: string,
+ meta: (option: FilterSubject["options"][number]) => string | undefined,
+) =>
+ subject.options
+ .filter((option) => matches(option.label, query))
+ .map<FilterEntry>((option) => ({
+ value: `${subject.id}:${option.value}`,
+ label: option.label,
+ icon: option.icon,
+ meta: meta(option),
+ checked: subject.selected.includes(option.value),
+ toggle: () => subject.onToggle(option.value),
+ }));
+
+export function rootFilterEntries(
+ subjects: FilterSubject[],
+ query: string,
+ customFieldsLabel: string,
+): FilterEntryGroup[] {
+ if (!query.trim()) {
+ return [
+ {
+ value: "core",
+ items: subjects
+ .filter((subject) => subject.kind === "core")
+ .map(subjectEntry),
+ },
+ {
+ value: "customFields",
+ label: customFieldsLabel,
+ items: subjects
+ .filter((subject) => subject.kind === "customField")
+ .map(subjectEntry),
+ },
+ ].filter((group) => group.items.length > 0);
+ }
+
+ return [
+ {
+ value: "subjects",
+ items: subjects
+ .filter((subject) => matches(subject.label, query))
+ .map(subjectEntry),
+ },
+ {
+ value: "options",
+ items: subjects.flatMap((subject) =>
+ optionEntries(subject, query, () => subject.label),
+ ),
+ },
+ ].filter((group) => group.items.length > 0);
+}
+
+export function subjectFilterEntries(
+ subject: FilterSubject,
+ query: string,
+ formatCount: (count: number) => string,
+): FilterEntryGroup[] {
+ const items = optionEntries(subject, query, (option) =>
+ option.count ? formatCount(option.count) : undefined,
+ );
+ return items.length > 0 ? [{ value: subject.id, items }] : [];
+}
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.tsx
new file mode 100644
index 000000000..772abed11
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-listbox-item.tsx
@@ -0,0 +1,62 @@
+import { Autocomplete } from "@base-ui/react/autocomplete";
+import { Check, ChevronRight } from "lucide-react";
+import { cn } from "@/lib/cn";
+import type { FilterEntry } from "./filter-entries";
+
+type FilterListboxItemProps = {
+ entry: FilterEntry;
+ active: boolean;
+ onSelect: (entry: FilterEntry, element: HTMLElement) => void;
+ onHover?: (entry: FilterEntry, element: HTMLElement) => void;
+};
+
+export function FilterListboxItem({
+ entry,
+ active,
+ onSelect,
+ onHover,
+}: FilterListboxItemProps) {
+ return (
+ <Autocomplete.Item
+ value={entry}
+ data-entry={entry.value}
+ data-active={active || undefined}
+ onClick={(event) => onSelect(entry, event.currentTarget)}
+ onPointerEnter={(event) => onHover?.(entry, event.currentTarget)}
+ className="group/entry flex h-8 cursor-default select-none items-center gap-2 rounded-md px-2 text-[13px] text-foreground outline-none data-active:bg-accent data-highlighted:bg-accent"
+ >
+ {entry.checked !== undefined && (
+ <span
+ aria-hidden="true"
+ className={cn(
+ "inline-flex size-3.5 shrink-0 items-center justify-center rounded-[4px] border",
+ entry.checked
+ ? "border-foreground bg-foreground text-background"
+ : "border-muted-foreground/50 opacity-0 group-data-highlighted/entry:opacity-100",
+ )}
+ >
+ {entry.checked && <Check className="size-2.5" strokeWidth={3} />}
+ </span>
+ )}
+ {entry.icon && (
+ <span className="inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-4">
+ {entry.icon}
+ </span>
+ )}
+ <span className="min-w-0 flex-1 truncate">{entry.label}</span>
+ {entry.meta && (
+ <span className="shrink-0 text-muted-foreground text-xs tabular-nums">
+ {entry.meta}
+ </span>
+ )}
+ {!!entry.badge && (
+ <span className="inline-flex h-4 min-w-4 shrink-0 items-center justify-center rounded-full bg-foreground px-1 font-semibold text-[10px] text-background tabular-nums">
+ {entry.badge}
+ </span>
+ )}
+ {entry.opensSubject && (
+ <ChevronRight className="size-3.5 shrink-0 text-muted-foreground" />
+ )}
+ </Autocomplete.Item>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-listbox.tsx b/apps/web/src/components/project/task-filters/filter-listbox.tsx
new file mode 100644
index 000000000..e10818fa2
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-listbox.tsx
@@ -0,0 +1,111 @@
+import { Autocomplete } from "@base-ui/react/autocomplete";
+import { type KeyboardEvent, type Ref, useRef, useState } from "react";
+import type { FilterEntry, FilterEntryGroup } from "./filter-entries";
+import { FilterListboxItem } from "./filter-listbox-item";
+
+type FilterListboxProps = {
+ placeholder: string;
+ groups: FilterEntryGroup[];
+ query: string;
+ onQueryChange: (query: string) => void;
+ emptyLabel: string;
+ activeValue?: string | null;
+ inputRef?: Ref<HTMLInputElement>;
+ onEntrySelect: (entry: FilterEntry, element: HTMLElement) => void;
+ onEntryHover?: (entry: FilterEntry, element: HTMLElement) => void;
+ onInputKeyDown?: (
+ event: KeyboardEvent<HTMLInputElement>,
+ highlighted: { entry: FilterEntry; element: HTMLElement } | null,
+ ) => void;
+};
+
+export function FilterListbox({
+ placeholder,
+ groups,
+ query,
+ onQueryChange,
+ emptyLabel,
+ activeValue,
+ inputRef,
+ onEntrySelect,
+ onEntryHover,
+ onInputKeyDown,
+}: FilterListboxProps) {
+ const listRef = useRef<HTMLDivElement>(null);
+ const [highlighted, setHighlighted] = useState<FilterEntry | null>(null);
+
+ const highlightedElement = () =>
+ highlighted
+ ? listRef.current?.querySelector<HTMLElement>(
+ `[data-entry="${CSS.escape(highlighted.value)}"]`,
+ )
+ : null;
+
+ return (
+ <Autocomplete.Root
+ items={groups}
+ filteredItems={groups}
+ value={query}
+ onValueChange={(value, details) => {
+ if (
+ details.reason === "input-change" ||
+ details.reason === "input-clear"
+ )
+ onQueryChange(value);
+ }}
+ onItemHighlighted={(value) =>
+ setHighlighted((value as FilterEntry | undefined) ?? null)
+ }
+ inline
+ open
+ autoHighlight="always"
+ keepHighlight
+ >
+ <Autocomplete.Input
+ ref={inputRef}
+ autoFocus
+ placeholder={placeholder}
+ onKeyDown={(event) => {
+ const element = highlightedElement();
+ onInputKeyDown?.(
+ event,
+ highlighted && element ? { entry: highlighted, element } : null,
+ );
+ }}
+ className="h-10 w-full border-border/80 border-b bg-transparent px-3 text-[13px] text-foreground outline-none placeholder:text-muted-foreground"
+ />
+ <Autocomplete.Empty className="px-3 text-muted-foreground text-xs not-empty:py-5">
+ {emptyLabel}
+ </Autocomplete.Empty>
+ <Autocomplete.List
+ ref={listRef}
+ className="max-h-80 overflow-y-auto p-1 empty:hidden"
+ >
+ {(group: FilterEntryGroup) => (
+ <Autocomplete.Group
+ key={group.value}
+ items={group.items}
+ className="not-first:mt-1 not-first:border-border/80 not-first:border-t not-first:pt-1"
+ >
+ {group.label && (
+ <Autocomplete.GroupLabel className="px-2 pt-1 pb-0.5 text-muted-foreground text-xs">
+ {group.label}
+ </Autocomplete.GroupLabel>
+ )}
+ <Autocomplete.Collection>
+ {(entry: FilterEntry) => (
+ <FilterListboxItem
+ key={entry.value}
+ entry={entry}
+ active={entry.value === activeValue}
+ onSelect={onEntrySelect}
+ onHover={onEntryHover}
+ />
+ )}
+ </Autocomplete.Collection>
+ </Autocomplete.Group>
+ )}
+ </Autocomplete.List>
+ </Autocomplete.Root>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-menu.tsx b/apps/web/src/components/project/task-filters/filter-menu.tsx
new file mode 100644
index 000000000..d9474ccbf
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-menu.tsx
@@ -0,0 +1,61 @@
+import { ListFilter } from "lucide-react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+import { cn } from "@/lib/cn";
+import { FilterRootPanel } from "./filter-root-panel";
+import type { FilterSubject } from "./filter-subject";
+
+type FilterMenuProps = {
+ subjects: FilterSubject[];
+ activeCount: number;
+};
+
+export function FilterMenu({ subjects, activeCount }: FilterMenuProps) {
+ const { t } = useTranslation();
+ const label = t("common:actions.filter");
+
+ return (
+ <Popover>
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <PopoverTrigger
+ render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ aria-label={label}
+ className={cn(
+ "data-popup-open:bg-accent",
+ activeCount > 0 && "bg-accent",
+ )}
+ />
+ }
+ />
+ }
+ >
+ <ListFilter />
+ {activeCount > 0 && (
+ <span className="-top-1 -right-1 absolute inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-foreground px-1 text-[10px] font-semibold text-background tabular-nums">
+ {activeCount}
+ </span>
+ )}
+ </TooltipTrigger>
+ <TooltipContent>{label}</TooltipContent>
+ </Tooltip>
+ <PopoverContent align="end" className="w-60">
+ <FilterRootPanel subjects={subjects} />
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-operator-menu.tsx b/apps/web/src/components/project/task-filters/filter-operator-menu.tsx
new file mode 100644
index 000000000..d95ab1e02
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-operator-menu.tsx
@@ -0,0 +1,40 @@
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
+ DropdownMenuTrigger,
+} from "@/components/ui/menu";
+import type { FilterSubject } from "./filter-subject";
+
+export function FilterOperatorMenu({ subject }: { subject: FilterSubject }) {
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger
+ render={
+ <button
+ type="button"
+ className="h-full shrink-0 px-2 text-muted-foreground outline-none hover:bg-accent hover:text-foreground focus-visible:bg-accent data-popup-open:bg-accent"
+ />
+ }
+ >
+ {subject.negated
+ ? subject.operators.negative
+ : subject.operators.positive}
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="start" className="min-w-36">
+ <DropdownMenuRadioGroup
+ value={subject.negated ? "negative" : "positive"}
+ onValueChange={(value) => subject.onNegate(value === "negative")}
+ >
+ <DropdownMenuRadioItem value="positive" closeOnClick>
+ {subject.operators.positive}
+ </DropdownMenuRadioItem>
+ <DropdownMenuRadioItem value="negative" closeOnClick>
+ {subject.operators.negative}
+ </DropdownMenuRadioItem>
+ </DropdownMenuRadioGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-root-panel.tsx b/apps/web/src/components/project/task-filters/filter-root-panel.tsx
new file mode 100644
index 000000000..293d41311
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-root-panel.tsx
@@ -0,0 +1,103 @@
+import { useEffect, useRef, useState } from "react";
+import { useTranslation } from "react-i18next";
+import { Popover, PopoverContent } from "@/components/ui/popover";
+import { type FilterEntry, rootFilterEntries } from "./filter-entries";
+import { FilterListbox } from "./filter-listbox";
+import type { FilterSubject } from "./filter-subject";
+import { FilterSubjectPanel } from "./filter-subject-panel";
+
+const HOVER_DELAY_MS = 120;
+
+export function FilterRootPanel({ subjects }: { subjects: FilterSubject[] }) {
+ const { t } = useTranslation();
+ const [query, setQuery] = useState("");
+ const [nested, setNested] = useState<{
+ subjectId: string;
+ anchor: HTMLElement;
+ } | null>(null);
+ const inputRef = useRef<HTMLInputElement>(null);
+ const hoverTimer = useRef<number | undefined>(undefined);
+ const nestedSubject = subjects.find(
+ (subject) => subject.id === nested?.subjectId,
+ );
+
+ useEffect(() => () => window.clearTimeout(hoverTimer.current), []);
+
+ const openNested = (entry: FilterEntry, anchor: HTMLElement) => {
+ window.clearTimeout(hoverTimer.current);
+ setNested(
+ entry.opensSubject ? { subjectId: entry.opensSubject, anchor } : null,
+ );
+ };
+
+ const closeNested = () => {
+ setNested(null);
+ inputRef.current?.focus();
+ };
+
+ return (
+ <div className="-mx-1 -my-0.5">
+ <FilterListbox
+ placeholder={t("tasks:filterMenu.addFilter")}
+ groups={rootFilterEntries(
+ subjects,
+ query,
+ t("tasks:common.customFields"),
+ )}
+ query={query}
+ onQueryChange={(next) => {
+ setQuery(next);
+ setNested(null);
+ }}
+ emptyLabel={t("tasks:filterMenu.noResults")}
+ activeValue={nested ? `subject:${nested.subjectId}` : null}
+ inputRef={inputRef}
+ onEntrySelect={(entry, element) => {
+ if (entry.opensSubject) {
+ openNested(entry, element);
+ } else {
+ entry.toggle?.();
+ }
+ }}
+ onEntryHover={(entry, element) => {
+ window.clearTimeout(hoverTimer.current);
+ hoverTimer.current = window.setTimeout(
+ () => openNested(entry, element),
+ HOVER_DELAY_MS,
+ );
+ }}
+ onInputKeyDown={(event, highlighted) => {
+ if (event.key === "ArrowRight" && highlighted?.entry.opensSubject) {
+ event.preventDefault();
+ openNested(highlighted.entry, highlighted.element);
+ }
+ }}
+ />
+ <Popover
+ open={!!nestedSubject}
+ onOpenChange={(open) => {
+ if (!open) closeNested();
+ }}
+ >
+ <PopoverContent
+ anchor={nested?.anchor}
+ side="left"
+ align="start"
+ sideOffset={6}
+ alignOffset={-5}
+ finalFocus={inputRef}
+ positionerClassName="transition-none"
+ className="w-64"
+ >
+ {nestedSubject && (
+ <FilterSubjectPanel
+ key={nestedSubject.id}
+ subject={nestedSubject}
+ onBack={closeNested}
+ />
+ )}
+ </PopoverContent>
+ </Popover>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-subject-panel.tsx b/apps/web/src/components/project/task-filters/filter-subject-panel.tsx
new file mode 100644
index 000000000..93c4c5027
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-subject-panel.tsx
@@ -0,0 +1,49 @@
+import { useState } from "react";
+import { useTranslation } from "react-i18next";
+import { subjectFilterEntries } from "./filter-entries";
+import { FilterListbox } from "./filter-listbox";
+import type { FilterSubject } from "./filter-subject";
+
+type FilterSubjectPanelProps = {
+ subject: FilterSubject;
+ onBack?: () => void;
+};
+
+export function FilterSubjectPanel({
+ subject,
+ onBack,
+}: FilterSubjectPanelProps) {
+ const { t } = useTranslation();
+ const [query, setQuery] = useState("");
+
+ return (
+ <div className="-mx-1 -my-0.5">
+ <FilterListbox
+ placeholder={t("tasks:filterMenu.searchSubject", {
+ name: subject.label,
+ })}
+ groups={subjectFilterEntries(subject, query, (count) =>
+ t("tasks:toolbar.taskCount", { count }),
+ )}
+ query={query}
+ onQueryChange={setQuery}
+ emptyLabel={
+ subject.options.length === 0
+ ? subject.emptyLabel
+ : t("tasks:filterMenu.noResults")
+ }
+ onEntrySelect={(entry) => entry.toggle?.()}
+ onInputKeyDown={(event) => {
+ if (
+ onBack &&
+ query === "" &&
+ (event.key === "ArrowLeft" || event.key === "Backspace")
+ ) {
+ event.preventDefault();
+ onBack();
+ }
+ }}
+ />
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/filter-subject.ts b/apps/web/src/components/project/task-filters/filter-subject.ts
new file mode 100644
index 000000000..f9c37e77c
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-subject.ts
@@ -0,0 +1,35 @@
+import type { ReactNode } from "react";
+import type { useTaskFiltersWithLabelsSupport } from "@/hooks/use-task-filters-with-labels-support";
+
+export type TaskFilterControls = Pick<
+ ReturnType<typeof useTaskFiltersWithLabelsSupport>,
+ | "filters"
+ | "updateFilter"
+ | "toggleFilter"
+ | "setNegated"
+ | "updateCustomFieldFilter"
+ | "clearFilters"
+ | "activeFilterCount"
+>;
+
+export type FilterOption = {
+ value: string;
+ label: string;
+ icon?: ReactNode;
+ count?: number;
+};
+
+export type FilterSubject = {
+ id: string;
+ label: string;
+ icon: ReactNode;
+ kind: "core" | "customField";
+ operators: { positive: string; negative: string };
+ options: FilterOption[];
+ selected: string[];
+ negated: boolean;
+ onToggle: (value: string) => void;
+ onNegate: (negated: boolean) => void;
+ onClear: () => void;
+ emptyLabel: string;
+};
diff --git a/apps/web/src/components/project/task-filters/filter-value-button.tsx b/apps/web/src/components/project/task-filters/filter-value-button.tsx
new file mode 100644
index 000000000..9a6551f7a
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/filter-value-button.tsx
@@ -0,0 +1,57 @@
+import { useTranslation } from "react-i18next";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import { FilterSubjectPanel } from "./filter-subject-panel";
+import type { FilterSubject } from "./filter-subject";
+import { formatChipValue } from "./format-chip-value";
+
+export function FilterValueButton({ subject }: { subject: FilterSubject }) {
+ const { t } = useTranslation();
+ const chosen = subject.selected.map(
+ (value) =>
+ subject.options.find((option) => option.value === value) ?? {
+ value,
+ label: value,
+ icon: undefined,
+ },
+ );
+ const icons = chosen.filter((option) => option.icon).slice(0, 3);
+
+ return (
+ <Popover>
+ <PopoverTrigger
+ render={
+ <button
+ type="button"
+ className="flex h-full min-w-0 items-center gap-1.5 px-2 font-medium text-foreground outline-none hover:bg-accent focus-visible:bg-accent data-popup-open:bg-accent"
+ />
+ }
+ >
+ {icons.length > 0 && (
+ <span className="inline-flex shrink-0 items-center -space-x-1">
+ {icons.map((option) => (
+ <span
+ key={option.value}
+ className="inline-flex size-4 items-center justify-center rounded-full bg-background [&>svg]:size-3.5"
+ >
+ {option.icon}
+ </span>
+ ))}
+ </span>
+ )}
+ <span className="truncate">
+ {formatChipValue(
+ chosen.map((option) => option.label),
+ (count) => t("tasks:boardFilters.selectedCount", { count }),
+ )}
+ </span>
+ </PopoverTrigger>
+ <PopoverContent align="start" className="w-64">
+ <FilterSubjectPanel subject={subject} />
+ </PopoverContent>
+ </Popover>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/format-chip-value.test.ts b/apps/web/src/components/project/task-filters/format-chip-value.test.ts
new file mode 100644
index 000000000..c1b3834e5
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/format-chip-value.test.ts
@@ -0,0 +1,14 @@
+import { expect, it } from "vite-plus/test";
+import { formatChipValue } from "./format-chip-value";
+
+const selected = (count: number) => `${count} selected`;
+
+it("names up to two values and counts the rest", () => {
+ expect(formatChipValue(["John Doe"], selected)).toBe("John Doe");
+ expect(formatChipValue(["Design", "Content"], selected)).toBe(
+ "Design, Content",
+ );
+ expect(formatChipValue(["Low", "Medium", "High"], selected)).toBe(
+ "3 selected",
+ );
+});
diff --git a/apps/web/src/components/project/task-filters/format-chip-value.ts b/apps/web/src/components/project/task-filters/format-chip-value.ts
new file mode 100644
index 000000000..e2b3c44ec
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/format-chip-value.ts
@@ -0,0 +1,6 @@
+export function formatChipValue(
+ labels: string[],
+ selectedCount: (count: number) => string,
+) {
+ return labels.length <= 2 ? labels.join(", ") : selectedCount(labels.length);
+}
diff --git a/apps/web/src/components/project/task-filters/label-filter-dot.tsx b/apps/web/src/components/project/task-filters/label-filter-dot.tsx
new file mode 100644
index 000000000..7f06e361c
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/label-filter-dot.tsx
@@ -0,0 +1,11 @@
+import { resolveLabelColor } from "@/lib/label-color";
+
+export function LabelFilterDot({ color }: { color: string }) {
+ return (
+ <span
+ aria-hidden="true"
+ className="size-2 shrink-0 rounded-full"
+ style={{ backgroundColor: resolveLabelColor(color) }}
+ />
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/member-filter-avatar.tsx b/apps/web/src/components/project/task-filters/member-filter-avatar.tsx
new file mode 100644
index 000000000..c8ee22d5c
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/member-filter-avatar.tsx
@@ -0,0 +1,19 @@
+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
+import { getInitials } from "@/lib/get-initials";
+
+export function MemberFilterAvatar({
+ name,
+ image,
+}: {
+ name?: string | null;
+ image?: string | null;
+}) {
+ return (
+ <Avatar className="size-4">
+ <AvatarImage src={image ?? ""} alt="" />
+ <AvatarFallback className="border border-border/30 text-[8px] font-medium">
+ {getInitials(name)}
+ </AvatarFallback>
+ </Avatar>
+ );
+}
diff --git a/apps/web/src/components/project/task-filters/operator-labels.test.ts b/apps/web/src/components/project/task-filters/operator-labels.test.ts
new file mode 100644
index 000000000..9e8b078e4
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/operator-labels.test.ts
@@ -0,0 +1,19 @@
+import { expect, it } from "vite-plus/test";
+import { operatorLabels } from "./operator-labels";
+
+const t = (key: string) => key.split(".").pop() ?? key;
+
+it("words single and multiple selections like a sentence", () => {
+ expect(operatorLabels("is", 1, t)).toEqual({
+ positive: "is",
+ negative: "isNot",
+ });
+ expect(operatorLabels("is", 3, t)).toEqual({
+ positive: "isAnyOf",
+ negative: "isNoneOf",
+ });
+ expect(operatorLabels("include", 2, t)).toEqual({
+ positive: "includeAnyOf",
+ negative: "exclude",
+ });
+});
diff --git a/apps/web/src/components/project/task-filters/operator-labels.ts b/apps/web/src/components/project/task-filters/operator-labels.ts
new file mode 100644
index 000000000..885b17a2a
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/operator-labels.ts
@@ -0,0 +1,26 @@
+type Translate = (key: string) => string;
+
+export function operatorLabels(
+ kind: "is" | "include",
+ count: number,
+ t: Translate,
+) {
+ if (kind === "include") {
+ return {
+ positive:
+ count > 1
+ ? t("tasks:boardFilters.operators.includeAnyOf")
+ : t("tasks:boardFilters.operators.include"),
+ negative: t("tasks:boardFilters.operators.exclude"),
+ };
+ }
+ return count > 1
+ ? {
+ positive: t("tasks:boardFilters.operators.isAnyOf"),
+ negative: t("tasks:boardFilters.operators.isNoneOf"),
+ }
+ : {
+ positive: t("tasks:boardFilters.operators.is"),
+ negative: t("tasks:boardFilters.operators.isNot"),
+ };
+}
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.tsx
new file mode 100644
index 000000000..b79736bd4
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/use-filter-subjects.tsx
@@ -0,0 +1,209 @@
+import {
+ CalendarDays,
+ CircleDashed,
+ SignalHigh,
+ Tag,
+ UserRound,
+} from "lucide-react";
+import { useTranslation } from "react-i18next";
+import { getColumnIcon } from "@/lib/column";
+import { getPriorityLabel } from "@/lib/i18n/domain";
+import { getPriorityIcon } from "@/lib/priority";
+import { countValues } from "@/lib/task-filters/count-values";
+import { DUE_DATE_OPTIONS } from "@/lib/task-filters/due-date-options";
+import { customFieldSubjectId } from "@/lib/task-filters/filter-subject-id";
+import {
+ groupLabels,
+ isLabelGroupSelected,
+ toggleLabelGroup,
+} from "@/lib/task-filters/label-groups";
+import type { ProjectWithTasks } from "@/types/project";
+import type Task from "@/types/task";
+import { customFieldIcon } from "@/components/custom-fields/custom-field-icon";
+import type { FilterSubject, TaskFilterControls } from "./filter-subject";
+import { LabelFilterDot } from "./label-filter-dot";
+import { MemberFilterAvatar } from "./member-filter-avatar";
+import { operatorLabels } from "./operator-labels";
+import type { TaskFilterOptions } from "./use-task-filter-options";
+
+const PRIORITIES = ["urgent", "high", "medium", "low"];
+
+type UseFilterSubjectsInput = {
+ controls: TaskFilterControls;
+ options: TaskFilterOptions;
+ columns?: ProjectWithTasks["columns"];
+ tasks: Task[];
+ showStatus: boolean;
+};
+
+export function useFilterSubjects({
+ controls,
+ options,
+ columns = [],
+ tasks,
+ showStatus,
+}: UseFilterSubjectsInput): FilterSubject[] {
+ const { t } = useTranslation();
+ const { filters, toggleFilter, updateFilter, setNegated } = controls;
+ const empty = t("tasks:boardFilters.noValuesUsedYet");
+ const negated = new Set(filters.negated ?? []);
+
+ const subject = (
+ id: string,
+ fields: Pick<FilterSubject, "label" | "icon" | "options" | "selected"> &
+ Partial<FilterSubject>,
+ operatorKind: "is" | "include" = "is",
+ ): FilterSubject => ({
+ id,
+ kind: "core",
+ operators: operatorLabels(operatorKind, fields.selected.length, t),
+ negated: negated.has(id),
+ onNegate: (on) => setNegated(id, on),
+ onToggle: () => undefined,
+ onClear: () => undefined,
+ emptyLabel: empty,
+ ...fields,
+ });
+
+ const listSubject = (
+ key: "status" | "priority" | "assignee" | "dueDate",
+ fields: Pick<FilterSubject, "label" | "icon" | "options">,
+ ) =>
+ subject(key, {
+ ...fields,
+ selected: filters[key] ?? [],
+ onToggle: (value) => toggleFilter(key, value),
+ onClear: () => updateFilter(key, null),
+ });
+
+ const labelGroups = groupLabels(options.labels);
+ const groupIdByLabel = new Map(
+ labelGroups.map((group) => [`${group.name}|${group.color}`, group.id]),
+ );
+ const counts = {
+ status: countValues(tasks, (task) => [task.status]),
+ assignee: countValues(tasks, (task) => [task.userId]),
+ priority: countValues(tasks, (task) => [task.priority]),
+ labels: countValues(tasks, (task) =>
+ (task.labels ?? []).map((label) =>
+ groupIdByLabel.get(`${label.name}|${label.color}`),
+ ),
+ ),
+ };
+
+ const core = [
+ ...(showStatus
+ ? [
+ listSubject("status", {
+ label: t("tasks:boardFilters.subjects.status"),
+ icon: <CircleDashed />,
+ options: columns.map((column) => ({
+ value: column.id,
+ label: column.name,
+ icon: getColumnIcon(column.id, column.isFinal, column.icon),
+ count: counts.status[column.id],
+ })),
+ }),
+ ]
+ : []),
+ listSubject("assignee", {
+ label: t("tasks:boardFilters.subjects.assignee"),
+ icon: <UserRound />,
+ options: options.members.map((member) => ({
+ value: member.userId,
+ label: member.user?.name || t("common:people.unknown"),
+ count: counts.assignee[member.userId],
+ icon: (
+ <MemberFilterAvatar
+ name={member.user?.name}
+ image={member.user?.image}
+ />
+ ),
+ })),
+ }),
+ listSubject("priority", {
+ label: t("tasks:boardFilters.subjects.priority"),
+ icon: <SignalHigh />,
+ options: PRIORITIES.map((priority) => ({
+ value: priority,
+ label: getPriorityLabel(priority),
+ icon: getPriorityIcon(priority),
+ count: counts.priority[priority],
+ })),
+ }),
+ subject(
+ "labels",
+ {
+ label: t("tasks:boardFilters.subjects.labels"),
+ icon: <Tag />,
+ options: labelGroups.map((group) => ({
+ value: group.id,
+ label: group.name,
+ icon: <LabelFilterDot color={group.color} />,
+ count: counts.labels[group.id],
+ })),
+ selected: labelGroups
+ .filter((group) =>
+ isLabelGroupSelected(options.labels, group, filters.labels),
+ )
+ .map((group) => group.id),
+ onToggle: (value) => {
+ const group = labelGroups.find((item) => item.id === value);
+ if (!group) return;
+ updateFilter(
+ "labels",
+ toggleLabelGroup(options.labels, group, filters.labels),
+ );
+ },
+ onClear: () => updateFilter("labels", null),
+ emptyLabel: t("tasks:labels.empty"),
+ },
+ "include",
+ ),
+ listSubject("dueDate", {
+ label: t("tasks:boardFilters.subjects.dueDate"),
+ icon: <CalendarDays />,
+ options: DUE_DATE_OPTIONS.map((option) => ({
+ value: option.value,
+ label: t(option.labelKey),
+ })),
+ }),
+ ];
+
+ const customFields = options.customFields.map((field) => {
+ const Icon = customFieldIcon(field.type);
+ const values =
+ field.type === "dropdown"
+ ? (field.options ?? [])
+ : field.type === "boolean"
+ ? ["true", "false"]
+ : (options.usedCustomFieldValues[field.id] ?? []);
+ return subject(customFieldSubjectId(field.id), {
+ kind: "customField",
+ label: field.name,
+ icon: <Icon />,
+ options: values.map((value) => ({
+ value,
+ label:
+ field.type === "boolean"
+ ? value === "true"
+ ? "True"
+ : "False"
+ : value,
+ })),
+ selected: filters.customFields?.[field.id] ?? [],
+ onToggle: (value) => controls.updateCustomFieldFilter(field.id, value),
+ onClear: () => {
+ const next = { ...filters.customFields };
+ delete next[field.id];
+ updateFilter(
+ "customFields",
+ Object.keys(next).length > 0 ? next : null,
+ );
+ setNegated(customFieldSubjectId(field.id), false);
+ },
+ });
+ });
+
+ return [...core, ...customFields];
+}
diff --git a/apps/web/src/components/project/task-filters/use-task-filter-options.ts b/apps/web/src/components/project/task-filters/use-task-filter-options.ts
new file mode 100644
index 000000000..39b3f6318
--- /dev/null
+++ b/apps/web/src/components/project/task-filters/use-task-filter-options.ts
@@ -0,0 +1,40 @@
+import { useMemo } from "react";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import useGetCustomFieldFilterValues from "@/hooks/queries/custom-field/use-get-custom-field-filter-values";
+import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
+import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-workspace";
+import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";
+
+export type TaskFilterOptions = ReturnType<typeof useTaskFilterOptions>;
+
+export function useTaskFilterOptions(projectId: string, workspaceId: string) {
+ const { data: users } = useGetActiveWorkspaceUsers(workspaceId);
+ const { data: labels = [] } = useGetLabelsByWorkspace(workspaceId);
+ const { data: rawCustomFields = [] } = useGetCustomFieldsByProject(projectId);
+ const { data: filterValues = [] } = useGetCustomFieldFilterValues(projectId);
+
+ const customFields = useMemo<CustomFieldDefinition[]>(
+ () =>
+ rawCustomFields.map((field, index) => ({
+ ...field,
+ type: field.type as CustomFieldDefinition["type"],
+ options: Array.isArray(field.options)
+ ? (field.options as string[])
+ : null,
+ position: index,
+ })),
+ [rawCustomFields],
+ );
+
+ const usedCustomFieldValues = useMemo<Record<string, string[]>>(
+ () => Object.fromEntries(filterValues.map((f) => [f.fieldId, f.values])),
+ [filterValues],
+ );
+
+ return {
+ members: users?.members ?? [],
+ labels,
+ customFields,
+ usedCustomFieldValues,
+ };
+}
diff --git a/apps/web/src/components/project/tasks-import-export/export-tasks-row.tsx b/apps/web/src/components/project/tasks-import-export/export-tasks-row.tsx
index 2d25f3565..096c84e15 100644
--- a/apps/web/src/components/project/tasks-import-export/export-tasks-row.tsx
+++ b/apps/web/src/components/project/tasks-import-export/export-tasks-row.tsx
@@ -1,5 +1,5 @@
import { saveAs } from "file-saver";
-import { Loader2, Upload } from "lucide-react";
+import { Loader2, Upload, DownloadIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { SettingsRow } from "@/components/settings/settings-row";
import { Button } from "@/components/ui/button";
@@ -26,7 +26,9 @@ export function ExportTasksRow({ project }: ExportTasksRowProps) {
saveAs(blob, `${project.slug}-tasks-export.json`);
toast.dismiss();
- toast.success(t("settings:tasksImportExport.exportSuccess"));
+ toast.success(t("settings:tasksImportExport.exportSuccess"), {
+ icon: DownloadIcon,
+ });
} catch (error) {
toast.dismiss();
toast.error(t("settings:tasksImportExport.exportError"));
diff --git a/apps/web/src/components/project/tasks-import-export/import-tasks-dialog.tsx b/apps/web/src/components/project/tasks-import-export/import-tasks-dialog.tsx
index ab6142e9f..050d81386 100644
--- a/apps/web/src/components/project/tasks-import-export/import-tasks-dialog.tsx
+++ b/apps/web/src/components/project/tasks-import-export/import-tasks-dialog.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
-import { Loader2, Upload } from "lucide-react";
+import { Loader2, Upload, UploadIcon } from "lucide-react";
import { type ChangeEvent, type DragEvent, useRef } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -71,6 +71,7 @@ export function ImportTasksDialog({
t("settings:tasksImportExport.importSuccess", {
count: result.results.successful,
}),
+ { icon: UploadIcon },
);
if (result.results.failed > 0) {
diff --git a/apps/web/src/components/project/toolbar/project-search.test.tsx b/apps/web/src/components/project/toolbar/project-search.test.tsx
new file mode 100644
index 000000000..956421b5a
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/project-search.test.tsx
@@ -0,0 +1,34 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { useState } from "react";
+import { afterEach, expect, it, vi } from "vite-plus/test";
+import { ProjectSearch } from "./project-search";
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+
+afterEach(cleanup);
+
+function Harness() {
+ const [value, setValue] = useState("");
+ return <ProjectSearch value={value} onChange={setValue} />;
+}
+
+it("starts as an icon and opens a search field", () => {
+ render(<Harness />);
+ expect(screen.queryByRole("searchbox")).toBeNull();
+
+ fireEvent.click(screen.getByRole("button", { name: "tasks:toolbar.search" }));
+ const field = screen.getByRole("searchbox", { name: "tasks:toolbar.search" });
+ expect(field).toHaveFocus();
+
+ fireEvent.change(field, { target: { value: "invite" } });
+ fireEvent.blur(field);
+ expect(screen.getByRole("searchbox")).toHaveValue("invite");
+});
+
+it("opens with Cmd or Ctrl and F", () => {
+ render(<Harness />);
+ fireEvent.keyDown(window, { key: "f", metaKey: true });
+ expect(screen.getByRole("searchbox")).toHaveFocus();
+});
diff --git a/apps/web/src/components/project/toolbar/project-search.tsx b/apps/web/src/components/project/toolbar/project-search.tsx
new file mode 100644
index 000000000..b83240f75
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/project-search.tsx
@@ -0,0 +1,64 @@
+import { Search } from "lucide-react";
+import { useEffect, useRef, useState } from "react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+import { SearchField } from "./search-field";
+import { useFindShortcut } from "./use-find-shortcut";
+
+type ProjectSearchProps = {
+ value: string;
+ onChange: (value: string) => void;
+};
+
+export function ProjectSearch({ value, onChange }: ProjectSearchProps) {
+ const { t } = useTranslation();
+ const inputRef = useRef<HTMLInputElement>(null);
+ const [open, setOpen] = useState(false);
+ const expanded = open || value !== "";
+ const label = t("tasks:toolbar.search");
+
+ useFindShortcut(() => {
+ setOpen(true);
+ inputRef.current?.focus();
+ inputRef.current?.select();
+ });
+
+ useEffect(() => {
+ if (open) inputRef.current?.focus();
+ }, [open]);
+
+ if (expanded) {
+ return (
+ <SearchField
+ ref={inputRef}
+ value={value}
+ onChange={onChange}
+ onBlur={() => setOpen(false)}
+ className="flex w-44 sm:w-56"
+ />
+ );
+ }
+
+ return (
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ aria-label={label}
+ onClick={() => setOpen(true)}
+ />
+ }
+ >
+ <Search />
+ </TooltipTrigger>
+ <TooltipContent>{label}</TooltipContent>
+ </Tooltip>
+ );
+}
diff --git a/apps/web/src/components/project/toolbar/project-toolbar.tsx b/apps/web/src/components/project/toolbar/project-toolbar.tsx
new file mode 100644
index 000000000..7024bebdd
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/project-toolbar.tsx
@@ -0,0 +1,34 @@
+import type { ReactNode } from "react";
+import { DisplayMenu } from "@/components/project/display/display-menu";
+import { FilterMenu } from "@/components/project/task-filters/filter-menu";
+import { ProjectSearch } from "./project-search";
+import type { ProjectTaskView } from "./use-project-task-view";
+
+type ProjectToolbarProps = {
+ view: ProjectTaskView;
+ display: ReactNode;
+ actions?: ReactNode;
+};
+
+export function ProjectToolbar({
+ view,
+ display,
+ actions,
+}: ProjectToolbarProps) {
+ return (
+ <>
+ {actions && (
+ <>
+ {actions}
+ <span className="mx-1 h-4 w-px bg-border" aria-hidden="true" />
+ </>
+ )}
+ <ProjectSearch value={view.search} onChange={view.setSearch} />
+ <FilterMenu
+ subjects={view.subjects}
+ activeCount={view.filters.activeFilterCount}
+ />
+ <DisplayMenu>{display}</DisplayMenu>
+ </>
+ );
+}
diff --git a/apps/web/src/components/project/toolbar/scope-tasks.test.ts b/apps/web/src/components/project/toolbar/scope-tasks.test.ts
new file mode 100644
index 000000000..94fcb2a9b
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/scope-tasks.test.ts
@@ -0,0 +1,19 @@
+import { expect, it } from "vite-plus/test";
+import type { ProjectWithTasks } from "@/types/project";
+import { scopeTasks } from "./scope-tasks";
+
+const project = {
+ columns: [{ tasks: [{ id: "board" }] }],
+ plannedTasks: [{ id: "planned" }],
+ archivedTasks: [{ id: "archived" }],
+} as unknown as ProjectWithTasks;
+
+const ids = (scope: Parameters<typeof scopeTasks>[1]) =>
+ scopeTasks(project, scope).map((task) => task.id);
+
+it("picks the tasks each view works with", () => {
+ expect(ids("board")).toEqual(["board"]);
+ expect(ids("backlog")).toEqual(["planned", "archived"]);
+ expect(ids("schedule")).toEqual(["board", "planned"]);
+ expect(scopeTasks(null, "board")).toEqual([]);
+});
diff --git a/apps/web/src/components/project/toolbar/scope-tasks.ts b/apps/web/src/components/project/toolbar/scope-tasks.ts
new file mode 100644
index 000000000..90c3c5a43
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/scope-tasks.ts
@@ -0,0 +1,15 @@
+import type { ProjectWithTasks } from "@/types/project";
+import type Task from "@/types/task";
+
+export function scopeTasks(
+ project: ProjectWithTasks | null | undefined,
+ scope: "board" | "backlog" | "schedule",
+): Task[] {
+ if (!project) return [];
+ const boardTasks = project.columns.flatMap((column) => column.tasks);
+ if (scope === "board") return boardTasks;
+ if (scope === "backlog") {
+ return [...(project.plannedTasks ?? []), ...(project.archivedTasks ?? [])];
+ }
+ return [...boardTasks, ...(project.plannedTasks ?? [])];
+}
diff --git a/apps/web/src/components/project/toolbar/search-field.tsx b/apps/web/src/components/project/toolbar/search-field.tsx
new file mode 100644
index 000000000..7a49a14da
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/search-field.tsx
@@ -0,0 +1,63 @@
+import { Search, X } from "lucide-react";
+import type { Ref } from "react";
+import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { cn } from "@/lib/cn";
+
+type SearchFieldProps = {
+ ref?: Ref<HTMLInputElement>;
+ autoFocus?: boolean;
+ onBlur?: () => void;
+ value: string;
+ onChange: (value: string) => void;
+ className?: string;
+};
+
+export function SearchField({
+ ref,
+ autoFocus,
+ onBlur,
+ value,
+ onChange,
+ className,
+}: SearchFieldProps) {
+ const { t } = useTranslation();
+
+ return (
+ <div className={cn("relative items-center", className)}>
+ <Search className="-translate-y-1/2 pointer-events-none absolute top-1/2 left-2.5 z-10 size-3.5 text-muted-foreground" />
+ <Input
+ ref={ref}
+ autoFocus={autoFocus}
+ type="search"
+ value={value}
+ maxLength={256}
+ aria-label={t("tasks:toolbar.search")}
+ placeholder={t("tasks:toolbar.search")}
+ onChange={(event) => onChange(event.target.value)}
+ onBlur={onBlur}
+ onKeyDown={(event) => {
+ if (event.key !== "Escape") return;
+ if (value) {
+ onChange("");
+ } else {
+ event.currentTarget.blur();
+ }
+ }}
+ className="[&_[data-slot=input]]:h-7 [&_[data-slot=input]]:pr-7 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-[13px] [&_[data-slot=input]]:leading-7"
+ />
+ {value && (
+ <Button
+ variant="ghost"
+ size="icon-xs"
+ aria-label={t("tasks:toolbar.clearSearch")}
+ onClick={() => onChange("")}
+ className="-translate-y-1/2 absolute top-1/2 right-0.5 sm:size-6"
+ >
+ <X />
+ </Button>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/toolbar/task-count.tsx b/apps/web/src/components/project/toolbar/task-count.tsx
new file mode 100644
index 000000000..ac6526f2e
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/task-count.tsx
@@ -0,0 +1,13 @@
+import { useTranslation } from "react-i18next";
+
+export function TaskCount({ shown, total }: { shown: number; total: number }) {
+ const { t } = useTranslation();
+
+ return (
+ <span className="hidden truncate text-xs text-muted-foreground tabular-nums sm:inline">
+ {shown === total
+ ? t("tasks:toolbar.taskCount", { count: total })
+ : t("tasks:toolbar.shownCount", { shown, count: total })}
+ </span>
+ );
+}
diff --git a/apps/web/src/components/project/toolbar/use-find-shortcut.ts b/apps/web/src/components/project/toolbar/use-find-shortcut.ts
new file mode 100644
index 000000000..696b6d9ac
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/use-find-shortcut.ts
@@ -0,0 +1,18 @@
+import { useEffect, useRef } from "react";
+
+export function useFindShortcut(onFind: () => void) {
+ const handler = useRef(onFind);
+ handler.current = onFind;
+
+ useEffect(() => {
+ const onKeyDown = (event: KeyboardEvent) => {
+ if (!(event.metaKey || event.ctrlKey) || event.key.toLowerCase() !== "f")
+ return;
+ event.preventDefault();
+ handler.current();
+ };
+
+ window.addEventListener("keydown", onKeyDown);
+ return () => window.removeEventListener("keydown", onKeyDown);
+ }, []);
+}
diff --git a/apps/web/src/components/project/toolbar/use-project-task-view.ts b/apps/web/src/components/project/toolbar/use-project-task-view.ts
new file mode 100644
index 000000000..fe14901a8
--- /dev/null
+++ b/apps/web/src/components/project/toolbar/use-project-task-view.ts
@@ -0,0 +1,50 @@
+import { useMemo, useState } from "react";
+import { useFilterSubjects } from "@/components/project/task-filters/use-filter-subjects";
+import { useTaskFilterOptions } from "@/components/project/task-filters/use-task-filter-options";
+import { useDescriptionMatches } from "@/hooks/queries/task/use-description-matches";
+import type { BoardFilters } from "@/hooks/use-task-filters";
+import { useTaskFiltersWithLabelsSupport } from "@/hooks/use-task-filters-with-labels-support";
+import type { ProjectWithTasks } from "@/types/project";
+import { scopeTasks } from "./scope-tasks";
+
+const NO_IGNORED_FILTERS: ReadonlyArray<keyof BoardFilters> = [];
+const BACKLOG_IGNORED_FILTERS: ReadonlyArray<keyof BoardFilters> = ["status"];
+
+export type TaskViewScope = "board" | "backlog" | "schedule";
+
+export type ProjectTaskView = ReturnType<typeof useProjectTaskView>;
+
+export function useProjectTaskView({
+ project,
+ projectId,
+ workspaceId,
+ scope,
+}: {
+ project: ProjectWithTasks | null | undefined;
+ projectId: string;
+ workspaceId: string;
+ scope: TaskViewScope;
+}) {
+ const ignore =
+ scope === "backlog" ? BACKLOG_IGNORED_FILTERS : NO_IGNORED_FILTERS;
+ const [search, setSearch] = useState("");
+ const descriptionSearch = useDescriptionMatches(projectId, project, search);
+ const filters = useTaskFiltersWithLabelsSupport(
+ project,
+ projectId,
+ search,
+ descriptionSearch.ids,
+ ignore,
+ );
+ const options = useTaskFilterOptions(projectId, workspaceId);
+ const tasks = useMemo(() => scopeTasks(project, scope), [project, scope]);
+ const subjects = useFilterSubjects({
+ controls: filters,
+ options,
+ columns: project?.columns,
+ tasks,
+ showStatus: scope !== "backlog",
+ });
+
+ return { search, setSearch, descriptionSearch, filters, subjects };
+}
diff --git a/apps/web/src/components/project/views/is-plain-click.ts b/apps/web/src/components/project/views/is-plain-click.ts
new file mode 100644
index 000000000..40233d88d
--- /dev/null
+++ b/apps/web/src/components/project/views/is-plain-click.ts
@@ -0,0 +1,11 @@
+import type { MouseEvent } from "react";
+
+export function isPlainClick(event: MouseEvent) {
+ return (
+ event.button === 0 &&
+ !event.metaKey &&
+ !event.ctrlKey &&
+ !event.shiftKey &&
+ !event.altKey
+ );
+}
diff --git a/apps/web/src/components/project/views/layout-switch.test.tsx b/apps/web/src/components/project/views/layout-switch.test.tsx
new file mode 100644
index 000000000..057992660
--- /dev/null
+++ b/apps/web/src/components/project/views/layout-switch.test.tsx
@@ -0,0 +1,59 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, expect, it, vi } from "vite-plus/test";
+import { LayoutSwitch } from "./layout-switch";
+
+const m = vi.hoisted(() => ({
+ navigate: vi.fn(),
+ setViewMode: vi.fn(),
+ setTaskLayout: vi.fn(),
+}));
+
+vi.mock("@tanstack/react-router", () => ({ useNavigate: () => m.navigate }));
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+vi.mock("@/store/user-preferences", () => ({
+ useUserPreferencesStore: (selector: (state: typeof m) => unknown) =>
+ selector(m),
+}));
+
+afterEach(() => {
+ cleanup();
+ vi.clearAllMocks();
+});
+
+function renderSwitch() {
+ render(
+ <LayoutSwitch
+ workspaceId="w"
+ projectId="p"
+ currentRoute="board"
+ currentView="board"
+ />,
+ );
+}
+
+it("marks the current layout as pressed", () => {
+ renderSwitch();
+ expect(
+ screen.getByRole("button", { name: "tasks:view.board" }),
+ ).toHaveAttribute("aria-pressed", "true");
+ expect(
+ screen.getByRole("button", { name: "tasks:view.gantt" }),
+ ).toHaveAttribute("aria-pressed", "false");
+});
+
+it("switches to list in place and navigates to other layouts", () => {
+ renderSwitch();
+
+ fireEvent.click(screen.getByRole("button", { name: "tasks:view.list" }));
+ expect(m.setViewMode).toHaveBeenCalledWith("list");
+ expect(m.navigate).not.toHaveBeenCalled();
+
+ fireEvent.click(screen.getByRole("button", { name: "tasks:calendar.title" }));
+ expect(m.setTaskLayout).toHaveBeenCalledWith("calendar");
+ expect(m.navigate).toHaveBeenCalledWith({
+ to: "/dashboard/workspace/$workspaceId/project/$projectId/calendar",
+ params: { workspaceId: "w", projectId: "p" },
+ });
+});
diff --git a/apps/web/src/components/project/views/layout-switch.tsx b/apps/web/src/components/project/views/layout-switch.tsx
new file mode 100644
index 000000000..70e2a028f
--- /dev/null
+++ b/apps/web/src/components/project/views/layout-switch.tsx
@@ -0,0 +1,55 @@
+import { useTranslation } from "react-i18next";
+import { cn } from "@/lib/cn";
+import {
+ type ProjectRoute,
+ type ProjectView,
+ TASK_LAYOUTS,
+} from "./project-views";
+import { useGoToProjectView } from "./use-go-to-project-view";
+
+type LayoutSwitchProps = {
+ workspaceId: string;
+ projectId: string;
+ currentRoute: ProjectRoute;
+ currentView: ProjectView;
+};
+
+export function LayoutSwitch({
+ workspaceId,
+ projectId,
+ currentRoute,
+ currentView,
+}: LayoutSwitchProps) {
+ const { t } = useTranslation();
+ const goToView = useGoToProjectView({ workspaceId, projectId, currentRoute });
+
+ return (
+ <div
+ role="group"
+ aria-label={t("tasks:display.layout")}
+ className="grid grid-cols-4 gap-1 rounded-lg border border-border/80 bg-background p-1 dark:bg-input/32"
+ >
+ {TASK_LAYOUTS.map((layout) => {
+ const Icon = layout.icon;
+ const active = layout.id === currentView;
+ return (
+ <button
+ key={layout.id}
+ type="button"
+ aria-pressed={active}
+ onClick={() => goToView(layout.id)}
+ className={cn(
+ "flex h-13 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
+ active
+ ? "bg-accent text-foreground"
+ : "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
+ )}
+ >
+ <Icon className="size-4" aria-hidden="true" />
+ {t(layout.labelKey)}
+ </button>
+ );
+ })}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/project/views/project-scope-link.tsx b/apps/web/src/components/project/views/project-scope-link.tsx
new file mode 100644
index 000000000..0f567d104
--- /dev/null
+++ b/apps/web/src/components/project/views/project-scope-link.tsx
@@ -0,0 +1,45 @@
+import type { ReactNode } from "react";
+import { cn } from "@/lib/cn";
+import { isPlainClick } from "./is-plain-click";
+import type { ProjectView } from "./project-views";
+import { useProjectViewHref } from "./use-project-view-href";
+
+type ProjectScopeLinkProps = {
+ view: ProjectView;
+ workspaceId: string;
+ projectId: string;
+ active: boolean;
+ onSelect: (view: ProjectView) => void;
+ children: ReactNode;
+};
+
+export function ProjectScopeLink({
+ view,
+ workspaceId,
+ projectId,
+ active,
+ onSelect,
+ children,
+}: ProjectScopeLinkProps) {
+ const href = useProjectViewHref(view, workspaceId, projectId);
+
+ return (
+ <a
+ href={href}
+ aria-current={active ? "page" : undefined}
+ onClick={(event) => {
+ if (!isPlainClick(event)) return;
+ event.preventDefault();
+ onSelect(view);
+ }}
+ className={cn(
+ "inline-flex h-6 items-center rounded-md px-2.5 text-[13px] font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
+ active
+ ? "bg-accent text-foreground shadow-xs/5"
+ : "text-muted-foreground hover:text-foreground",
+ )}
+ >
+ {children}
+ </a>
+ );
+}
diff --git a/apps/web/src/components/project/views/project-scope-toggle.tsx b/apps/web/src/components/project/views/project-scope-toggle.tsx
new file mode 100644
index 000000000..77619deae
--- /dev/null
+++ b/apps/web/src/components/project/views/project-scope-toggle.tsx
@@ -0,0 +1,52 @@
+import { useTranslation } from "react-i18next";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+import { ProjectScopeLink } from "./project-scope-link";
+import { type ProjectView, tasksViewFor } from "./project-views";
+
+type ProjectScopeToggleProps = {
+ workspaceId: string;
+ projectId: string;
+ currentView: ProjectView;
+ onSelect: (view: ProjectView) => void;
+};
+
+export function ProjectScopeToggle({
+ workspaceId,
+ projectId,
+ currentView,
+ onSelect,
+}: ProjectScopeToggleProps) {
+ const { t } = useTranslation();
+ const taskLayout = useUserPreferencesStore((state) => state.taskLayout);
+ const viewMode = useUserPreferencesStore((state) => state.viewMode);
+ const onBacklog = currentView === "backlog";
+ const tasksView = onBacklog
+ ? tasksViewFor(taskLayout, viewMode)
+ : currentView;
+
+ return (
+ <nav
+ aria-label={t("tasks:view.heading")}
+ className="flex h-7 shrink-0 items-center gap-0.5 rounded-lg border border-border/80 bg-background p-0.5 dark:bg-input/32"
+ >
+ <ProjectScopeLink
+ view={tasksView}
+ workspaceId={workspaceId}
+ projectId={projectId}
+ active={!onBacklog}
+ onSelect={onSelect}
+ >
+ {t("tasks:title")}
+ </ProjectScopeLink>
+ <ProjectScopeLink
+ view="backlog"
+ workspaceId={workspaceId}
+ projectId={projectId}
+ active={onBacklog}
+ onSelect={onSelect}
+ >
+ {t("tasks:view.backlog")}
+ </ProjectScopeLink>
+ </nav>
+ );
+}
diff --git a/apps/web/src/components/project/views/project-views.test.ts b/apps/web/src/components/project/views/project-views.test.ts
new file mode 100644
index 000000000..14e6323a0
--- /dev/null
+++ b/apps/web/src/components/project/views/project-views.test.ts
@@ -0,0 +1,19 @@
+import { expect, it } from "vite-plus/test";
+import {
+ resolveProjectView,
+ routeForView,
+ tasksViewFor,
+} from "./project-views";
+
+it("serves board and list from the board route", () => {
+ expect(routeForView("list")).toBe("board");
+ expect(routeForView("gantt")).toBe("gantt");
+ expect(resolveProjectView("board", "list")).toBe("list");
+ expect(resolveProjectView("calendar", "list")).toBe("calendar");
+});
+
+it("returns to the last task layout, falling back to board or list", () => {
+ expect(tasksViewFor("calendar", "list")).toBe("calendar");
+ expect(tasksViewFor("gantt", "board")).toBe("gantt");
+ expect(tasksViewFor("board", "list")).toBe("list");
+});
diff --git a/apps/web/src/components/project/views/project-views.ts b/apps/web/src/components/project/views/project-views.ts
new file mode 100644
index 000000000..e5666dd41
--- /dev/null
+++ b/apps/web/src/components/project/views/project-views.ts
@@ -0,0 +1,83 @@
+import type { LucideIcon } from "lucide-react";
+import {
+ CalendarDays,
+ ChartGantt,
+ Rows3,
+ SquareKanban,
+ SquircleDashed,
+} from "lucide-react";
+import { shortcuts } from "@/constants/shortcuts";
+import type { TaskLayout } from "@/store/user-preferences";
+
+export type ProjectView = "board" | "list" | "backlog" | "calendar" | "gantt";
+
+export type ProjectRoute = "board" | "backlog" | "calendar" | "gantt";
+
+export const PROJECT_ROUTE_PATHS = {
+ board: "/dashboard/workspace/$workspaceId/project/$projectId/board",
+ backlog: "/dashboard/workspace/$workspaceId/project/$projectId/backlog",
+ calendar: "/dashboard/workspace/$workspaceId/project/$projectId/calendar",
+ gantt: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",
+} as const;
+
+export const PROJECT_VIEWS: ReadonlyArray<{
+ id: ProjectView;
+ labelKey: string;
+ icon: LucideIcon;
+ shortcut: string;
+}> = [
+ {
+ id: "board",
+ labelKey: "tasks:view.board",
+ icon: SquareKanban,
+ shortcut: shortcuts.view.board,
+ },
+ {
+ id: "list",
+ labelKey: "tasks:view.list",
+ icon: Rows3,
+ shortcut: shortcuts.view.list,
+ },
+ {
+ id: "backlog",
+ labelKey: "tasks:view.backlog",
+ icon: SquircleDashed,
+ shortcut: shortcuts.view.backlog,
+ },
+ {
+ id: "calendar",
+ labelKey: "tasks:calendar.title",
+ icon: CalendarDays,
+ shortcut: shortcuts.view.calendar,
+ },
+ {
+ id: "gantt",
+ labelKey: "tasks:view.gantt",
+ icon: ChartGantt,
+ shortcut: shortcuts.view.gantt,
+ },
+];
+
+export function routeForView(view: ProjectView): ProjectRoute {
+ return view === "list" ? "board" : view;
+}
+
+export function resolveProjectView(
+ route: ProjectRoute,
+ viewMode: "board" | "list",
+): ProjectView {
+ return route === "board" ? viewMode : route;
+}
+
+export const TASK_LAYOUTS = PROJECT_VIEWS.filter(
+ (view) => view.id !== "backlog",
+);
+
+export function tasksViewFor(
+ taskLayout: TaskLayout,
+ viewMode: "board" | "list",
+): ProjectView {
+ return taskLayout === "calendar" || taskLayout === "gantt"
+ ? taskLayout
+ : viewMode;
+}
diff --git a/apps/web/src/components/project/views/use-go-to-project-view.ts b/apps/web/src/components/project/views/use-go-to-project-view.ts
new file mode 100644
index 000000000..b8e10be36
--- /dev/null
+++ b/apps/web/src/components/project/views/use-go-to-project-view.ts
@@ -0,0 +1,44 @@
+import { useNavigate } from "@tanstack/react-router";
+import { useCallback } from "react";
+import { useUserPreferencesStore } from "@/store/user-preferences";
+import {
+ PROJECT_ROUTE_PATHS,
+ type ProjectRoute,
+ type ProjectView,
+ routeForView,
+} from "./project-views";
+
+export function useGoToProjectView({
+ workspaceId,
+ projectId,
+ currentRoute,
+}: {
+ workspaceId: string;
+ projectId: string;
+ currentRoute: ProjectRoute;
+}) {
+ const navigate = useNavigate();
+ const setViewMode = useUserPreferencesStore((state) => state.setViewMode);
+ const setTaskLayout = useUserPreferencesStore((state) => state.setTaskLayout);
+
+ return useCallback(
+ (view: ProjectView) => {
+ if (view === "board" || view === "list") setViewMode(view);
+ if (view !== "backlog") setTaskLayout(view);
+ const route = routeForView(view);
+ if (route === currentRoute) return;
+ navigate({
+ to: PROJECT_ROUTE_PATHS[route],
+ params: { workspaceId, projectId },
+ });
+ },
+ [
+ currentRoute,
+ navigate,
+ projectId,
+ setTaskLayout,
+ setViewMode,
+ workspaceId,
+ ],
+ );
+}
diff --git a/apps/web/src/components/project/views/use-project-view-href.ts b/apps/web/src/components/project/views/use-project-view-href.ts
new file mode 100644
index 000000000..49e2b871a
--- /dev/null
+++ b/apps/web/src/components/project/views/use-project-view-href.ts
@@ -0,0 +1,18 @@
+import { useRouter } from "@tanstack/react-router";
+import {
+ PROJECT_ROUTE_PATHS,
+ type ProjectView,
+ routeForView,
+} from "./project-views";
+
+export function useProjectViewHref(
+ view: ProjectView,
+ workspaceId: string,
+ projectId: string,
+) {
+ const router = useRouter();
+ return router.buildLocation({
+ to: PROJECT_ROUTE_PATHS[routeForView(view)],
+ params: { workspaceId, projectId },
+ }).href;
+}
diff --git a/apps/web/src/components/project/views/use-project-view-shortcuts.ts b/apps/web/src/components/project/views/use-project-view-shortcuts.ts
new file mode 100644
index 000000000..d553d7bf6
--- /dev/null
+++ b/apps/web/src/components/project/views/use-project-view-shortcuts.ts
@@ -0,0 +1,22 @@
+import { useMemo } from "react";
+import { shortcuts } from "@/constants/shortcuts";
+import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
+import { PROJECT_VIEWS, type ProjectView } from "./project-views";
+
+export function useProjectViewShortcuts(
+ goToView: (view: ProjectView) => void,
+ enabled: boolean,
+) {
+ const config = useMemo(() => {
+ const viewShortcuts: Record<string, () => void> = Object.fromEntries(
+ PROJECT_VIEWS.map((view) => [view.shortcut, () => goToView(view.id)]),
+ );
+ const sequentialShortcuts: Record<
+ string,
+ Record<string, () => void>
+ > = enabled ? { [shortcuts.view.prefix]: viewShortcuts } : {};
+ return { sequentialShortcuts };
+ }, [enabled, goToView]);
+
+ useRegisterShortcuts(config);
+}
diff --git a/apps/web/src/components/public-project/copy-url-button.tsx b/apps/web/src/components/public-project/copy-url-button.tsx
index 1926d16b4..016cd7acb 100644
--- a/apps/web/src/components/public-project/copy-url-button.tsx
+++ b/apps/web/src/components/public-project/copy-url-button.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from "lucide-react";
+import { Check, Copy, LinkIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
@@ -12,7 +12,9 @@ export function CopyUrlButton() {
try {
await navigator.clipboard.writeText(window.location.href);
setCopied(true);
- toast.success(t("publicProject:copyUrl.successToast"));
+ toast.success(t("publicProject:copyUrl.successToast"), {
+ icon: LinkIcon,
+ });
setTimeout(() => setCopied(false), 2000);
} catch (error) {
console.error("Failed to copy URL:", error);
diff --git a/apps/web/src/components/public-project/kanban-view.tsx b/apps/web/src/components/public-project/kanban-view.tsx
index b9932044e..8dec373d9 100644
--- a/apps/web/src/components/public-project/kanban-view.tsx
+++ b/apps/web/src/components/public-project/kanban-view.tsx
@@ -23,7 +23,7 @@ export function PublicKanbanView({
key={column.id}
className="h-full flex-1 min-w-80 max-w-96 flex-shrink-0"
>
- <div className="flex flex-col h-full w-full min-h-0 backdrop-blur-xs rounded-lg bg-sidebar border border-border/50 transition-[background-color,box-shadow] duration-150 ease hover:bg-accent/20 hover:shadow-sm">
+ <div className="flex flex-col h-full w-full min-h-0 backdrop-blur-xs rounded-lg bg-sidebar border border-border/50">
<div className="p-2 shrink-0">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
diff --git a/apps/web/src/components/settings/api-keys/api-keys-settings.test.tsx b/apps/web/src/components/settings/api-keys/api-keys-settings.test.tsx
index d13afd8db..a73358ca9 100644
--- a/apps/web/src/components/settings/api-keys/api-keys-settings.test.tsx
+++ b/apps/web/src/components/settings/api-keys/api-keys-settings.test.tsx
@@ -150,6 +150,7 @@ describe("API keys list", () => {
await waitFor(() => expect(m.remove).toHaveBeenCalledWith("cli"));
expect(m.success).toHaveBeenCalledWith(
"settings:apiKey.table.toastDeleted",
+ { icon: expect.anything() },
);
});
});
diff --git a/apps/web/src/components/settings/api-keys/delete-api-key-dialog.tsx b/apps/web/src/components/settings/api-keys/delete-api-key-dialog.tsx
index d24f21848..b16355a02 100644
--- a/apps/web/src/components/settings/api-keys/delete-api-key-dialog.tsx
+++ b/apps/web/src/components/settings/api-keys/delete-api-key-dialog.tsx
@@ -1,3 +1,4 @@
+import { Trash2Icon } from "lucide-react";
import { useTranslation } from "react-i18next";
import type { ApiKeyItem } from "@/components/settings/api-keys/api-key-item";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -24,7 +25,9 @@ export function DeleteApiKeyDialog({
try {
await deleteApiKey(apiKey.id);
- toast.success(t("settings:apiKey.table.toastDeleted"));
+ toast.success(t("settings:apiKey.table.toastDeleted"), {
+ icon: Trash2Icon,
+ });
onOpenChange(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/settings/confirm-dialog.tsx b/apps/web/src/components/settings/confirm-dialog.tsx
index 02d54f0ac..1dfc4250d 100644
--- a/apps/web/src/components/settings/confirm-dialog.tsx
+++ b/apps/web/src/components/settings/confirm-dialog.tsx
@@ -53,6 +53,7 @@ export function ConfirmDialog({
<Button
type="button"
variant="outline"
+ size="sm"
onClick={() => onOpenChange(false)}
disabled={pending}
>
@@ -61,6 +62,7 @@ export function ConfirmDialog({
<Button
type="button"
variant={destructive ? "destructive" : "default"}
+ size="sm"
onClick={onConfirm}
disabled={pending || confirmDisabled}
>
diff --git a/apps/web/src/components/settings/labels/delete-label-dialog.tsx b/apps/web/src/components/settings/labels/delete-label-dialog.tsx
index fd52f3866..cb1b5d9e5 100644
--- a/apps/web/src/components/settings/labels/delete-label-dialog.tsx
+++ b/apps/web/src/components/settings/labels/delete-label-dialog.tsx
@@ -1,3 +1,4 @@
+import { Trash2Icon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
import type { WorkspaceLabel } from "@/components/settings/labels/workspace-label";
@@ -24,7 +25,9 @@ export function DeleteLabelDialog({
try {
await deleteLabel.mutateAsync({ id: label.id });
- toast.success(t("settings:workspaceLabels.deleteSuccess"));
+ toast.success(t("settings:workspaceLabels.deleteSuccess"), {
+ icon: Trash2Icon,
+ });
onOpenChange(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/settings/labels/label-form.tsx b/apps/web/src/components/settings/labels/label-form.tsx
index 5cf398d2a..1918785c6 100644
--- a/apps/web/src/components/settings/labels/label-form.tsx
+++ b/apps/web/src/components/settings/labels/label-form.tsx
@@ -1,3 +1,4 @@
+import { TagIcon } from "lucide-react";
import { type FormEvent, useId, useState } from "react";
import { useTranslation } from "react-i18next";
import { LabelColorSwatches } from "@/components/settings/labels/label-color-swatches";
@@ -49,10 +50,14 @@ export function LabelForm({ label, workspaceId, onClose }: LabelFormProps) {
try {
if (label) {
await updateLabel.mutateAsync({ id: label.id, name: trimmed, color });
- toast.success(t("settings:workspaceLabels.updateSuccess"));
+ toast.success(t("settings:workspaceLabels.updateSuccess"), {
+ icon: TagIcon,
+ });
} else {
await createLabel.mutateAsync({ name: trimmed, color, workspaceId });
- toast.success(t("settings:workspaceLabels.createSuccess"));
+ toast.success(t("settings:workspaceLabels.createSuccess"), {
+ icon: TagIcon,
+ });
}
onClose();
} catch (submitError) {
diff --git a/apps/web/src/components/settings/profile/avatar-row.tsx b/apps/web/src/components/settings/profile/avatar-row.tsx
index 529ad638b..8213d12bd 100644
--- a/apps/web/src/components/settings/profile/avatar-row.tsx
+++ b/apps/web/src/components/settings/profile/avatar-row.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from "lucide-react";
+import { Loader2, ImageMinusIcon, ImageUpIcon } from "lucide-react";
import { type ChangeEvent, useRef } from "react";
import { useTranslation } from "react-i18next";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -32,7 +32,9 @@ export function AvatarRow({ name, image, refetchUser }: AvatarRowProps) {
try {
await updateAvatar(file);
await refetchUser();
- toast.success(t("settings:informationPage.avatar.updateSuccess"));
+ toast.success(t("settings:informationPage.avatar.updateSuccess"), {
+ icon: ImageUpIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
@@ -46,7 +48,9 @@ export function AvatarRow({ name, image, refetchUser }: AvatarRowProps) {
try {
await removeAvatar();
await refetchUser();
- toast.success(t("settings:informationPage.avatar.removeSuccess"));
+ toast.success(t("settings:informationPage.avatar.removeSuccess"), {
+ icon: ImageMinusIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/settings/profile/delete-account-section.tsx b/apps/web/src/components/settings/profile/delete-account-section.tsx
index 0691d7502..5fcaadad6 100644
--- a/apps/web/src/components/settings/profile/delete-account-section.tsx
+++ b/apps/web/src/components/settings/profile/delete-account-section.tsx
@@ -1,5 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
+import { Trash2Icon } from "lucide-react";
import { useId, useState } from "react";
import { useTranslation } from "react-i18next";
import { isDeleteConfirmationValid } from "@/components/settings/profile/is-delete-confirmation-valid";
@@ -41,7 +42,9 @@ export function DeleteAccountSection({ email }: DeleteAccountSectionProps) {
await deleteAccount();
setOpen(false);
queryClient.clear();
- toast.success(t("settings:informationPage.deleteAccount.success"));
+ toast.success(t("settings:informationPage.deleteAccount.success"), {
+ icon: Trash2Icon,
+ });
navigate({ to: "/auth/sign-in" });
} catch (error) {
if (error instanceof Error && error.message === SESSION_TOO_OLD) {
diff --git a/apps/web/src/components/settings/project-general/move-project-row.tsx b/apps/web/src/components/settings/project-general/move-project-row.tsx
index 59f571d13..4147e4548 100644
--- a/apps/web/src/components/settings/project-general/move-project-row.tsx
+++ b/apps/web/src/components/settings/project-general/move-project-row.tsx
@@ -1,5 +1,5 @@
import { useNavigate } from "@tanstack/react-router";
-import { ArrowRight } from "lucide-react";
+import { ArrowRight, FolderInputIcon } from "lucide-react";
import { useId, useState } from "react";
import { useTranslation } from "react-i18next";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -69,6 +69,7 @@ export function MoveProjectRow({
taskCount: moved.unassignedTaskCount,
})
: t("settings:projectGeneral.toastMoved"),
+ { icon: FolderInputIcon },
);
handleOpenChange(false);
diff --git a/apps/web/src/components/settings/project-general/project-danger-zone.tsx b/apps/web/src/components/settings/project-general/project-danger-zone.tsx
index 4782ccb25..f99502e06 100644
--- a/apps/web/src/components/settings/project-general/project-danger-zone.tsx
+++ b/apps/web/src/components/settings/project-general/project-danger-zone.tsx
@@ -1,5 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
+import { Trash2Icon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -34,7 +35,9 @@ export function ProjectDangerZone({
try {
await deleteProject({ id: project.id });
- toast.success(t("settings:projectGeneral.toastDeleted"));
+ toast.success(t("settings:projectGeneral.toastDeleted"), {
+ icon: Trash2Icon,
+ });
setOpen(false);
await queryClient.invalidateQueries({ queryKey: ["projects"] });
diff --git a/apps/web/src/components/settings/project-visibility/use-toggle-project-public.ts b/apps/web/src/components/settings/project-visibility/use-toggle-project-public.ts
index 930be7622..5d6640ca7 100644
--- a/apps/web/src/components/settings/project-visibility/use-toggle-project-public.ts
+++ b/apps/web/src/components/settings/project-visibility/use-toggle-project-public.ts
@@ -1,4 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
+import { GlobeIcon } from "lucide-react";
import { useCallback, useRef } from "react";
import { useTranslation } from "react-i18next";
import useUpdateProject from "@/hooks/mutations/project/use-update-project";
@@ -34,7 +35,9 @@ export function useToggleProjectPublic(
queryKey: ["projects", workspaceId, project.id],
}),
]);
- toast.success(t("settings:projectVisibility.toastUpdated"));
+ toast.success(t("settings:projectVisibility.toastUpdated"), {
+ icon: GlobeIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/settings/workspace-general/transfer-ownership-row.tsx b/apps/web/src/components/settings/workspace-general/transfer-ownership-row.tsx
index 44f39188f..7ef8c1823 100644
--- a/apps/web/src/components/settings/workspace-general/transfer-ownership-row.tsx
+++ b/apps/web/src/components/settings/workspace-general/transfer-ownership-row.tsx
@@ -1,3 +1,4 @@
+import { CrownIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -53,6 +54,7 @@ export function TransferOwnershipRow({
});
toast.success(
t("settings:workspaceGeneral.transferOwnership.toastSuccess"),
+ { icon: CrownIcon },
);
setOpen(false);
setSelectedId("");
diff --git a/apps/web/src/components/settings/workspace-general/workspace-danger-zone.tsx b/apps/web/src/components/settings/workspace-general/workspace-danger-zone.tsx
index 88e10d0b3..78fc8d2ef 100644
--- a/apps/web/src/components/settings/workspace-general/workspace-danger-zone.tsx
+++ b/apps/web/src/components/settings/workspace-general/workspace-danger-zone.tsx
@@ -1,5 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
+import { Trash2Icon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { ConfirmDialog } from "@/components/settings/confirm-dialog";
@@ -30,7 +31,9 @@ export function WorkspaceDangerZone({
try {
await deleteWorkspace({ workspaceId });
- toast.success(t("settings:workspaceGeneral.toastDeleted"));
+ toast.success(t("settings:workspaceGeneral.toastDeleted"), {
+ icon: Trash2Icon,
+ });
setOpen(false);
await queryClient.invalidateQueries({ queryKey: ["workspaces"] });
diff --git a/apps/web/src/components/shared/modals/archive-tasks-modal.tsx b/apps/web/src/components/shared/modals/archive-tasks-modal.tsx
index 40877b8b2..0472b8b0b 100644
--- a/apps/web/src/components/shared/modals/archive-tasks-modal.tsx
+++ b/apps/web/src/components/shared/modals/archive-tasks-modal.tsx
@@ -1,13 +1,6 @@
-import { Archive } from "lucide-react";
-import { Button } from "@/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog";
+import { useState } from "react";
+import { useTranslation } from "react-i18next";
+import { ConfirmDialog } from "@/components/settings/confirm-dialog";
type ArchiveTasksModalProps = {
open: boolean;
@@ -24,58 +17,22 @@ export function ArchiveTasksModal({
onConfirm,
taskCount,
}: ArchiveTasksModalProps) {
- const isSingular = taskCount === 1;
- const taskLabel = isSingular ? "completed task" : "completed tasks";
- const allLabel = isSingular ? "" : "all ";
+ const { t } = useTranslation();
+ const [shownCount, setShownCount] = useState(taskCount);
+ if (open && taskCount !== shownCount) setShownCount(taskCount);
return (
- <Dialog open={open} onOpenChange={onClose}>
- <DialogContent
- className="max-w-md p-0 overflow-hidden border-border bg-card shadow-2xl"
- showCloseButton={false}
- >
- <div className="p-8">
- <div className="flex flex-col gap-6">
- <DialogHeader className="flex flex-row items-center gap-4 text-left space-y-0 p-0">
- <div className="flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-primary/10 border border-primary/20">
- <Archive className="h-6 w-6 text-primary" />
- </div>
- <DialogTitle className="text-2xl font-bold tracking-tight text-foreground leading-tight">
- Archive Tasks
- </DialogTitle>
- </DialogHeader>
-
- <DialogDescription className="text-base text-muted-foreground leading-relaxed">
- Are you sure you want to archive {allLabel}
- <span className="font-bold text-foreground mx-1">
- {taskCount}
- </span>
- {taskLabel}? This will move them from the active board to your
- archive.
- </DialogDescription>
- </div>
- </div>
-
- <DialogFooter className="border-t border-border bg-muted/30 px-8 py-5 flex flex-row justify-end gap-3">
- <Button
- type="button"
- variant="ghost"
- onClick={onClose}
- className="text-muted-foreground hover:text-foreground hover:bg-accent min-w-[80px]"
- >
- Cancel
- </Button>
- <Button
- type="button"
- variant="default"
- disabled={disabled}
- onClick={onConfirm}
- className="shadow-sm min-w-[100px] font-medium"
- >
- Confirm
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
+ <ConfirmDialog
+ open={open}
+ onOpenChange={(next) => {
+ if (!next) onClose();
+ }}
+ title={t("tasks:archive.confirmTitle", { count: shownCount })}
+ description={t("tasks:archive.confirmDescription")}
+ confirmLabel={t("tasks:actions.archive")}
+ destructive={false}
+ confirmDisabled={disabled}
+ onConfirm={onConfirm}
+ />
);
}
diff --git a/apps/web/src/components/shared/modals/create-project-modal.tsx b/apps/web/src/components/shared/modals/create-project-modal.tsx
index 271ef8deb..50c48dec7 100644
--- a/apps/web/src/components/shared/modals/create-project-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-project-modal.tsx
@@ -1,5 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { Link, useNavigate } from "@tanstack/react-router";
+import { SquarePlusIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -74,7 +75,7 @@ function CreateProjectModal({ open, onClose }: CreateProjectModalProps) {
try {
const { id } = await mutateAsync();
- toast.success("Project created successfully");
+ toast.success("Project created successfully", { icon: SquarePlusIcon });
await queryClient.invalidateQueries({ queryKey: ["projects"] });
navigate({
diff --git a/apps/web/src/components/shared/modals/create-task-modal.test.tsx b/apps/web/src/components/shared/modals/create-task-modal.test.tsx
index 77f82bf81..5daa1e53f 100644
--- a/apps/web/src/components/shared/modals/create-task-modal.test.tsx
+++ b/apps/web/src/components/shared/modals/create-task-modal.test.tsx
@@ -53,6 +53,7 @@ let projectColumns:
let storedProject: { id: string; columns: unknown[] } | null = null;
let uploadAsset: ((file: File) => Promise<unknown>) | undefined;
const stageUpload = vi.fn();
+let customFieldDefs: unknown[] | undefined;
vi.mock("@/lib/upload-draft-asset", () => ({
uploadDraftAsset: (...args: unknown[]) => stageUpload(...args),
}));
@@ -64,6 +65,7 @@ beforeEach(() => {
{ id: "project-2", name: "Beta", slug: "bet" },
];
storedProject = null;
+ customFieldDefs = undefined;
columnsError = false;
columnsFetching = false;
refetchColumns.mockImplementation(async () => ({
@@ -169,6 +171,13 @@ vi.mock("@/hooks/queries/column/use-get-columns", () => ({
}),
}));
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-custom-fields-by-project",
+ () => ({
+ default: () => ({ data: customFieldDefs }),
+ }),
+);
+
vi.mock("@/hooks/queries/project/use-get-projects", () => ({
default: () => ({ data: projects }),
}));
@@ -670,3 +679,67 @@ describe("CreateTaskModal context isolation", () => {
expect(setProject).not.toHaveBeenCalled();
});
});
+
+const customField = (
+ id: string,
+ type: string,
+ required: boolean,
+ defaultValue: string | null = null,
+) => ({
+ id,
+ projectId: "project-2",
+ name: id,
+ type,
+ required,
+ defaultValue,
+ options: null,
+ position: 0,
+ createdAt: "",
+ updatedAt: "",
+});
+
+describe("CreateTaskModal custom fields", () => {
+ it("flags empty required fields instead of creating, then sends the filled values", async () => {
+ customFieldDefs = [
+ customField("customer", "text", true),
+ customField("billable", "boolean", true, "false"),
+ customField("points", "number", false),
+ ];
+ render(<CreateTaskModal open onClose={vi.fn()} projectId="project-2" />, {
+ wrapper: createWrapper(),
+ });
+ enterTitle();
+ submit();
+
+ expect(
+ await screen.findByText("tasks:customFields.missingRequired"),
+ ).toBeInTheDocument();
+ expect(createTask).not.toHaveBeenCalled();
+ const customerChip = document.querySelector(
+ '[data-custom-field="customer"]',
+ ) as HTMLElement;
+ expect(document.activeElement).toBe(customerChip);
+
+ fireEvent.click(customerChip);
+ const input = await screen.findByLabelText("customer");
+ fireEvent.change(input, { target: { value: "Acme Corp" } });
+ fireEvent.keyDown(input, { key: "Enter" });
+
+ await vi.waitFor(() =>
+ expect(
+ screen.queryByText("tasks:customFields.missingRequired"),
+ ).not.toBeInTheDocument(),
+ );
+ submit();
+ await vi.waitFor(() =>
+ expect(createTask).toHaveBeenCalledWith(
+ expect.objectContaining({
+ customFields: [
+ { fieldId: "customer", value: "Acme Corp" },
+ { fieldId: "billable", value: "false" },
+ ],
+ }),
+ ),
+ );
+ });
+});
diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsx
index a37f3d6ab..4a8b1270c 100644
--- a/apps/web/src/components/shared/modals/create-task-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx
@@ -2,6 +2,7 @@ import { useLocation, useParams } from "@tanstack/react-router";
import { produce } from "immer";
import {
CalendarIcon,
+ CircleAlert,
Check,
FolderKanban,
Plus,
@@ -9,16 +10,18 @@ import {
Tag,
UserIcon,
X,
+ TagIcon,
+ SquarePlusIcon,
} from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
-import TaskDescriptionEditor from "@/components/task/task-description-editor";
+import { CustomFieldChip } from "@/components/custom-fields/custom-field-chip";
import {
- Accordion,
- AccordionContent,
- AccordionItem,
- AccordionTrigger,
-} from "@/components/ui/accordion";
+ findMissingRequiredFields,
+ isCustomFieldValueEmpty,
+} from "@/components/custom-fields/missing-required-fields";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import TaskDescriptionEditor from "@/components/task/task-description-editor";
import {
AlertDialog,
AlertDialogClose,
@@ -38,16 +41,6 @@ import {
} from "@/components/ui/breadcrumb";
import { Button } from "@/components/ui/button";
import { Calendar } from "@/components/ui/calendar";
-import {
- Combobox,
- ComboboxChips,
- ComboboxChipsInput,
- ComboboxEmpty,
- ComboboxItem,
- ComboboxList,
- ComboboxPopup,
- ComboboxValue,
-} from "@/components/ui/combobox";
import {
Dialog,
DialogContent,
@@ -56,25 +49,11 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
-import { Input } from "@/components/ui/input";
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover";
-import {
- HoverCard,
- HoverCardContent,
- HoverCardTrigger,
-} from "@/components/ui/preview-card";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-import { Switch } from "@/components/ui/switch";
import { useGetColumns } from "@/hooks/queries/column/use-get-columns";
import { getColumnIcon } from "@/lib/column";
import { getStatusDisplayLabel } from "@/lib/i18n/domain";
@@ -105,6 +84,7 @@ type CreateTaskModalProps = {
onClose: () => void;
status?: string;
projectId?: string;
+ instant?: boolean;
};
type Priority = "no-priority" | "low" | "medium" | "high" | "urgent";
@@ -131,27 +111,6 @@ type Label = {
type PopoverStep = "select" | "color";
-type CustomFieldType =
- | "text"
- | "number"
- | "date"
- | "dropdown"
- | "boolean"
- | "multiselect";
-
-type CustomFieldDefinition = {
- id: string;
- projectId: string;
- name: string;
- type: CustomFieldType;
- required: boolean;
- defaultValue: string | null;
- options: string[] | null;
- position: number;
- createdAt: string;
- updatedAt: string;
-};
-
function normalizeTask(
task: Partial<Task> &
Pick<Task, "id" | "title" | "status" | "projectId" | "createdAt">,
@@ -178,6 +137,7 @@ function CreateTaskModalContent({
onClose,
status,
projectId,
+ instant = false,
}: CreateTaskModalProps) {
const { t } = useTranslation();
const { project, setProject } = useProjectStore();
@@ -346,6 +306,12 @@ function CreateTaskModalContent({
Record<string, string>
>({});
+ const [showMissingRequired, setShowMissingRequired] = useState(false);
+ const missingRequired = findMissingRequiredFields(
+ customFields,
+ customFieldValues,
+ );
+
const handleCustomFieldChange = (fieldId: string, value: string) => {
setCustomFieldValues((prev) => ({
...prev,
@@ -535,6 +501,16 @@ function CreateTaskModalContent({
)
return;
+ if (missingRequired.length > 0) {
+ setShowMissingRequired(true);
+ e.currentTarget
+ .querySelector<HTMLElement>(
+ `[data-custom-field="${missingRequired[0].id}"]`,
+ )
+ ?.focus();
+ return;
+ }
+
submittingRef.current = true;
setIsSubmitting(true);
try {
@@ -560,11 +536,17 @@ function CreateTaskModalContent({
draftAssetIds: stagedAssetsRef.current.filter((id) =>
description.includes(`/asset/${id}`),
),
- customFields: Object.entries(customFieldValues)
- .filter(([_, value]) => value.trim() !== "")
- .map(([fieldId, value]) => ({
- fieldId,
- value,
+ customFields: customFields
+ .filter(
+ (field) =>
+ !isCustomFieldValueEmpty(
+ field.type,
+ customFieldValues[field.id] ?? "",
+ ),
+ )
+ .map((field) => ({
+ fieldId: field.id,
+ value: customFieldValues[field.id] ?? "",
})),
}),
);
@@ -585,7 +567,9 @@ function CreateTaskModalContent({
stagedAssetsRef.current = [];
if (!activeRef.current) return;
syncTaskIntoProject(savedTask);
- toast.success(t("common:modals.createTask.successCreated"));
+ toast.success(t("common:modals.createTask.successCreated"), {
+ icon: SquarePlusIcon,
+ });
if (createMore) {
setTitle("");
@@ -604,6 +588,7 @@ function CreateTaskModalContent({
didSubmitRef.current = false;
setCustomFieldValues(buildDefaultCustomFieldValues());
+ setShowMissingRequired(false);
} else {
closeAndReset();
}
@@ -728,7 +713,9 @@ function CreateTaskModalContent({
};
setLabels([...labels, newLabel]);
- toast.success(t("common:modals.createTask.labelCreated"));
+ toast.success(t("common:modals.createTask.labelCreated"), {
+ icon: TagIcon,
+ });
handleLabelsClose();
} catch (error) {
toast.error(
@@ -743,242 +730,6 @@ function CreateTaskModalContent({
setLabels(labels.filter((l) => l.name !== labelName));
};
- const renderCustomFieldInput = (field: CustomFieldDefinition) => {
- const value = customFieldValues[field.id] ?? "";
-
- switch (field.type) {
- case "dropdown": {
- const options = field.options || [];
-
- return (
- <Select
- value={value}
- onValueChange={(val) =>
- handleCustomFieldChange(field.id, val as string)
- }
- >
- <SelectTrigger className="h-9 w-full text-sm bg-background">
- <SelectValue
- placeholder={t(
- "common:modals.createTask.selectOptionPlaceholder",
- "Select an option",
- )}
- />
- </SelectTrigger>
- <SelectContent>
- {options.map((opt) => (
- <SelectItem key={opt} value={opt}>
- <span className="block max-w-50 truncate">{opt}</span>
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- );
- }
-
- case "date":
- return (
- <Input
- type="date"
- value={value}
- onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}
- required={field.required}
- className="h-9 w-full text-base sm:text-sm bg-background"
- />
- );
-
- case "number":
- return (
- <Input
- type="number"
- value={value}
- onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}
- placeholder={field.defaultValue || ""}
- required={field.required}
- className="h-9 w-full text-base sm:text-sm bg-background"
- />
- );
-
- case "boolean":
- return (
- <div className="flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 text-sm">
- <span className="text-sm text-foreground capitalize">{value}</span>
-
- <Switch
- checked={value === "true"}
- onCheckedChange={(checked) =>
- handleCustomFieldChange(field.id, checked ? "true" : "false")
- }
- />
- </div>
- );
-
- case "multiselect": {
- const selectedValues: string[] = (() => {
- if (!value) return [];
- try {
- const parsed = JSON.parse(value);
- return Array.isArray(parsed) ? parsed : [];
- } catch {
- return value.split(",").filter((v) => v.length > 0);
- }
- })();
- const MAX_VISIBLE_CHIPS = 3;
-
- return (
- <Combobox
- multiple={true}
- autoHighlight
- items={Array.from(new Set(field.options ?? []))}
- value={selectedValues}
- onValueChange={(val) =>
- handleCustomFieldChange(field.id, JSON.stringify(val))
- }
- >
- <ComboboxChips className="h-9 w-full flex-[2_0_0] select-none cursor-default text-sm disabled:opacity-50">
- <ComboboxValue>
- {(values: string[]) => {
- const visibleChips = values.slice(0, MAX_VISIBLE_CHIPS);
- const hiddenCount = values.length - MAX_VISIBLE_CHIPS;
-
- return (
- <>
- {visibleChips.map((value) => (
- <div
- key={value}
- className={cn(
- "min-w-0 max-w-full flex-1 shrink basis-0",
- "inline-flex items-center overflow-hidden",
- "rounded-md bg-secondary px-1.5 py-0.5",
- "select-none cursor-default",
- )}
- >
- <span className="block min-w-0 max-w-full truncate text-xs text-secondary-foreground">
- {value}
- </span>
- </div>
- ))}
- {values.length > MAX_VISIBLE_CHIPS && (
- <HoverCard>
- <HoverCardTrigger asChild>
- <button
- type="button"
- className="shrink-0 inline-flex items-center gap-1 text-xs font-medium cursor-pointer text-foreground/50 pe-1"
- onClick={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- onPointerDown={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- >
- {t("settings:customFields.moreOptions", {
- hiddenCount,
- })}
- </button>
- </HoverCardTrigger>
-
- <HoverCardContent
- side="top"
- align="start"
- className="flex max-w-xs flex-wrap gap-1"
- >
- <div className="space-y-1.5">
- <div className="text-xs font-medium text-muted-foreground">
- {t(
- "settings:customFields.availableOptions",
- "Available options",
- )}
- </div>
-
- <div className="flex min-w-0 max-h-48 flex-wrap gap-x-1.5 gap-y-1.5 overflow-y-auto overflow-x-hidden">
- {values
- .slice(MAX_VISIBLE_CHIPS)
- .map((value) => (
- <div
- key={value}
- className={cn(
- "min-w-0 max-w-full",
- "inline-flex items-center overflow-hidden",
- "rounded bg-secondary px-1.5 py-0.5",
- "select-none cursor-default",
- )}
- >
- <span className="block min-w-0 max-w-[13rem] truncate text-xs">
- {value}
- </span>
- </div>
- ))}
- </div>
- </div>
- </HoverCardContent>
- </HoverCard>
- )}
-
- <ComboboxChipsInput
- className={cn(
- "min-w-0 flex-1 caret-transparent",
- values.length > 0 && "hidden",
- "pointer-events-none",
- "placeholder:text-foreground/50",
- "text-transparent",
- )}
- placeholder={
- new Set(field.options ?? []).size === 0
- ? t(
- "settings:customFields.noOptionsPlaceholder",
- "No options",
- )
- : values.length === 0
- ? t(
- "settings:customFields.defaultValuePlaceholder",
- "Default value",
- )
- : undefined
- }
- />
- </>
- );
- }}
- </ComboboxValue>
- </ComboboxChips>
-
- <ComboboxPopup>
- <ComboboxEmpty>
- {t("settings:customFields.noOptionsPlaceholder", "No options")}
- </ComboboxEmpty>
-
- <ComboboxList>
- {(option: string) => (
- <ComboboxItem
- className="min-w-0 max-w-full"
- key={`field_option_${option}`}
- value={option}
- >
- <span className="block max-w-50 truncate">{option}</span>
- </ComboboxItem>
- )}
- </ComboboxList>
- </ComboboxPopup>
- </Combobox>
- );
- }
-
- default:
- return (
- <Input
- type="text"
- value={value}
- onChange={(e) => handleCustomFieldChange(field.id, e.target.value)}
- placeholder={field.defaultValue || ""}
- required={field.required}
- className="h-9 w-full text-base sm:text-sm bg-background"
- />
- );
- }
- };
-
// Defense-in-depth: if the user lacks task-create permission, don't render
// the modal even if a stale trigger somehow opens it (e.g., keyboard
// shortcut after the capability has changed).
@@ -989,6 +740,7 @@ function CreateTaskModalContent({
<DialogContent
className="kaneo-create-task-modal max-w-2xl max-h-[90vh] flex flex-col overflow-hidden"
showCloseButton={false}
+ instant={instant}
>
<DialogHeader className="flex-shrink-0">
<DialogTitle asChild>
@@ -1047,64 +799,6 @@ function CreateTaskModalContent({
/>
</div>
- {customFields.length > 0 && (
- <div className="mt-2">
- <Accordion
- key={resolvedProjectId}
- className="w-full"
- defaultValue={
- customFields.some((field) => field.required)
- ? ["custom-fields"]
- : []
- }
- >
- <AccordionItem
- value="custom-fields"
- className="rounded-lg border border-border bg-sidebar/30 px-4"
- >
- <AccordionTrigger className="py-4 hover:no-underline">
- <div className="flex items-center gap-2 text-left">
- <span className="text-sm font-semibold text-foreground">
- {t("tasks:common.customFields")}
- </span>
- <span className="rounded bg-muted px-2 py-0.5 text-xs text-muted-foreground">
- {customFields.length}
- </span>
- </div>
- </AccordionTrigger>
-
- <AccordionContent className="pb-4">
- <div className="grid gap-4 sm:grid-cols-2">
- <div className="space-y-4 pt-4 border-t border-border sm:col-span-2">
- <div className="grid gap-4 sm:grid-cols-2">
- {customFields.map((field) => (
- <div
- key={`custom-field_${field.id}`}
- className="space-y-1.5"
- >
- <label
- htmlFor={`custom-field_${field.id}`}
- className="text-xs font-medium text-muted-foreground flex items-center gap-1"
- >
- {field.name}
- {field.required && (
- <span className="text-destructive">*</span>
- )}
- </label>
- <div className="w-full">
- {renderCustomFieldInput(field)}
- </div>
- </div>
- ))}
- </div>
- </div>
- </div>
- </AccordionContent>
- </AccordionItem>
- </Accordion>
- </div>
- )}
-
{labels.length > 0 && (
<div className="flex flex-wrap mb-2">
{labels.map((label) => (
@@ -1531,6 +1225,24 @@ function CreateTaskModalContent({
)}
</PopoverContent>
</Popover>
+ {customFields.length > 0 && (
+ <div className="flex w-full flex-wrap items-center gap-2">
+ {customFields.map((field) => (
+ <CustomFieldChip
+ key={field.id}
+ field={field}
+ value={customFieldValues[field.id] ?? ""}
+ onChange={(value) =>
+ handleCustomFieldChange(field.id, value)
+ }
+ invalid={
+ showMissingRequired &&
+ missingRequired.some(({ id }) => id === field.id)
+ }
+ />
+ ))}
+ </div>
+ )}
</div>
</div>
@@ -1563,6 +1275,17 @@ function CreateTaskModalContent({
</label>
</div>
+ {showMissingRequired && missingRequired.length > 0 && (
+ <p
+ role="alert"
+ className="flex items-center gap-1.5 text-destructive-foreground text-xs"
+ >
+ <CircleAlert aria-hidden="true" className="size-3.5" />
+ {t("tasks:customFields.missingRequired", {
+ count: missingRequired.length,
+ })}
+ </p>
+ )}
<Button
type="button"
onClick={() => handleOpenChange(false)}
diff --git a/apps/web/src/components/shared/modals/create-workspace-modal.tsx b/apps/web/src/components/shared/modals/create-workspace-modal.tsx
index a934c5e46..47b48c02f 100644
--- a/apps/web/src/components/shared/modals/create-workspace-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-workspace-modal.tsx
@@ -1,5 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
+import { SquarePlusIcon } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -56,7 +57,9 @@ function CreateWorkspaceModal({ open, onClose }: CreateWorkspaceModalProps) {
try {
const createdWorkspace = await mutateAsync({ name, description });
- toast.success(t("common:modals.createWorkspace.successToast"));
+ toast.success(t("common:modals.createWorkspace.successToast"), {
+ icon: SquarePlusIcon,
+ });
await queryClient.invalidateQueries({ queryKey: ["workspaces"] });
await authClient.organization.setActive({
diff --git a/apps/web/src/components/task/custom-fields/task-custom-field-chips.tsx b/apps/web/src/components/task/custom-fields/task-custom-field-chips.tsx
new file mode 100644
index 000000000..c4fb07b4a
--- /dev/null
+++ b/apps/web/src/components/task/custom-fields/task-custom-field-chips.tsx
@@ -0,0 +1,33 @@
+import { CustomFieldChip } from "@/components/custom-fields/custom-field-chip";
+import { useTaskCustomFields } from "./use-task-custom-fields";
+
+type TaskCustomFieldChipsProps = {
+ taskId: string;
+ projectId: string;
+};
+
+export function TaskCustomFieldChips({
+ taskId,
+ projectId,
+}: TaskCustomFieldChipsProps) {
+ const { fields, values, save, canEdit } = useTaskCustomFields(
+ taskId,
+ projectId,
+ );
+
+ if (fields.length === 0) return null;
+
+ return (
+ <div className="flex w-full flex-wrap items-center gap-1.5">
+ {fields.map((field) => (
+ <CustomFieldChip
+ key={field.id}
+ field={field}
+ value={values[field.id] ?? ""}
+ onChange={(value) => void save(field, value)}
+ disabled={!canEdit}
+ />
+ ))}
+ </div>
+ );
+}
diff --git a/apps/web/src/components/task/custom-fields/task-custom-field-rows.tsx b/apps/web/src/components/task/custom-fields/task-custom-field-rows.tsx
new file mode 100644
index 000000000..544cf7a9b
--- /dev/null
+++ b/apps/web/src/components/task/custom-fields/task-custom-field-rows.tsx
@@ -0,0 +1,43 @@
+import { useTranslation } from "react-i18next";
+import { CustomFieldRow } from "@/components/custom-fields/custom-field-row";
+import { useTaskCustomFields } from "./use-task-custom-fields";
+
+type TaskCustomFieldRowsProps = {
+ taskId: string;
+ projectId: string;
+};
+
+export function TaskCustomFieldRows({
+ taskId,
+ projectId,
+}: TaskCustomFieldRowsProps) {
+ const { t } = useTranslation();
+ const { fields, values, save, canEdit } = useTaskCustomFields(
+ taskId,
+ projectId,
+ );
+
+ if (fields.length === 0) return null;
+
+ return (
+ <section
+ aria-label={t("tasks:customFields.fields")}
+ className="flex flex-col gap-1"
+ >
+ <span className="px-2 font-medium text-foreground/70 text-xs">
+ {t("tasks:customFields.fields")}
+ </span>
+ <div className="flex flex-col gap-1">
+ {fields.map((field) => (
+ <CustomFieldRow
+ key={field.id}
+ field={field}
+ value={values[field.id] ?? ""}
+ onChange={(value) => void save(field, value)}
+ disabled={!canEdit}
+ />
+ ))}
+ </div>
+ </section>
+ );
+}
diff --git a/apps/web/src/components/task/custom-fields/use-task-custom-fields.test.ts b/apps/web/src/components/task/custom-fields/use-task-custom-fields.test.ts
new file mode 100644
index 000000000..9dbb972ae
--- /dev/null
+++ b/apps/web/src/components/task/custom-fields/use-task-custom-fields.test.ts
@@ -0,0 +1,83 @@
+import { act, renderHook } from "@testing-library/react";
+import { afterEach, describe, expect, it, vi } from "vite-plus/test";
+import { useTaskCustomFields } from "./use-task-custom-fields";
+
+const mutateAsync = vi.fn();
+const toastError = vi.fn();
+const field = {
+ id: "customer",
+ projectId: "project-1",
+ name: "Customer",
+ type: "text",
+ required: false,
+ defaultValue: null,
+ options: null,
+ position: 0,
+ createdAt: "",
+ updatedAt: "",
+};
+const stored = [{ fieldId: "customer", value: "Acme" }];
+
+vi.mock("react-i18next", () => ({
+ useTranslation: () => ({ t: (key: string) => key }),
+}));
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-custom-fields-by-project",
+ () => ({
+ default: () => ({ data: [field] }),
+ }),
+);
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-custom-field-values-by-task",
+ () => ({ default: () => ({ data: stored }) }),
+);
+vi.mock("@/hooks/mutations/custom-field/use-set-custom-field-value", () => ({
+ default: () => ({ mutateAsync }),
+}));
+vi.mock("@/hooks/use-workspace-permission", () => ({
+ useWorkspacePermission: () => ({ canUpdateTasks: () => true }),
+}));
+vi.mock("@/lib/toast", () => ({
+ toast: { error: (...args: unknown[]) => toastError(...args) },
+}));
+
+afterEach(() => {
+ vi.clearAllMocks();
+});
+
+describe("useTaskCustomFields", () => {
+ it("shows the new value while saving", async () => {
+ let finish: () => void = () => {};
+ mutateAsync.mockReturnValue(
+ new Promise<void>((resolve) => {
+ finish = resolve;
+ }),
+ );
+ const { result } = renderHook(() =>
+ useTaskCustomFields("task-1", "project-1"),
+ );
+ act(() => {
+ void result.current.save(result.current.fields[0], "Globex");
+ });
+ expect(result.current.values.customer).toBe("Globex");
+ expect(mutateAsync).toHaveBeenCalledWith({
+ taskId: "task-1",
+ fieldId: "customer",
+ value: "Globex",
+ projectId: "project-1",
+ });
+ await act(async () => finish());
+ });
+
+ it("rolls back and reports when the save fails", async () => {
+ mutateAsync.mockRejectedValue(new Error("This custom field is required"));
+ const { result } = renderHook(() =>
+ useTaskCustomFields("task-1", "project-1"),
+ );
+ await act(async () => {
+ await result.current.save(result.current.fields[0], "");
+ });
+ expect(result.current.values.customer).toBe("Acme");
+ expect(toastError).toHaveBeenCalledWith("This custom field is required");
+ });
+});
diff --git a/apps/web/src/components/task/custom-fields/use-task-custom-fields.ts b/apps/web/src/components/task/custom-fields/use-task-custom-fields.ts
new file mode 100644
index 000000000..82fdc281f
--- /dev/null
+++ b/apps/web/src/components/task/custom-fields/use-task-custom-fields.ts
@@ -0,0 +1,77 @@
+import { useMemo, useState } from "react";
+import { useTranslation } from "react-i18next";
+import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import useSetCustomFieldValue from "@/hooks/mutations/custom-field/use-set-custom-field-value";
+import useGetCustomFieldValuesByTask from "@/hooks/queries/custom-field/use-get-custom-field-values-by-task";
+import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
+import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
+import { toast } from "@/lib/toast";
+
+type StoredValue = { fieldId: string; value: string | null };
+
+const NO_FIELDS: CustomFieldDefinition[] = [];
+const NO_VALUES: StoredValue[] = [];
+
+export function useTaskCustomFields(taskId: string, projectId: string) {
+ const { t } = useTranslation();
+ const { data: fields = NO_FIELDS } = useGetCustomFieldsByProject(
+ projectId,
+ ) as {
+ data: CustomFieldDefinition[] | undefined;
+ };
+ const { data: stored = NO_VALUES } = useGetCustomFieldValuesByTask(
+ taskId,
+ ) as {
+ data: StoredValue[] | undefined;
+ };
+ const { mutateAsync: setCustomFieldValue } = useSetCustomFieldValue();
+ const { canUpdateTasks } = useWorkspacePermission();
+ const [pending, setPending] = useState<Record<string, string>>({});
+ const [seenStored, setSeenStored] = useState(stored);
+
+ const storedValues = useMemo(
+ () =>
+ Object.fromEntries(
+ stored.map((entry) => [entry.fieldId, entry.value ?? ""]),
+ ) as Record<string, string>,
+ [stored],
+ );
+
+ if (stored !== seenStored) {
+ setSeenStored(stored);
+ setPending((current) =>
+ Object.fromEntries(
+ Object.entries(current).filter(
+ ([fieldId, value]) => storedValues[fieldId] !== value,
+ ),
+ ),
+ );
+ }
+
+ const values = useMemo(
+ () => ({ ...storedValues, ...pending }),
+ [storedValues, pending],
+ );
+
+ const save = async (field: CustomFieldDefinition, value: string) => {
+ if (!taskId || value === (values[field.id] ?? "")) return;
+ setPending((current) => ({ ...current, [field.id]: value }));
+ try {
+ await setCustomFieldValue({
+ taskId,
+ fieldId: field.id,
+ value,
+ projectId,
+ });
+ } catch (error) {
+ setPending(({ [field.id]: _, ...rest }) => rest);
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : t("tasks:customFields.saveError", { field: field.name }),
+ );
+ }
+ };
+
+ return { fields, values, save, canEdit: canUpdateTasks() };
+}
diff --git a/apps/web/src/components/task/subtask-row.tsx b/apps/web/src/components/task/subtask-row.tsx
index 7c5b977e2..03ecc9f51 100644
--- a/apps/web/src/components/task/subtask-row.tsx
+++ b/apps/web/src/components/task/subtask-row.tsx
@@ -1,5 +1,6 @@
import { motion, useReducedMotion } from "framer-motion";
import { useTranslation } from "react-i18next";
+import { EASE_OUT } from "@/lib/motion";
import TaskCardContextMenuContent from "@/components/kanban-board/task-card-context-menu/task-card-context-menu-content";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Checkbox } from "@/components/ui/checkbox";
@@ -50,17 +51,11 @@ export default function SubtaskRow({
return (
<motion.div
- layout
- initial={
- reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0, scale: 0.98 }
- }
- animate={
- reduceMotion ? { opacity: 1 } : { opacity: 1, height: "auto", scale: 1 }
- }
- exit={
- reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0, scale: 0.98 }
- }
- transition={{ type: "spring", duration: 0.4, bounce: 0.15 }}
+ layout={!reduceMotion}
+ initial={reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0 }}
+ animate={reduceMotion ? { opacity: 1 } : { opacity: 1, height: "auto" }}
+ exit={reduceMotion ? { opacity: 0 } : { opacity: 0, height: 0 }}
+ transition={{ duration: 0.2, ease: EASE_OUT }}
>
<ContextMenu>
<ContextMenuTrigger asChild>
diff --git a/apps/web/src/components/task/task-delete-button.test.tsx b/apps/web/src/components/task/task-delete-button.test.tsx
index cba304da8..254d11c42 100644
--- a/apps/web/src/components/task/task-delete-button.test.tsx
+++ b/apps/web/src/components/task/task-delete-button.test.tsx
@@ -111,7 +111,9 @@ describe("TaskDeleteButton", () => {
await waitFor(() =>
expect(mocks.deleteTask).toHaveBeenCalledWith("task-1"),
);
- expect(mocks.success).toHaveBeenCalledWith("tasks:delete.success");
+ expect(mocks.success).toHaveBeenCalledWith("tasks:delete.success", {
+ icon: expect.anything(),
+ });
expect(onDeleted).toHaveBeenCalledTimes(1);
});
diff --git a/apps/web/src/components/task/task-delete-dialog.tsx b/apps/web/src/components/task/task-delete-dialog.tsx
index e40c22c09..34783fc11 100644
--- a/apps/web/src/components/task/task-delete-dialog.tsx
+++ b/apps/web/src/components/task/task-delete-dialog.tsx
@@ -1,4 +1,5 @@
import type { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
+import { Trash2Icon } from "lucide-react";
import { useEffect, useMemo } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -61,7 +62,7 @@ export default function TaskDeleteDialog({
const handleDelete = async () => {
try {
await deleteTask(taskId);
- toast.success(t("tasks:delete.success"));
+ toast.success(t("tasks:delete.success"), { icon: Trash2Icon });
handle.close();
onDeleted();
} catch (error) {
diff --git a/apps/web/src/components/task/task-description.tsx b/apps/web/src/components/task/task-description.tsx
index 1586a48e8..b682fb569 100644
--- a/apps/web/src/components/task/task-description.tsx
+++ b/apps/web/src/components/task/task-description.tsx
@@ -29,6 +29,7 @@ import {
Strikethrough,
Table2,
Underline as UnderlineIcon,
+ ImageUpIcon,
} from "lucide-react";
import type { MouseEvent as ReactMouseEvent } from "react";
import {
@@ -338,6 +339,7 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {
uploadedAsset.kind === "image"
? t("tasks:detail.editor.upload.imageSuccess")
: t("tasks:detail.editor.upload.fileSuccess"),
+ { icon: ImageUpIcon },
);
} catch (error) {
toast.dismiss(loadingToast);
diff --git a/apps/web/src/components/task/task-details-content.tsx b/apps/web/src/components/task/task-details-content.tsx
index 88468086f..e31314769 100644
--- a/apps/web/src/components/task/task-details-content.tsx
+++ b/apps/web/src/components/task/task-details-content.tsx
@@ -1,90 +1,22 @@
import { useNavigate } from "@tanstack/react-router";
-import { format, isValid, parseISO } from "date-fns";
-import { ArrowUpRight, CalendarIcon, X } from "lucide-react";
-import { useEffect, useState } from "react";
+import { ArrowUpRight } from "lucide-react";
import { useTranslation } from "react-i18next";
import Activity from "@/components/activity";
import CommentInput from "@/components/activity/comment-input";
import { isCommentActivity } from "@/components/activity/utils";
import { ExternalLinksAccordion } from "@/components/external-links/external-links-accordion";
import useAuth from "@/components/providers/auth-provider/hooks/use-auth";
-import {
- Accordion,
- AccordionContent,
- AccordionItem,
- AccordionTrigger,
-} from "@/components/ui/accordion";
-import { Button } from "@/components/ui/button";
-import { Calendar } from "@/components/ui/calendar";
-import {
- Combobox,
- ComboboxChips,
- ComboboxChipsInput,
- ComboboxEmpty,
- ComboboxItem,
- ComboboxList,
- ComboboxPopup,
- ComboboxValue,
-} from "@/components/ui/combobox";
-import { Input } from "@/components/ui/input";
-import {
- Popover,
- PopoverContent,
- PopoverTrigger,
-} from "@/components/ui/popover";
-import {
- HoverCard,
- HoverCardContent,
- HoverCardTrigger,
-} from "@/components/ui/preview-card";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-import { Switch } from "@/components/ui/switch";
import { Timeline } from "@/components/ui/timeline";
-import useSetCustomFieldValue from "@/hooks/mutations/custom-field/use-set-custom-field-value";
import useGetActivitiesByTaskId from "@/hooks/queries/activity/use-get-activities-by-task-id";
-import useGetCustomFieldValuesByTask from "@/hooks/queries/custom-field/use-get-custom-field-values-by-task";
-import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
import useExternalLinks from "@/hooks/queries/external-link/use-external-links";
import useGetTask from "@/hooks/queries/task/use-get-task";
import useGetTaskRelations from "@/hooks/queries/task-relation/use-get-task-relations";
-import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
-import { cn } from "@/lib/cn";
-import { toast } from "@/lib/toast";
import type { ExternalLink } from "@/types/external-link";
import TaskDescription from "./task-description";
import TaskRelations from "./task-relations";
import TaskSubtasks from "./task-subtasks";
import TaskTitle from "./task-title";
-type CustomFieldType =
- | "text"
- | "number"
- | "date"
- | "dropdown"
- | "boolean"
- | "multiselect";
-
-type CustomFieldDefinition = {
- id: string;
- projectId: string;
- name: string;
- type: CustomFieldType;
- required: boolean;
- defaultValue: string | null;
- options: string[] | null;
- position: number;
- createdAt: string;
- updatedAt: string;
-};
-
-type CustomFieldValueMap = Record<string, string | string[]>;
-
type TaskDetailsContentProps = {
taskId: string | undefined;
projectId: string;
@@ -92,20 +24,6 @@ type TaskDetailsContentProps = {
className?: string;
};
-function safeParseMultiselect(raw: string | null | undefined): string[] {
- if (!raw) return [];
- try {
- const parsed = JSON.parse(raw);
- if (Array.isArray(parsed)) return parsed as string[];
- return [];
- } catch {
- return raw
- .split(",")
- .map((s) => s.trim())
- .filter(Boolean);
- }
-}
-
export default function TaskDetailsContent({
taskId,
projectId,
@@ -121,87 +39,6 @@ export default function TaskDetailsContent({
const { data: relations = [] } = useGetTaskRelations(taskId ?? "");
const { user } = useAuth();
- const { data: customFields = [] } = useGetCustomFieldsByProject(
- projectId,
- ) as { data: CustomFieldDefinition[] | undefined };
-
- const { data: customFieldValues = [] } = useGetCustomFieldValuesByTask(
- taskId ?? "",
- );
-
- const { mutateAsync: setCustomFieldValue } = useSetCustomFieldValue();
- const { canUpdateTasks } = useWorkspacePermission();
- const canEdit = canUpdateTasks();
-
- const [localValues, setLocalValues] = useState<CustomFieldValueMap>({});
-
- useEffect(() => {
- const valuesMap: CustomFieldValueMap = {};
-
- for (const field of customFields) {
- valuesMap[field.id] = field.type === "multiselect" ? [] : "";
- }
-
- for (const val of customFieldValues) {
- const field = customFields.find((f) => f.id === val.fieldId);
-
- if (!field) continue;
-
- valuesMap[val.fieldId] =
- field.type === "multiselect"
- ? safeParseMultiselect(val.value)
- : (val.value ?? "");
- }
-
- setLocalValues(valuesMap);
- }, [customFields, customFieldValues]);
-
- const handleLocalChange = (fieldId: string, val: string | string[]) => {
- setLocalValues((prev: CustomFieldValueMap) => ({
- ...prev,
- [fieldId]: val,
- }));
- };
-
- const handleSaveField = async (fieldId: string, value: string | string[]) => {
- if (!taskId) return;
-
- const field = customFields.find((f) => f.id === fieldId);
- const existingValObj = customFieldValues.find((v) => v.fieldId === fieldId);
- const existingRaw = existingValObj ? (existingValObj.value ?? "") : "";
-
- const isMultiselect = field?.type === "multiselect";
-
- const serializedValue = isMultiselect
- ? JSON.stringify(value as string[])
- : (value as string);
-
- const existingComparable = isMultiselect
- ? JSON.stringify(safeParseMultiselect(existingRaw))
- : existingRaw;
-
- if (serializedValue === existingComparable) return;
-
- try {
- await setCustomFieldValue({
- taskId,
- fieldId,
- value: serializedValue,
- projectId,
- });
-
- toast.success(t("tasks:detail.customFieldUpdated", "Field updated"));
- } catch (error) {
- handleLocalChange(
- fieldId,
- isMultiselect ? safeParseMultiselect(existingRaw) : existingRaw,
- );
- toast.error(
- error instanceof Error ? error.message : "Failed to update field",
- );
- }
- };
-
const parentRelation = relations.find(
(rel) => rel.relationType === "subtask" && rel.targetTaskId === taskId,
);
@@ -238,411 +75,6 @@ export default function TaskDetailsContent({
<TaskTitle taskId={taskId} />
<TaskDescription taskId={taskId} />
</div>
- {customFields.length > 0 && (
- <div className="mt-2">
- <Accordion className="w-full">
- <AccordionItem
- value="custom-fields"
- className="rounded-lg border border-border bg-sidebar/30 px-4"
- >
- <AccordionTrigger className="py-4 hover:no-underline">
- <div className="flex items-center gap-2 text-left">
- <span className="text-sm font-semibold text-foreground">
- {t("tasks:common.customFields")}
- </span>
- <span className="rounded bg-muted px-2 py-0.5 text-xs text-muted-foreground">
- {customFields.length}
- </span>
- </div>
- </AccordionTrigger>
-
- <AccordionContent className="pb-4">
- <div className="grid gap-4 sm:grid-cols-2">
- {customFields.map((field) => {
- const val = localValues[field.id] ?? "";
- const multiselectVal: string[] = Array.isArray(val)
- ? val
- : [];
- const textVal: string = Array.isArray(val) ? "" : val;
-
- return (
- <div
- key={`custom-field-${field.id}`}
- className="space-y-1.5"
- >
- <label
- htmlFor={`custom-field-${field.id}`}
- className="flex items-center gap-1 text-xs font-medium text-muted-foreground"
- >
- {field.name}
- {field.required && (
- <span className="text-destructive">*</span>
- )}
- </label>
-
- {field.type === "dropdown" ? (
- <Select
- value={textVal}
- onValueChange={(newVal) => {
- handleLocalChange(field.id, newVal as string);
- void handleSaveField(field.id, newVal as string);
- }}
- disabled={!canEdit}
- >
- <SelectTrigger className="h-9 w-full bg-background text-sm">
- <SelectValue
- placeholder={t(
- "tasks:detail.selectOption",
- "Select option",
- )}
- />
- </SelectTrigger>
- <SelectContent className="max-w-[25rem]">
- {!field.required && (
- <SelectItem key="empty" value="">
- {t("tasks:detail.selectOption")}
- </SelectItem>
- )}
- {Array.from(new Set(field.options || [])).map(
- (opt) => (
- <SelectItem key={opt} value={opt}>
- <span className="block max-w-38 truncate">
- {opt}
- </span>
- </SelectItem>
- ),
- )}
- </SelectContent>
- </Select>
- ) : field.type === "date" ? (
- <div className="relative w-full">
- <Popover>
- <PopoverTrigger
- render={
- <Button
- variant="outline"
- type="button"
- disabled={!canEdit}
- className={cn(
- "h-10! w-full justify-start rounded-md bg-background pr-10 text-left text-sm font-normal",
- !textVal && "text-muted-foreground",
- )}
- >
- <CalendarIcon className="mr-2 size-4 shrink-0 opacity-70" />
-
- <span className="truncate">
- {textVal && isValid(parseISO(textVal))
- ? format(
- parseISO(textVal),
- "dd MMM yyyy",
- )
- : t(
- "tasks:detail.pickDate",
- "Pick a date",
- )}
- </span>
- </Button>
- }
- />
-
- <PopoverContent
- side="bottom"
- align="start"
- className="w-auto p-0"
- >
- <Calendar
- mode="single"
- selected={
- textVal && isValid(parseISO(textVal))
- ? parseISO(textVal)
- : undefined
- }
- onSelect={(date) => {
- const iso = date
- ? format(date, "yyyy-MM-dd")
- : "";
-
- handleLocalChange(field.id, iso);
- void handleSaveField(field.id, iso);
- }}
- captionLayout="dropdown"
- />
- </PopoverContent>
- </Popover>
-
- {!field.required && (
- <Button
- variant="ghost"
- type="button"
- disabled={!canEdit || !textVal}
- onClick={() => {
- handleLocalChange(field.id, "");
- void handleSaveField(field.id, "");
- }}
- className={cn(
- "absolute right-1 top-1/2 z-10 size-8 -translate-y-1/2 rounded-md p-0 text-muted-foreground",
- canEdit && textVal
- ? "hover:bg-destructive/10 hover:text-destructive"
- : "cursor-not-allowed",
- )}
- aria-label={t("reset", {
- field: field.name ?? field.id,
- })}
- >
- <X
- className="size-4"
- strokeWidth={2.5}
- aria-hidden="true"
- />
- </Button>
- )}
- </div>
- ) : field.type === "number" ? (
- <Input
- type="number"
- value={textVal}
- placeholder={field.defaultValue?.toString()}
- onChange={(e) =>
- handleLocalChange(field.id, e.target.value)
- }
- onBlur={() =>
- void handleSaveField(field.id, textVal)
- }
- disabled={!canEdit}
- className="h-9 w-full bg-background text-sm"
- />
- ) : field.type === "boolean" ? (
- <div
- className={cn(
- "flex h-10 w-full items-center gap-3 rounded-md border border-input bg-muted/50 px-3 text-sm transition-colors",
- canEdit && "hover:bg-muted",
- !canEdit && "opacity-50",
- )}
- >
- <span className="flex-1 truncate text-foreground">
- {t(`common:boolean.${textVal || "notSet"}`)}
- </span>
-
- <Switch
- checked={textVal === "true"}
- onCheckedChange={(checked) => {
- const nextValue = checked ? "true" : "false";
-
- handleLocalChange(field.id, nextValue);
- void handleSaveField(field.id, nextValue);
- }}
- disabled={!canEdit}
- aria-label={t("modify", {
- field: field.name ?? field.id,
- })}
- />
-
- {!field.required && (
- <Button
- variant="ghost"
- type="button"
- disabled={!canEdit}
- onClick={() => {
- handleLocalChange(field.id, "");
- void handleSaveField(field.id, "");
- }}
- className={cn(
- "inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors",
- canEdit
- ? "hover:bg-destructive/10 hover:text-destructive"
- : "cursor-not-allowed",
- )}
- aria-label={t("reset", {
- field: field.name ?? field.id,
- })}
- >
- <X className="size-4" />
- </Button>
- )}
- </div>
- ) : field.type === "multiselect" ? (
- <Combobox
- multiple={true}
- autoHighlight
- items={Array.from(new Set(field.options ?? []))}
- value={multiselectVal}
- onValueChange={(newVal) => {
- const nextVal = newVal as string[];
- handleLocalChange(field.id, nextVal);
- }}
- onOpenChange={(open) => {
- if (!open) {
- handleLocalChange(field.id, multiselectVal);
- void handleSaveField(field.id, multiselectVal);
- }
- }}
- disabled={!canEdit}
- >
- <ComboboxChips className="h-9 w-full flex-[2_0_0] select-none cursor-default text-sm disabled:opacity-50">
- <ComboboxValue>
- {(values: string[]) => {
- const MAX_VISIBLE_CHIPS = 3;
- const visibleChips = values.slice(
- 0,
- MAX_VISIBLE_CHIPS,
- );
- const hiddenCount =
- values.length - MAX_VISIBLE_CHIPS;
-
- return (
- <>
- {visibleChips.map((value) => (
- <div
- key={value}
- className={cn(
- "min-w-0 max-w-full flex-1 shrink basis-0",
- "inline-flex items-center overflow-hidden",
- "rounded-md bg-secondary px-1.5 py-0.5",
- "select-none cursor-default",
- )}
- >
- <span className="block min-w-0 max-w-full truncate text-xs text-secondary-foreground">
- {value}
- </span>
- </div>
- ))}
- {values.length > MAX_VISIBLE_CHIPS && (
- <HoverCard>
- <HoverCardTrigger asChild>
- <button
- type="button"
- className="shrink-0 inline-flex items-center gap-1 text-xs font-medium cursor-pointer text-foreground/50 pe-1"
- onClick={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- onPointerDown={(e) => {
- e.stopPropagation();
- e.preventDefault();
- }}
- >
- {t(
- "settings:customFields.moreOptions",
- {
- hiddenCount,
- },
- )}
- </button>
- </HoverCardTrigger>
-
- <HoverCardContent
- side="top"
- align="start"
- className="flex max-w-xs flex-wrap gap-1"
- >
- <div className="space-y-1.5">
- <div className="text-xs font-medium text-muted-foreground">
- {t(
- "settings:customFields.availableOptions",
- "Available options",
- )}
- </div>
-
- <div className="flex min-w-0 max-h-48 flex-wrap gap-x-1.5 gap-y-1.5 overflow-y-auto overflow-x-hidden">
- {values
- .slice(MAX_VISIBLE_CHIPS)
- .map((value) => (
- <div
- key={value}
- className={cn(
- "min-w-0 max-w-full",
- "inline-flex items-center overflow-hidden",
- "rounded bg-secondary px-1.5 py-0.5",
- "select-none cursor-default",
- )}
- >
- <span className="block min-w-0 max-w-[13rem] truncate text-xs">
- {value}
- </span>
- </div>
- ))}
- </div>
- </div>
- </HoverCardContent>
- </HoverCard>
- )}
-
- <ComboboxChipsInput
- className={cn(
- "min-w-0 flex-1 caret-transparent",
- values.length > 0 && "hidden",
- "pointer-events-none",
- "placeholder:text-foreground/50",
- "text-transparent",
- )}
- placeholder={
- new Set(field.options ?? []).size ===
- 0
- ? t(
- "settings:customFields.noOptionsPlaceholder",
- "No options",
- )
- : values.length === 0
- ? t(
- "settings:customFields.defaultValuePlaceholder",
- "Default value",
- )
- : undefined
- }
- />
- </>
- );
- }}
- </ComboboxValue>
- </ComboboxChips>
-
- <ComboboxPopup>
- <ComboboxEmpty>
- {t(
- "settings:customFields.noOptionsPlaceholder",
- "No options",
- )}
- </ComboboxEmpty>
-
- <ComboboxList>
- {(option: string) => (
- <ComboboxItem
- className="min-w-0 max-w-full"
- key={`field_option_${option}`}
- value={option}
- >
- <span className="block max-w-38 truncate">
- {option}
- </span>
- </ComboboxItem>
- )}
- </ComboboxList>
- </ComboboxPopup>
- </Combobox>
- ) : (
- <Input
- type="text"
- value={textVal}
- placeholder={field.defaultValue?.toString()}
- onChange={(e) =>
- handleLocalChange(field.id, e.target.value)
- }
- onBlur={() =>
- void handleSaveField(field.id, textVal)
- }
- disabled={!canEdit}
- className="h-9 w-full bg-background text-sm"
- />
- )}
- </div>
- );
- })}
- </div>
- </AccordionContent>
- </AccordionItem>
- </Accordion>
- </div>
- )}
<div className="mt-4">
<ExternalLinksAccordion
diff --git a/apps/web/src/components/task/task-due-date-popover.tsx b/apps/web/src/components/task/task-due-date-popover.tsx
index e87ad51e7..3ae5401c6 100644
--- a/apps/web/src/components/task/task-due-date-popover.tsx
+++ b/apps/web/src/components/task/task-due-date-popover.tsx
@@ -34,7 +34,6 @@ export default function TaskDueDatePopover({
...task,
dueDate: date?.toISOString() || null,
});
- toast.success(t("tasks:popover.dueDate.updateSuccess"));
setOpen(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/task/task-labels-popover.tsx b/apps/web/src/components/task/task-labels-popover.tsx
index 869bd9de0..216a40f58 100644
--- a/apps/web/src/components/task/task-labels-popover.tsx
+++ b/apps/web/src/components/task/task-labels-popover.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from "@tanstack/react-query";
-import { Check, Plus, Search, X } from "lucide-react";
+import { Check, Plus, Search, X, TagIcon } from "lucide-react";
import { useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { Input } from "@/components/ui/input";
@@ -136,7 +136,6 @@ export default function TaskLabelsPopover({
);
if (taskLabel?.id) {
await detachLabel({ labelId: taskLabel.id });
- toast.success(t("tasks:popover.labels.removeSuccess"));
}
} else {
if (workspaceLabel.taskId !== null) return;
@@ -144,7 +143,6 @@ export default function TaskLabelsPopover({
labelId: workspaceLabel.id,
taskId: task.id,
});
- toast.success(t("tasks:popover.labels.addSuccess"));
}
await queryClient.invalidateQueries({
@@ -187,7 +185,7 @@ export default function TaskLabelsPopover({
queryKey: ["tasks", task.projectId],
});
- toast.success(t("tasks:popover.labels.createSuccess"));
+ toast.success(t("tasks:popover.labels.createSuccess"), { icon: TagIcon });
handleClose();
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsx
index 5d9770658..347643990 100644
--- a/apps/web/src/components/task/task-properties-sidebar.tsx
+++ b/apps/web/src/components/task/task-properties-sidebar.tsx
@@ -5,6 +5,8 @@ import {
CalendarDays,
CalendarX,
Plus,
+ GitBranchIcon,
+ LinkIcon,
} from "lucide-react";
import { useTranslation } from "react-i18next";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -35,6 +37,8 @@ import { resolveLabelColor } from "@/lib/label-color";
import { getPriorityIcon } from "@/lib/priority";
import { getTaskPath } from "@/lib/task-link";
import { toast } from "@/lib/toast";
+import { TaskCustomFieldChips } from "./custom-fields/task-custom-field-chips";
+import { TaskCustomFieldRows } from "./custom-fields/task-custom-field-rows";
import TaskActions from "./task-actions";
import TaskAssigneePopover from "./task-assignee-popover";
import TaskDueDatePopover from "./task-due-date-popover";
@@ -139,7 +143,7 @@ export default function TaskPropertiesSidebar({
}),
),
);
- toast.message(t("tasks:properties.taskLinkCopied"));
+ toast.message(t("tasks:properties.taskLinkCopied"), { icon: LinkIcon });
};
const handleCopyTaskBranch = () => {
@@ -150,7 +154,9 @@ export default function TaskPropertiesSidebar({
task?.title,
);
navigator.clipboard.writeText(branchName);
- toast.message(t("tasks:properties.taskBranchCopied"));
+ toast.message(t("tasks:properties.taskBranchCopied"), {
+ icon: GitBranchIcon,
+ });
};
useTaskCopyShortcuts({
@@ -176,13 +182,13 @@ export default function TaskPropertiesSidebar({
/>
</div>
- <div className="flex flex-row flex-wrap gap-1 items-center p-2 w-full">
+ <div className="flex flex-row flex-wrap gap-1.5 items-center p-2 w-full">
{task && (
<TaskStatusPopover task={task}>
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{getColumnIcon(
task.status ?? "",
@@ -200,7 +206,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{getPriorityIcon(task.priority ?? "")}
<span className="text-xs font-semibold truncate">
@@ -214,7 +220,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{task.userId ? (
<Avatar className="h-[16px] w-[16px]">
@@ -249,7 +255,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
<CalendarDays className="w-3.5 h-3.5 text-muted-foreground" />
<span
@@ -267,7 +273,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{task.dueDate ? (
<>
@@ -306,6 +312,9 @@ export default function TaskPropertiesSidebar({
</Button>
</TaskDueDatePopover>
)}
+ {taskId && (
+ <TaskCustomFieldChips taskId={taskId} projectId={projectId} />
+ )}
</div>
</div>
)}
@@ -325,13 +334,13 @@ export default function TaskPropertiesSidebar({
/>
</div>
- <div className="flex flex-row flex-wrap gap-1 items-center p-2 w-full">
+ <div className="flex flex-row flex-wrap gap-1.5 items-center p-2 w-full">
{task && (
<TaskStatusPopover task={task}>
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{getColumnIcon(
task.status ?? "",
@@ -349,7 +358,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{getPriorityIcon(task.priority ?? "")}
<span className="text-xs font-semibold truncate">
@@ -363,7 +372,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{task.userId ? (
<Avatar className="h-[16px] w-[16px]">
@@ -398,7 +407,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
<CalendarDays className="w-3.5 h-3.5 text-muted-foreground" />
<span
@@ -416,7 +425,7 @@ export default function TaskPropertiesSidebar({
<Button
variant="ghost"
size="sm"
- className="justify-start h-7 px-1.5 gap-1.5"
+ className="justify-start h-7 px-2.5 gap-1.5 rounded-md border-border hover:bg-accent/50"
>
{task.dueDate ? (
<>
@@ -455,6 +464,9 @@ export default function TaskPropertiesSidebar({
</Button>
</TaskDueDatePopover>
)}
+ {taskId && (
+ <TaskCustomFieldChips taskId={taskId} projectId={projectId} />
+ )}
</div>
</div>
@@ -474,7 +486,7 @@ export default function TaskPropertiesSidebar({
/>
</div>
- <div className="flex flex-col gap-2 px-3 py-3">
+ <div className="flex flex-col gap-1 px-3 py-3">
{task && (
<TaskStatusPopover task={task}>
<Button
@@ -657,6 +669,11 @@ export default function TaskPropertiesSidebar({
)}
</div>
</div>
+ {!compact && taskId && (
+ <div className="hidden lg:block">
+ <TaskCustomFieldRows taskId={taskId} projectId={projectId} />
+ </div>
+ )}
</div>
</div>
</div>
diff --git a/apps/web/src/components/task/task-start-date-popover.tsx b/apps/web/src/components/task/task-start-date-popover.tsx
index ab3c231bf..8a1b9b8e4 100644
--- a/apps/web/src/components/task/task-start-date-popover.tsx
+++ b/apps/web/src/components/task/task-start-date-popover.tsx
@@ -34,7 +34,6 @@ export default function TaskStartDatePopover({
...task,
startDate: date?.toISOString() || null,
});
- toast.success(t("tasks:popover.startDate.updateSuccess"));
setOpen(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/task/task-subtasks.tsx b/apps/web/src/components/task/task-subtasks.tsx
index 0413b5c51..62c15f1a7 100644
--- a/apps/web/src/components/task/task-subtasks.tsx
+++ b/apps/web/src/components/task/task-subtasks.tsx
@@ -1,6 +1,6 @@
import { useNavigate } from "@tanstack/react-router";
import { AnimatePresence } from "framer-motion";
-import { ChevronDown, ChevronRight, Plus } from "lucide-react";
+import { ChevronDown, ChevronRight, Plus, Trash2Icon } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -58,7 +58,8 @@ export default function TaskSubtasks({
const [focusedIndex, setFocusedIndex] = useState(-1);
const containerRef = useRef<HTMLDivElement>(null);
- const { data: relations = [] } = useGetTaskRelations(taskId);
+ const { data: relations = [], isSuccess: relationsLoaded } =
+ useGetTaskRelations(taskId);
const { data: workspace } = useActiveWorkspace();
const { data: workspaceUsers } = useGetActiveWorkspaceUsers(
workspace?.id ?? "",
@@ -299,7 +300,7 @@ export default function TaskSubtasks({
next.delete(deleteTaskId);
return next;
});
- toast.success(t("tasks:subtasks.deleteSuccess"));
+ toast.success(t("tasks:subtasks.deleteSuccess"), { icon: Trash2Icon });
} catch (error) {
toast.error(
error instanceof Error
@@ -366,7 +367,10 @@ export default function TaskSubtasks({
}
}}
>
- <AnimatePresence initial={false}>
+ <AnimatePresence
+ key={relationsLoaded ? "loaded" : "loading"}
+ initial={false}
+ >
{subtasks.map((subtask, index) => {
const taskObj = buildTaskObject(subtask);
const isSelected = selectedIds.has(subtask.task.id);
diff --git a/apps/web/src/components/team/delete-team-member-modal.tsx b/apps/web/src/components/team/delete-team-member-modal.tsx
deleted file mode 100644
index c30c2e89d..000000000
--- a/apps/web/src/components/team/delete-team-member-modal.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-import { useQueryClient } from "@tanstack/react-query";
-import { Trash2, X } from "lucide-react";
-import useDeleteWorkspaceUser from "@/hooks/mutations/workspace-user/use-delete-workspace-user";
-import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";
-import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
-import { Button } from "../ui/button";
-import { Dialog, DialogClose, DialogPopup, DialogTitle } from "../ui/dialog";
-
-function DeleteTeamMemberModal({
- userId,
- open,
- onClose,
-}: {
- userId: string;
- open: boolean;
- onClose: () => void;
-}) {
- const { data: workspace } = useActiveWorkspace();
- const workspaceId = workspace?.id ?? "";
- const { mutateAsync: deleteWorkspaceUser } = useDeleteWorkspaceUser();
- const queryClient = useQueryClient();
- const { canRemoveMembers } = useWorkspacePermission();
- const canRemove = canRemoveMembers();
-
- const onRemoveMember = async () => {
- if (!canRemove) return;
- await deleteWorkspaceUser({
- workspaceId,
- userId,
- });
-
- queryClient.invalidateQueries({
- queryKey: ["workspace-users"],
- });
-
- onClose();
- };
-
- return (
- <Dialog open={open} onOpenChange={onClose}>
- <DialogPopup className="w-full max-w-md">
- <div className="bg-card rounded-lg shadow-xl">
- <div className="flex items-center justify-between p-4 border-b border-border">
- <DialogTitle className="text-lg font-semibold text-foreground">
- Remove Team Member
- </DialogTitle>
- <DialogClose
- className="text-muted-foreground hover:text-foreground"
- render={<button type="button" />}
- >
- <X size={20} />
- </DialogClose>
- </div>
-
- <div className="p-4">
- <p className="text-sm text-muted-foreground mb-6">
- Are you sure you want to remove{" "}
- <span className="font-medium text-foreground">{userId}</span> from
- the team? This action cannot be undone.
- </p>
-
- <div className="flex justify-end gap-2">
- <DialogClose
- render={
- <Button
- className="bg-muted text-foreground hover:bg-accent"
- type="button"
- />
- }
- >
- Cancel
- </DialogClose>
- <Button
- onClick={onRemoveMember}
- variant="destructive"
- disabled={!canRemove}
- >
- <Trash2 className="w-4 h-4 mr-2" />
- Remove Member
- </Button>
- </div>
- </div>
- </div>
- </DialogPopup>
- </Dialog>
- );
-}
-
-export default DeleteTeamMemberModal;
diff --git a/apps/web/src/components/team/invite-team-member-modal.tsx b/apps/web/src/components/team/invite-team-member-modal.tsx
index 2c195731e..1d1c96b48 100644
--- a/apps/web/src/components/team/invite-team-member-modal.tsx
+++ b/apps/web/src/components/team/invite-team-member-modal.tsx
@@ -1,5 +1,6 @@
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
import { useQueryClient } from "@tanstack/react-query";
+import { SendIcon } from "lucide-react";
import { useState } from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
@@ -117,7 +118,7 @@ function InviteTeamMemberModal({ open, onClose }: Props) {
queryKey: ["workspace-users", workspaceId],
});
- toast.success(t("team:inviteModal.success"));
+ toast.success(t("team:inviteModal.success"), { icon: SendIcon });
// The link is the only delivery channel when SMTP is unconfigured, so the
// modal stays open on it instead of closing. If the API ever stops
diff --git a/apps/web/src/components/team/member-project-access-dialog.tsx b/apps/web/src/components/team/member-project-access-dialog.tsx
index 81892ca45..c1eb6fdfb 100644
--- a/apps/web/src/components/team/member-project-access-dialog.tsx
+++ b/apps/web/src/components/team/member-project-access-dialog.tsx
@@ -1,3 +1,4 @@
+import { FolderLockIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import useUpdateMemberProjectAccess from "@/hooks/mutations/workspace-user/use-update-member-project-access";
@@ -68,7 +69,9 @@ function MemberProjectAccessDialog({
}
try {
await mutateAsync({ workspaceId, userId: member.userId, ...request });
- toast.success(t("team:projectAccess.updateSuccess"));
+ toast.success(t("team:projectAccess.updateSuccess"), {
+ icon: FolderLockIcon,
+ });
onOpenChange(false);
} catch (error) {
toast.error(
diff --git a/apps/web/src/components/team/members-table.tsx b/apps/web/src/components/team/members-table.tsx
index db1b4c769..351ef5ae7 100644
--- a/apps/web/src/components/team/members-table.tsx
+++ b/apps/web/src/components/team/members-table.tsx
@@ -6,6 +6,9 @@ import {
PencilIcon,
ShieldIcon,
TrashIcon,
+ MailXIcon,
+ UserMinusIcon,
+ ShieldCheckIcon,
} from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
@@ -167,7 +170,9 @@ function MembersTable({ workspaceId, invitations, users }: Props) {
if (role === member.role) return;
try {
await updateMemberRole({ workspaceId, memberId: member.id, role });
- toast.success(t("team:membersTable.roleUpdateSuccess"));
+ toast.success(t("team:membersTable.roleUpdateSuccess"), {
+ icon: ShieldCheckIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
@@ -184,7 +189,9 @@ function MembersTable({ workspaceId, invitations, users }: Props) {
workspaceId,
userId: memberToDelete.user.email,
});
- toast.success(t("team:membersTable.removeSuccess"));
+ toast.success(t("team:membersTable.removeSuccess"), {
+ icon: UserMinusIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
@@ -203,7 +210,9 @@ function MembersTable({ workspaceId, invitations, users }: Props) {
invitationId: invitationToCancel.id,
workspaceId,
});
- toast.success(t("team:membersTable.cancelInviteSuccess"));
+ toast.success(t("team:membersTable.cancelInviteSuccess"), {
+ icon: MailXIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/ui/alert-dialog.tsx b/apps/web/src/components/ui/alert-dialog.tsx
index 50421a26a..462f314cb 100644
--- a/apps/web/src/components/ui/alert-dialog.tsx
+++ b/apps/web/src/components/ui/alert-dialog.tsx
@@ -66,9 +66,9 @@ function AlertDialogPopup({
>
<AlertDialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
bottomStickOnMobile &&
- "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
+ "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
className,
)}
data-slot="alert-dialog-popup"
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index 87115b9f7..1e5bace3e 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -8,7 +8,7 @@ import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/cn";
export const buttonVariants = cva(
- "relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-[box-shadow,scale] duration-150 ease-out active:scale-[0.97] data-pressed:scale-[0.97] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none data-loading:text-transparent sm:text-sm [&_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]:-mx-0.5 [&_svg]:shrink-0",
+ "relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-[box-shadow,scale] duration-150 ease-out active:scale-[0.97] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none data-loading:text-transparent sm:text-sm [&_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]:-mx-0.5 [&_svg]:shrink-0",
{
defaultVariants: {
size: "default",
diff --git a/apps/web/src/components/ui/circular-progress.tsx b/apps/web/src/components/ui/circular-progress.tsx
index 0c1738c05..d1c8b4a29 100644
--- a/apps/web/src/components/ui/circular-progress.tsx
+++ b/apps/web/src/components/ui/circular-progress.tsx
@@ -46,7 +46,7 @@ export default function CircularProgress({
className={
completed === total ? "text-success-foreground" : "text-primary"
}
- style={{ transition: "stroke-dashoffset 0.4s ease" }}
+ style={{ transition: "stroke-dashoffset 0.2s var(--ease-out)" }}
/>
)}
</svg>
diff --git a/apps/web/src/components/ui/collapsible.tsx b/apps/web/src/components/ui/collapsible.tsx
index 7cdb9a932..5a881215c 100644
--- a/apps/web/src/components/ui/collapsible.tsx
+++ b/apps/web/src/components/ui/collapsible.tsx
@@ -40,7 +40,7 @@ function CollapsiblePanel({
return (
<CollapsiblePrimitive.Panel
className={cn(
- "h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 data-ending-style:h-0 data-starting-style:h-0",
+ "h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 ease-in-out data-ending-style:h-0 data-starting-style:h-0",
className,
)}
data-slot="collapsible-panel"
diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsx
index 7a6dd175c..6fa0f92a6 100644
--- a/apps/web/src/components/ui/command.tsx
+++ b/apps/web/src/components/ui/command.tsx
@@ -38,7 +38,7 @@ function CommandDialogBackdrop({
return (
<CommandDialogPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 ease-out data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="command-dialog-backdrop"
@@ -80,7 +80,7 @@ function CommandDialogPopup({
<CommandDialogViewport>
<CommandDialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/72 before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/72 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
instant &&
"transition-none data-starting-style:scale-100 data-starting-style:opacity-100 data-ending-style:scale-100 data-ending-style:opacity-100",
className,
diff --git a/apps/web/src/components/ui/context-menu.tsx b/apps/web/src/components/ui/context-menu.tsx
index 534005ec0..0fcd848c6 100644
--- a/apps/web/src/components/ui/context-menu.tsx
+++ b/apps/web/src/components/ui/context-menu.tsx
@@ -86,7 +86,7 @@ function ContextMenuContent({
>
<ContextMenuPrimitive.Popup
className={cn(
- "relative flex not-[class*='w-']:min-w-32 origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[scale,opacity,transform] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-starting-style:scale-98 data-ending-style:scale-98 data-starting-style:opacity-0 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex not-[class*='w-']:min-w-32 origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-starting-style:scale-98 data-ending-style:scale-98 data-starting-style:opacity-0 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
className,
)}
data-slot="context-menu-content"
diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
index f826d8fa1..388e27d8b 100644
--- a/apps/web/src/components/ui/dialog.tsx
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -91,14 +91,22 @@ function DialogPopup({
children,
showCloseButton = true,
bottomStickOnMobile = true,
+ instant = false,
...props
}: DialogPrimitive.Popup.Props & {
showCloseButton?: boolean;
bottomStickOnMobile?: boolean;
+ instant?: boolean;
}) {
return (
<DialogPortal>
- <DialogBackdrop forceRender />
+ <DialogBackdrop
+ forceRender
+ className={cn(
+ instant &&
+ "transition-none data-starting-style:opacity-100 data-ending-style:opacity-100",
+ )}
+ />
<DialogViewport
className={cn(
bottomStickOnMobile &&
@@ -107,9 +115,11 @@ function DialogPopup({
>
<DialogPrimitive.Popup
className={cn(
- "-translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg flex-col rounded-2xl border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 transition-[scale,opacity,translate] duration-200 ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
bottomStickOnMobile &&
- "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
+ "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4 max-sm:before:hidden max-sm:before:rounded-none",
+ instant &&
+ "transition-none data-starting-style:translate-y-0 data-starting-style:scale-100 data-starting-style:opacity-100 data-ending-style:translate-y-0 data-ending-style:scale-100 data-ending-style:opacity-100",
className,
)}
data-slot="dialog-popup"
diff --git a/apps/web/src/components/ui/menu.tsx b/apps/web/src/components/ui/menu.tsx
index 752ff1ae7..4d482fd18 100644
--- a/apps/web/src/components/ui/menu.tsx
+++ b/apps/web/src/components/ui/menu.tsx
@@ -63,7 +63,7 @@ function MenuPopup({
>
<MenuPrimitive.Popup
className={cn(
- "relative flex not-[class*='w-']:min-w-32 origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 outline-none transition-[scale,opacity,transform] duration-150 ease-out data-starting-style:scale-96 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] focus:outline-none dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex not-[class*='w-']:min-w-32 origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 outline-none transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-98 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] focus:outline-none dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
className,
)}
data-slot="menu-popup"
@@ -134,7 +134,7 @@ function MenuCheckboxItem({
className="inset-shadow-[0_1px_--theme(--color-black/4%)] inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(4)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-64 sm:[--thumb-size:--spacing(3)]"
keepMounted
>
- <span className="pointer-events-none block aspect-square h-full in-[[data-slot=menu-checkbox-item][data-checked]]:origin-[var(--thumb-size)_50%] origin-left in-[[data-slot=menu-checkbox-item][data-checked]]:translate-x-[calc(var(--thumb-size)-4px)] in-[[data-slot=menu-checkbox-item]:active]:not-data-disabled:scale-x-110 in-[[data-slot=menu-checkbox-item]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.10)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s]" />
+ <span className="pointer-events-none block aspect-square h-full in-[[data-slot=menu-checkbox-item][data-checked]]:origin-[var(--thumb-size)_50%] origin-left in-[[data-slot=menu-checkbox-item][data-checked]]:translate-x-[calc(var(--thumb-size)-4px)] in-[[data-slot=menu-checkbox-item]:active]:not-data-disabled:scale-x-110 in-[[data-slot=menu-checkbox-item]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.10)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s_var(--ease-out),border-radius_.15s_var(--ease-out),scale_.1s_.1s_var(--ease-out),transform-origin_.15s_var(--ease-out)]" />
</MenuPrimitive.CheckboxItemIndicator>
</>
) : (
diff --git a/apps/web/src/components/ui/popover.tsx b/apps/web/src/components/ui/popover.tsx
index a8772faff..c29921880 100644
--- a/apps/web/src/components/ui/popover.tsx
+++ b/apps/web/src/components/ui/popover.tsx
@@ -42,6 +42,7 @@ function PopoverPopup({
alignOffset = 0,
tooltipStyle = false,
anchor,
+ positionerClassName,
...props
}: PopoverPrimitive.Popup.Props & {
side?: PopoverPrimitive.Positioner.Props["side"];
@@ -50,6 +51,7 @@ function PopoverPopup({
alignOffset?: PopoverPrimitive.Positioner.Props["alignOffset"];
tooltipStyle?: boolean;
anchor?: PopoverPrimitive.Positioner.Props["anchor"];
+ positionerClassName?: string;
}) {
return (
<PopoverPrimitive.Portal>
@@ -57,14 +59,17 @@ function PopoverPopup({
align={align}
alignOffset={alignOffset}
anchor={anchor}
- className="z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none"
+ className={cn(
+ "z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none",
+ positionerClassName,
+ )}
data-slot="popover-positioner"
side={side}
sideOffset={sideOffset}
>
<PopoverPrimitive.Popup
className={cn(
- "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[width,height,scale,opacity,transform] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-starting-style:scale-98 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[width,height,scale,opacity,translate] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-starting-style:scale-98 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
tooltipStyle &&
"w-fit text-balance rounded-md text-xs shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]",
className,
diff --git a/apps/web/src/components/ui/preview-card.tsx b/apps/web/src/components/ui/preview-card.tsx
index ebf916b62..4396b5f8a 100644
--- a/apps/web/src/components/ui/preview-card.tsx
+++ b/apps/web/src/components/ui/preview-card.tsx
@@ -80,7 +80,7 @@ function PreviewCardPopup({
>
<PreviewCardPrimitive.Popup
className={cn(
- "relative flex w-64 origin-(--transform-origin) text-balance rounded-lg border bg-popover not-dark:bg-clip-padding p-4 text-popover-foreground text-sm shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex w-64 origin-(--transform-origin) text-balance rounded-lg border bg-popover not-dark:bg-clip-padding p-4 text-popover-foreground text-sm shadow-lg/5 transition-[scale,opacity] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
className,
)}
data-slot="preview-card-content"
diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
index fb3e5d37a..d9d362b4d 100644
--- a/apps/web/src/components/ui/select.tsx
+++ b/apps/web/src/components/ui/select.tsx
@@ -132,7 +132,7 @@ function SelectPopup({
sideOffset={sideOffset}
>
<SelectPrimitive.Popup
- className="origin-(--transform-origin) text-foreground transition-[scale,opacity,transform] duration-150 ease-out data-starting-style:scale-98 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1"
+ className="origin-(--transform-origin) text-foreground transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-98 data-starting-style:opacity-0 data-ending-style:scale-98 data-ending-style:opacity-0 data-[side=top]:data-starting-style:translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=left]:data-starting-style:translate-x-1 data-[side=right]:data-starting-style:-translate-x-1"
data-slot="select-popup"
{...props}
>
diff --git a/apps/web/src/components/ui/sheet.tsx b/apps/web/src/components/ui/sheet.tsx
index 2dd048f49..8d4f76b07 100644
--- a/apps/web/src/components/ui/sheet.tsx
+++ b/apps/web/src/components/ui/sheet.tsx
@@ -23,7 +23,7 @@ function SheetBackdrop({ className, ...props }: SheetPrimitive.Backdrop.Props) {
return (
<SheetPrimitive.Backdrop
className={cn(
- "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0",
+ "fixed inset-0 z-50 bg-black/32 backdrop-blur-sm transition-opacity duration-200 ease-out data-ending-style:opacity-0 data-starting-style:opacity-0",
className,
)}
data-slot="sheet-backdrop"
diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx
index 425303ee4..f6e942c3f 100644
--- a/apps/web/src/components/ui/sidebar.tsx
+++ b/apps/web/src/components/ui/sidebar.tsx
@@ -237,7 +237,7 @@ function Sidebar({
{/* This is what handles the sidebar gap on desktop */}
<div
className={cn(
- "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-in-out",
+ "relative w-(--sidebar-width) bg-transparent",
"group-data-[collapsible=offcanvas]:w-0",
"group-data-[side=right]:rotate-180",
variant === "floating" || variant === "inset"
@@ -248,7 +248,7 @@ function Sidebar({
/>
<div
className={cn(
- "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-in-out md:flex",
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",
side === "left"
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
@@ -332,7 +332,6 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
<main
className={cn(
"relative flex w-full flex-1 flex-col bg-background",
- "transition-[margin,border-radius,border-width] duration-200 ease-in-out",
"md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:m-0 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:peer-data-[state=collapsed]:rounded-none md:peer-data-[variant=inset]:shadow-sm/5",
className,
)}
@@ -505,7 +504,7 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
}
const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0",
+ "peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-popup-open:hover:bg-sidebar-accent data-popup-open:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0",
{
defaultVariants: {
size: "default",
@@ -596,7 +595,7 @@ function SidebarMenuAction({
"peer-data-[size=lg]/menu-button:top-2.5",
"group-data-[collapsible=icon]:hidden",
showOnHover &&
- "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-popup-open:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
className,
),
"data-sidebar": "menu-action",
diff --git a/apps/web/src/components/ui/skeleton.tsx b/apps/web/src/components/ui/skeleton.tsx
index 479fda7c9..8c7dc926d 100644
--- a/apps/web/src/components/ui/skeleton.tsx
+++ b/apps/web/src/components/ui/skeleton.tsx
@@ -4,7 +4,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
className={cn(
- "animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]",
+ "animate-skeleton rounded-sm motion-reduce:animate-none [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]",
className,
)}
data-slot="skeleton"
diff --git a/apps/web/src/components/ui/switch.tsx b/apps/web/src/components/ui/switch.tsx
index 3f9852c94..7723cf573 100644
--- a/apps/web/src/components/ui/switch.tsx
+++ b/apps/web/src/components/ui/switch.tsx
@@ -16,7 +16,7 @@ function Switch({ className, ...props }: SwitchPrimitive.Root.Props) {
>
<SwitchPrimitive.Thumb
className={cn(
- "pointer-events-none block aspect-square h-full origin-left in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:not-data-disabled:scale-x-110 in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.1)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s] data-checked:origin-[var(--thumb-size)_50%] data-checked:translate-x-[calc(var(--thumb-size)-4px)]",
+ "pointer-events-none block aspect-square h-full origin-left in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:not-data-disabled:scale-x-110 in-[[role=switch]:active,[data-slot=label]:active,[data-slot=field-label]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.1)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s_var(--ease-out),border-radius_.15s_var(--ease-out),scale_.1s_.1s_var(--ease-out),transform-origin_.15s_var(--ease-out)] data-checked:origin-[var(--thumb-size)_50%] data-checked:translate-x-[calc(var(--thumb-size)-4px)]",
)}
data-slot="switch-thumb"
/>
diff --git a/apps/web/src/components/ui/toast-shake-root.tsx b/apps/web/src/components/ui/toast-shake-root.tsx
new file mode 100644
index 000000000..ab64e548b
--- /dev/null
+++ b/apps/web/src/components/ui/toast-shake-root.tsx
@@ -0,0 +1,36 @@
+import { Toast } from "@base-ui/react/toast";
+import { useEffect, useRef } from "react";
+
+const SHAKE: Keyframe[] = [
+ { translate: "0 0" },
+ { translate: "-5px 0" },
+ { translate: "5px 0" },
+ { translate: "-3px 0" },
+ { translate: "3px 0" },
+ { translate: "-1px 0" },
+ { translate: "0 0" },
+];
+
+const PULSE: Keyframe[] = [{ opacity: 1 }, { opacity: 0.64 }, { opacity: 1 }];
+
+export function ToastShakeRoot({
+ shakeKey,
+ ...props
+}: Toast.Root.Props & { shakeKey: unknown }) {
+ const ref = useRef<HTMLDivElement>(null);
+ const previous = useRef(shakeKey);
+
+ useEffect(() => {
+ if (previous.current === shakeKey) return;
+ previous.current = shakeKey;
+ const reduceMotion = window.matchMedia?.(
+ "(prefers-reduced-motion: reduce)",
+ ).matches;
+ ref.current?.animate(reduceMotion ? PULSE : SHAKE, {
+ duration: reduceMotion ? 200 : 320,
+ easing: reduceMotion ? "ease" : "linear",
+ });
+ }, [shakeKey]);
+
+ return <Toast.Root ref={ref} {...props} />;
+}
diff --git a/apps/web/src/components/ui/toast.tsx b/apps/web/src/components/ui/toast.tsx
index 833ed0c29..9c0a5b547 100644
--- a/apps/web/src/components/ui/toast.tsx
+++ b/apps/web/src/components/ui/toast.tsx
@@ -6,9 +6,11 @@ import {
CircleCheckIcon,
InfoIcon,
LoaderCircleIcon,
+ type LucideIcon,
TriangleAlertIcon,
} from "lucide-react";
import { buttonVariants } from "@/components/ui/button";
+import { ToastShakeRoot } from "@/components/ui/toast-shake-root";
import { cn } from "@/lib/cn";
const toastManager = Toast.createToastManager();
@@ -68,14 +70,20 @@ function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
data-slot="toast-viewport"
>
{toasts.map((toast) => {
- const Icon = toast.type
- ? TOAST_ICONS[toast.type as keyof typeof TOAST_ICONS]
- : null;
+ const data = toast.data as
+ | { icon?: LucideIcon; repeat?: number }
+ | undefined;
+ const Icon =
+ data?.icon ??
+ (toast.type
+ ? TOAST_ICONS[toast.type as keyof typeof TOAST_ICONS]
+ : null);
return (
- <Toast.Root
+ <ToastShakeRoot
+ shakeKey={data?.repeat}
className={cn(
- "absolute z-[calc(9999-var(--toast-index))] h-(--toast-calc-height) w-full select-none rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "absolute z-[calc(9999-var(--toast-index))] h-(--toast-calc-height) w-full select-none rounded-lg border bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 [transition:transform_.3s_var(--ease-out),opacity_.3s_var(--ease-out),height_.15s_var(--ease-out)] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
// Base positioning using data-position
"data-[position*=right]:right-0 data-[position*=right]:left-auto",
"data-[position*=left]:right-auto data-[position*=left]:left-0",
@@ -116,6 +124,7 @@ function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
"data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]",
)}
data-position={position}
+ data-slot="toast"
key={toast.id}
swipeDirection={
position.includes("center")
@@ -133,7 +142,13 @@ function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
className="[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
data-slot="toast-icon"
>
- <Icon className="in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80" />
+ <Icon
+ className={cn(
+ data?.icon
+ ? "text-muted-foreground"
+ : "in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80",
+ )}
+ />
</div>
)}
@@ -157,7 +172,7 @@ function Toasts({ position = "bottom-right" }: { position: ToastPosition }) {
</Toast.Action>
)}
</Toast.Content>
- </Toast.Root>
+ </ToastShakeRoot>
);
})}
</Toast.Viewport>
@@ -205,7 +220,7 @@ function AnchoredToasts() {
>
<Toast.Root
className={cn(
- "relative text-balance border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative origin-(--transform-origin) text-balance border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs transition-[scale,opacity] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
tooltipStyle
? "rounded-md shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]"
: "rounded-lg shadow-lg/5 before:rounded-[calc(var(--radius-lg)-1px)]",
diff --git a/apps/web/src/components/ui/tooltip.tsx b/apps/web/src/components/ui/tooltip.tsx
index afb6373c5..ba2f14497 100644
--- a/apps/web/src/components/ui/tooltip.tsx
+++ b/apps/web/src/components/ui/tooltip.tsx
@@ -57,7 +57,7 @@ function TooltipPopup({
>
<TooltipPrimitive.Popup
className={cn(
- "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
+ "relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] duration-150 ease-out before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]",
className,
)}
data-slot="tooltip-popup"
diff --git a/apps/web/src/components/user-avatar.tsx b/apps/web/src/components/user-avatar.tsx
index 599affb1f..50ed5484b 100644
--- a/apps/web/src/components/user-avatar.tsx
+++ b/apps/web/src/components/user-avatar.tsx
@@ -1,6 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
-import { LogOut, Settings } from "lucide-react";
+import { LogOut, Settings, LogOutIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -39,7 +39,9 @@ export function UserAvatar() {
await signOut();
queryClient.clear();
setProject(undefined);
- toast.success(t("navigation:userMenu.signedOutSuccess"));
+ toast.success(t("navigation:userMenu.signedOutSuccess"), {
+ icon: LogOutIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
diff --git a/apps/web/src/components/workspace-switcher.tsx b/apps/web/src/components/workspace-switcher.tsx
index 53c500ff7..9ad955c00 100644
--- a/apps/web/src/components/workspace-switcher.tsx
+++ b/apps/web/src/components/workspace-switcher.tsx
@@ -18,6 +18,7 @@ import {
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar";
+import { Spinner } from "@/components/ui/spinner";
import { UserAvatar } from "@/components/user-avatar";
import { shortcuts } from "@/constants/shortcuts";
import useGetConfig from "@/hooks/queries/config/use-get-config";
@@ -137,10 +138,14 @@ export function WorkspaceSwitcher() {
{workspace.name}
</span>
</div>
- <ChevronDown
- className={`ml-1 size-3.5 text-foreground/70 opacity-90 group-hover:opacity-100 data-[state=open]:opacity-100 data-[state=open]:rotate-180 transition-[rotate,opacity] duration-200 ease-out ${isSwitching ? "animate-spin" : ""}`}
- data-state={isOpen ? "open" : "closed"}
- />
+ {isSwitching ? (
+ <Spinner className="ml-1 size-3.5 text-foreground/70" />
+ ) : (
+ <ChevronDown
+ className="ml-1 size-3.5 text-foreground/70 opacity-90 group-hover:opacity-100 data-[state=open]:opacity-100 data-[state=open]:rotate-180 transition-[rotate,opacity] duration-200 ease-out"
+ data-state={isOpen ? "open" : "closed"}
+ />
+ )}
</DropdownMenuTrigger>
<DropdownMenuContent
className="min-w-(--anchor-width) text-sidebar-foreground"
diff --git a/apps/web/src/hooks/mutations/admin/use-add-admin-workspace-member.ts b/apps/web/src/hooks/mutations/admin/use-add-admin-workspace-member.ts
index 3794d2610..abda52ecd 100644
--- a/apps/web/src/hooks/mutations/admin/use-add-admin-workspace-member.ts
+++ b/apps/web/src/hooks/mutations/admin/use-add-admin-workspace-member.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { UserPlusIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { addAdminWorkspaceMember } from "@/fetchers/admin/add-admin-workspace-member";
import { toast } from "@/lib/toast";
@@ -11,7 +12,9 @@ function useAddAdminWorkspaceMember() {
return useMutation({
mutationFn: addAdminWorkspaceMember,
onSuccess: (members, { workspaceId }) => {
- toast.success(t("settings:adminWorkspaces.toast.added"));
+ toast.success(t("settings:adminWorkspaces.toast.added"), {
+ icon: UserPlusIcon,
+ });
syncAdminWorkspaceMembers(queryClient, workspaceId, members);
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts b/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts
index 82a1da24b..affdb04f2 100644
--- a/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts
+++ b/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { Trash2Icon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { deleteAdminUser } from "@/fetchers/admin/delete-admin-user";
import { ADMIN_USERS_QUERY_KEY } from "@/hooks/queries/admin/use-admin-users";
@@ -11,7 +12,9 @@ function useDeleteAdminUser() {
return useMutation({
mutationFn: deleteAdminUser,
onSuccess: () => {
- toast.success(t("settings:adminUsers.toast.deleted"));
+ toast.success(t("settings:adminUsers.toast.deleted"), {
+ icon: Trash2Icon,
+ });
queryClient.invalidateQueries({ queryKey: ADMIN_USERS_QUERY_KEY });
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/admin/use-remove-admin-workspace-member.ts b/apps/web/src/hooks/mutations/admin/use-remove-admin-workspace-member.ts
index 4405dfe32..378acc963 100644
--- a/apps/web/src/hooks/mutations/admin/use-remove-admin-workspace-member.ts
+++ b/apps/web/src/hooks/mutations/admin/use-remove-admin-workspace-member.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { UserMinusIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { removeAdminWorkspaceMember } from "@/fetchers/admin/remove-admin-workspace-member";
import { toast } from "@/lib/toast";
@@ -11,7 +12,9 @@ function useRemoveAdminWorkspaceMember() {
return useMutation({
mutationFn: removeAdminWorkspaceMember,
onSuccess: (members, { workspaceId }) => {
- toast.success(t("settings:adminWorkspaces.toast.removed"));
+ toast.success(t("settings:adminWorkspaces.toast.removed"), {
+ icon: UserMinusIcon,
+ });
syncAdminWorkspaceMembers(queryClient, workspaceId, members);
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts b/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts
index 66315ddda..96fb1bdf7 100644
--- a/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts
+++ b/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { UserXIcon, UserCheckIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { toggleAdminUserStatus } from "@/fetchers/admin/toggle-admin-user-status";
import { ADMIN_USERS_QUERY_KEY } from "@/hooks/queries/admin/use-admin-users";
@@ -17,6 +18,7 @@ function useToggleAdminUserStatus() {
? "settings:adminUsers.toast.deactivated"
: "settings:adminUsers.toast.reactivated",
),
+ { icon: variables.deactivate ? UserXIcon : UserCheckIcon },
);
queryClient.invalidateQueries({ queryKey: ADMIN_USERS_QUERY_KEY });
},
diff --git a/apps/web/src/hooks/mutations/admin/use-transfer-admin-workspace-ownership.ts b/apps/web/src/hooks/mutations/admin/use-transfer-admin-workspace-ownership.ts
index ab1f34cbb..5e86ffe10 100644
--- a/apps/web/src/hooks/mutations/admin/use-transfer-admin-workspace-ownership.ts
+++ b/apps/web/src/hooks/mutations/admin/use-transfer-admin-workspace-ownership.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { CrownIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { transferAdminWorkspaceOwnership } from "@/fetchers/admin/transfer-admin-workspace-ownership";
import { toast } from "@/lib/toast";
@@ -11,7 +12,9 @@ function useTransferAdminWorkspaceOwnership() {
return useMutation({
mutationFn: transferAdminWorkspaceOwnership,
onSuccess: (members, { workspaceId }) => {
- toast.success(t("settings:adminWorkspaces.toast.ownershipTransferred"));
+ toast.success(t("settings:adminWorkspaces.toast.ownershipTransferred"), {
+ icon: CrownIcon,
+ });
syncAdminWorkspaceMembers(queryClient, workspaceId, members);
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/admin/use-update-admin-workspace-member-role.ts b/apps/web/src/hooks/mutations/admin/use-update-admin-workspace-member-role.ts
index 255f05c17..e606964e0 100644
--- a/apps/web/src/hooks/mutations/admin/use-update-admin-workspace-member-role.ts
+++ b/apps/web/src/hooks/mutations/admin/use-update-admin-workspace-member-role.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { ShieldCheckIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { updateAdminWorkspaceMemberRole } from "@/fetchers/admin/update-admin-workspace-member-role";
import { toast } from "@/lib/toast";
@@ -11,7 +12,9 @@ function useUpdateAdminWorkspaceMemberRole() {
return useMutation({
mutationFn: updateAdminWorkspaceMemberRole,
onSuccess: (members, { workspaceId }) => {
- toast.success(t("settings:adminWorkspaces.toast.roleUpdated"));
+ toast.success(t("settings:adminWorkspaces.toast.roleUpdated"), {
+ icon: ShieldCheckIcon,
+ });
syncAdminWorkspaceMembers(queryClient, workspaceId, members);
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/notification-preferences/use-notification-preferences.ts b/apps/web/src/hooks/mutations/notification-preferences/use-notification-preferences.ts
index d8f71227b..5650e77bf 100644
--- a/apps/web/src/hooks/mutations/notification-preferences/use-notification-preferences.ts
+++ b/apps/web/src/hooks/mutations/notification-preferences/use-notification-preferences.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { BellOffIcon, BellIcon } from "lucide-react";
import i18n from "i18next";
import deleteNotificationWorkspaceRule from "@/fetchers/notification-preferences/delete-notification-workspace-rule";
import updateNotificationPreferences, {
@@ -25,6 +26,7 @@ export function useUpdateNotificationPreferences({
if (!silent) {
toast.success(
i18n.t("settings:notificationsPage.toastPreferencesSaved"),
+ { icon: BellIcon },
);
}
},
@@ -54,7 +56,10 @@ export function useUpsertNotificationWorkspaceRule() {
void queryClient.invalidateQueries({
queryKey: ["notification-preferences"],
});
- toast.success(i18n.t("settings:notificationsPage.toastRuleSavedGeneric"));
+ toast.success(
+ i18n.t("settings:notificationsPage.toastRuleSavedGeneric"),
+ { icon: BellIcon },
+ );
},
onError: (error) => {
toast.error(
@@ -79,6 +84,7 @@ export function useDeleteNotificationWorkspaceRule() {
});
toast.success(
i18n.t("settings:notificationsPage.toastRuleRemovedGeneric"),
+ { icon: BellOffIcon },
);
},
onError: (error) => {
diff --git a/apps/web/src/hooks/mutations/project/use-remove-project-background.ts b/apps/web/src/hooks/mutations/project/use-remove-project-background.ts
index 61ccd1da3..09f6dcad9 100644
--- a/apps/web/src/hooks/mutations/project/use-remove-project-background.ts
+++ b/apps/web/src/hooks/mutations/project/use-remove-project-background.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { ImageMinusIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { removeProjectBackground } from "@/fetchers/project/background";
import { toast } from "@/lib/toast";
@@ -14,7 +15,9 @@ function useRemoveProjectBackground() {
queryClient.invalidateQueries({ queryKey: ["tasks", projectId] }),
queryClient.invalidateQueries({ queryKey: ["projects"] }),
]);
- toast.success(t("settings:projectGeneral.backgroundRemoveSuccess"));
+ toast.success(t("settings:projectGeneral.backgroundRemoveSuccess"), {
+ icon: ImageMinusIcon,
+ });
},
onError: () => {
toast.error(t("settings:projectGeneral.backgroundRemoveError"));
diff --git a/apps/web/src/hooks/mutations/project/use-upload-project-background.ts b/apps/web/src/hooks/mutations/project/use-upload-project-background.ts
index 61fb62582..3a189c329 100644
--- a/apps/web/src/hooks/mutations/project/use-upload-project-background.ts
+++ b/apps/web/src/hooks/mutations/project/use-upload-project-background.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { ImageUpIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
import { uploadProjectBackground } from "@/fetchers/project/background";
import { toast } from "@/lib/toast";
@@ -20,7 +21,9 @@ function useUploadProjectBackground() {
queryClient.invalidateQueries({ queryKey: ["tasks", projectId] }),
queryClient.invalidateQueries({ queryKey: ["projects"] }),
]);
- toast.success(t("settings:projectGeneral.backgroundUploadSuccess"));
+ toast.success(t("settings:projectGeneral.backgroundUploadSuccess"), {
+ icon: ImageUpIcon,
+ });
},
onError: () => {
toast.error(t("settings:projectGeneral.backgroundUploadError"));
diff --git a/apps/web/src/hooks/mutations/task/use-bulk-operations.ts b/apps/web/src/hooks/mutations/task/use-bulk-operations.ts
index 8de7785e0..618ebf170 100644
--- a/apps/web/src/hooks/mutations/task/use-bulk-operations.ts
+++ b/apps/web/src/hooks/mutations/task/use-bulk-operations.ts
@@ -148,6 +148,7 @@ export function useBulkOperations() {
return {
bulkDelete: bulkDelete.mutateAsync,
+ isDeleting: bulkDelete.isPending,
bulkArchive: bulkArchive.mutateAsync,
bulkChangeStatus: bulkChangeStatus.mutateAsync,
bulkAssign: bulkAssign.mutateAsync,
diff --git a/apps/web/src/hooks/mutations/task/use-duplicate-task.ts b/apps/web/src/hooks/mutations/task/use-duplicate-task.ts
index bb7b4bdc7..9679d4c6c 100644
--- a/apps/web/src/hooks/mutations/task/use-duplicate-task.ts
+++ b/apps/web/src/hooks/mutations/task/use-duplicate-task.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { CopyPlusIcon } from "lucide-react";
import { invalidateMyWork } from "@/lib/invalidate-my-work";
import { useTranslation } from "react-i18next";
import duplicateTask from "@/fetchers/task/duplicate-task";
@@ -13,7 +14,7 @@ export function useDuplicateTask() {
onSuccess: (task) => {
invalidateMyWork(queryClient);
void queryClient.invalidateQueries({ queryKey: ["projects"] });
- toast.success(t("tasks:duplicate.success"));
+ toast.success(t("tasks:duplicate.success"), { icon: CopyPlusIcon });
queryClient.invalidateQueries({
queryKey: ["tasks", task.projectId],
});
diff --git a/apps/web/src/hooks/mutations/task/use-move-task.ts b/apps/web/src/hooks/mutations/task/use-move-task.ts
index 7fb72b263..6173f472b 100644
--- a/apps/web/src/hooks/mutations/task/use-move-task.ts
+++ b/apps/web/src/hooks/mutations/task/use-move-task.ts
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
+import { FolderInputIcon } from "lucide-react";
import { invalidateMyWork } from "@/lib/invalidate-my-work";
import { useTranslation } from "react-i18next";
import moveTask from "@/fetchers/task/move-task";
@@ -12,7 +13,7 @@ export function useMoveTask() {
mutationFn: moveTask,
onSuccess: (result, variables) => {
invalidateMyWork(queryClient);
- toast.success(t("tasks:move.success"));
+ toast.success(t("tasks:move.success"), { icon: FolderInputIcon });
queryClient.invalidateQueries({
queryKey: ["external-links", variables.taskId],
});
diff --git a/apps/web/src/hooks/use-board-sort.ts b/apps/web/src/hooks/use-board-sort.ts
index 1919d6a02..4932bb55b 100644
--- a/apps/web/src/hooks/use-board-sort.ts
+++ b/apps/web/src/hooks/use-board-sort.ts
@@ -1,5 +1,5 @@
-import { useEffect, useState } from "react";
import type { SortConfig, SortDirection, SortField } from "@/lib/sort-tasks";
+import { useStoredState } from "./use-stored-state";
const DEFAULT_SORT: SortConfig = {
field: "position",
@@ -48,35 +48,14 @@ function normalizeSort(value: unknown): SortConfig {
return { field: candidate.field, direction: candidate.direction };
}
-export function useBoardSort(projectId: string | undefined) {
- const storageKey = projectId ? `kaneo:board-sort:${projectId}` : null;
- const [sort, setSort] = useState<SortConfig>(DEFAULT_SORT);
-
- useEffect(() => {
- if (!storageKey || typeof window === "undefined") return;
-
- try {
- const stored = window.localStorage.getItem(storageKey);
- if (!stored) {
- setSort(DEFAULT_SORT);
- return;
- }
-
- const parsed = JSON.parse(stored) as unknown;
- setSort(normalizeSort(parsed));
- } catch {
- setSort(DEFAULT_SORT);
- }
- }, [storageKey]);
-
- useEffect(() => {
- if (!storageKey || typeof window === "undefined") return;
- try {
- window.localStorage.setItem(storageKey, JSON.stringify(sort));
- } catch {
- // persistence is best-effort; private mode or quota can block writes
- }
- }, [sort, storageKey]);
-
+export function useBoardSort(
+ projectId: string | undefined,
+ scope: "board" | "backlog" = "board",
+) {
+ const [sort, setSort] = useStoredState(
+ projectId ? `kaneo:${scope}-sort:${projectId}` : null,
+ normalizeSort,
+ DEFAULT_SORT,
+ );
return { sort, setSort };
}
diff --git a/apps/web/src/hooks/use-copy-invitation-link.ts b/apps/web/src/hooks/use-copy-invitation-link.ts
index 2fa9db878..fea8fe898 100644
--- a/apps/web/src/hooks/use-copy-invitation-link.ts
+++ b/apps/web/src/hooks/use-copy-invitation-link.ts
@@ -1,3 +1,4 @@
+import { LinkIcon } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { copyToClipboard } from "@/lib/copy-to-clipboard";
@@ -36,7 +37,7 @@ export function useCopyInvitationLink() {
}
setCopied(true);
- toast.success(t("team:invitations.linkCopied"));
+ toast.success(t("team:invitations.linkCopied"), { icon: LinkIcon });
if (timer.current) clearTimeout(timer.current);
timer.current = setTimeout(() => setCopied(false), COPIED_RESET_MS);
},
diff --git a/apps/web/src/hooks/use-stored-state.test.tsx b/apps/web/src/hooks/use-stored-state.test.tsx
new file mode 100644
index 000000000..b68818f16
--- /dev/null
+++ b/apps/web/src/hooks/use-stored-state.test.tsx
@@ -0,0 +1,51 @@
+import { act, renderHook } from "@testing-library/react";
+import { type ReactNode, StrictMode } from "react";
+import { afterEach, describe, expect, it } from "vite-plus/test";
+import { useStoredState } from "./use-stored-state";
+
+const parse = (raw: unknown) => (typeof raw === "string" ? raw : "none");
+const strict = ({ children }: { children: ReactNode }) => (
+ <StrictMode>{children}</StrictMode>
+);
+
+afterEach(() => window.localStorage.clear());
+
+describe("useStoredState", () => {
+ it("keeps the stored value when effects run twice on mount", () => {
+ window.localStorage.setItem("key-a", JSON.stringify("saved"));
+
+ const { result } = renderHook(
+ () => useStoredState("key-a", parse, "none"),
+ { wrapper: strict },
+ );
+
+ expect(result.current[0]).toBe("saved");
+ expect(window.localStorage.getItem("key-a")).toBe(JSON.stringify("saved"));
+ });
+
+ it("switches to the next key without copying the previous value", () => {
+ window.localStorage.setItem("key-a", JSON.stringify("first"));
+ window.localStorage.setItem("key-b", JSON.stringify("second"));
+
+ const { result, rerender } = renderHook(
+ ({ storageKey }) => useStoredState(storageKey, parse, "none"),
+ { initialProps: { storageKey: "key-a" } },
+ );
+ rerender({ storageKey: "key-b" });
+
+ expect(result.current[0]).toBe("second");
+ expect(window.localStorage.getItem("key-a")).toBe(JSON.stringify("first"));
+ expect(window.localStorage.getItem("key-b")).toBe(JSON.stringify("second"));
+ });
+
+ it("writes updates under the current key", () => {
+ const { result } = renderHook(() => useStoredState("key-a", parse, "none"));
+
+ act(() => result.current[1]("changed"));
+
+ expect(result.current[0]).toBe("changed");
+ expect(window.localStorage.getItem("key-a")).toBe(
+ JSON.stringify("changed"),
+ );
+ });
+});
diff --git a/apps/web/src/hooks/use-stored-state.ts b/apps/web/src/hooks/use-stored-state.ts
new file mode 100644
index 000000000..0c30bfb30
--- /dev/null
+++ b/apps/web/src/hooks/use-stored-state.ts
@@ -0,0 +1,59 @@
+import {
+ type SetStateAction,
+ useCallback,
+ useEffect,
+ useRef,
+ useState,
+} from "react";
+
+function readStored<T>(
+ key: string | null,
+ parse: (raw: unknown) => T,
+ fallback: T,
+): T {
+ if (!key || typeof window === "undefined") return fallback;
+ try {
+ const raw = window.localStorage.getItem(key);
+ return raw === null ? fallback : parse(JSON.parse(raw));
+ } catch {
+ return fallback;
+ }
+}
+
+export function useStoredState<T>(
+ key: string | null,
+ parse: (raw: unknown) => T,
+ fallback: T,
+) {
+ const [state, setState] = useState(() => ({
+ key,
+ value: readStored(key, parse, fallback),
+ }));
+ const current =
+ state.key === key
+ ? state
+ : { key, value: readStored(key, parse, fallback) };
+ if (current !== state) setState(current);
+
+ const latestKey = useRef(key);
+ latestKey.current = key;
+
+ useEffect(() => {
+ if (!current.key || typeof window === "undefined") return;
+ try {
+ window.localStorage.setItem(current.key, JSON.stringify(current.value));
+ } catch {}
+ }, [current.key, current.value]);
+
+ const setValue = useCallback((update: SetStateAction<T>) => {
+ setState((prev) => ({
+ key: latestKey.current,
+ value:
+ typeof update === "function"
+ ? (update as (previous: T) => T)(prev.value)
+ : update,
+ }));
+ }, []);
+
+ return [current.value, setValue] as const;
+}
diff --git a/apps/web/src/hooks/use-task-filters-with-labels-support.test.tsx b/apps/web/src/hooks/use-task-filters-with-labels-support.test.tsx
index 3a24fa7bb..d2c1ff30d 100644
--- a/apps/web/src/hooks/use-task-filters-with-labels-support.test.tsx
+++ b/apps/web/src/hooks/use-task-filters-with-labels-support.test.tsx
@@ -1,8 +1,10 @@
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
-import { renderHook, waitFor } from "@testing-library/react";
+import { act, renderHook, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it } from "vite-plus/test";
import { useTaskFiltersWithLabelsSupport } from "./use-task-filters-with-labels-support";
+const IGNORE_STATUS = ["status"] as const;
+
function createTestQueryClient() {
return new QueryClient({
defaultOptions: {
@@ -208,4 +210,51 @@ describe("useTaskFiltersWithLabelsSupport", () => {
]);
},
);
+
+ it("keeps an ignored status filter stored but out of the backlog", () => {
+ window.localStorage.setItem(
+ storageKey,
+ JSON.stringify({ status: ["done"], priority: ["high"] }),
+ );
+ const planned = {
+ id: "planned-1",
+ title: "Planned work",
+ number: 7,
+ description: null,
+ status: "planned",
+ priority: "high",
+ dueDate: null,
+ userId: null,
+ labels: [],
+ };
+ const project = {
+ id: "project-1",
+ slug: "PROJ",
+ columns: [],
+ plannedTasks: [planned],
+ archivedTasks: [],
+ } as unknown as Parameters<typeof useTaskFiltersWithLabelsSupport>[0];
+
+ const { result } = renderHook(
+ () =>
+ useTaskFiltersWithLabelsSupport(
+ project,
+ "project-1",
+ "",
+ undefined,
+ IGNORE_STATUS,
+ ),
+ { wrapper: createWrapper() },
+ );
+
+ expect(result.current.filters.status).toBeNull();
+ expect(result.current.activeFilterCount).toBe(1);
+ expect(result.current.filteredProject?.plannedTasks).toHaveLength(1);
+
+ act(() => result.current.clearFilters());
+
+ expect(JSON.parse(window.localStorage.getItem(storageKey) ?? "{}")).toEqual(
+ expect.objectContaining({ status: ["done"], priority: null }),
+ );
+ });
});
diff --git a/apps/web/src/hooks/use-task-filters-with-labels-support.ts b/apps/web/src/hooks/use-task-filters-with-labels-support.ts
index c1ede7365..3fae6925f 100644
--- a/apps/web/src/hooks/use-task-filters-with-labels-support.ts
+++ b/apps/web/src/hooks/use-task-filters-with-labels-support.ts
@@ -1,10 +1,16 @@
-import { addWeeks, endOfWeek, isWithinInterval, startOfWeek } from "date-fns";
-import { useCallback, useEffect, useMemo, useState } from "react";
+import { useCallback, useMemo } from "react";
+import { countActiveFilters } from "@/lib/task-filters/count-active-filters";
+import { filterProjectTasks } from "@/lib/task-filters/filter-project-tasks";
+import { customFieldSubjectId } from "@/lib/task-filters/filter-subject-id";
+import { setSubjectNegated } from "@/lib/task-filters/set-subject-negated";
+import { taskMatchesFilters } from "@/lib/task-filters/task-matches-filters";
+import { toggleFilterValue } from "@/lib/task-filters/toggle-filter-value";
import { useUserPreferencesStore } from "@/store/user-preferences";
import type { ProjectWithTasks } from "@/types/project";
import type Task from "@/types/task";
import useGetCachedCustomFieldValues from "./queries/custom-field/use-get-all-custom-field-values-by-project";
-import { type BoardFilters, DUE_DATE_FILTER_VALUES } from "./use-task-filters";
+import type { BoardFilters } from "./use-task-filters";
+import { useStoredState } from "./use-stored-state";
const DEFAULT_FILTERS: BoardFilters = {
status: null,
@@ -13,8 +19,11 @@ const DEFAULT_FILTERS: BoardFilters = {
dueDate: null,
labels: null,
customFields: null,
+ negated: null,
};
+const NO_IGNORED_FILTERS: ReadonlyArray<keyof BoardFilters> = [];
+
const FILTER_KEYS: Array<keyof BoardFilters> = [
"status",
"priority",
@@ -22,6 +31,7 @@ const FILTER_KEYS: Array<keyof BoardFilters> = [
"dueDate",
"labels",
"customFields",
+ "negated",
];
function normalizeFilters(raw: unknown): BoardFilters {
@@ -66,258 +76,152 @@ export function useTaskFiltersWithLabelsSupport(
projectId?: string,
textQuery?: string,
descriptionMatches?: ReadonlySet<string>,
+ ignore: ReadonlyArray<keyof BoardFilters> = NO_IGNORED_FILTERS,
) {
const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);
- const storageKey = projectId ? `kaneo:board-filters:${projectId}` : null;
- const [filters, setFilters] = useState<BoardFilters>(DEFAULT_FILTERS);
+ const [filters, setFilters] = useStoredState(
+ projectId ? `kaneo:board-filters:${projectId}` : null,
+ normalizeFilters,
+ DEFAULT_FILTERS,
+ );
const { getValuesForTask } = useGetCachedCustomFieldValues();
- useEffect(() => {
- if (!storageKey || typeof window === "undefined") return;
-
- try {
- const stored = window.localStorage.getItem(storageKey);
- if (!stored) {
- setFilters(DEFAULT_FILTERS);
- return;
- }
-
- const parsed = JSON.parse(stored) as unknown;
- setFilters(normalizeFilters(parsed));
- } catch {
- setFilters(DEFAULT_FILTERS);
- }
- }, [storageKey]);
+ const effectiveFilters = useMemo(
+ () =>
+ ignore.length === 0
+ ? filters
+ : ({
+ ...filters,
+ ...Object.fromEntries(ignore.map((key) => [key, null])),
+ } as BoardFilters),
+ [filters, ignore],
+ );
- useEffect(() => {
- if (!storageKey || typeof window === "undefined") return;
- try {
- window.localStorage.setItem(storageKey, JSON.stringify(filters));
- } catch {
- // Storage may be unavailable or full; keep filters working in memory.
- }
- }, [filters, storageKey]);
+ const createMatcher = useCallback(() => {
+ const context = {
+ query: textQuery,
+ projectSlug: project?.slug,
+ descriptionMatches,
+ weekStartsOn,
+ today: new Date(),
+ getCustomFieldValues: getValuesForTask,
+ };
+ return (task: Task) => taskMatchesFilters(task, effectiveFilters, context);
+ }, [
+ effectiveFilters,
+ project?.slug,
+ textQuery,
+ weekStartsOn,
+ getValuesForTask,
+ descriptionMatches,
+ ]);
const filterTasks = useCallback(
- (tasks: Task[]): Task[] => {
- const normalizedTextQuery = textQuery?.trim().toLowerCase();
-
- return tasks.filter((task) => {
- if (normalizedTextQuery) {
- const title = task.title?.toLowerCase() ?? "";
- const description = task.description?.toLowerCase() ?? "";
- const taskNumber = task.number?.toString() ?? "";
- const taskIdentifier =
- taskNumber && project?.slug
- ? `${project.slug}-${taskNumber}`.toLowerCase()
- : "";
- const taskShortIdentifier = taskNumber ? `#${taskNumber}` : "";
- const matchesText =
- descriptionMatches?.has(task.id) ||
- title.includes(normalizedTextQuery) ||
- description.includes(normalizedTextQuery) ||
- taskNumber.includes(normalizedTextQuery) ||
- taskIdentifier.startsWith(normalizedTextQuery) ||
- taskShortIdentifier.startsWith(normalizedTextQuery);
-
- if (!matchesText) {
- return false;
- }
- }
-
- if (
- filters.status &&
- filters.status.length > 0 &&
- !filters.status.includes(task.status)
- ) {
- return false;
- }
-
- if (
- filters.priority &&
- filters.priority.length > 0 &&
- !filters.priority.includes(task.priority ?? "")
- ) {
- return false;
- }
-
- if (
- filters.assignee &&
- filters.assignee.length > 0 &&
- !filters.assignee.includes(task.userId ?? "")
- ) {
- return false;
- }
-
- if (filters.dueDate && filters.dueDate.length > 0) {
- const today = new Date();
- const taskDate = task.dueDate ? new Date(task.dueDate) : null;
-
- const matchesAnyDueDate = filters.dueDate.some((dueDateFilter) => {
- if (dueDateFilter === DUE_DATE_FILTER_VALUES.noDueDate) {
- return !task.dueDate;
- }
-
- if (!taskDate) {
- return false;
- }
-
- switch (dueDateFilter) {
- case DUE_DATE_FILTER_VALUES.dueThisWeek: {
- const weekStart = startOfWeek(today, { weekStartsOn });
- const weekEnd = endOfWeek(today, { weekStartsOn });
- return isWithinInterval(taskDate, {
- start: weekStart,
- end: weekEnd,
- });
- }
- case DUE_DATE_FILTER_VALUES.dueNextWeek: {
- const nextWeekStart = startOfWeek(addWeeks(today, 1), {
- weekStartsOn,
- });
- const nextWeekEnd = endOfWeek(addWeeks(today, 1), {
- weekStartsOn,
- });
- return isWithinInterval(taskDate, {
- start: nextWeekStart,
- end: nextWeekEnd,
- });
- }
- default:
- return false;
- }
- });
-
- if (!matchesAnyDueDate) {
- return false;
- }
- }
-
- // Label filtering
- if (filters.labels && filters.labels.length > 0) {
- const taskLabelIds = (task.labels ?? []).map((label) => label.id);
-
- // Check if task has at least one of the selected labels
- const hasMatchingLabel = filters.labels.some((labelId) =>
- taskLabelIds.includes(labelId),
- );
-
- if (!hasMatchingLabel) {
- return false;
- }
- }
-
- if (
- filters.customFields &&
- Object.keys(filters.customFields).length > 0
- ) {
- const taskFieldValues = getValuesForTask(task.id);
-
- const matchesAllFields = Object.entries(filters.customFields).every(
- ([fieldId, allowedValues]) => {
- if (!allowedValues || allowedValues.length === 0) return true;
-
- const fieldEntry = taskFieldValues.find(
- (v) => v.fieldId === fieldId,
- );
-
- if (
- !fieldEntry ||
- fieldEntry.value == null ||
- fieldEntry.value === ""
- ) {
- return false;
- }
-
- return allowedValues.includes(fieldEntry.value);
- },
- );
-
- if (!matchesAllFields) return false;
- }
-
- return true;
- });
- },
- [
- filters,
- project?.slug,
- textQuery,
- weekStartsOn,
- getValuesForTask,
- descriptionMatches,
- ],
+ (tasks: Task[]): Task[] => tasks.filter(createMatcher()),
+ [createMatcher],
);
- const filteredProject = useMemo(() => {
- if (!project) return null;
-
- return {
- ...project,
- columns:
- project.columns?.map((column) => ({
- ...column,
- tasks: filterTasks(column.tasks),
- })) ?? [],
- };
- }, [project, filterTasks]);
-
- const hasActiveFilters = Object.values(filters).some((filter) =>
- Array.isArray(filter) ? filter.length > 0 : filter !== null,
+ const filteredProject = useMemo(
+ () => (project ? filterProjectTasks(project, createMatcher()) : null),
+ [project, createMatcher],
);
+ const activeFilterCount = countActiveFilters(effectiveFilters);
+ const hasActiveFilters = activeFilterCount > 0;
+
const clearFilters = () => {
- setFilters(DEFAULT_FILTERS);
+ setFilters((prev) =>
+ ignore.length === 0
+ ? DEFAULT_FILTERS
+ : ({
+ ...DEFAULT_FILTERS,
+ ...Object.fromEntries(ignore.map((key) => [key, prev[key]])),
+ negated:
+ prev.negated?.filter((subject) =>
+ (ignore as ReadonlyArray<string>).includes(subject),
+ ) ?? null,
+ } as BoardFilters),
+ );
};
const updateFilter = (
key: keyof BoardFilters,
value: BoardFilters[keyof BoardFilters],
) => {
- setFilters((prev) => ({ ...prev, [key]: value }));
+ setFilters((prev) => ({
+ ...prev,
+ [key]: value,
+ negated:
+ value === null
+ ? setSubjectNegated(prev.negated, key, false)
+ : prev.negated,
+ }));
};
- const updateLabelFilter = (labelId: string) => {
- setFilters((prev) => {
- const currentLabels = prev.labels || [];
- const isSelected = currentLabels.includes(labelId);
-
- let newLabels: string[] | null;
- if (isSelected) {
- newLabels = currentLabels.filter((id) => id !== labelId);
- if (newLabels.length === 0) newLabels = null;
- } else {
- newLabels = [...currentLabels, labelId];
- }
+ const setNegated = (subject: string, negated: boolean) => {
+ setFilters((prev) => ({
+ ...prev,
+ negated: setSubjectNegated(prev.negated, subject, negated),
+ }));
+ };
- return { ...prev, labels: newLabels };
+ const toggleFilter = (
+ key: "status" | "priority" | "assignee" | "dueDate" | "labels",
+ value: string,
+ ) => {
+ setFilters((prev) => {
+ const next = toggleFilterValue(prev[key], value);
+ return {
+ ...prev,
+ [key]: next,
+ negated: next
+ ? prev.negated
+ : setSubjectNegated(prev.negated, key, false),
+ };
});
};
+ const updateLabelFilter = (labelId: string) => {
+ setFilters((prev) => ({
+ ...prev,
+ labels: toggleFilterValue(prev.labels, labelId),
+ }));
+ };
+
const updateCustomFieldFilter = (fieldId: string, value: string) => {
setFilters((prev) => {
- const current = prev.customFields ?? {};
- const existing = current[fieldId] ?? [];
- const isSelected = existing.includes(value);
- const next = isSelected
- ? existing.filter((v) => v !== value)
- : [...existing, value];
- const updated = { ...current, [fieldId]: next };
- if (updated[fieldId].length === 0) delete updated[fieldId];
+ const updated = { ...prev.customFields };
+ const next = toggleFilterValue(updated[fieldId], value);
+ if (next) {
+ updated[fieldId] = next;
+ } else {
+ delete updated[fieldId];
+ }
return {
...prev,
customFields: Object.keys(updated).length > 0 ? updated : null,
+ negated: next
+ ? prev.negated
+ : setSubjectNegated(
+ prev.negated,
+ customFieldSubjectId(fieldId),
+ false,
+ ),
};
});
};
return {
- filters,
+ filters: effectiveFilters,
setFilters,
updateFilter,
+ toggleFilter,
+ setNegated,
updateLabelFilter,
updateCustomFieldFilter,
+ filterTasks,
filteredProject,
+ activeFilterCount,
hasActiveFilters,
clearFilters,
};
diff --git a/apps/web/src/hooks/use-task-filters.ts b/apps/web/src/hooks/use-task-filters.ts
index bbd352ca2..0ecd9b5a2 100644
--- a/apps/web/src/hooks/use-task-filters.ts
+++ b/apps/web/src/hooks/use-task-filters.ts
@@ -11,6 +11,7 @@ export type BoardFilters = {
dueDate: string[] | null;
labels: string[] | null;
customFields: Record<string, string[]> | null;
+ negated?: string[] | null;
};
export const DUE_DATE_FILTER_VALUES = {
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 5ef1ad1bd..6ab9a0e9b 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -40,18 +40,20 @@ input:-webkit-autofill:active {
[data-slot="menu-popup"],
[data-slot="menu-sub-content"],
[data-slot="tooltip-popup"],
+ [data-slot="context-menu-content"],
[data-slot="dialog-popup"],
[data-slot="alert-dialog-popup"],
[data-slot="command-dialog-popup"],
[data-slot="sheet-popup"],
+ [data-slot="sidebar"][data-mobile="true"],
+ [data-slot="toast"],
[data-slot="toast-popup"] {
transition-property: opacity !important;
}
- [data-slot="sidebar-gap"],
- [data-slot="sidebar-container"],
- [data-slot="sidebar-group-content"],
- [data-slot="sidebar-menu-badge"] {
+ [data-slot="sidebar-menu-badge"],
+ [data-slot="collapsible-panel"],
+ [data-slot="accordion-panel"] {
transition: none !important;
}
@@ -67,6 +69,7 @@ input:-webkit-autofill:active {
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
--animate-skeleton: skeleton 2s -1s infinite linear;
+ --animate-caret-blink: caret-blink 1.25s ease-out infinite;
--font-sans: var(--font-sans);
--font-heading: var(--font-heading);
--font-mono: var(--font-mono);
@@ -120,6 +123,17 @@ input:-webkit-autofill:active {
background-position: -200% 0;
}
}
+ @keyframes caret-blink {
+ 0%,
+ 70%,
+ 100% {
+ opacity: 1;
+ }
+ 20%,
+ 50% {
+ opacity: 0;
+ }
+ }
}
:root {
@@ -306,14 +320,17 @@ input:-webkit-autofill:active {
background-color 0.15s ease,
border-color 0.15s ease,
color 0.15s ease,
- transform 0.15s ease;
+ transform 0.15s var(--ease-out);
}
.kaneo-editor-quick-attach:hover {
border-color: color-mix(in srgb, var(--foreground) 18%, var(--border));
background: color-mix(in srgb, var(--accent) 72%, transparent);
color: var(--foreground);
- transform: translateY(-1px);
+ }
+
+ .kaneo-editor-quick-attach:active {
+ transform: scale(0.97);
}
.kaneo-editor-quick-attach:focus-visible {
@@ -765,7 +782,7 @@ input:-webkit-autofill:active {
box-shadow: 0 1px 2px color-mix(in srgb, var(--foreground) 12%, transparent);
opacity: 0;
pointer-events: none;
- transition: opacity 120ms ease-in-out;
+ transition: opacity 120ms ease;
}
/* Clicking the image opens the preview dialog, so the controls reveal on
@@ -805,7 +822,7 @@ input:-webkit-autofill:active {
background: var(--primary);
opacity: 0;
cursor: ew-resize;
- transition: opacity 120ms ease-in-out;
+ transition: opacity 120ms ease;
}
.kaneo-resizable-image:hover .kaneo-resizable-image-handle,
@@ -1020,9 +1037,8 @@ input:-webkit-autofill:active {
);
text-decoration: none;
transition:
- border-color 0.18s ease,
- background-color 0.18s ease,
- transform 0.18s ease;
+ border-color 0.15s ease,
+ background-color 0.15s ease;
}
.kaneo-attachment-card:hover {
@@ -1032,7 +1048,6 @@ input:-webkit-autofill:active {
color-mix(in srgb, var(--accent) 62%, transparent),
color-mix(in srgb, var(--accent) 30%, transparent)
);
- transform: translateY(-1px);
}
.kaneo-attachment-card-icon {
diff --git a/apps/web/src/lib/motion.ts b/apps/web/src/lib/motion.ts
new file mode 100644
index 000000000..dc4dc9398
--- /dev/null
+++ b/apps/web/src/lib/motion.ts
@@ -0,0 +1,3 @@
+export const EASE_OUT = [0.23, 1, 0.32, 1] as const;
+export const EASE_IN_OUT = [0.77, 0, 0.175, 1] as const;
+export const EASE_OUT_CSS = "cubic-bezier(0.23, 1, 0.32, 1)";
diff --git a/apps/web/src/lib/task-filters/count-active-filters.test.ts b/apps/web/src/lib/task-filters/count-active-filters.test.ts
new file mode 100644
index 000000000..7a2e54418
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-active-filters.test.ts
@@ -0,0 +1,15 @@
+import { expect, it } from "vite-plus/test";
+import { countActiveFilters } from "./count-active-filters";
+
+it("counts each filtered subject once", () => {
+ expect(
+ countActiveFilters({
+ status: ["todo", "done"],
+ priority: null,
+ assignee: [],
+ dueDate: ["noDueDate"],
+ labels: null,
+ customFields: { size: ["L"], team: [] },
+ }),
+ ).toBe(3);
+});
diff --git a/apps/web/src/lib/task-filters/count-active-filters.ts b/apps/web/src/lib/task-filters/count-active-filters.ts
new file mode 100644
index 000000000..9971564ae
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-active-filters.ts
@@ -0,0 +1,11 @@
+import type { BoardFilters } from "@/hooks/use-task-filters";
+
+export function countActiveFilters(filters: BoardFilters) {
+ const listCount = (
+ ["status", "priority", "assignee", "dueDate", "labels"] as const
+ ).filter((key) => (filters[key]?.length ?? 0) > 0).length;
+ const customFieldCount = Object.values(filters.customFields ?? {}).filter(
+ (values) => values.length > 0,
+ ).length;
+ return listCount + customFieldCount;
+}
diff --git a/apps/web/src/lib/task-filters/count-tasks.test.ts b/apps/web/src/lib/task-filters/count-tasks.test.ts
new file mode 100644
index 000000000..339a39633
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-tasks.test.ts
@@ -0,0 +1,15 @@
+import { expect, it } from "vite-plus/test";
+import type { ProjectWithTasks } from "@/types/project";
+import { countBacklogTasks, countColumnTasks } from "./count-tasks";
+
+const project = {
+ columns: [{ tasks: [{}, {}] }, { tasks: [{}] }],
+ plannedTasks: [{}],
+ archivedTasks: [{}, {}],
+} as unknown as ProjectWithTasks;
+
+it("counts board tasks and backlog tasks separately", () => {
+ expect(countColumnTasks(project)).toBe(3);
+ expect(countBacklogTasks(project)).toBe(3);
+ expect(countColumnTasks(null)).toBe(0);
+});
diff --git a/apps/web/src/lib/task-filters/count-tasks.ts b/apps/web/src/lib/task-filters/count-tasks.ts
new file mode 100644
index 000000000..549bf566e
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-tasks.ts
@@ -0,0 +1,18 @@
+import type { ProjectWithTasks } from "@/types/project";
+
+type TaskSource = Pick<
+ ProjectWithTasks,
+ "columns" | "plannedTasks" | "archivedTasks"
+>;
+
+export function countColumnTasks(project: TaskSource | null | undefined) {
+ return (
+ project?.columns.reduce((sum, column) => sum + column.tasks.length, 0) ?? 0
+ );
+}
+
+export function countBacklogTasks(project: TaskSource | null | undefined) {
+ return (
+ (project?.plannedTasks?.length ?? 0) + (project?.archivedTasks?.length ?? 0)
+ );
+}
diff --git a/apps/web/src/lib/task-filters/count-values.test.ts b/apps/web/src/lib/task-filters/count-values.test.ts
new file mode 100644
index 000000000..f1e96a79b
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-values.test.ts
@@ -0,0 +1,11 @@
+import { expect, it } from "vite-plus/test";
+import { countValues } from "./count-values";
+
+it("counts each value once per item and skips empty values", () => {
+ const items = [
+ { tags: ["a", "b", "a"] },
+ { tags: ["b", null] },
+ { tags: [] },
+ ];
+ expect(countValues(items, (item) => item.tags)).toEqual({ a: 1, b: 2 });
+});
diff --git a/apps/web/src/lib/task-filters/count-values.ts b/apps/web/src/lib/task-filters/count-values.ts
new file mode 100644
index 000000000..7392a0875
--- /dev/null
+++ b/apps/web/src/lib/task-filters/count-values.ts
@@ -0,0 +1,12 @@
+export function countValues<T>(
+ items: T[],
+ pick: (item: T) => Array<string | null | undefined>,
+): Record<string, number> {
+ const counts: Record<string, number> = {};
+ for (const item of items) {
+ for (const value of new Set(pick(item))) {
+ if (value) counts[value] = (counts[value] ?? 0) + 1;
+ }
+ }
+ return counts;
+}
diff --git a/apps/web/src/lib/task-filters/due-date-options.ts b/apps/web/src/lib/task-filters/due-date-options.ts
new file mode 100644
index 000000000..4952cc05b
--- /dev/null
+++ b/apps/web/src/lib/task-filters/due-date-options.ts
@@ -0,0 +1,16 @@
+import { DUE_DATE_FILTER_VALUES } from "@/hooks/use-task-filters";
+
+export const DUE_DATE_OPTIONS = [
+ {
+ value: DUE_DATE_FILTER_VALUES.dueThisWeek,
+ labelKey: "tasks:backlog.filters.dueThisWeek",
+ },
+ {
+ value: DUE_DATE_FILTER_VALUES.dueNextWeek,
+ labelKey: "tasks:backlog.filters.dueNextWeek",
+ },
+ {
+ value: DUE_DATE_FILTER_VALUES.noDueDate,
+ labelKey: "tasks:backlog.filters.noDueDate",
+ },
+] as const;
diff --git a/apps/web/src/lib/task-filters/filter-project-tasks.test.ts b/apps/web/src/lib/task-filters/filter-project-tasks.test.ts
new file mode 100644
index 000000000..a7537e7d7
--- /dev/null
+++ b/apps/web/src/lib/task-filters/filter-project-tasks.test.ts
@@ -0,0 +1,24 @@
+import { expect, it } from "vite-plus/test";
+import type { ProjectWithTasks } from "@/types/project";
+import type Task from "@/types/task";
+import { filterProjectTasks } from "./filter-project-tasks";
+
+const task = (id: string) => ({ id }) as Task;
+
+it("filters board columns, planned and archived tasks alike", () => {
+ const project = {
+ id: "p",
+ columns: [{ id: "todo", tasks: [task("a"), task("b")] }],
+ plannedTasks: [task("c"), task("d")],
+ archivedTasks: [task("e")],
+ } as unknown as ProjectWithTasks;
+
+ const filtered = filterProjectTasks(project, (item) =>
+ ["a", "d"].includes(item.id),
+ );
+
+ expect(filtered.columns[0].tasks.map((item) => item.id)).toEqual(["a"]);
+ expect(filtered.plannedTasks.map((item) => item.id)).toEqual(["d"]);
+ expect(filtered.archivedTasks).toEqual([]);
+ expect(project.columns[0].tasks).toHaveLength(2);
+});
diff --git a/apps/web/src/lib/task-filters/filter-project-tasks.ts b/apps/web/src/lib/task-filters/filter-project-tasks.ts
new file mode 100644
index 000000000..bb71b7dc9
--- /dev/null
+++ b/apps/web/src/lib/task-filters/filter-project-tasks.ts
@@ -0,0 +1,17 @@
+import type { ProjectWithTasks } from "@/types/project";
+import type Task from "@/types/task";
+
+export function filterProjectTasks(
+ project: ProjectWithTasks,
+ keep: (task: Task) => boolean,
+): ProjectWithTasks {
+ return {
+ ...project,
+ columns: (project.columns ?? []).map((column) => ({
+ ...column,
+ tasks: column.tasks.filter(keep),
+ })),
+ plannedTasks: (project.plannedTasks ?? []).filter(keep),
+ archivedTasks: (project.archivedTasks ?? []).filter(keep),
+ };
+}
diff --git a/apps/web/src/lib/task-filters/filter-subject-id.ts b/apps/web/src/lib/task-filters/filter-subject-id.ts
new file mode 100644
index 000000000..77078240c
--- /dev/null
+++ b/apps/web/src/lib/task-filters/filter-subject-id.ts
@@ -0,0 +1,3 @@
+export function customFieldSubjectId(fieldId: string) {
+ return `customField:${fieldId}`;
+}
diff --git a/apps/web/src/lib/task-filters/label-groups.test.ts b/apps/web/src/lib/task-filters/label-groups.test.ts
new file mode 100644
index 000000000..ef68720d4
--- /dev/null
+++ b/apps/web/src/lib/task-filters/label-groups.test.ts
@@ -0,0 +1,27 @@
+import { describe, expect, it } from "vite-plus/test";
+import {
+ groupLabels,
+ isLabelGroupSelected,
+ toggleLabelGroup,
+} from "./label-groups";
+
+const labels = [
+ { id: "a1", name: "Design", color: "pink" },
+ { id: "a2", name: "Design", color: "pink" },
+ { id: "b1", name: "Engineering", color: "blue" },
+];
+const design = labels[0];
+
+describe("label groups", () => {
+ it("collapses labels that share a name and color", () => {
+ expect(groupLabels(labels).map((label) => label.id)).toEqual(["a1", "b1"]);
+ });
+
+ it("selects and clears every label in a group together", () => {
+ const selected = toggleLabelGroup(labels, design, ["b1"]);
+ expect(selected).toEqual(["b1", "a1", "a2"]);
+ expect(isLabelGroupSelected(labels, design, selected)).toBe(true);
+ expect(toggleLabelGroup(labels, design, selected)).toEqual(["b1"]);
+ expect(toggleLabelGroup(labels, design, ["a2"])).toBeNull();
+ });
+});
diff --git a/apps/web/src/lib/task-filters/label-groups.ts b/apps/web/src/lib/task-filters/label-groups.ts
new file mode 100644
index 000000000..fb618b074
--- /dev/null
+++ b/apps/web/src/lib/task-filters/label-groups.ts
@@ -0,0 +1,36 @@
+export type FilterLabel = { id: string; name: string; color: string };
+
+const sameGroup = (left: FilterLabel, right: FilterLabel) =>
+ left.name === right.name && left.color === right.color;
+
+export function groupLabels(labels: FilterLabel[]): FilterLabel[] {
+ return labels.filter(
+ (label, index) =>
+ labels.findIndex((other) => sameGroup(other, label)) === index,
+ );
+}
+
+export function isLabelGroupSelected(
+ labels: FilterLabel[],
+ group: FilterLabel,
+ selected: string[] | null | undefined,
+) {
+ return labels.some(
+ (label) => sameGroup(label, group) && (selected ?? []).includes(label.id),
+ );
+}
+
+export function toggleLabelGroup(
+ labels: FilterLabel[],
+ group: FilterLabel,
+ selected: string[] | null | undefined,
+): string[] | null {
+ const groupIds = labels
+ .filter((label) => sameGroup(label, group))
+ .map((label) => label.id);
+ const current = selected ?? [];
+ const next = isLabelGroupSelected(labels, group, current)
+ ? current.filter((id) => !groupIds.includes(id))
+ : [...current, ...groupIds.filter((id) => !current.includes(id))];
+ return next.length > 0 ? next : null;
+}
diff --git a/apps/web/src/lib/task-filters/set-subject-negated.test.ts b/apps/web/src/lib/task-filters/set-subject-negated.test.ts
new file mode 100644
index 000000000..98127703d
--- /dev/null
+++ b/apps/web/src/lib/task-filters/set-subject-negated.test.ts
@@ -0,0 +1,13 @@
+import { expect, it } from "vite-plus/test";
+import { setSubjectNegated } from "./set-subject-negated";
+
+it("adds and removes a negated subject once", () => {
+ expect(setSubjectNegated(null, "priority", true)).toEqual(["priority"]);
+ expect(setSubjectNegated(["priority"], "priority", true)).toEqual([
+ "priority",
+ ]);
+ expect(setSubjectNegated(["priority", "labels"], "priority", false)).toEqual([
+ "labels",
+ ]);
+ expect(setSubjectNegated(["priority"], "priority", false)).toBeNull();
+});
diff --git a/apps/web/src/lib/task-filters/set-subject-negated.ts b/apps/web/src/lib/task-filters/set-subject-negated.ts
new file mode 100644
index 000000000..1970386a5
--- /dev/null
+++ b/apps/web/src/lib/task-filters/set-subject-negated.ts
@@ -0,0 +1,9 @@
+export function setSubjectNegated(
+ negated: string[] | null | undefined,
+ subject: string,
+ on: boolean,
+): string[] | null {
+ const rest = (negated ?? []).filter((item) => item !== subject);
+ const next = on ? [...rest, subject] : rest;
+ return next.length > 0 ? next : null;
+}
diff --git a/apps/web/src/lib/task-filters/task-matches-filters.test.ts b/apps/web/src/lib/task-filters/task-matches-filters.test.ts
new file mode 100644
index 000000000..f1eb4c88a
--- /dev/null
+++ b/apps/web/src/lib/task-filters/task-matches-filters.test.ts
@@ -0,0 +1,145 @@
+import { describe, expect, it } from "vite-plus/test";
+import type { BoardFilters } from "@/hooks/use-task-filters";
+import type Task from "@/types/task";
+import {
+ type TaskFilterContext,
+ taskMatchesFilters,
+} from "./task-matches-filters";
+
+const noFilters: BoardFilters = {
+ status: null,
+ priority: null,
+ assignee: null,
+ dueDate: null,
+ labels: null,
+ customFields: null,
+};
+
+const context: TaskFilterContext = {
+ projectSlug: "WEB",
+ weekStartsOn: 1,
+ today: new Date(2026, 9, 14),
+ getCustomFieldValues: (taskId) =>
+ taskId === "t1" ? [{ fieldId: "size", value: "L" }] : [],
+};
+
+function task(overrides: Partial<Task>): Task {
+ return {
+ id: "t1",
+ title: "Build pricing page",
+ number: 18,
+ description: "Plans and FAQ",
+ status: "in-progress",
+ priority: "high",
+ dueDate: "2026-10-16",
+ userId: "u1",
+ labels: [{ id: "l1", name: "Engineering", color: "blue" }],
+ ...overrides,
+ } as Task;
+}
+
+describe("taskMatchesFilters", () => {
+ it.each([
+ ["pricing", true],
+ ["faq", true],
+ ["web-1", true],
+ ["#18", true],
+ ["18", true],
+ ["#19", false],
+ ["checkout", false],
+ ])("matches the query %s: %s", (query, expected) => {
+ expect(taskMatchesFilters(task({}), noFilters, { ...context, query })).toBe(
+ expected,
+ );
+ });
+
+ it("matches tasks the server found by description", () => {
+ expect(
+ taskMatchesFilters(task({ description: null }), noFilters, {
+ ...context,
+ query: "hidden",
+ descriptionMatches: new Set(["t1"]),
+ }),
+ ).toBe(true);
+ });
+
+ it.each([
+ [{ status: ["in-progress"] }, true],
+ [{ status: ["done"] }, false],
+ [{ priority: ["urgent", "high"] }, true],
+ [{ priority: ["low"] }, false],
+ [{ assignee: ["u1"] }, true],
+ [{ assignee: ["u2"] }, false],
+ [{ labels: ["l2", "l1"] }, true],
+ [{ labels: ["l2"] }, false],
+ [{ customFields: { size: ["L", "XL"] } }, true],
+ [{ customFields: { size: ["S"] } }, false],
+ ] as Array<[Partial<BoardFilters>, boolean]>)(
+ "applies %o",
+ (filters, expected) => {
+ expect(
+ taskMatchesFilters(task({}), { ...noFilters, ...filters }, context),
+ ).toBe(expected);
+ },
+ );
+
+ it.each([
+ ["2026-10-16", ["dueThisWeek"], true],
+ ["2026-10-21", ["dueThisWeek"], false],
+ ["2026-10-21", ["dueNextWeek"], true],
+ [null, ["noDueDate"], true],
+ ["2026-10-16", ["noDueDate"], false],
+ [null, ["dueThisWeek", "noDueDate"], true],
+ ] as Array<[string | null, string[], boolean]>)(
+ "treats due date %s against %o as %s",
+ (dueDate, dueFilters, expected) => {
+ expect(
+ taskMatchesFilters(
+ task({ dueDate }),
+ { ...noFilters, dueDate: dueFilters },
+ context,
+ ),
+ ).toBe(expected);
+ },
+ );
+
+ it("requires a value for every filtered custom field", () => {
+ expect(
+ taskMatchesFilters(
+ task({ id: "t2" }),
+ { ...noFilters, customFields: { size: ["L"] } },
+ context,
+ ),
+ ).toBe(false);
+ });
+
+ it.each([
+ [{ priority: ["high"], negated: ["priority"] }, false],
+ [{ priority: ["low"], negated: ["priority"] }, true],
+ [{ labels: ["l1"], negated: ["labels"] }, false],
+ [{ dueDate: ["noDueDate"], negated: ["dueDate"] }, true],
+ [{ customFields: { size: ["S"] }, negated: ["customField:size"] }, true],
+ [{ customFields: { size: ["L"] }, negated: ["customField:size"] }, false],
+ ] as Array<[Partial<BoardFilters>, boolean]>)(
+ "inverts negated subjects %o",
+ (filters, expected) => {
+ expect(
+ taskMatchesFilters(task({}), { ...noFilters, ...filters }, context),
+ ).toBe(expected);
+ },
+ );
+
+ it("treats a missing custom field value as not matching a negated filter", () => {
+ expect(
+ taskMatchesFilters(
+ task({ id: "t2" }),
+ {
+ ...noFilters,
+ customFields: { size: ["L"] },
+ negated: ["customField:size"],
+ },
+ context,
+ ),
+ ).toBe(true);
+ });
+});
diff --git a/apps/web/src/lib/task-filters/task-matches-filters.ts b/apps/web/src/lib/task-filters/task-matches-filters.ts
new file mode 100644
index 000000000..dd77e61ae
--- /dev/null
+++ b/apps/web/src/lib/task-filters/task-matches-filters.ts
@@ -0,0 +1,128 @@
+import {
+ addWeeks,
+ type Day,
+ endOfWeek,
+ isWithinInterval,
+ startOfWeek,
+} from "date-fns";
+import {
+ type BoardFilters,
+ DUE_DATE_FILTER_VALUES,
+} from "@/hooks/use-task-filters";
+import type Task from "@/types/task";
+import { customFieldSubjectId } from "./filter-subject-id";
+
+export type TaskFilterContext = {
+ query?: string;
+ projectSlug?: string;
+ descriptionMatches?: ReadonlySet<string>;
+ weekStartsOn: Day;
+ today: Date;
+ getCustomFieldValues: (
+ taskId: string,
+ ) => Array<{ fieldId: string; value: string | null }>;
+};
+
+function matchesQuery(task: Task, context: TaskFilterContext) {
+ const query = context.query?.trim().toLowerCase();
+ if (!query) return true;
+
+ const taskNumber = task.number?.toString() ?? "";
+ const identifier =
+ taskNumber && context.projectSlug
+ ? `${context.projectSlug}-${taskNumber}`.toLowerCase()
+ : "";
+
+ return (
+ context.descriptionMatches?.has(task.id) ||
+ (task.title?.toLowerCase() ?? "").includes(query) ||
+ (task.description?.toLowerCase() ?? "").includes(query) ||
+ taskNumber.includes(query) ||
+ (identifier !== "" && identifier.startsWith(query)) ||
+ (taskNumber !== "" && `#${taskNumber}`.startsWith(query))
+ );
+}
+
+function matchesDueDate(
+ task: Task,
+ dueDateFilter: string,
+ context: TaskFilterContext,
+) {
+ if (dueDateFilter === DUE_DATE_FILTER_VALUES.noDueDate) return !task.dueDate;
+ if (!task.dueDate) return false;
+
+ const weeksAhead =
+ dueDateFilter === DUE_DATE_FILTER_VALUES.dueThisWeek
+ ? 0
+ : dueDateFilter === DUE_DATE_FILTER_VALUES.dueNextWeek
+ ? 1
+ : null;
+ if (weeksAhead === null) return false;
+
+ const reference = addWeeks(context.today, weeksAhead);
+ return isWithinInterval(new Date(task.dueDate), {
+ start: startOfWeek(reference, { weekStartsOn: context.weekStartsOn }),
+ end: endOfWeek(reference, { weekStartsOn: context.weekStartsOn }),
+ });
+}
+
+export function taskMatchesFilters(
+ task: Task,
+ filters: BoardFilters,
+ context: TaskFilterContext,
+) {
+ if (!matchesQuery(task, context)) return false;
+
+ const negated = new Set(filters.negated ?? []);
+ const passes = (subject: string, matches: boolean) =>
+ negated.has(subject) ? !matches : matches;
+ const labelIds = (task.labels ?? []).map((label) => label.id);
+ const checks: Array<[string, string[] | null | undefined, () => boolean]> = [
+ [
+ "status",
+ filters.status,
+ () => filters.status?.includes(task.status) ?? false,
+ ],
+ [
+ "priority",
+ filters.priority,
+ () => filters.priority?.includes(task.priority ?? "") ?? false,
+ ],
+ [
+ "assignee",
+ filters.assignee,
+ () => filters.assignee?.includes(task.userId ?? "") ?? false,
+ ],
+ [
+ "dueDate",
+ filters.dueDate,
+ () =>
+ filters.dueDate?.some((value) =>
+ matchesDueDate(task, value, context),
+ ) ?? false,
+ ],
+ [
+ "labels",
+ filters.labels,
+ () => filters.labels?.some((id) => labelIds.includes(id)) ?? false,
+ ],
+ ];
+
+ for (const [subject, values, matches] of checks) {
+ if (values?.length && !passes(subject, matches())) return false;
+ }
+
+ const fieldValues = filters.customFields
+ ? context.getCustomFieldValues(task.id)
+ : [];
+ return Object.entries(filters.customFields ?? {}).every(
+ ([fieldId, allowed]) => {
+ if (allowed.length === 0) return true;
+ const value = fieldValues.find(
+ (entry) => entry.fieldId === fieldId,
+ )?.value;
+ const matches = value != null && value !== "" && allowed.includes(value);
+ return passes(customFieldSubjectId(fieldId), matches);
+ },
+ );
+}
diff --git a/apps/web/src/lib/task-filters/toggle-filter-value.test.ts b/apps/web/src/lib/task-filters/toggle-filter-value.test.ts
new file mode 100644
index 000000000..c658a6986
--- /dev/null
+++ b/apps/web/src/lib/task-filters/toggle-filter-value.test.ts
@@ -0,0 +1,8 @@
+import { expect, it } from "vite-plus/test";
+import { toggleFilterValue } from "./toggle-filter-value";
+
+it("toggles a value and clears the filter when nothing is left", () => {
+ expect(toggleFilterValue(null, "high")).toEqual(["high"]);
+ expect(toggleFilterValue(["high", "low"], "high")).toEqual(["low"]);
+ expect(toggleFilterValue(["high"], "high")).toBeNull();
+});
diff --git a/apps/web/src/lib/task-filters/toggle-filter-value.ts b/apps/web/src/lib/task-filters/toggle-filter-value.ts
new file mode 100644
index 000000000..b8043af48
--- /dev/null
+++ b/apps/web/src/lib/task-filters/toggle-filter-value.ts
@@ -0,0 +1,10 @@
+export function toggleFilterValue(
+ values: string[] | null | undefined,
+ value: string,
+): string[] | null {
+ const current = values ?? [];
+ const next = current.includes(value)
+ ? current.filter((item) => item !== value)
+ : [...current, value];
+ return next.length > 0 ? next : null;
+}
diff --git a/apps/web/src/lib/toast.test.ts b/apps/web/src/lib/toast.test.ts
new file mode 100644
index 000000000..786b9635e
--- /dev/null
+++ b/apps/web/src/lib/toast.test.ts
@@ -0,0 +1,23 @@
+import { afterEach, expect, it, vi } from "vite-plus/test";
+import { toastManager } from "@/components/ui/toast";
+import { toast } from "./toast";
+
+afterEach(() => vi.restoreAllMocks());
+
+it("reuses one toast for repeats and marks each repeat", () => {
+ const add = vi
+ .spyOn(toastManager, "add")
+ .mockImplementation((options) => options.id ?? "");
+
+ const first = toast.success("Link copied");
+ const second = toast.success("Link copied");
+ const other = toast.error("Link copied");
+
+ expect(first).toBe(second);
+ expect(other).not.toBe(first);
+ const [a, b] = add.mock.calls.map(([options]) => options);
+ expect(a.id).toBe(b.id);
+ expect((b.data as { repeat: number }).repeat).toBeGreaterThan(
+ (a.data as { repeat: number }).repeat,
+ );
+});
diff --git a/apps/web/src/lib/toast.ts b/apps/web/src/lib/toast.ts
index 20dcb9d1b..db8eb054f 100644
--- a/apps/web/src/lib/toast.ts
+++ b/apps/web/src/lib/toast.ts
@@ -1,3 +1,4 @@
+import type { LucideIcon } from "lucide-react";
import { toastManager } from "@/components/ui/toast";
type ToastVariant = "success" | "error" | "info" | "warning";
@@ -9,21 +10,26 @@ type ToastAction = {
type ToastOptions = {
description?: string;
+ icon?: LucideIcon;
action?: ToastAction;
cancel?: ToastAction;
};
+let repeat = 0;
+
function addToast(
title: string,
variant?: ToastVariant,
options?: ToastOptions,
) {
- let id = "";
-
+ const id = `${variant ?? "message"}:${title}:${options?.description ?? ""}`;
const action = options?.action ?? options?.cancel;
+ repeat += 1;
- id = toastManager.add({
+ return toastManager.add({
+ id,
title,
+ data: { repeat, icon: options?.icon },
description: options?.description,
type: variant,
actionProps: action
@@ -36,8 +42,6 @@ function addToast(
}
: undefined,
});
-
- return id;
}
type ToastFn = (title: string, options?: ToastOptions) => string;
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/invitations.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/invitations.tsx
index 5b68a0f0a..df090c976 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/invitations.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/invitations.tsx
@@ -1,6 +1,13 @@
import { useQueryClient } from "@tanstack/react-query";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
-import { CheckCircle, Loader2, Mail, X } from "lucide-react";
+import {
+ CheckCircle,
+ Loader2,
+ Mail,
+ X,
+ UserXIcon,
+ UserCheckIcon,
+} from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import Layout from "@/components/common/layout";
@@ -56,7 +63,9 @@ function InvitationsPage() {
organizationId: data?.invitation.organizationId || organizationId,
});
- toast.success(t("invitations:toast.acceptSuccess"));
+ toast.success(t("invitations:toast.acceptSuccess"), {
+ icon: UserCheckIcon,
+ });
await queryClient.invalidateQueries({
queryKey: ["invitations", "pending"],
@@ -91,7 +100,7 @@ function InvitationsPage() {
return;
}
- toast.success(t("invitations:toast.rejectSuccess"));
+ toast.success(t("invitations:toast.rejectSuccess"), { icon: UserXIcon });
await queryClient.invalidateQueries({
queryKey: ["invitations", "pending"],
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/billing.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/billing.tsx
index 4f09eb74c..98806f9da 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/billing.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/billing.tsx
@@ -12,6 +12,14 @@ export const Route = createFileRoute(
function RouteComponent() {
const { checkout } = Route.useSearch();
+ const navigate = Route.useNavigate();
- return <BillingSettingsPage checkout={checkout} />;
+ return (
+ <BillingSettingsPage
+ checkout={checkout}
+ onDismissCheckout={() =>
+ navigate({ search: { checkout: undefined }, replace: true })
+ }
+ />
+ );
}
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.test.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.test.tsx
index 73f121a05..b9d325bd8 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.test.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/labels.test.tsx
@@ -206,6 +206,7 @@ describe("creating and editing labels", () => {
);
expect(m.success).toHaveBeenCalledWith(
"settings:workspaceLabels.createSuccess",
+ { icon: expect.anything() },
);
});
@@ -260,6 +261,7 @@ describe("deleting workspace labels", () => {
await waitFor(() => expect(m.remove).toHaveBeenCalledWith({ id: "bug" }));
expect(m.success).toHaveBeenCalledWith(
"settings:workspaceLabels.deleteSuccess",
+ { icon: expect.anything() },
);
});
@@ -295,6 +297,7 @@ describe("deleting workspace labels", () => {
await waitFor(() =>
expect(m.success).toHaveBeenCalledWith(
"settings:workspaceLabels.deleteSuccess",
+ { icon: expect.anything() },
),
);
});
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx
index a42b7b018..82ab3b734 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/workspace/roles.tsx
@@ -1,6 +1,14 @@
import { DEFAULT_ROLE_NAMES, statement } from "@kaneo/permissions";
import { createFileRoute } from "@tanstack/react-router";
-import { Plus, Shield, Trash2, X } from "lucide-react";
+import {
+ Plus,
+ Shield,
+ Trash2,
+ X,
+ Trash2Icon,
+ ShieldCheckIcon,
+ ShieldPlusIcon,
+} from "lucide-react";
import { useId, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import PageTitle from "@/components/page-title";
@@ -649,7 +657,9 @@ function DraftEditor({
}
try {
await createRole({ workspaceId, role: trimmed, permission });
- toast.success(t("settings:workspaceRoles.toast.created"));
+ toast.success(t("settings:workspaceRoles.toast.created"), {
+ icon: ShieldPlusIcon,
+ });
onCreated(trimmed);
} catch (error) {
toast.error(
@@ -760,7 +770,9 @@ export function CustomRoleEditor({
roleName: role.role,
permission: currentPermissions,
});
- toast.success(t("settings:workspaceRoles.toast.updated"));
+ toast.success(t("settings:workspaceRoles.toast.updated"), {
+ icon: ShieldCheckIcon,
+ });
} catch (error) {
toast.error(
error instanceof Error
@@ -867,7 +879,9 @@ function DeleteRoleConfirm({
if (!role) return;
try {
await deleteRole({ workspaceId, roleName: role.role });
- toast.success(t("settings:workspaceRoles.toast.deleted"));
+ toast.success(t("settings:workspaceRoles.toast.deleted"), {
+ icon: Trash2Icon,
+ });
// Caller closes the dialog after the mutation succeeds so a
// failed delete leaves the confirmation visible.
onDeleted();
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/inbox.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/inbox.tsx
index fb71ec576..09d8c701f 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/inbox.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/inbox.tsx
@@ -25,6 +25,7 @@ function RouteComponent() {
useGetNotifications(workspaceId);
const { mutate: markAsRead } = useMarkNotificationAsRead();
const [selectedId, setSelectedId] = useState<string>();
+ const [wentBack, setWentBack] = useState(false);
const notifications = data ?? [];
const selected = notifications.find(
@@ -46,6 +47,8 @@ function RouteComponent() {
className={cn(
"w-full shrink-0 border-border/60 lg:block lg:w-[26rem] lg:border-r",
selected && "hidden",
+ wentBack &&
+ "max-lg:transition-[translate,opacity] max-lg:duration-200 max-lg:ease-out max-lg:starting:-translate-x-6 max-lg:starting:opacity-0 motion-reduce:max-lg:starting:translate-x-0",
)}
>
{isPending ? (
@@ -70,12 +73,20 @@ function RouteComponent() {
/>
)}
</div>
- <div className={cn("min-w-0 flex-1", !selected && "hidden lg:block")}>
+ <div
+ className={cn(
+ "min-w-0 flex-1 max-lg:transition-[translate,opacity] max-lg:duration-200 max-lg:ease-out max-lg:starting:translate-x-6 max-lg:starting:opacity-0 motion-reduce:max-lg:starting:translate-x-0",
+ !selected && "hidden lg:block",
+ )}
+ >
{selected ? (
<InboxDetail
notification={selected}
workspaceId={workspaceId}
- onBack={() => setSelectedId(undefined)}
+ onBack={() => {
+ setWentBack(true);
+ setSelectedId(undefined);
+ }}
/>
) : (
<div className="flex h-full flex-col items-center justify-center gap-2 text-center">
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.tsx
index d0d778292..ae577b1a4 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,50 +1,27 @@
-import { useQueryClient } from "@tanstack/react-query";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import { produce } from "immer";
-import { ArrowRight, Calendar, Filter, Plus, User, X } from "lucide-react";
+import { ArrowRight, Plus, SquareKanbanIcon } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import BacklogListView from "@/components/backlog-list-view";
import ProjectLayout from "@/components/common/project-layout";
-import SortControl from "@/components/common/sort-control";
import PageTitle from "@/components/page-title";
+import { TaskDisplayOptions } from "@/components/project/display/task-display-options";
+import { ActiveFiltersBar } from "@/components/project/task-filters/active-filters-bar";
+import { ProjectToolbar } from "@/components/project/toolbar/project-toolbar";
+import { TaskCount } from "@/components/project/toolbar/task-count";
+import { useProjectTaskView } from "@/components/project/toolbar/use-project-task-view";
+import { ConfirmDialog } from "@/components/settings/confirm-dialog";
import CreateTaskModal from "@/components/shared/modals/create-task-modal";
import TaskDetailsSheet from "@/components/task/task-details-sheet";
-import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
-import {
- DropdownMenu,
- DropdownMenuCheckboxItem,
- DropdownMenuContent,
- DropdownMenuGroup,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuTrigger,
-} from "@/components/ui/menu";
-import { shortcuts } from "@/constants/shortcuts";
import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";
-import useGetCachedCustomFieldValues from "@/hooks/queries/custom-field/use-get-all-custom-field-values-by-project";
-import useGetCustomFieldFilterValues from "@/hooks/queries/custom-field/use-get-custom-field-filter-values";
-import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
-import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-workspace";
import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";
-import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";
-import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
-import { DUE_DATE_FILTER_VALUES } from "@/hooks/use-task-filters";
-import { getInitials } from "@/lib/get-initials";
-import { getPriorityLabel } from "@/lib/i18n/domain";
-import { resolveLabelColor } from "@/lib/label-color";
-import { getPriorityIcon } from "@/lib/priority";
-import type { SortConfig } from "@/lib/sort-tasks";
+import { useBoardSort } from "@/hooks/use-board-sort";
import { sortTasks } from "@/lib/sort-tasks";
+import { countBacklogTasks } from "@/lib/task-filters/count-tasks";
import { toast } from "@/lib/toast";
import useProjectStore from "@/store/project";
-import { useUserPreferencesStore } from "@/store/user-preferences";
-import type Task from "@/types/task";
type BacklogSearchParams = {
taskId?: string;
@@ -67,26 +44,17 @@ function RouteComponent() {
const { data } = useGetTasks(projectId);
const { project, setProject } = useProjectStore();
const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
+ const [isMoveAllOpen, setIsMoveAllOpen] = useState(false);
+ const [moveAllCount, setMoveAllCount] = useState(0);
const { mutate: updateTask } = useUpdateTask();
- const [sort, setSort] = useState<SortConfig>({
- field: "position",
- direction: "asc",
+ const { sort, setSort } = useBoardSort(projectId, "backlog");
+ const view = useProjectTaskView({
+ project,
+ projectId,
+ workspaceId,
+ scope: "backlog",
});
-
- const { data: users } = useGetActiveWorkspaceUsers(workspaceId);
- const { data: workspaceLabels = [] } = useGetLabelsByWorkspace(workspaceId);
- const queryClient = useQueryClient();
-
- const { data: rawCustomFields = [] } = useGetCustomFieldsByProject(projectId);
- const { data: filterValuesData = [] } =
- useGetCustomFieldFilterValues(projectId);
- const { getValuesForTask } = useGetCachedCustomFieldValues();
-
- const usedCustomFieldValues = useMemo<Record<string, string[]>>(
- () =>
- Object.fromEntries(filterValuesData.map((f) => [f.fieldId, f.values])),
- [filterValuesData],
- );
+ const { filters } = view;
const handleCloseTaskSheet = useCallback(() => {
navigate({
@@ -96,288 +64,21 @@ function RouteComponent() {
});
}, [navigate]);
- const { setViewMode } = useUserPreferencesStore();
-
- useRegisterShortcuts({
- sequentialShortcuts: {
- [shortcuts.view.prefix]: {
- [shortcuts.view.board]: () => {
- setViewMode("board");
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/board",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.list]: () => {
- setViewMode("list");
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/board",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.calendar]: () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/calendar",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.gantt]: () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.backlog]: () => {},
- },
- },
- });
-
- const [filters, setFilters] = useState({
- priority: null as string | null,
- assignee: null as string | null,
- dueDate: null as string | null,
- labels: [] as string[],
- customFields: {} as Record<string, string[]>,
- });
-
- const updateFilter = (key: string, value: string | null) => {
- setFilters((prev) => ({ ...prev, [key]: value }));
- };
-
- const updateLabelFilter = (labelId: string) => {
- setFilters((prev) => ({
- ...prev,
- labels: prev.labels.includes(labelId)
- ? prev.labels.filter((id) => id !== labelId)
- : [...prev.labels, labelId],
- }));
- };
-
- const updateCustomFieldFilter = (fieldId: string, value: string) => {
- setFilters((prev) => {
- const existing = prev.customFields[fieldId] ?? [];
- const next = existing.includes(value)
- ? existing.filter((v) => v !== value)
- : [...existing, value];
- const updated = { ...prev.customFields };
- if (next.length > 0) {
- updated[fieldId] = next;
- } else {
- delete updated[fieldId];
- }
- return { ...prev, customFields: updated };
- });
- };
-
- const clearCustomFieldFilter = (fieldId: string) => {
- setFilters((prev) => {
- const updated = { ...prev.customFields };
- delete updated[fieldId];
- return { ...prev, customFields: updated };
- });
- };
-
- const clearFilters = () => {
- setFilters({
- priority: null,
- assignee: null,
- dueDate: null,
- labels: [],
- customFields: {},
- });
- };
-
- const hasActiveFilters = Object.values(filters).some((filter) => {
- if (Array.isArray(filter)) {
- return filter.length > 0;
- }
-
- if (filter && typeof filter === "object") {
- return Object.keys(filter).length > 0;
- }
-
- return filter !== null && filter !== undefined;
- });
-
useEffect(() => {
if (data) {
setProject(data);
}
}, [data, setProject]);
- const getAssigneeDisplayName = (userId: string) => {
- const member = users?.members?.find((m) => m.userId === userId);
- return member?.user?.name || t("common:people.unknown");
- };
-
- const getTaskLabels = useCallback(
- (taskId: string) => {
- const queryKey = ["labels", taskId];
- const cachedData = queryClient.getQueryData(queryKey) as
- | Array<{ id: string; name: string; color: string }>
- | undefined;
- return cachedData || [];
- },
- [queryClient],
- );
-
- const filteredProject = useMemo(() => {
- if (!project) return null;
-
- const filterTasks = (tasks: Task[]) => {
- return tasks.filter((task) => {
- if (filters.priority && task.priority !== filters.priority) {
- return false;
- }
-
- if (filters.assignee && task.userId !== filters.assignee) {
- return false;
- }
-
- if (filters.dueDate && task.dueDate) {
- const today = new Date();
- const taskDate = new Date(task.dueDate);
-
- switch (filters.dueDate) {
- case DUE_DATE_FILTER_VALUES.dueThisWeek: {
- const weekStart = new Date(
- today.getFullYear(),
- today.getMonth(),
- today.getDate() - today.getDay(),
- );
- const weekEnd = new Date(
- weekStart.getTime() + 6 * 24 * 60 * 60 * 1000,
- );
- if (taskDate < weekStart || taskDate > weekEnd) {
- return false;
- }
- break;
- }
- case DUE_DATE_FILTER_VALUES.dueNextWeek: {
- const nextWeekStart = new Date(
- today.getFullYear(),
- today.getMonth(),
- today.getDate() - today.getDay() + 7,
- );
- const nextWeekEnd = new Date(
- nextWeekStart.getTime() + 6 * 24 * 60 * 60 * 1000,
- );
- if (taskDate < nextWeekStart || taskDate > nextWeekEnd) {
- return false;
- }
- break;
- }
- case DUE_DATE_FILTER_VALUES.noDueDate: {
- return false;
- }
- }
- }
-
- if (
- filters.dueDate === DUE_DATE_FILTER_VALUES.noDueDate &&
- task.dueDate
- ) {
- return false;
- }
-
- if (filters.labels.length > 0) {
- const taskLabels = getTaskLabels(task.id);
- const taskLabelIds = taskLabels.map((label) => label.id);
- const hasMatchingLabel = filters.labels.some((filterLabelId) =>
- taskLabelIds.includes(filterLabelId),
- );
- if (!hasMatchingLabel) {
- return false;
- }
- }
-
- if (Object.keys(filters.customFields).length > 0) {
- const taskFieldValues = getValuesForTask(task.id);
- const allMatch = Object.entries(filters.customFields).every(
- ([fieldId, selectedVals]) => {
- if (!selectedVals || selectedVals.length === 0) return true;
-
- const entry = taskFieldValues.find((v) => v.fieldId === fieldId);
-
- if (!entry || entry.value == null || entry.value === "") {
- return false;
- }
-
- return selectedVals.includes(entry.value);
- },
- );
- if (!allMatch) return false;
- }
-
- return true;
- });
- };
-
- return {
- ...project,
- plannedTasks: filterTasks(project.plannedTasks || []),
- archivedTasks: filterTasks(project.archivedTasks || []),
- };
- }, [project, filters, getTaskLabels, getValuesForTask]);
-
- const uniqueLabels = workspaceLabels.reduce(
- (
- acc: { id: string; name: string; color: string }[],
- label: { id: string; name: string; color: string },
- ) => {
- const existing = acc.find(
- (l) => l.name === label.name && l.color === label.color,
- );
- if (!existing) {
- acc.push(label);
- }
- return acc;
- },
- [],
- );
-
- const isLabelGroupSelected = (label: { name: string; color: string }) => {
- return workspaceLabels
- .filter(
- (l: { name: string; color: string }) =>
- l.name === label.name && l.color === label.color,
- )
- .some((l: { id: string }) => filters.labels?.includes(l.id));
- };
-
- const toggleLabelGroup = (label: { name: string; color: string }) => {
- const matchingLabels = workspaceLabels.filter(
- (l: { name: string; color: string }) =>
- l.name === label.name && l.color === label.color,
- );
-
- const isAnySelected = matchingLabels.some((l: { id: string }) =>
- filters.labels?.includes(l.id),
- );
-
- if (isAnySelected) {
- for (const l of matchingLabels) {
- if (filters.labels?.includes(l.id)) {
- updateLabelFilter(l.id);
- }
- }
- } else {
- for (const l of matchingLabels) {
- if (!filters.labels?.includes(l.id)) {
- updateLabelFilter(l.id);
- }
- }
- }
- };
-
const sortedProject = useMemo(() => {
+ const filteredProject = filters.filteredProject;
if (!filteredProject || sort.field === "position") return filteredProject;
return {
...filteredProject,
plannedTasks: sortTasks(filteredProject.plannedTasks || [], sort),
archivedTasks: sortTasks(filteredProject.archivedTasks || [], sort),
};
- }, [filteredProject, sort]);
+ }, [filters.filteredProject, sort]);
const handleMoveAllPlannedToTodo = () => {
if (!project) return;
@@ -389,13 +90,15 @@ function RouteComponent() {
return;
}
- if (
- !confirm(
- t("tasks:backlog.moveAllConfirm", { count: plannedTasks.length }),
- )
- ) {
- return;
- }
+ setMoveAllCount(plannedTasks.length);
+ setIsMoveAllOpen(true);
+ };
+
+ const confirmMoveAllPlannedToTodo = () => {
+ setIsMoveAllOpen(false);
+ if (!project) return;
+
+ const plannedTasks = project.plannedTasks || [];
for (const task of plannedTasks) {
updateTask({
@@ -422,6 +125,7 @@ function RouteComponent() {
setProject(updatedProject);
toast.success(
t("tasks:backlog.moveAllSuccess", { count: plannedTasks.length }),
+ { icon: SquareKanbanIcon },
);
};
@@ -430,464 +134,63 @@ function RouteComponent() {
projectId={projectId}
workspaceId={workspaceId}
activeView="backlog"
+ toolbar={
+ <ProjectToolbar
+ view={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>
+ </>
+ }
+ display={
+ <TaskDisplayOptions
+ projectId={projectId}
+ sort={sort}
+ onSortChange={setSort}
+ layout="rows"
+ />
+ }
+ />
+ }
+ summary={
+ <TaskCount
+ shown={countBacklogTasks(filters.filteredProject)}
+ total={countBacklogTasks(project)}
+ />
+ }
+ filterBar={
+ <ActiveFiltersBar
+ subjects={view.subjects}
+ onClear={filters.clearFilters}
+ />
+ }
>
<PageTitle
title={t("tasks:backlog.pageTitle", { name: project?.name })}
/>
<div className="relative flex flex-col h-full min-h-0 overflow-hidden">
- <div className="border-border/80 border-b bg-card/80 backdrop-blur supports-[backdrop-filter]:bg-card/70">
- <div className="flex min-h-12 items-center px-3 py-2 md:px-4">
- <div className="flex w-full items-center gap-2">
- <div className="flex w-full flex-wrap items-center gap-1.5">
- <Button
- variant="ghost"
- size="xs"
- onClick={() => setIsTaskModalOpen(true)}
- className="h-6 px-2 text-xs text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
- >
- <Plus className="h-3 w-3 mr-1" />
- {t("tasks:backlog.plan")}
- </Button>
-
- <Button
- variant="ghost"
- size="xs"
- onClick={handleMoveAllPlannedToTodo}
- className="h-6 px-2 text-xs text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
- title={t("tasks:backlog.moveAllTooltip")}
- >
- <ArrowRight className="h-3 w-3 mr-1" />
- {t("tasks:backlog.moveAll")}
- </Button>
-
- {filters.priority && (
- <Button
- variant="secondary"
- size="xs"
- className="h-7 rounded-md px-2 text-xs font-medium gap-1.5"
- >
- {getPriorityIcon(filters.priority)}
- <span>
- {t("tasks:backlog.filters.priority", {
- name: getPriorityLabel(filters.priority),
- })}
- </span>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 p-0 ml-1 hover:bg-destructive hover:text-destructive-foreground"
- onClick={(e) => {
- e.stopPropagation();
- updateFilter("priority", null);
- }}
- >
- <X className="h-2.5 w-2.5" />
- </Button>
- </Button>
- )}
-
- {filters.assignee && (
- <Button
- variant="secondary"
- size="xs"
- className="h-7 rounded-md px-2 text-xs font-medium gap-1.5"
- >
- <User className="h-3 w-3" />
- <span>
- {t("tasks:backlog.filters.assignee", {
- name: getAssigneeDisplayName(filters.assignee),
- })}
- </span>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 p-0 ml-1 hover:bg-destructive hover:text-destructive-foreground"
- onClick={(e) => {
- e.stopPropagation();
- updateFilter("assignee", null);
- }}
- >
- <X className="h-2.5 w-2.5" />
- </Button>
- </Button>
- )}
-
- {filters.dueDate && (
- <Button
- variant="secondary"
- size="xs"
- className="h-7 rounded-md px-2 text-xs font-medium gap-1.5"
- >
- <Calendar className="h-3 w-3" />
- <span>
- {t("tasks:backlog.filters.due", {
- date: t(
- filters.dueDate === DUE_DATE_FILTER_VALUES.dueThisWeek
- ? "tasks:backlog.filters.dueThisWeek"
- : filters.dueDate ===
- DUE_DATE_FILTER_VALUES.dueNextWeek
- ? "tasks:backlog.filters.dueNextWeek"
- : "tasks:backlog.filters.noDueDate",
- { defaultValue: filters.dueDate },
- ),
- })}
- </span>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 p-0 ml-1 hover:bg-destructive hover:text-destructive-foreground"
- onClick={(e) => {
- e.stopPropagation();
- updateFilter("dueDate", null);
- }}
- >
- <X className="h-2.5 w-2.5" />
- </Button>
- </Button>
- )}
-
- {filters.labels &&
- filters.labels.length > 0 &&
- uniqueLabels
- .filter((uniqueLabel) =>
- workspaceLabels
- .filter(
- (l: { name: string; color: string }) =>
- l.name === uniqueLabel.name &&
- l.color === uniqueLabel.color,
- )
- .some((l: { id: string }) =>
- filters.labels?.includes(l.id),
- ),
- )
- .map((label) => (
- <Button
- key={`${label.name}-${label.color}`}
- variant="secondary"
- size="xs"
- className="h-7 rounded-md px-2 text-xs font-medium gap-1.5"
- >
- <span
- className="w-2.5 h-2.5 rounded-full flex-shrink-0"
- style={{
- backgroundColor: resolveLabelColor(label.color),
- }}
- />
- <span>
- {t("tasks:backlog.filters.label", {
- name: label.name,
- })}
- </span>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 p-0 ml-1 hover:bg-destructive hover:text-destructive-foreground"
- onClick={(e) => {
- e.stopPropagation();
- toggleLabelGroup(label);
- }}
- >
- <X className="h-2.5 w-2.5" />
- </Button>
- </Button>
- ))}
-
- {Object.entries(filters.customFields).map(([fieldId, vals]) => {
- if (!vals.length) return null;
- const field = rawCustomFields.find((f) => f.id === fieldId);
- if (!field) return null;
- return (
- <Button
- key={fieldId}
- variant="secondary"
- size="xs"
- className="h-7 rounded-md px-2 text-xs font-medium gap-1.5"
- >
- <span>{field.name}</span>
- <span className="text-muted-foreground">:</span>
- <span>
- {vals.length === 1
- ? field.type === "boolean"
- ? vals[0] === "true"
- ? "True"
- : "False"
- : vals[0]
- : t("tasks:boardFilters.selectedCount", {
- count: vals.length,
- defaultValue: `${vals.length} selected`,
- })}
- </span>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 p-0 ml-1 hover:bg-destructive hover:text-destructive-foreground"
- onClick={(e) => {
- e.stopPropagation();
- clearCustomFieldFilter(fieldId);
- }}
- >
- <X className="h-2.5 w-2.5" />
- </Button>
- </Button>
- );
- })}
-
- <DropdownMenu>
- <DropdownMenuTrigger
- render={
- <button
- type="button"
- className="inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-background px-2.5 text-foreground text-xs font-medium outline-none ring-0 hover:bg-accent/60"
- />
- }
- >
- <Filter className="h-3 w-3" />
- {t("tasks:backlog.filter")}
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-80" align="start">
- <DropdownMenuItem
- disabled
- className="h-8 rounded-md border border-border/80 bg-card text-sm text-muted-foreground"
- >
- {t("tasks:backlog.addFilter")}
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- {hasActiveFilters && (
- <>
- <DropdownMenuItem
- onClick={clearFilters}
- className="h-8 text-sm text-muted-foreground"
- >
- <span>{t("common:actions.clearAllFilters")}</span>
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- </>
- )}
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:priority.label")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- {["urgent", "high", "medium", "low"].map((priority) => (
- <DropdownMenuCheckboxItem
- key={priority}
- checked={filters.priority === priority}
- onCheckedChange={(checked) =>
- updateFilter("priority", checked ? priority : null)
- }
- className="h-8 rounded-md text-sm [&_svg]:text-sidebar-foreground"
- >
- <div className="flex gap-2 items-center">
- {getPriorityIcon(priority)}
- <span className="capitalize">
- {getPriorityLabel(priority)}
- </span>
- </div>
- </DropdownMenuCheckboxItem>
- ))}
-
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:assignee.label")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- {users?.members?.map((member) => (
- <DropdownMenuCheckboxItem
- key={member.userId}
- checked={filters.assignee === member.userId}
- onCheckedChange={(checked) =>
- updateFilter(
- "assignee",
- checked ? member.userId : null,
- )
- }
- className="h-8 rounded-md text-sm"
- >
- <Avatar className="h-6 w-6 mr-2">
- <AvatarImage
- src={member.user?.image ?? ""}
- alt={member.user?.name || ""}
- />
- <AvatarFallback className="text-xs font-medium border border-border/30">
- {getInitials(member.user?.name)}
- </AvatarFallback>
- </Avatar>
- <span>{member.user?.name}</span>
- </DropdownMenuCheckboxItem>
- ))}
-
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:dueDate.label")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- {[
- {
- label: DUE_DATE_FILTER_VALUES.dueThisWeek,
- key: "dueThisWeek",
- },
- {
- label: DUE_DATE_FILTER_VALUES.dueNextWeek,
- key: "dueNextWeek",
- },
- {
- label: DUE_DATE_FILTER_VALUES.noDueDate,
- key: "noDueDate",
- },
- ].map((item) => (
- <DropdownMenuCheckboxItem
- key={item.label}
- checked={filters.dueDate === item.label}
- onCheckedChange={(checked) =>
- updateFilter("dueDate", checked ? item.label : null)
- }
- className="h-8 rounded-md text-sm"
- >
- <span>{t(`tasks:backlog.filters.${item.key}`)}</span>
- </DropdownMenuCheckboxItem>
- ))}
-
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- {t("tasks:labels.label")}
- </DropdownMenuLabel>
- </DropdownMenuGroup>
- {uniqueLabels.length > 0 ? (
- uniqueLabels.map(
- (label: {
- id: string;
- name: string;
- color: string;
- }) => (
- <DropdownMenuCheckboxItem
- key={label.id}
- checked={isLabelGroupSelected(label)}
- onCheckedChange={() => toggleLabelGroup(label)}
- className="h-8 rounded-md text-sm"
- >
- <span
- className="w-3 h-3 rounded-full flex-shrink-0"
- style={{
- backgroundColor: resolveLabelColor(label.color),
- }}
- />
- <span className="max-w-20 truncate">
- {label.name}
- </span>
- </DropdownMenuCheckboxItem>
- ),
- )
- ) : (
- <DropdownMenuItem
- disabled
- className="h-8 rounded-md text-sm text-muted-foreground"
- >
- <span>{t("tasks:labels.empty")}</span>
- </DropdownMenuItem>
- )}
- {rawCustomFields.length > 0 && (
- <>
- <DropdownMenuSeparator />
- <DropdownMenuGroup>
- <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">
- Custom Fields
- </DropdownMenuLabel>
- </DropdownMenuGroup>
-
- {rawCustomFields.map((field) => {
- const selectedVals =
- filters.customFields[field.id] ?? [];
-
- let displayOptions: string[] = [];
- if (field.type === "dropdown") {
- displayOptions = Array.isArray(field.options)
- ? (field.options as string[])
- : [];
- } else if (field.type === "boolean") {
- displayOptions = ["true", "false"];
- } else {
- displayOptions =
- usedCustomFieldValues[field.id] ?? [];
- }
-
- const labelForOption = (opt: string) => {
- if (field.type === "boolean")
- return opt === "true" ? "True" : "False";
- return opt;
- };
-
- return (
- <DropdownMenuSub key={field.id}>
- <DropdownMenuSubTrigger className="h-8 rounded-md text-sm">
- <span className="flex flex-1 items-center justify-between gap-2">
- <span className="truncate">{field.name}</span>
- {selectedVals.length > 0 && (
- <span className="ml-auto inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground">
- {selectedVals.length}
- </span>
- )}
- </span>
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent className="w-48">
- {selectedVals.length > 0 && (
- <>
- <DropdownMenuItem
- onClick={() =>
- clearCustomFieldFilter(field.id)
- }
- className="h-8 rounded-md text-sm text-muted-foreground"
- >
- {t("common:actions.clearAllFilters", {
- defaultValue: "Clear",
- })}
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- </>
- )}
- {displayOptions.length === 0 ? (
- <DropdownMenuItem
- disabled
- className="h-8 rounded-md text-sm text-muted-foreground"
- >
- {t("tasks:boardFilters.noValuesUsedYet")}
- </DropdownMenuItem>
- ) : (
- displayOptions.map((option) => (
- <DropdownMenuCheckboxItem
- key={option}
- checked={selectedVals.includes(option)}
- onCheckedChange={() =>
- updateCustomFieldFilter(
- field.id,
- option,
- )
- }
- className="h-8 rounded-md text-sm"
- >
- <span className="truncate">
- {labelForOption(option)}
- </span>
- </DropdownMenuCheckboxItem>
- ))
- )}
- </DropdownMenuSubContent>
- </DropdownMenuSub>
- );
- })}
- </>
- )}
- </DropdownMenuContent>
- </DropdownMenu>
-
- <SortControl sort={sort} onSortChange={setSort} />
- </div>
- </div>
- </div>
- </div>
-
<div className="flex-1 overflow-hidden bg-card h-full">
{sortedProject ? (
<BacklogListView
@@ -914,6 +217,15 @@ function RouteComponent() {
status="planned"
/>
+ <ConfirmDialog
+ open={isMoveAllOpen}
+ onOpenChange={setIsMoveAllOpen}
+ title={t("tasks:backlog.moveAllConfirm", { count: moveAllCount })}
+ confirmLabel={t("tasks:backlog.moveAll")}
+ destructive={false}
+ onConfirm={confirmMoveAllPlannedToTodo}
+ />
+
<TaskDetailsSheet
taskId={taskId}
projectId={projectId}
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.test.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.test.tsx
index 6bb6bd40b..1961a58f1 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.test.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.test.tsx
@@ -35,7 +35,9 @@ vi.mock("@/store/project", () => ({
default: () => ({ project: m.project, setProject: vi.fn() }),
}));
vi.mock("@/store/user-preferences", () => ({
- useUserPreferencesStore: () => ({ viewMode: "board", setViewMode: vi.fn() }),
+ useUserPreferencesStore: (
+ selector: (state: { viewMode: "board" | "list" }) => unknown,
+ ) => selector({ viewMode: "board" }),
}));
vi.mock("@/store/background", () => ({
useBackgroundStore: () => ({ background: null }),
@@ -43,35 +45,15 @@ vi.mock("@/store/background", () => ({
vi.mock("@/hooks/use-board-sort", () => ({
useBoardSort: () => ({ sort: { field: "position" }, setSort: vi.fn() }),
}));
-vi.mock("@/hooks/use-keyboard-shortcuts", () => ({
- useRegisterShortcuts: vi.fn(),
- getModifierKeyText: () => "Ctrl",
-}));
-vi.mock("@/hooks/queries/task/use-description-matches", () => ({
- useDescriptionMatches: () => ({ ids: [], isLoading: false, isError: false }),
-}));
-vi.mock("@/hooks/use-task-filters-with-labels-support", () => ({
- useTaskFiltersWithLabelsSupport: () => ({
- filteredProject: m.project,
- filters: {},
- hasActiveFilters: false,
+vi.mock("@/components/project/toolbar/use-project-task-view", () => ({
+ useProjectTaskView: () => ({
+ search: "",
+ setSearch: vi.fn(),
+ descriptionSearch: { isLoading: false, isError: false, retry: vi.fn() },
+ filters: { filteredProject: m.project, clearFilters: vi.fn() },
+ subjects: [],
}),
}));
-vi.mock(
- "@/hooks/queries/custom-field/use-get-custom-fields-by-project",
- () => ({ default: () => ({ data: [] }) }),
-);
-vi.mock(
- "@/hooks/queries/custom-field/use-get-custom-field-filter-values",
- () => ({ default: () => ({ data: [] }) }),
-);
-vi.mock("@/hooks/queries/label/use-get-labels-by-workspace", () => ({
- default: () => ({ data: [] }),
-}));
-vi.mock(
- "@/hooks/queries/workspace-users/use-get-active-workspace-users",
- () => ({ useGetActiveWorkspaceUsers: () => ({ data: [] }) }),
-);
vi.mock("@/components/common/project-layout", () => ({
default: ({ children }: { children: ReactNode }) => <div>{children}</div>,
}));
@@ -82,7 +64,6 @@ vi.mock("@/components/kanban-board", () => ({
</div>
),
}));
-vi.mock("@/components/board/board-toolbar", () => ({ default: () => null }));
vi.mock("@/components/list-view", () => ({ default: () => null }));
vi.mock("@/components/page-title", () => ({ default: () => null }));
vi.mock("@/components/shared/modals/create-task-modal", () => ({
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
index f31f10f8c..5d0d659d7 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/board.tsx
@@ -1,28 +1,24 @@
import { createFileRoute, useNavigate } from "@tanstack/react-router";
-import { Search } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
-import BoardToolbar from "@/components/board/board-toolbar";
import ProjectLayout from "@/components/common/project-layout";
import KanbanBoard from "@/components/kanban-board";
import ListView from "@/components/list-view";
import PageTitle from "@/components/page-title";
-import type { CustomFieldDefinition } from "@/components/project/custom-fields/types";
+import { DisplaySection } from "@/components/project/display/display-section";
+import { TaskDisplayOptions } from "@/components/project/display/task-display-options";
+import { ActiveFiltersBar } from "@/components/project/task-filters/active-filters-bar";
+import { ProjectToolbar } from "@/components/project/toolbar/project-toolbar";
+import { TaskCount } from "@/components/project/toolbar/task-count";
+import { useProjectTaskView } from "@/components/project/toolbar/use-project-task-view";
+import { LayoutSwitch } from "@/components/project/views/layout-switch";
import CreateTaskModal from "@/components/shared/modals/create-task-modal";
import TaskDetailsSheet from "@/components/task/task-details-sheet";
-import { Input } from "@/components/ui/input";
-import { shortcuts } from "@/constants/shortcuts";
-import useGetCustomFieldFilterValues from "@/hooks/queries/custom-field/use-get-custom-field-filter-values";
-import useGetCustomFieldsByProject from "@/hooks/queries/custom-field/use-get-custom-fields-by-project";
-import useGetLabelsByWorkspace from "@/hooks/queries/label/use-get-labels-by-workspace";
-import { useDescriptionMatches } from "@/hooks/queries/task/use-description-matches";
import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";
-import { useGetActiveWorkspaceUsers } from "@/hooks/queries/workspace-users/use-get-active-workspace-users";
import { useBoardSort } from "@/hooks/use-board-sort";
-import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
-import { useTaskFiltersWithLabelsSupport } from "@/hooks/use-task-filters-with-labels-support";
import { cn } from "@/lib/cn";
import { sortTasks } from "@/lib/sort-tasks";
+import { countColumnTasks } from "@/lib/task-filters/count-tasks";
import { useBackgroundStore } from "@/store/background";
import useProjectStore from "@/store/project";
import { useUserPreferencesStore } from "@/store/user-preferences";
@@ -92,40 +88,17 @@ function RouteComponent() {
refetch: retryBoard,
} = useGetTasks(projectId);
const { project, setProject } = useProjectStore();
- const { viewMode, setViewMode } = useUserPreferencesStore();
+ const viewMode = useUserPreferencesStore((state) => state.viewMode);
const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);
- const [boardSearchQuery, setBoardSearchQuery] = useState("");
- const [isBoardSearchMounted, setIsBoardSearchMounted] = useState(false);
- const [isBoardSearchVisible, setIsBoardSearchVisible] = useState(false);
- const [boardSearchInput, setBoardSearchInput] =
- useState<HTMLInputElement | null>(null);
const { sort, setSort } = useBoardSort(projectId);
const { background } = useBackgroundStore();
-
- const { data: users } = useGetActiveWorkspaceUsers(workspaceId);
- const { data: workspaceLabels = [] } = useGetLabelsByWorkspace(workspaceId);
-
- const { data: rawCustomFields = [] } = useGetCustomFieldsByProject(projectId);
-
- const { data: filterValuesData = [] } =
- useGetCustomFieldFilterValues(projectId);
-
- const customFieldDefinitions = useMemo<CustomFieldDefinition[]>(
- () =>
- rawCustomFields.map((f, index) => ({
- ...f,
- type: f.type as CustomFieldDefinition["type"],
- options: Array.isArray(f.options) ? (f.options as string[]) : null,
- position: index,
- })),
- [rawCustomFields],
- );
-
- const usedCustomFieldValues = useMemo<Record<string, string[]>>(() => {
- return Object.fromEntries(
- filterValuesData.map((f) => [f.fieldId, f.values]),
- );
- }, [filterValuesData]);
+ const view = useProjectTaskView({
+ project,
+ projectId,
+ workspaceId,
+ scope: "board",
+ });
+ const { descriptionSearch, filters } = view;
const handleCloseTaskSheet = useCallback(() => {
navigate({
@@ -135,88 +108,14 @@ function RouteComponent() {
});
}, [navigate]);
- useRegisterShortcuts({
- sequentialShortcuts: {
- [shortcuts.view.prefix]: {
- [shortcuts.view.board]: () => setViewMode("board"),
- [shortcuts.view.list]: () => setViewMode("list"),
- [shortcuts.view.calendar]: () =>
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/calendar",
- params: { workspaceId, projectId },
- }),
- [shortcuts.view.gantt]: () =>
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",
- params: { workspaceId, projectId },
- }),
- [shortcuts.view.backlog]: () =>
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/backlog",
- params: { workspaceId, projectId },
- }),
- },
- },
- });
-
useEffect(() => {
if (data) {
setProject(data);
}
}, [data, setProject]);
- const openBoardSearch = useCallback(() => {
- setIsBoardSearchMounted(true);
- window.requestAnimationFrame(() => setIsBoardSearchVisible(true));
- }, []);
-
- const closeBoardSearch = useCallback(() => {
- setIsBoardSearchVisible(false);
- window.setTimeout(() => setIsBoardSearchMounted(false), 180);
- }, []);
-
- useEffect(() => {
- const onKeyDown = (event: KeyboardEvent) => {
- const isFindShortcut =
- (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "f";
-
- if (!isFindShortcut) return;
-
- event.preventDefault();
- openBoardSearch();
- };
-
- window.addEventListener("keydown", onKeyDown);
- return () => window.removeEventListener("keydown", onKeyDown);
- }, [openBoardSearch]);
-
- useEffect(() => {
- if (!isBoardSearchMounted) return;
- window.requestAnimationFrame(() => boardSearchInput?.focus());
- }, [isBoardSearchMounted, boardSearchInput]);
-
- const descriptionSearch = useDescriptionMatches(
- projectId,
- project,
- boardSearchQuery,
- );
-
- const {
- filters,
- updateFilter,
- updateLabelFilter,
- updateCustomFieldFilter,
- filteredProject,
- hasActiveFilters,
- clearFilters,
- } = useTaskFiltersWithLabelsSupport(
- project,
- projectId,
- boardSearchQuery,
- descriptionSearch.ids,
- );
-
const sortedProject = useMemo(() => {
+ const filteredProject = filters.filteredProject;
if (!filteredProject || sort.field === "position") return filteredProject;
return {
...filteredProject,
@@ -225,68 +124,57 @@ function RouteComponent() {
tasks: sortTasks(column.tasks, sort),
})),
};
- }, [filteredProject, sort]);
-
- const boardHeaderSearch = isBoardSearchMounted ? (
- <div
- className={`relative w-[240px] origin-top transition-[translate,scale,opacity] duration-180 ease-out ${
- isBoardSearchVisible
- ? "translate-y-0 scale-y-100 opacity-100"
- : "pointer-events-none -translate-y-1 scale-y-95 opacity-0"
- }`}
- >
- <Search className="-translate-y-1/2 pointer-events-none absolute top-1/2 left-2.5 h-3.5 w-3.5 text-muted-foreground" />
- <Input
- ref={setBoardSearchInput}
- value={boardSearchQuery}
- maxLength={256}
- onChange={(event) => setBoardSearchQuery(event.target.value)}
- onKeyDown={(event) => {
- if (event.key === "Escape" && !boardSearchQuery.trim()) {
- closeBoardSearch();
- }
- }}
- onBlur={() => {
- if (!boardSearchQuery.trim()) {
- closeBoardSearch();
- }
- }}
- placeholder={t("tasks:boardSearchPlaceholder")}
- className="h-7.5 [&_[data-slot=input]]:h-7 [&_[data-slot=input]]:leading-7 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:placeholder:text-xs [&_[data-slot=input]]:placeholder:leading-7"
- />
- </div>
- ) : null;
+ }, [filters.filteredProject, sort]);
return (
<ProjectLayout
projectId={projectId}
workspaceId={workspaceId}
activeView="board"
- headerActions={boardHeaderSearch}
+ toolbar={
+ <ProjectToolbar
+ view={view}
+ display={
+ <>
+ <DisplaySection>
+ <LayoutSwitch
+ workspaceId={workspaceId}
+ projectId={projectId}
+ currentRoute="board"
+ currentView={viewMode}
+ />
+ </DisplaySection>
+ <TaskDisplayOptions
+ projectId={projectId}
+ sort={sort}
+ onSortChange={setSort}
+ layout={viewMode === "board" ? "cards" : "rows"}
+ showBackgroundSwitch={
+ viewMode === "board" && !!project?.backgroundVersion
+ }
+ />
+ </>
+ }
+ />
+ }
+ summary={
+ <TaskCount
+ shown={countColumnTasks(filters.filteredProject)}
+ total={countColumnTasks(project)}
+ />
+ }
+ filterBar={
+ <ActiveFiltersBar
+ subjects={view.subjects}
+ onClear={filters.clearFilters}
+ />
+ }
>
<PageTitle
title={`${project?.name} · ${viewMode === "board" ? t("tasks:view.board") : t("tasks:view.list")}`}
hideAppName
/>
<div className="relative flex flex-col h-full min-h-0 overflow-hidden">
- <BoardToolbar
- project={project}
- filters={filters}
- updateFilter={updateFilter}
- updateLabelFilter={updateLabelFilter}
- updateCustomFieldFilter={updateCustomFieldFilter}
- clearFilters={clearFilters}
- hasActiveFilters={hasActiveFilters}
- users={users}
- workspaceLabels={workspaceLabels}
- viewMode={viewMode}
- setViewMode={setViewMode}
- sort={sort}
- onSortChange={setSort}
- customFieldDefinitions={customFieldDefinitions}
- usedCustomFieldValues={usedCustomFieldValues}
- />
-
{descriptionSearch.isLoading && (
<p role="status" className="px-4 py-2 text-sm text-muted-foreground">
{t("tasks:descriptionSearchLoading")}
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx
index 56a3d5d05..118d2e2d0 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/calendar.tsx
@@ -8,10 +8,15 @@ import MonthGrid from "@/components/calendar/month-grid";
import { buildMonthWeeks } from "@/components/calendar/month-grid-model";
import ProjectLayout from "@/components/common/project-layout";
import PageTitle from "@/components/page-title";
+import { DisplaySection } from "@/components/project/display/display-section";
+import { WeekStartControl } from "@/components/project/display/week-start-control";
+import { ActiveFiltersBar } from "@/components/project/task-filters/active-filters-bar";
+import { ProjectToolbar } from "@/components/project/toolbar/project-toolbar";
+import { TaskCount } from "@/components/project/toolbar/task-count";
+import { useProjectTaskView } from "@/components/project/toolbar/use-project-task-view";
+import { LayoutSwitch } from "@/components/project/views/layout-switch";
import TaskDetailsSheet from "@/components/task/task-details-sheet";
-import { shortcuts } from "@/constants/shortcuts";
import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";
-import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
import { useIsMobile } from "@/hooks/use-mobile";
import { toScheduledTasks } from "@/lib/task-schedule";
import { useUserPreferencesStore } from "@/store/user-preferences";
@@ -41,13 +46,22 @@ function RouteComponent() {
const navigate = useNavigate();
const { data: project, isLoading, isError } = useGetTasks(projectId);
const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);
- const setViewMode = useUserPreferencesStore((state) => state.setViewMode);
const isMobile = useIsMobile();
+ const view = useProjectTaskView({
+ project,
+ projectId,
+ workspaceId,
+ scope: "schedule",
+ });
const [visibleMonth, setVisibleMonth] = useState(() =>
startOfMonth(new Date()),
);
- const scheduledTasks = useMemo(() => toScheduledTasks(project), [project]);
+ const allScheduledTasks = useMemo(() => toScheduledTasks(project), [project]);
+ const scheduledTasks = useMemo(
+ () => toScheduledTasks(view.filters.filteredProject),
+ [view.filters.filteredProject],
+ );
const weeks = useMemo(
() => buildMonthWeeks(visibleMonth, weekStartsOn),
@@ -77,45 +91,43 @@ function RouteComponent() {
navigate({ to: ".", search: {}, replace: true });
}, [navigate]);
- useRegisterShortcuts({
- sequentialShortcuts: {
- [shortcuts.view.prefix]: {
- [shortcuts.view.board]: () => {
- setViewMode("board");
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/board",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.list]: () => {
- setViewMode("list");
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/board",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.backlog]: () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/backlog",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.gantt]: () => {
- navigate({
- to: "/dashboard/workspace/$workspaceId/project/$projectId/gantt",
- params: { workspaceId, projectId },
- });
- },
- [shortcuts.view.calendar]: () => {},
- },
- },
- });
-
return (
<ProjectLayout
projectId={projectId}
workspaceId={workspaceId}
activeView="calendar"
+ toolbar={
+ <ProjectToolbar
+ view={view}
+ display={
+ <>
+ <DisplaySection>
+ <LayoutSwitch
+ workspaceId={workspaceId}
+ projectId={projectId}
+ currentRoute="calendar"
+ currentView="calendar"
+ />
+ </DisplaySection>
+ <DisplaySection>
+ <WeekStartControl />
+ </DisplaySection>
+ </>
+ }
+ />
+ }
+ summary={
+ <TaskCount
+ shown={scheduledTasks.length}
+ total={allScheduledTasks.length}
+ />
+ }
+ filterBar={
+ <ActiveFiltersBar
+ subjects={view.subjects}
+ onClear={view.filters.clearFilters}
+ />
+ }
>
<PageTitle
title={t("tasks:calendar.pageTitle", { name: project?.name })}
@@ -141,7 +153,7 @@ function RouteComponent() {
{t("tasks:calendar.loadError")}
</p>
</div>
- ) : scheduledTasks.length === 0 ? (
+ ) : allScheduledTasks.length === 0 ? (
<div className="border-b border-border/80 px-4 py-3 text-center">
<p className="text-sm font-semibold text-foreground">
{t("tasks:calendar.noTasks")}
@@ -150,6 +162,12 @@ function RouteComponent() {
{t("tasks:calendar.noTasksSubtitle")}
</p>
</div>
+ ) : scheduledTasks.length === 0 ? (
+ <div className="border-b border-border/80 px-4 py-3 text-center">
+ <p className="text-sm text-muted-foreground">
+ {t("tasks:filterBar.noMatches")}
+ </p>
+ </div>
) : null}
{isMobile ? (
diff --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.tsx
index 85839c9a4..25748cc30 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
@@ -59,9 +59,45 @@ vi.mock("@/store/user-preferences", () => ({
}));
vi.mock("@/components/common/project-layout", () => ({
- default: ({ children }: { children: ReactNode }) => <div>{children}</div>,
+ default: ({
+ children,
+ toolbar,
+ }: {
+ children: ReactNode;
+ toolbar?: ReactNode;
+ }) => (
+ <div>
+ {toolbar}
+ {children}
+ </div>
+ ),
+}));
+
+vi.mock("@/hooks/queries/task/use-description-matches", () => ({
+ useDescriptionMatches: () => ({
+ ids: new Set<string>(),
+ isLoading: false,
+ isError: false,
+ }),
+}));
+
+vi.mock("@/components/project/task-filters/use-task-filter-options", () => ({
+ useTaskFilterOptions: () => ({
+ members: [],
+ labels: [],
+ customFields: [],
+ usedCustomFieldValues: {},
+ }),
}));
+const noCustomFieldValues = () => [];
+vi.mock(
+ "@/hooks/queries/custom-field/use-get-all-custom-field-values-by-project",
+ () => ({
+ default: () => ({ getValuesForTask: noCustomFieldValues }),
+ }),
+);
+
vi.mock("@/components/task/task-details-sheet", () => ({
default: () => null,
}));
@@ -102,6 +138,16 @@ vi.mock("react-i18next", () => ({
const GanttRoute = (Route as unknown as { component: ComponentType }).component;
+function searchFor(value: string) {
+ const existing = screen.queryByRole("searchbox", { name: "Search tasks" });
+ if (!existing) {
+ fireEvent.click(screen.getByRole("button", { name: "Search tasks" }));
+ }
+ fireEvent.change(screen.getByRole("searchbox", { name: "Search tasks" }), {
+ target: { value },
+ });
+}
+
function makeTask(overrides: Partial<Task>): Task {
return {
id: "task-1",
@@ -163,8 +209,7 @@ describe("Gantt jump-to-today", () => {
}),
);
const { rerender } = render(<GanttRoute />);
- const search = screen.getByPlaceholderText("Search scheduled tickets...");
- fireEvent.change(search, { target: { value: "no match" } });
+ searchFor("no match");
routeParams.projectId = "project-2";
mockProjectWithTask(
makeTask({
@@ -176,7 +221,7 @@ describe("Gantt jump-to-today", () => {
);
rerender(<GanttRoute />);
- fireEvent.change(search, { target: { value: "" } });
+ searchFor("");
expect(scrollIntoView).toHaveBeenCalledTimes(2);
expect(scrollIntoView).toHaveBeenLastCalledWith(
@@ -290,15 +335,10 @@ describe("Gantt jump-to-today", () => {
// The search narrows the *visible* timeline down to nothing, even though
// today is still within the unfiltered project's date range — the button
// has nothing left to scroll to and must reflect that.
- fireEvent.change(
- screen.getByPlaceholderText("Search scheduled tickets..."),
- {
- target: { value: "no such task" },
- },
- );
+ searchFor("no such task");
expect(
- screen.getByText('No scheduled tasks match "no such task"'),
+ screen.getByText("No tasks match your search or filters."),
).toBeInTheDocument();
expect(button).toBeDisabled();
});
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx
index 24f7e347e..69002d0ca 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/gantt.tsx
@@ -1,6 +1,6 @@
import { createFileRoute, useNavigate } from "@tanstack/react-router";
import { addDays, format, isSameMonth, isToday, isWeekend } from "date-fns";
-import { Calendar, ChevronLeft, ChevronRight, Search } from "lucide-react";
+import { Calendar, ChevronLeft, ChevronRight } from "lucide-react";
import {
useCallback,
useEffect,
@@ -18,9 +18,15 @@ import {
parseTaskDate,
} from "@/components/gantt/timeline";
import PageTitle from "@/components/page-title";
+import { DisplaySection } from "@/components/project/display/display-section";
+import { WeekStartControl } from "@/components/project/display/week-start-control";
+import { ActiveFiltersBar } from "@/components/project/task-filters/active-filters-bar";
+import { ProjectToolbar } from "@/components/project/toolbar/project-toolbar";
+import { TaskCount } from "@/components/project/toolbar/task-count";
+import { useProjectTaskView } from "@/components/project/toolbar/use-project-task-view";
+import { LayoutSwitch } from "@/components/project/views/layout-switch";
import TaskDetailsSheet from "@/components/task/task-details-sheet";
import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";
import { useIsMobile } from "@/hooks/use-mobile";
import { cn } from "@/lib/cn";
@@ -47,7 +53,13 @@ function RouteComponent() {
const navigate = useNavigate();
const { data: project } = useGetTasks(projectId);
const weekStartsOn = useUserPreferencesStore((state) => state.weekStartsOn);
- const [searchQuery, setSearchQuery] = useState("");
+ const view = useProjectTaskView({
+ project,
+ projectId,
+ workspaceId,
+ scope: "schedule",
+ });
+ const filteredProject = view.filters.filteredProject;
const [windowStart, setWindowStart] = useState<{
projectId: string;
date: Date;
@@ -128,19 +140,14 @@ function RouteComponent() {
}, [allTasks]);
const scheduledTasks = useMemo(() => {
- const normalizedQuery = searchQuery.trim().toLowerCase();
- if (!normalizedQuery) return parsedTasks;
-
- return parsedTasks.filter((task) => {
- return (
- task.title.toLowerCase().includes(normalizedQuery) ||
- `${project?.slug ?? ""}-${task.number ?? ""}`
- .toLowerCase()
- .includes(normalizedQuery) ||
- task.status.toLowerCase().includes(normalizedQuery)
- );
- });
- }, [parsedTasks, project?.slug, searchQuery]);
+ const visibleIds = new Set(
+ [
+ ...(filteredProject?.columns.flatMap((column) => column.tasks) ?? []),
+ ...(filteredProject?.plannedTasks ?? []),
+ ].map((task) => task.id),
+ );
+ return parsedTasks.filter((task) => visibleIds.has(task.id));
+ }, [parsedTasks, filteredProject]);
const timeline = useMemo(
() =>
@@ -178,8 +185,11 @@ function RouteComponent() {
: 0;
const scrollToToday = useCallback((behavior: ScrollBehavior = "smooth") => {
+ const reduceMotion = window.matchMedia?.(
+ "(prefers-reduced-motion: reduce)",
+ ).matches;
todayCellRef.current?.scrollIntoView({
- behavior,
+ behavior: reduceMotion ? "auto" : behavior,
inline: "center",
block: "nearest",
});
@@ -229,102 +239,116 @@ function RouteComponent() {
projectId={projectId}
workspaceId={workspaceId}
activeView="gantt"
+ toolbar={
+ <ProjectToolbar
+ view={view}
+ display={
+ <>
+ <DisplaySection>
+ <LayoutSwitch
+ workspaceId={workspaceId}
+ projectId={projectId}
+ currentRoute="gantt"
+ currentView="gantt"
+ />
+ </DisplaySection>
+ <DisplaySection>
+ <WeekStartControl />
+ </DisplaySection>
+ </>
+ }
+ />
+ }
+ summary={
+ <TaskCount shown={scheduledTasks.length} total={parsedTasks.length} />
+ }
+ filterBar={
+ <ActiveFiltersBar
+ subjects={view.subjects}
+ onClear={view.filters.clearFilters}
+ />
+ }
>
<PageTitle
title={t("tasks:gantt.pageTitle", { name: project?.name })}
hideAppName
/>
<div className="flex h-full min-h-0 flex-col bg-background">
- <div className="border-b border-border/80 px-3 py-3 sm:px-4">
- <div className="flex flex-col gap-2 sm:gap-3 lg:flex-row lg:items-center lg:justify-between">
- <h1 className="sr-only text-sm font-semibold text-foreground sm:not-sr-only">
- {t("tasks:gantt.title")}
- </h1>
-
- <div className="relative w-full lg:max-w-sm">
- <Search className="pointer-events-none absolute top-1/2 left-2.5 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" />
- <Input
- value={searchQuery}
- onChange={(event) => setSearchQuery(event.target.value)}
- placeholder={t("tasks:gantt.searchPlaceholder")}
- className="h-9 touch-manipulation sm:h-8 [&_[data-slot=input]]:pl-8 [&_[data-slot=input]]:text-base sm:[&_[data-slot=input]]:text-xs"
- />
- </div>
-
- <div className="flex flex-wrap items-center gap-2">
- {timeline && (
- <>
- <Button
- variant="outline"
- size="icon-sm"
- aria-label={t("tasks:gantt.previousPeriod")}
- disabled={!timeline.hasPrevious}
- onClick={() =>
- showDate(addDays(timeline.rangeStart, -GANTT_WINDOW_DAYS))
- }
- >
- <ChevronLeft className="size-4" />
- </Button>
- <input
- type="date"
- aria-label={t("tasks:gantt.periodStart")}
- className="h-9 min-w-0 rounded-md border border-border bg-background px-2 text-base sm:h-8 sm:text-sm"
- min={format(timeline.minimumStart, "yyyy-MM-dd")}
- max={format(timeline.maximumStart, "yyyy-MM-dd")}
- value={format(timeline.rangeStart, "yyyy-MM-dd")}
- onChange={(event) => {
- const date = parseTaskDate(event.target.value);
- if (date) showDate(date);
- }}
- />
- <span className="hidden text-xs text-muted-foreground sm:inline">
- – {format(timeline.rangeEnd, "MMM d, yyyy")}
- </span>
- <Button
- variant="outline"
- size="icon-sm"
- aria-label={t("tasks:gantt.nextPeriod")}
- disabled={!timeline.hasNext}
- onClick={() =>
- showDate(addDays(timeline.rangeStart, GANTT_WINDOW_DAYS))
- }
- >
- <ChevronRight className="size-4" />
- </Button>
- </>
- )}
-
- <Button
- variant="outline"
- size="xs"
- className="h-9 touch-manipulation sm:h-auto"
- aria-label={t("tasks:gantt.jumpToToday")}
- onClick={() => scrollToToday()}
- disabled={!todayInRange || scheduledTasks.length === 0}
- >
- <Calendar className="size-3.5" />
- <span className="hidden sm:inline">
- {t("tasks:gantt.jumpToToday")}
+ <div className="border-b border-border/80 px-3 py-2 sm:px-4">
+ <h1 className="sr-only">{t("tasks:gantt.title")}</h1>
+ <div className="flex flex-wrap items-center gap-2">
+ {timeline && (
+ <>
+ <Button
+ variant="outline"
+ size="icon-sm"
+ aria-label={t("tasks:gantt.previousPeriod")}
+ disabled={!timeline.hasPrevious}
+ onClick={() =>
+ showDate(addDays(timeline.rangeStart, -GANTT_WINDOW_DAYS))
+ }
+ >
+ <ChevronLeft className="size-4" />
+ </Button>
+ <input
+ type="date"
+ aria-label={t("tasks:gantt.periodStart")}
+ className="h-9 min-w-0 rounded-md border border-border bg-background px-2 text-base sm:h-8 sm:text-sm"
+ min={format(timeline.minimumStart, "yyyy-MM-dd")}
+ max={format(timeline.maximumStart, "yyyy-MM-dd")}
+ value={format(timeline.rangeStart, "yyyy-MM-dd")}
+ onChange={(event) => {
+ const date = parseTaskDate(event.target.value);
+ if (date) showDate(date);
+ }}
+ />
+ <span className="hidden text-xs text-muted-foreground sm:inline">
+ – {format(timeline.rangeEnd, "MMM d, yyyy")}
</span>
- </Button>
-
- <Button
- variant="outline"
- size="xs"
- className="h-9 touch-manipulation sm:hidden"
- aria-pressed={showTaskRail}
- onClick={() => setIsTaskRailOpen((current) => !current)}
- >
- {showTaskRail ? (
- <ChevronLeft className="size-3.5" />
- ) : (
- <ChevronRight className="size-3.5" />
- )}
- {showTaskRail
- ? t("tasks:gantt.hideTasks")
- : t("tasks:gantt.showTasks")}
- </Button>
- </div>
+ <Button
+ variant="outline"
+ size="icon-sm"
+ aria-label={t("tasks:gantt.nextPeriod")}
+ disabled={!timeline.hasNext}
+ onClick={() =>
+ showDate(addDays(timeline.rangeStart, GANTT_WINDOW_DAYS))
+ }
+ >
+ <ChevronRight className="size-4" />
+ </Button>
+ </>
+ )}
+
+ <Button
+ variant="outline"
+ size="xs"
+ className="h-9 touch-manipulation sm:h-auto"
+ aria-label={t("tasks:gantt.jumpToToday")}
+ onClick={() => scrollToToday()}
+ disabled={!todayInRange || scheduledTasks.length === 0}
+ >
+ <Calendar className="size-3.5" />
+ <span className="hidden sm:inline">
+ {t("tasks:gantt.jumpToToday")}
+ </span>
+ </Button>
+
+ <Button
+ variant="outline"
+ size="xs"
+ className="h-9 touch-manipulation sm:hidden"
+ aria-pressed={showTaskRail}
+ onClick={() => setIsTaskRailOpen((current) => !current)}
+ >
+ {showTaskRail ? (
+ <ChevronLeft className="size-3.5" />
+ ) : (
+ <ChevronRight className="size-3.5" />
+ )}
+ {showTaskRail
+ ? t("tasks:gantt.hideTasks")
+ : t("tasks:gantt.showTasks")}
+ </Button>
</div>
</div>
@@ -346,7 +370,7 @@ function RouteComponent() {
{t("tasks:gantt.noTasksFound")}
</h2>
<p className="mt-1 text-sm text-muted-foreground">
- {t("tasks:gantt.noTasksMatch", { query: searchQuery })}
+ {t("tasks:filterBar.noMatches")}
</p>
</div>
</div>
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/projects.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/projects.tsx
index 9f4bf8241..2ccf2285c 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/projects.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/projects.tsx
@@ -60,6 +60,7 @@ import { useCanImport } from "@/hooks/use-can-import";
import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
import { useWorkspacePermission } from "@/hooks/use-workspace-permission";
import { formatDateMedium } from "@/lib/format";
+import { EASE_OUT_CSS } from "@/lib/motion";
import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
@@ -94,7 +95,7 @@ function SortableProjectRow({
// replays the same move from a stale offset.
animateLayoutChanges: () => false,
// dnd-kit defaults to `ease`; this is the app's curve.
- transition: { duration: 200, easing: "var(--ease-out)" },
+ transition: { duration: 200, easing: EASE_OUT_CSS },
});
const style: CSSProperties = {
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx
index 1626f5023..c84694c1c 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/create.tsx
@@ -1,6 +1,6 @@
import { useQueryClient } from "@tanstack/react-query";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
-import { Building2 } from "lucide-react";
+import { Building2, SquarePlusIcon } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import PageTitle from "@/components/page-title";
@@ -40,7 +40,7 @@ function RouteComponent() {
try {
const createdWorkspace = await mutateAsync({ name, description });
- toast.success(t("workspace:create.success"));
+ toast.success(t("workspace:create.success"), { icon: SquarePlusIcon });
await queryClient.invalidateQueries({ queryKey: ["workspaces"] });
await authClient.organization.setActive({
diff --git a/apps/web/src/routes/_layout/_authenticated/invitations.tsx b/apps/web/src/routes/_layout/_authenticated/invitations.tsx
index 4a871aafe..c3be91adc 100644
--- a/apps/web/src/routes/_layout/_authenticated/invitations.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/invitations.tsx
@@ -1,6 +1,13 @@
import { useQueryClient } from "@tanstack/react-query";
import { createFileRoute, useNavigate } from "@tanstack/react-router";
-import { CheckCircle, Loader2, Mail, X } from "lucide-react";
+import {
+ CheckCircle,
+ Loader2,
+ Mail,
+ X,
+ UserXIcon,
+ UserCheckIcon,
+} from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import PageTitle from "@/components/page-title";
@@ -68,7 +75,9 @@ function InvitationsPage() {
organizationId: data?.invitation.organizationId || organizationId,
});
- toast.success(t("invitations:toast.acceptSuccess"));
+ toast.success(t("invitations:toast.acceptSuccess"), {
+ icon: UserCheckIcon,
+ });
await queryClient.invalidateQueries({
queryKey: ["invitations", "pending"],
@@ -103,7 +112,7 @@ function InvitationsPage() {
return;
}
- toast.success(t("invitations:toast.rejectSuccess"));
+ toast.success(t("invitations:toast.rejectSuccess"), { icon: UserXIcon });
await queryClient.invalidateQueries({
queryKey: ["invitations", "pending"],
diff --git a/apps/web/src/routes/auth/verify-otp.tsx b/apps/web/src/routes/auth/verify-otp.tsx
index 462ab4aaa..96f810807 100644
--- a/apps/web/src/routes/auth/verify-otp.tsx
+++ b/apps/web/src/routes/auth/verify-otp.tsx
@@ -5,6 +5,7 @@ import {
useRouter,
useSearch,
} from "@tanstack/react-router";
+import { MailIcon } from "lucide-react";
import { REGEXP_ONLY_DIGITS } from "input-otp";
import { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
@@ -120,7 +121,9 @@ function VerifyOtp() {
);
return;
}
- toast.success(t("auth:verifyOtp.toast.resendSuccess"));
+ toast.success(t("auth:verifyOtp.toast.resendSuccess"), {
+ icon: MailIcon,
+ });
setCode("");
setError(null);
} catch (caught) {
diff --git a/apps/web/src/routes/invitation/accept.$inviteId.tsx b/apps/web/src/routes/invitation/accept.$inviteId.tsx
index 8d6bfa270..6cd3c5a0d 100644
--- a/apps/web/src/routes/invitation/accept.$inviteId.tsx
+++ b/apps/web/src/routes/invitation/accept.$inviteId.tsx
@@ -4,7 +4,7 @@ import {
useNavigate,
useParams,
} from "@tanstack/react-router";
-import { TriangleAlert } from "lucide-react";
+import { TriangleAlert, UserCheckIcon } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { AuthDetails } from "@/components/auth/auth-details";
@@ -173,7 +173,9 @@ function AcceptInvitation() {
}
const workspaceId = data?.invitation.organizationId ?? "";
await authClient.organization.setActive({ organizationId: workspaceId });
- toast.success(t("auth:invitation.toast.acceptSuccess"));
+ toast.success(t("auth:invitation.toast.acceptSuccess"), {
+ icon: UserCheckIcon,
+ });
if (!session.user.name) {
navigate({ to: "/profile-setup" });
return;
diff --git a/apps/web/src/store/user-preferences.ts b/apps/web/src/store/user-preferences.ts
index 6900b7895..42bef3780 100644
--- a/apps/web/src/store/user-preferences.ts
+++ b/apps/web/src/store/user-preferences.ts
@@ -8,6 +8,8 @@ export function isWeekStartDay(value: number): value is WeekStartDay {
return WEEK_START_DAYS.some((day) => day === value);
}
+export type TaskLayout = "board" | "list" | "calendar" | "gantt";
+
type UserPreferencesStore = {
theme: "light" | "dark" | "system";
setTheme: (
@@ -18,6 +20,9 @@ type UserPreferencesStore = {
viewMode: "board" | "list";
setViewMode: (mode: "board" | "list") => void;
+ taskLayout: TaskLayout;
+ setTaskLayout: (layout: TaskLayout) => void;
+
compactMode: boolean;
setCompactMode: (compact: boolean) => void;
@@ -44,6 +49,8 @@ type UserPreferencesStore = {
showTaskItemCounts: boolean;
setShowTaskItemCounts: (show: boolean) => void;
toggleTaskItemCounts: () => void;
+ hiddenCardFieldIds: string[];
+ toggleCardFieldHidden: (fieldId: string) => void;
resetDisplayPreferences: () => void;
sidebarDefaultOpen: boolean;
@@ -87,6 +94,9 @@ export const useUserPreferencesStore = create<UserPreferencesStore>()(
viewMode: "board",
setViewMode: (mode) => set({ viewMode: mode }),
+ taskLayout: "board",
+ setTaskLayout: (layout) => set({ taskLayout: layout }),
+
compactMode: false,
setCompactMode: (compact) => set({ compactMode: compact }),
@@ -119,8 +129,16 @@ export const useUserPreferencesStore = create<UserPreferencesStore>()(
setShowTaskItemCounts: (show) => set({ showTaskItemCounts: show }),
toggleTaskItemCounts: () =>
set((state) => ({ showTaskItemCounts: !state.showTaskItemCounts })),
+ hiddenCardFieldIds: [],
+ toggleCardFieldHidden: (fieldId) =>
+ set((state) => ({
+ hiddenCardFieldIds: state.hiddenCardFieldIds.includes(fieldId)
+ ? state.hiddenCardFieldIds.filter((id) => id !== fieldId)
+ : [...state.hiddenCardFieldIds, fieldId],
+ })),
resetDisplayPreferences: () =>
set({
+ hiddenCardFieldIds: [],
showAssignees: true,
showDueDates: true,
showLabels: true,
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 160df0452..8360f5f5c 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -10,8 +10,7 @@
"markAllRead": "Hamısını oxunmuş kimi işarələ",
"remove": "Çıxar",
"reset": "Sıfırla",
- "filter": "Süzgəc",
- "clearAllFilters": "Bütün süzgəcləri təmizlə"
+ "filter": "Süzgəc"
},
"a11y": {
"toggleSidebar": "Yan paneli aç/bağla"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Seçim qutusu",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "Açılan siyahı, bir neçə seçim"
},
- "availableOptions": "Available options",
"clearDefault": "Standart dəyəri təmizlə",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Abunə olduğunuz üçün təşəkkürlər",
+ "description": "Ödəniş alındı. Aşağıdakı plan təsdiqləndikdən sonra yenilənəcək."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"nextTask": "Növbəti tapşırıq",
"prevTask": "Əvvəlki tapşırıq",
"openTask": "Seçilmiş tapşırığı aç",
- "quickSelectNumber": "Nömrəyə görə seçim et"
+ "quickSelectNumber": "Nömrəyə görə seçim et",
+ "ganttView": "Gantt görünüşünə keç"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Yüksək",
"urgent": "Təcili"
},
- "boardSearchPlaceholder": "Tapşırıqları axtar...",
"view": {
"board": "Lövhə",
"list": "Siyahı",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Tapşırıq"
@@ -2889,12 +2881,10 @@
"updateError": "Tapşırığın prioritetini yeniləmək alınmadı"
},
"dueDate": {
- "updateSuccess": "Tapşırığın son tarixi uğurla yeniləndi",
"updateError": "Tapşırığın son tarixini yeniləmək alınmadı",
"clear": "Tarixi təmizlə"
},
"startDate": {
- "updateSuccess": "Tapşırığın başlama tarixi uğurla yeniləndi",
"updateError": "Tapşırığın başlama tarixini yeniləmək alınmadı",
"clear": "Başlama tarixini təmizlə"
},
@@ -2903,8 +2893,6 @@
"empty": "Etiket tapılmadı",
"create": "\"{{name}}\" adlı etiket yarat",
"chooseColor": "Rəng seç",
- "addSuccess": "Etiket əlavə edildi",
- "removeSuccess": "Etiket çıxarıldı",
"updateError": "Etiketi yeniləmək alınmadı",
"createSuccess": "Etiket yaradıldı və əlavə edildi",
"createError": "Etiketi yaratmaq alınmadı",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "Bütün planlaşdırılmış tapşırıqları «Görüləcək» bölməsinə köçür",
"moveAll": "Hamısını köçür",
"addTask": "Tapşırıq əlavə et",
- "filter": "Süzgəc",
- "addFilter": "Süzgəc əlavə et...",
"sections": {
"planned": "Planlaşdırılmış",
"archived": "Arxivlənmiş"
},
"noTasksInSection": "{{section}} bölməsində tapşırıq yoxdur",
"filters": {
- "priority": "Prioritet: {{name}}",
- "assignee": "İcraçı: {{name}}",
- "due": "Son tarix: {{date}}",
- "label": "Etiket: {{name}}",
"dueThisWeek": "Son tarixi bu həftə olan",
"dueNextWeek": "Son tarixi gələn həftə olan",
"noDueDate": "Son tarix yoxdur"
}
},
"sort": {
- "label": "Sırala",
- "by": "Sıralama meyarı",
"direction": "İstiqamət",
"ascending": "Artan",
"descending": "Azalan",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "Süzmə meyarı",
- "allStatuses": "Bütün vəziyyətlər",
- "allPriorities": "Bütün prioritetlər",
- "allAssignees": "Bütün icraçılar",
- "allDueDates": "Bütün son tarixlər",
- "allLabels": "Bütün etiketlər",
"selectedCount": "{{count}} seçilib",
"subjects": {
"status": "Vəziyyət",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "Bunlardan biridir",
- "includeAnyOf": "Bunlardan hər hansı birini ehtiva edir"
+ "includeAnyOf": "Bunlardan hər hansı birini ehtiva edir",
+ "is": "bərabərdir",
+ "isNot": "bərabər deyil",
+ "isNoneOf": "heç biri deyil",
+ "include": "ehtiva edir",
+ "exclude": "ehtiva etmir"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3005,13 +2983,11 @@
"pageTitle": "{{name}} – Qant diaqramı",
"title": "Qant zaman xətti",
"jumpToToday": "Bu günə keç",
- "searchPlaceholder": "Tarixi təyin edilmiş tapşırıqları axtar...",
"hideTasks": "Tapşırıqları gizlət",
"showTasks": "Tapşırıqları göstər",
"noTasks": "Tarixi təyin edilmiş tapşırıq yoxdur",
"noTasksSubtitle": "Tapşırıqları layihənin zaman xəttində yerləşdirmək üçün onlara başlama tarixi, son tarix və ya hər ikisini əlavə edin.",
"noTasksFound": "Tapşırıq tapılmadı",
- "noTasksMatch": "\"{{query}}\" sorğusuna uyğun tarixi təyin edilmiş tapşırıq yoxdur",
"taskHeader": "Tapşırıq",
"updateDatesError": "Tapşırıq tarixlərini yeniləmək alınmadı",
"resizeStart": "Başlama tarixini sürüşdür",
@@ -3030,7 +3006,10 @@
"error": "Tapşırığı silmək alınmadı"
},
"archive": {
- "success": "{{count}} tapşırıq arxivləndi"
+ "success": "{{count}} tapşırıq arxivləndi",
+ "confirmTitle_one": "{{count}} tamamlanmış tapşırıq arxivlənsin?",
+ "confirmTitle_other": "{{count}} tamamlanmış tapşırıq arxivlənsin?",
+ "confirmDescription": "Onlar lövhədən çıxarılıb gözləyən tapşırıqların \"Arxivlənmiş\" bölməsinə keçəcək."
},
"listView": {
"addTask": "Tapşırıq əlavə et",
@@ -3056,17 +3035,13 @@
"dueDate": {
"label": "Son tarix",
"clear": "Tarixi təmizlə",
- "updateSuccess": "Tapşırığın son tarixi uğurla yeniləndi",
"updateError": "Tapşırığın son tarixini yeniləmək alınmadı",
- "clearSuccess": "Tapşırığın son tarixi təmizləndi",
"clearError": "Son tarixi təmizləmək alınmadı"
},
"labels": {
- "label": "Etiketlər",
"empty": "Mövcud etiket yoxdur"
},
"update": {
- "success": "Tapşırıq uğurla yeniləndi",
"error": "Tapşırığı yeniləmək alınmadı"
},
"contextMenu": {
@@ -3088,7 +3063,9 @@
"moveToBoardSuccess": "{{count}} tapşırıq lövhəyə köçürüldü",
"moveToBoardError": "Tapşırıqları lövhəyə köçürmək alınmadı",
"delete": "Tapşırıqları sil",
- "deleteConfirm": "{{count}} tapşırıq silinsin? Bu əməliyyat geri qaytarıla bilməz.",
+ "deleteConfirmTitle_one": "{{count}} tapşırıq silinsin?",
+ "deleteConfirmTitle_other": "{{count}} tapşırıq silinsin?",
+ "deleteConfirmDescription": "Bu, seçilmiş tapşırıqları və onların bütün məlumatlarını həmişəlik siləcək. Bu əməliyyatı geri qaytara bilməzsiniz.",
"deleteSuccess": "{{count}} tapşırıq silindi",
"deleteError": "Tapşırıqları silmək alınmadı",
"archive": "Tapşırıqları arxivlə",
@@ -3134,10 +3111,50 @@
},
"checklistProgress": "{{completed}} of {{total}} checklist items completed",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Sahələr",
+ "empty": "Boş",
+ "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",
+ "missingRequired_one": "{{count}} məcburi sahə boşdur",
+ "missingRequired_other": "{{count}} məcburi sahə boşdur",
+ "saveError": "{{field}} saxlanılmadı",
+ "moreFields_one": "Daha {{count}} sahə",
+ "moreFields_other": "Daha {{count}} sahə"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Tapşırıqları axtar",
+ "clearSearch": "Axtarışı təmizlə",
+ "taskCount_one": "{{count}} tapşırıq",
+ "taskCount_other": "{{count}} tapşırıq",
+ "shownCount_one": "{{count}} tapşırıqdan {{shown}}",
+ "shownCount_other": "{{count}} tapşırıqdan {{shown}}"
+ },
+ "display": {
+ "title": "Görünüş",
+ "sortBy": "Sıralama meyarı",
+ "showOnCards": "Kartlarda göstər",
+ "showOnRows": "Sətirlərdə göstər",
+ "checklistProgress": "Yoxlama siyahısının gedişatı",
+ "projectBackground": "Layihə fonu",
+ "layout": "Düzən"
+ },
+ "filterBar": {
+ "label": "Aktiv süzgəclər",
+ "removeFilter": "{{name}} süzgəcini sil",
+ "noMatches": "Axtarışınıza və ya süzgəclərinizə uyğun tapşırıq yoxdur."
+ },
+ "filterMenu": {
+ "addFilter": "Süzgəc əlavə et…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Nəticə yoxdur"
}
},
"invitations": {
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index fdb225129..2058dff43 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -10,8 +10,7 @@
"markAllRead": "Alle als gelesen markieren",
"remove": "Entfernen",
"reset": "Zurücksetzen",
- "filter": "Filter",
- "clearAllFilters": "Alle Filter löschen"
+ "filter": "Filter"
},
"a11y": {
"toggleSidebar": "Sidebar umschalten"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1594,12 +1587,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Kontrollkästchen",
@@ -1609,7 +1600,6 @@
"text": "Text",
"multiselect": "Dropdown, Mehrfachauswahl"
},
- "availableOptions": "Available options",
"clearDefault": "Standardwert entfernen",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Danke für dein Abo",
+ "description": "Zahlung erhalten. Der Plan unten wird aktualisiert, sobald sie bestätigt ist."
+ }
},
"syncRules": {
"addLabel": "Label hinzufügen",
@@ -2468,7 +2462,8 @@
"prevTask": "Vorherige Aufgabe",
"openTask": "Ausgewählte Aufgabe öffnen",
"quickSelectNumber": "Option per Nummer auswählen",
- "calendarView": "Zur Kalenderansicht wechseln"
+ "calendarView": "Zur Kalenderansicht wechseln",
+ "ganttView": "Zur Gantt-Ansicht wechseln"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Hoch",
"urgent": "Dringend"
},
- "boardSearchPlaceholder": "Tickets suchen...",
"view": {
"board": "Board",
"list": "Liste",
@@ -2815,9 +2809,7 @@
"saving": "Wird gespeichert…",
"saveFailed": "Speichern fehlgeschlagen",
"retrySave": "Erneut speichern"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Aufgabe"
@@ -2889,12 +2881,10 @@
"updateError": "Aufgabenpriorität konnte nicht aktualisiert werden"
},
"dueDate": {
- "updateSuccess": "Fälligkeitsdatum erfolgreich aktualisiert",
"updateError": "Fälligkeitsdatum konnte nicht aktualisiert werden",
"clear": "Datum entfernen"
},
"startDate": {
- "updateSuccess": "Startdatum erfolgreich aktualisiert",
"updateError": "Startdatum konnte nicht aktualisiert werden",
"clear": "Startdatum entfernen"
},
@@ -2903,8 +2893,6 @@
"empty": "Keine Labels gefunden",
"create": "\"{{name}}\" erstellen",
"chooseColor": "Farbe auswählen",
- "addSuccess": "Label hinzugefügt",
- "removeSuccess": "Label entfernt",
"updateError": "Label konnte nicht aktualisiert werden",
"createSuccess": "Label erstellt und hinzugefügt",
"createError": "Label konnte nicht erstellt werden",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "Alle geplanten Aufgaben nach „Zu erledigen“ verschieben",
"moveAll": "Alle verschieben",
"addTask": "Aufgabe hinzufügen",
- "filter": "Filter",
- "addFilter": "Filter hinzufügen...",
"sections": {
"planned": "Geplant",
"archived": "Archiviert"
},
"noTasksInSection": "Keine {{section}}-Aufgaben",
"filters": {
- "priority": "Priorität: {{name}}",
- "assignee": "Zugewiesen: {{name}}",
- "due": "Fällig: {{date}}",
- "label": "Label: {{name}}",
"dueThisWeek": "Diese Woche fällig",
"dueNextWeek": "Nächste Woche fällig",
"noDueDate": "Kein Fälligkeitsdatum"
}
},
"sort": {
- "label": "Sortieren",
- "by": "Sortieren nach",
"direction": "Richtung",
"ascending": "Aufsteigend",
"descending": "Absteigend",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtern nach",
- "allStatuses": "Alle Status",
- "allPriorities": "Alle Prioritäten",
- "allAssignees": "Alle Zugewiesenen",
- "allDueDates": "Alle Fälligkeitsdaten",
- "allLabels": "Alle Labels",
"selectedCount": "{{count}} ausgewählt",
"subjects": {
"status": "Status",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "ist einer von",
- "includeAnyOf": "enthält einen von"
+ "includeAnyOf": "enthält einen von",
+ "is": "ist",
+ "isNot": "ist nicht",
+ "isNoneOf": "ist keiner von",
+ "include": "enthält",
+ "exclude": "enthält nicht"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2990,13 +2968,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Gantt-Zeitachse",
- "searchPlaceholder": "Geplante Tickets suchen...",
"hideTasks": "Aufgaben ausblenden",
"showTasks": "Aufgaben anzeigen",
"noTasks": "Keine geplanten Aufgaben",
"noTasksSubtitle": "Füge Aufgaben ein Startdatum, ein Fälligkeitsdatum oder beides hinzu, um sie auf der Projektzeitleiste zu platzieren.",
"noTasksFound": "Keine Aufgaben gefunden",
- "noTasksMatch": "Keine geplanten Aufgaben entsprechen \"{{query}}\"",
"taskHeader": "Aufgabe",
"updateDatesError": "Aufgabendaten konnten nicht aktualisiert werden",
"resizeStart": "Startdatum anpassen",
@@ -3021,7 +2997,10 @@
"error": "Aufgabe konnte nicht dupliziert werden"
},
"archive": {
- "success": "{{count}} Aufgaben archiviert"
+ "success": "{{count}} Aufgaben archiviert",
+ "confirmTitle_one": "{{count}} erledigte Aufgabe archivieren?",
+ "confirmTitle_other": "{{count}} erledigte Aufgaben archivieren?",
+ "confirmDescription": "Sie verschwinden vom Board und landen im Bereich „Archiviert“ des Backlogs."
},
"listView": {
"addTask": "Aufgabe hinzufügen",
@@ -3047,17 +3026,13 @@
"dueDate": {
"label": "Fälligkeitsdatum",
"clear": "Datum entfernen",
- "updateSuccess": "Fälligkeitsdatum erfolgreich aktualisiert",
"updateError": "Fälligkeitsdatum konnte nicht aktualisiert werden",
- "clearSuccess": "Fälligkeitsdatum entfernt",
"clearError": "Fälligkeitsdatum konnte nicht entfernt werden"
},
"labels": {
- "label": "Labels",
"empty": "Keine Labels verfügbar"
},
"update": {
- "success": "Aufgabe erfolgreich aktualisiert",
"error": "Aufgabe konnte nicht aktualisiert werden"
},
"contextMenu": {
@@ -3079,7 +3054,9 @@
"moveToBoardSuccess": "{{count}} Aufgaben aufs Board verschoben",
"moveToBoardError": "Aufgaben konnten nicht aufs Board verschoben werden",
"delete": "Aufgaben löschen",
- "deleteConfirm": "{{count}} Aufgaben löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
+ "deleteConfirmTitle_one": "{{count}} Aufgabe löschen?",
+ "deleteConfirmTitle_other": "{{count}} Aufgaben löschen?",
+ "deleteConfirmDescription": "Dadurch werden die ausgewählten Aufgaben und alle zugehörigen Daten dauerhaft entfernt. Diese Aktion kann nicht rückgängig gemacht werden.",
"deleteSuccess": "{{count}} Aufgaben gelöscht",
"deleteError": "Aufgaben konnten nicht gelöscht werden",
"archive": "Aufgaben archivieren",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "Die Beschreibung konnte nicht geladen werden. Versuche es erneut, um die aktuelle Version zu laden.",
"checklistProgress": "{{completed}} von {{total}} Checklistenpunkten abgeschlossen",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Felder",
+ "empty": "Leer",
+ "required": "Pflichtfeld",
+ "enterKey": "Enter",
+ "toSave": "zum Speichern",
+ "today": "Heute",
+ "clear": "Leeren",
+ "setValue": "{{field}} festlegen…",
+ "noMatches": "Keine passenden Optionen",
+ "missingRequired_one": "{{count}} Pflichtfeld ist leer",
+ "missingRequired_other": "{{count}} Pflichtfelder sind leer",
+ "saveError": "{{field}} konnte nicht gespeichert werden",
+ "moreFields_one": "{{count}} weiteres Feld",
+ "moreFields_other": "{{count}} weitere Felder"
},
"board": {
"reorderFailed": "Die Reihenfolge konnte nicht gespeichert werden."
+ },
+ "toolbar": {
+ "search": "Aufgaben suchen",
+ "clearSearch": "Suche leeren",
+ "taskCount_one": "{{count}} Aufgabe",
+ "taskCount_other": "{{count}} Aufgaben",
+ "shownCount_one": "{{shown}} von {{count}} Aufgabe",
+ "shownCount_other": "{{shown}} von {{count}} Aufgaben"
+ },
+ "display": {
+ "title": "Anzeige",
+ "sortBy": "Sortieren nach",
+ "showOnCards": "Auf Karten anzeigen",
+ "showOnRows": "In Zeilen anzeigen",
+ "checklistProgress": "Checklisten-Fortschritt",
+ "projectBackground": "Projekthintergrund",
+ "layout": "Layout"
+ },
+ "filterBar": {
+ "label": "Aktive Filter",
+ "removeFilter": "Filter {{name}} entfernen",
+ "noMatches": "Keine Aufgaben passen zu deiner Suche oder deinen Filtern."
+ },
+ "filterMenu": {
+ "addFilter": "Filter hinzufügen…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Keine Ergebnisse"
}
},
"invitations": {
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index 05bcd830a..373bdbf3b 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -10,8 +10,7 @@
"markAllRead": "Επισήμανση όλων ως αναγνωσμένα",
"remove": "Αφαίρεση",
"reset": "Επαναφορά",
- "filter": "Φίλτρο",
- "clearAllFilters": "Εκκαθάριση όλων των φίλτρων"
+ "filter": "Φίλτρο"
},
"a11y": {
"toggleSidebar": "Εναλλαγή πλαϊνής μπάρας"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Πλαίσιο ελέγχου",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "Λίστα, πολλαπλή επιλογή"
},
- "availableOptions": "Available options",
"clearDefault": "Καθαρισμός προεπιλογής",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Ευχαριστούμε για τη συνδρομή σας",
+ "description": "Η πληρωμή ελήφθη. Το πρόγραμμα παρακάτω θα ενημερωθεί μόλις επιβεβαιωθεί."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"prevTask": "Προηγούμενη εργασία",
"openTask": "Άνοιγμα επιλεγμένης εργασίας",
"quickSelectNumber": "Επιλογή επιλογής με αριθμό",
- "calendarView": "Μετάβαση σε προβολή ημερολογίου"
+ "calendarView": "Μετάβαση σε προβολή ημερολογίου",
+ "ganttView": "Μετάβαση σε προβολή Gantt"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Υψηλή",
"urgent": "Επείγουσα"
},
- "boardSearchPlaceholder": "Αναζήτηση αιτημάτων...",
"view": {
"board": "Πίνακας",
"list": "Λίστα",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Εργασία"
@@ -2889,12 +2881,10 @@
"updateError": "Αποτυχία ενημέρωσης προτεραιότητας εργασίας"
},
"dueDate": {
- "updateSuccess": "Η ημερομηνία λήξης της εργασίας ενημερώθηκε με επιτυχία",
"updateError": "Αποτυχία ενημέρωσης ημερομηνίας λήξης εργασίας",
"clear": "Εκκαθάριση ημερομηνίας"
},
"startDate": {
- "updateSuccess": "Η ημερομηνία έναρξης της εργασίας ενημερώθηκε με επιτυχία",
"updateError": "Αποτυχία ενημέρωσης ημερομηνίας έναρξης εργασίας",
"clear": "Εκκαθάριση ημερομηνίας έναρξης"
},
@@ -2903,8 +2893,6 @@
"empty": "Δεν βρέθηκαν ετικέτες",
"create": "Δημιουργία \"{{name}}\"",
"chooseColor": "Επιλογή χρώματος",
- "addSuccess": "Η ετικέτα προστέθηκε",
- "removeSuccess": "Η ετικέτα αφαιρέθηκε",
"updateError": "Αποτυχία ενημέρωσης ετικέτας",
"createSuccess": "Η ετικέτα δημιουργήθηκε και προστέθηκε",
"createError": "Αποτυχία δημιουργίας ετικέτας",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "Μετακίνηση όλων των προγραμματισμένων στο Προς υλοποίηση",
"moveAll": "Μετακίνηση όλων",
"addTask": "Προσθήκη εργασίας",
- "filter": "Φίλτρο",
- "addFilter": "Προσθήκη φίλτρου...",
"sections": {
"planned": "Προγραμματισμένα",
"archived": "Αρχειοθετημένα"
},
"noTasksInSection": "Δεν υπάρχουν {{section}} εργασίες",
"filters": {
- "priority": "Προτεραιότητα: {{name}}",
- "assignee": "Ανατεθειμένος: {{name}}",
- "due": "Λήξη: {{date}}",
- "label": "Ετικέτα: {{name}}",
"dueThisWeek": "Λήγει αυτή την εβδομάδα",
"dueNextWeek": "Λήγει την επόμενη εβδομάδα",
"noDueDate": "Χωρίς ημερομηνία λήξης"
}
},
"sort": {
- "label": "Ταξινόμηση",
- "by": "Ταξινόμηση κατά",
"direction": "Κατεύθυνση",
"ascending": "Αύξουσα",
"descending": "Φθίνουσα",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "Φιλτράρισμα κατά",
- "allStatuses": "Όλες οι καταστάσεις",
- "allPriorities": "Όλες οι προτεραιότητες",
- "allAssignees": "Όλοι οι ανατεθειμένοι",
- "allDueDates": "Όλες οι ημερομηνίες λήξης",
- "allLabels": "Όλες οι ετικέτες",
"selectedCount": "{{count}} επιλεγμένα",
"subjects": {
"status": "Κατάσταση",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "είναι ένα από",
- "includeAnyOf": "περιλαμβάνει κάποιο από"
+ "includeAnyOf": "περιλαμβάνει κάποιο από",
+ "is": "είναι",
+ "isNot": "δεν είναι",
+ "isNoneOf": "δεν είναι κανένα από",
+ "include": "περιλαμβάνει",
+ "exclude": "εξαιρεί"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2990,13 +2968,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Χρονοδιάγραμμα Gantt",
- "searchPlaceholder": "Αναζήτηση προγραμματισμένων αιτημάτων...",
"hideTasks": "Απόκρυψη εργασιών",
"showTasks": "Εμφάνιση εργασιών",
"noTasks": "Δεν υπάρχουν προγραμματισμένες εργασίες",
"noTasksSubtitle": "Προσθέστε ημερομηνία έναρξης, ημερομηνία λήξης ή και τα δύο στις εργασίες για να τοποθετηθούν στο χρονοδιάγραμμα του έργου.",
"noTasksFound": "Δεν βρέθηκαν εργασίες",
- "noTasksMatch": "Δεν υπάρχουν προγραμματισμένες εργασίες που να ταιριάζουν με \"{{query}}\"",
"taskHeader": "Εργασία",
"updateDatesError": "Αποτυχία ενημέρωσης ημερομηνιών εργασίας",
"resizeStart": "Αλλαγή μεγέθους ημερομηνίας έναρξης",
@@ -3021,7 +2997,10 @@
"error": "Αποτυχία δημιουργίας αντιγράφου εργασίας"
},
"archive": {
- "success": "Αρχειοθετήθηκαν {{count}} εργασίες"
+ "success": "Αρχειοθετήθηκαν {{count}} εργασίες",
+ "confirmTitle_one": "Αρχειοθέτηση {{count}} ολοκληρωμένης εργασίας;",
+ "confirmTitle_other": "Αρχειοθέτηση {{count}} ολοκληρωμένων εργασιών;",
+ "confirmDescription": "Θα αφαιρεθούν από τον πίνακα και θα μεταφερθούν στην ενότητα «Αρχειοθετημένα» του Backlog."
},
"listView": {
"addTask": "Προσθήκη εργασίας",
@@ -3047,17 +3026,13 @@
"dueDate": {
"label": "Ημερομηνία λήξης",
"clear": "Εκκαθάριση ημερομηνίας",
- "updateSuccess": "Η ημερομηνία λήξης της εργασίας ενημερώθηκε με επιτυχία",
"updateError": "Αποτυχία ενημέρωσης ημερομηνίας λήξης εργασίας",
- "clearSuccess": "Η ημερομηνία λήξης της εργασίας αφαιρέθηκε",
"clearError": "Αποτυχία αφαίρεσης ημερομηνίας λήξης"
},
"labels": {
- "label": "Ετικέτες",
"empty": "Δεν υπάρχουν διαθέσιμες ετικέτες"
},
"update": {
- "success": "Η εργασία ενημερώθηκε με επιτυχία",
"error": "Αποτυχία ενημέρωσης εργασίας"
},
"contextMenu": {
@@ -3079,7 +3054,9 @@
"moveToBoardSuccess": "{{count}} εργασίες μετακινήθηκαν στον πίνακα",
"moveToBoardError": "Αποτυχία μετακίνησης εργασιών στον πίνακα",
"delete": "Διαγραφή εργασιών",
- "deleteConfirm": "Διαγραφή {{count}} εργασιών; Αυτή η ενέργεια δεν μπορεί να αναιρεθεί.",
+ "deleteConfirmTitle_one": "Διαγραφή {{count}} εργασίας;",
+ "deleteConfirmTitle_other": "Διαγραφή {{count}} εργασιών;",
+ "deleteConfirmDescription": "Αυτό θα αφαιρέσει οριστικά τις επιλεγμένες εργασίες και όλα τα δεδομένα τους. Δεν μπορείτε να αναιρέσετε αυτήν την ενέργεια.",
"deleteSuccess": "{{count}} εργασίες διαγράφηκαν",
"deleteError": "Αποτυχία διαγραφής εργασιών",
"archive": "Αρχειοθέτηση εργασιών",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "Ολοκληρώθηκαν {{completed}} από {{total}} στοιχεία λίστας ελέγχου",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Πεδία",
+ "empty": "Κενό",
+ "required": "Υποχρεωτικό",
+ "enterKey": "Enter",
+ "toSave": "για αποθήκευση",
+ "today": "Σήμερα",
+ "clear": "Εκκαθάριση",
+ "setValue": "Ορισμός {{field}}…",
+ "noMatches": "Δεν βρέθηκαν επιλογές",
+ "missingRequired_one": "{{count}} υποχρεωτικό πεδίο είναι κενό",
+ "missingRequired_other": "{{count}} υποχρεωτικά πεδία είναι κενά",
+ "saveError": "Δεν ήταν δυνατή η αποθήκευση του πεδίου {{field}}",
+ "moreFields_one": "{{count}} ακόμη πεδίο",
+ "moreFields_other": "{{count}} ακόμη πεδία"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Αναζήτηση εργασιών",
+ "clearSearch": "Εκκαθάριση αναζήτησης",
+ "taskCount_one": "{{count}} εργασία",
+ "taskCount_other": "{{count}} εργασίες",
+ "shownCount_one": "{{shown}} από {{count}} εργασία",
+ "shownCount_other": "{{shown}} από {{count}} εργασίες"
+ },
+ "display": {
+ "title": "Εμφάνιση",
+ "sortBy": "Ταξινόμηση κατά",
+ "showOnCards": "Εμφάνιση στις κάρτες",
+ "showOnRows": "Εμφάνιση στις γραμμές",
+ "checklistProgress": "Πρόοδος λίστας ελέγχου",
+ "projectBackground": "Φόντο έργου",
+ "layout": "Διάταξη"
+ },
+ "filterBar": {
+ "label": "Ενεργά φίλτρα",
+ "removeFilter": "Αφαίρεση φίλτρου {{name}}",
+ "noMatches": "Καμία εργασία δεν ταιριάζει με την αναζήτηση ή τα φίλτρα σας."
+ },
+ "filterMenu": {
+ "addFilter": "Προσθήκη φίλτρου…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Κανένα αποτέλεσμα"
}
},
"invitations": {
diff --git a/i18n/en-US.json b/i18n/en-US.json
index cf324fbbc..3e860a493 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -10,8 +10,7 @@
"markAllRead": "Mark all read",
"remove": "Remove",
"reset": "Reset",
- "filter": "Filter",
- "clearAllFilters": "Clear all filters"
+ "filter": "Filter"
},
"a11y": {
"toggleSidebar": "Toggle sidebar"
@@ -35,12 +34,6 @@
"label": "Breadcrumb",
"more": "More"
},
- "boolean": {
- "true": "True",
- "false": "False",
- "undefined": "Undefined",
- "notSet": "Not Set"
- },
"language": {
"english": "English",
"german": "German",
@@ -1730,8 +1723,6 @@
},
"customFields": {
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
- "defaultValuePlaceholder": "Default value",
"selectPlaceholder": "Select option(s)",
"required": "Required",
"creating": "Creating...",
@@ -1744,7 +1735,6 @@
"reorderError": "Failed to reorder fields",
"moreOptions": "+{{hiddenCount}} more",
"clearDefault": "Clear default",
- "availableOptions": "Available options",
"types": {
"text": "Text",
"number": "Number",
@@ -2275,7 +2265,11 @@
"memberDescription": "You can still view everything, but creating and editing are paused until a workspace owner or admin chooses a plan.",
"action": "Choose a plan"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Thanks for subscribing",
+ "description": "Payment received. The plan below updates once it's confirmed."
+ }
},
"chatIntegrations": {
"optional": "Optional",
@@ -2468,7 +2462,8 @@
"nextTask": "Next task",
"prevTask": "Previous task",
"openTask": "Open selected task",
- "quickSelectNumber": "Select option by number"
+ "quickSelectNumber": "Select option by number",
+ "ganttView": "Switch to Gantt view"
}
}
},
@@ -2683,7 +2678,6 @@
"high": "High",
"urgent": "Urgent"
},
- "boardSearchPlaceholder": "Search tickets...",
"view": {
"board": "Board",
"list": "List",
@@ -2703,8 +2697,6 @@
},
"detail": {
"subtaskOf": "Subtask of",
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option",
"activity": "Activity",
"noActivity": "No activity found",
"openInFullPage": "Open in full page",
@@ -2890,12 +2882,10 @@
"updateError": "Failed to update task priority"
},
"dueDate": {
- "updateSuccess": "Task due date updated successfully",
"updateError": "Failed to update task due date",
"clear": "Clear date"
},
"startDate": {
- "updateSuccess": "Task start date updated successfully",
"updateError": "Failed to update task start date",
"clear": "Clear start date"
},
@@ -2904,8 +2894,6 @@
"empty": "No labels found",
"create": "Create \"{{name}}\"",
"chooseColor": "Choose color",
- "addSuccess": "Label added",
- "removeSuccess": "Label removed",
"updateError": "Failed to update label",
"createSuccess": "Label created and added",
"createError": "Failed to create label",
@@ -2932,26 +2920,18 @@
"moveAllTooltip": "Move All Planned to To Do",
"moveAll": "Move All",
"addTask": "Add task",
- "filter": "Filter",
- "addFilter": "Add filter...",
"sections": {
"planned": "Planned",
"archived": "Archived"
},
"noTasksInSection": "No {{section}} tasks",
"filters": {
- "priority": "Priority: {{name}}",
- "assignee": "Assignee: {{name}}",
- "due": "Due: {{date}}",
- "label": "Label: {{name}}",
"dueThisWeek": "Due this week",
"dueNextWeek": "Due next week",
"noDueDate": "No due date"
}
},
"sort": {
- "label": "Sort",
- "by": "Sort By",
"direction": "Direction",
"ascending": "Ascending",
"descending": "Descending",
@@ -2965,17 +2945,10 @@
}
},
"boardFilters": {
- "filterBy": "Filter By",
- "allStatuses": "All statuses",
- "allPriorities": "All priorities",
- "allAssignees": "All assignees",
- "allDueDates": "All due dates",
- "allLabels": "All labels",
"noValuesUsedYet": "No values used yet",
"noCustomFieldValues": "No custom field values",
"allCustomFieldValues": "All values",
"selectedCount": "{{count}} selected",
- "all": "All",
"subjects": {
"status": "Status",
"priority": "Priority",
@@ -2985,7 +2958,12 @@
},
"operators": {
"isAnyOf": "is any of",
- "includeAnyOf": "include any of"
+ "includeAnyOf": "include any of",
+ "is": "is",
+ "isNot": "is not",
+ "isNoneOf": "is none of",
+ "include": "include",
+ "exclude": "exclude"
}
},
"calendar": {
@@ -3006,13 +2984,11 @@
"pageTitle": "{{name}} – Gantt",
"title": "Gantt Timeline",
"jumpToToday": "Jump to today",
- "searchPlaceholder": "Search scheduled tickets...",
"hideTasks": "Hide tasks",
"showTasks": "Show tasks",
"noTasks": "No scheduled tasks",
"noTasksSubtitle": "Add a start date, due date, or both to tasks to place them on the project timeline.",
"noTasksFound": "No tasks found",
- "noTasksMatch": "No scheduled tasks match \"{{query}}\"",
"taskHeader": "Task",
"updateDatesError": "Failed to update task dates",
"resizeStart": "Resize start date",
@@ -3036,7 +3012,10 @@
"error": "Failed to duplicate task"
},
"archive": {
- "success": "Archived {{count}} tasks"
+ "success": "Archived {{count}} tasks",
+ "confirmTitle_one": "Archive {{count}} completed task?",
+ "confirmTitle_other": "Archive {{count}} completed tasks?",
+ "confirmDescription": "They leave the board and move to the Archived section of the backlog."
},
"listView": {
"addTask": "Add task",
@@ -3062,17 +3041,13 @@
"dueDate": {
"label": "Due date",
"clear": "Clear date",
- "updateSuccess": "Task due date updated successfully",
"updateError": "Failed to update task due date",
- "clearSuccess": "Task due date cleared",
"clearError": "Failed to clear due date"
},
"labels": {
- "label": "Labels",
"empty": "No labels available"
},
"update": {
- "success": "Task updated successfully",
"error": "Failed to update task"
},
"contextMenu": {
@@ -3094,7 +3069,9 @@
"moveToBoardSuccess": "{{count}} tasks moved to board",
"moveToBoardError": "Failed to move tasks to board",
"delete": "Delete tasks",
- "deleteConfirm": "Delete {{count}} tasks? This action cannot be undone.",
+ "deleteConfirmTitle_one": "Delete {{count}} task?",
+ "deleteConfirmTitle_other": "Delete {{count}} tasks?",
+ "deleteConfirmDescription": "This will permanently remove the selected tasks and all their data. You can't undo this action.",
"deleteSuccess": "{{count}} tasks deleted",
"deleteError": "Failed to delete tasks",
"archive": "Archive tasks",
@@ -3129,7 +3106,20 @@
}
},
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Fields",
+ "empty": "Empty",
+ "required": "Required",
+ "enterKey": "Enter",
+ "toSave": "to save",
+ "today": "Today",
+ "clear": "Clear",
+ "setValue": "Set {{field}}…",
+ "noMatches": "No matching options",
+ "missingRequired_one": "{{count}} required field is empty",
+ "missingRequired_other": "{{count}} required fields are empty",
+ "saveError": "Couldn't save {{field}}",
+ "moreFields_one": "{{count}} more field",
+ "moreFields_other": "{{count}} more fields"
},
"descriptionSearchLoading": "Searching full descriptions…",
"descriptionSearchError": "Description search failed. Results may be incomplete.",
@@ -3138,6 +3128,33 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Search tasks",
+ "clearSearch": "Clear search",
+ "taskCount_one": "{{count}} task",
+ "taskCount_other": "{{count}} tasks",
+ "shownCount_one": "{{shown}} of {{count}} task",
+ "shownCount_other": "{{shown}} of {{count}} tasks"
+ },
+ "display": {
+ "title": "Display",
+ "sortBy": "Sort by",
+ "showOnCards": "Show on cards",
+ "showOnRows": "Show on rows",
+ "checklistProgress": "Checklist progress",
+ "projectBackground": "Project background",
+ "layout": "Layout"
+ },
+ "filterBar": {
+ "label": "Active filters",
+ "removeFilter": "Remove {{name}} filter",
+ "noMatches": "No tasks match your search or filters."
+ },
+ "filterMenu": {
+ "addFilter": "Add filter…",
+ "searchSubject": "{{name}}…",
+ "noResults": "No results"
}
},
"invitations": {
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index f11d26ca8..cfcc9bb2b 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -10,8 +10,7 @@
"markAllRead": "Marcar todos como leídos",
"remove": "Borrar",
"reset": "Restablecer",
- "filter": "Filtrar",
- "clearAllFilters": "Eliminar todos los filtros"
+ "filter": "Filtrar"
},
"a11y": {
"toggleSidebar": "Mostrar barra lateral"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1526,12 +1519,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Casilla de verificación",
@@ -1541,7 +1532,6 @@
"text": "Text",
"multiselect": "Desplegable, selección múltiple"
},
- "availableOptions": "Available options",
"clearDefault": "Quitar valor por defecto",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1878,7 +1868,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Gracias por suscribirte",
+ "description": "Pago recibido. El plan de abajo se actualizará cuando se confirme."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2510,7 +2504,8 @@
"prevTask": "Tarea anterior",
"openTask": "Abrir tarea seleccionada",
"quickSelectNumber": "Seleccionar opción por número",
- "calendarView": "Cambiar a vista de calendario"
+ "calendarView": "Cambiar a vista de calendario",
+ "ganttView": "Cambiar a vista Gantt"
}
}
},
@@ -2728,7 +2723,6 @@
"high": "Alta",
"urgent": "Urgente"
},
- "boardSearchPlaceholder": "Buscar tickets...",
"view": {
"board": "Tablero",
"list": "Lista",
@@ -2861,9 +2855,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Tarea"
@@ -2924,12 +2916,10 @@
"updateError": "Error al actualizar la prioridad de esta tarea"
},
"dueDate": {
- "updateSuccess": "La fecha de vencimiento de la tarea se ha actualizado correctamente",
"updateError": "Error al actualizar la fehca de vencimiento de la tarea",
"clear": "Eliminar fecha"
},
"startDate": {
- "updateSuccess": "La fecha de inicio de la tarea se ha actualizado correctamente",
"updateError": "Error al actualizar la fecha de inicio de la tarea",
"clear": "Eliminar fecha de inicio"
},
@@ -2938,8 +2928,6 @@
"empty": "No se han encontrado etiquetas",
"create": "Crear \"{{name}}\"",
"chooseColor": "Elegir color",
- "addSuccess": "Etiqueta añadida",
- "removeSuccess": "Etiqueta eliminada",
"updateError": "Error al actualizar etiqueta",
"createSuccess": "Etiqueta creada y añadida",
"createError": "Error al crear etiqueta",
@@ -2966,26 +2954,18 @@
"moveAllTooltip": "Mover todas las planeadas a To Do",
"moveAll": "Mover todas",
"addTask": "Añadir tarea",
- "filter": "Filtrar",
- "addFilter": "Añadir filtro...",
"sections": {
"planned": "Planeadas",
"archived": "Archivadas"
},
"noTasksInSection": "No hay tareas en {{section}}",
"filters": {
- "priority": "Prioridad: {{name}}",
- "assignee": "Asignado: {{name}}",
- "due": "Vencimiento: {{date}}",
- "label": "Etiqueta: {{name}}",
"dueThisWeek": "Para esta semana",
"dueNextWeek": "Para la semana que viene",
"noDueDate": "Sin fecha de vencimiento"
}
},
"sort": {
- "label": "Ordenar",
- "by": "Ordenar por",
"direction": "Dirección",
"ascending": "Ascendente",
"descending": "Descendente",
@@ -2999,12 +2979,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtrar por",
- "allStatuses": "Todos los estados",
- "allPriorities": "Todas las prioridades",
- "allAssignees": "Todos los asignados",
- "allDueDates": "Todas las fechas de vencimiento",
- "allLabels": "Todas las etiquetas",
"selectedCount": "{{count}} selecionadas",
"subjects": {
"status": "Estado",
@@ -3015,9 +2989,13 @@
},
"operators": {
"isAnyOf": "es alguno de",
- "includeAnyOf": "incluye alguno de"
+ "includeAnyOf": "incluye alguno de",
+ "is": "es",
+ "isNot": "no es",
+ "isNoneOf": "no es ninguno de",
+ "include": "incluye",
+ "exclude": "excluye"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3025,13 +3003,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Diagrama de Gantt",
- "searchPlaceholder": "Buscar tickets planificados...",
"hideTasks": "Esconder tareas",
"showTasks": "Mostrar tareas",
"noTasks": "No hay tareas planificadas",
"noTasksSubtitle": "Añade una fecha de comienzo, fecha de vencimiento o ambas para a las tareas para mostrarlas en la línea temporal del proyecto.",
"noTasksFound": "No se han encontrado tareas",
- "noTasksMatch": "Ninguna tarea encaja con \"{{query}}\"",
"taskHeader": "Tarea",
"updateDatesError": "Error al actualizar las fechas de la tarea",
"resizeStart": "Cambiar la fecha de comienzo",
@@ -3056,7 +3032,11 @@
"error": "Error al duplicar la tarea"
},
"archive": {
- "success": "Se han archivado {{count}} tareas"
+ "success": "Se han archivado {{count}} tareas",
+ "confirmTitle_one": "¿Archivar {{count}} tarea completada?",
+ "confirmTitle_many": "¿Archivar {{count}} tareas completadas?",
+ "confirmTitle_other": "¿Archivar {{count}} tareas completadas?",
+ "confirmDescription": "Saldrán del tablero y pasarán a la sección «Archivadas» del backlog."
},
"listView": {
"addTask": "Añadir tarea",
@@ -3083,17 +3063,13 @@
"dueDate": {
"label": "Fecha de vencimiento",
"clear": "Eliminar fecha",
- "updateSuccess": "Fecha de vencimiento actualizada correctamente",
"updateError": "Error al actualizar fecha de vencimiento",
- "clearSuccess": "Fecha de vencimiento eliminada correctamente",
"clearError": "Error al eliminar fecha de vencimiento"
},
"labels": {
- "label": "Etiquetas",
"empty": "No hay etiquetas disponibles"
},
"update": {
- "success": "Tarea actualizada correctamente",
"error": "Error al actualizar tarea"
},
"contextMenu": {
@@ -3115,7 +3091,10 @@
"moveToBoardSuccess": "Se han movido {{count}} tareas al tablero",
"moveToBoardError": "Error al mover tareas al tablero",
"delete": "Eliminar tareas",
- "deleteConfirm": "¿Eliminar {{count}} tareas? Esta acción no puede deshacerse.",
+ "deleteConfirmTitle_one": "¿Eliminar {{count}} tarea?",
+ "deleteConfirmTitle_many": "¿Eliminar {{count}} tareas?",
+ "deleteConfirmTitle_other": "¿Eliminar {{count}} tareas?",
+ "deleteConfirmDescription": "Esto eliminará permanentemente las tareas seleccionadas y todos sus datos. Esta acción no puede deshacerse.",
"deleteSuccess": "{{count}} tareas eliminadas",
"deleteError": "Error al eliminar tareas",
"archive": "Archivar tareas",
@@ -3181,10 +3160,54 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} de {{total}} elementos de la lista completados",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Campos",
+ "empty": "Vacío",
+ "required": "Obligatorio",
+ "enterKey": "Intro",
+ "toSave": "para guardar",
+ "today": "Hoy",
+ "clear": "Borrar",
+ "setValue": "Establecer {{field}}…",
+ "noMatches": "No hay opciones que coincidan",
+ "missingRequired_one": "{{count}} campo obligatorio está vacío",
+ "missingRequired_many": "{{count}} campos obligatorios están vacíos",
+ "missingRequired_other": "{{count}} campos obligatorios están vacíos",
+ "saveError": "No se pudo guardar {{field}}",
+ "moreFields_one": "{{count}} campo más",
+ "moreFields_many": "{{count}} campos más",
+ "moreFields_other": "{{count}} campos más"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Buscar tareas",
+ "clearSearch": "Borrar búsqueda",
+ "taskCount_one": "{{count}} tarea",
+ "taskCount_many": "{{count}} tareas",
+ "taskCount_other": "{{count}} tareas",
+ "shownCount_one": "{{shown}} de {{count}} tarea",
+ "shownCount_many": "{{shown}} de {{count}} tareas",
+ "shownCount_other": "{{shown}} de {{count}} tareas"
+ },
+ "display": {
+ "title": "Visualización",
+ "sortBy": "Ordenar por",
+ "showOnCards": "Mostrar en tarjetas",
+ "showOnRows": "Mostrar en filas",
+ "checklistProgress": "Progreso de la lista",
+ "projectBackground": "Fondo del proyecto",
+ "layout": "Diseño"
+ },
+ "filterBar": {
+ "label": "Filtros activos",
+ "removeFilter": "Quitar filtro de {{name}}",
+ "noMatches": "Ninguna tarea coincide con tu búsqueda o tus filtros."
+ },
+ "filterMenu": {
+ "addFilter": "Añadir filtro…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Sin resultados"
}
},
"invitations": {
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 2f325934d..c17797474 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -10,8 +10,7 @@
"markAllRead": "Tout marquer comme lu",
"remove": "Retirer",
"reset": "Réinitialiser",
- "filter": "Filtrer",
- "clearAllFilters": "Effacer tous les filtres"
+ "filter": "Filtrer"
},
"a11y": {
"toggleSidebar": "Basculer la barre latérale"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1526,12 +1519,10 @@
"createSuccess": "Champ personnalisé créé.",
"creating": "Création...",
"defaultLabel": "Par défaut",
- "defaultValuePlaceholder": "Valeur par défaut",
"deleteError": "Échec de la suppression du champ personnalisé.",
"deleteSuccess": "Champ personnalisé supprimé.",
"deleting": "Suppression...",
"namePlaceholder": "Nom du champ",
- "noOptionsPlaceholder": "Aucune option",
"required": "Requis",
"types": {
"boolean": "Case à cocher",
@@ -1541,7 +1532,6 @@
"text": "Texte",
"multiselect": "Sélecteur à choix multiples"
},
- "availableOptions": "Options disponibles",
"clearDefault": "Effacer la valeur par défaut",
"moreOptions": "+{{hiddenCount}} de plus",
"reorderError": "Échec du réagencement des champs",
@@ -1878,7 +1868,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Merci pour votre abonnement",
+ "description": "Paiement reçu. L'offre ci-dessous sera mise à jour dès qu'il sera confirmé."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2510,7 +2504,8 @@
"prevTask": "Tâche précédente",
"openTask": "Ouvrir la tâche sélectionnée",
"quickSelectNumber": "Sélectionner une option par numéro",
- "calendarView": "Passer à la vue calendrier"
+ "calendarView": "Passer à la vue calendrier",
+ "ganttView": "Passer à la vue Gantt"
}
}
},
@@ -2728,7 +2723,6 @@
"high": "Haute",
"urgent": "Urgente"
},
- "boardSearchPlaceholder": "Rechercher des tickets...",
"view": {
"board": "Tableau",
"list": "Liste",
@@ -2861,9 +2855,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Tâche"
@@ -2935,12 +2927,10 @@
"updateError": "Échec de la mise à jour de la priorité de la tâche"
},
"dueDate": {
- "updateSuccess": "Date d'échéance de la tâche mise à jour avec succès",
"updateError": "Échec de la mise à jour de la date d'échéance de la tâche",
"clear": "Effacer la date"
},
"startDate": {
- "updateSuccess": "Date de début de la tâche mise à jour avec succès",
"updateError": "Échec de la mise à jour de la date de début de la tâche",
"clear": "Effacer la date de début"
},
@@ -2949,8 +2939,6 @@
"empty": "Aucun label trouvé",
"create": "Créer \"{{name}}\"",
"chooseColor": "Choisir une couleur",
- "addSuccess": "Label ajouté",
- "removeSuccess": "Label supprimé",
"updateError": "Échec de la mise à jour du label",
"createSuccess": "Label créé et ajouté",
"createError": "Échec de la création du label",
@@ -2977,26 +2965,18 @@
"moveAllTooltip": "Déplacer toutes les tâches planifiées vers À faire",
"moveAll": "Déplacer toutes",
"addTask": "Ajouter une tâche",
- "filter": "Filtrer",
- "addFilter": "Ajouter un filtre...",
"sections": {
"planned": "Planifié",
"archived": "Archivé"
},
"noTasksInSection": "Aucune tâche {{section}}",
"filters": {
- "priority": "Priorité: {{name}}",
- "assignee": "Assigné: {{name}}",
- "due": "Échéance: {{date}}",
- "label": "Label : {{name}}",
"dueThisWeek": "Échéance cette semaine",
"dueNextWeek": "Échéance la semaine prochaine",
"noDueDate": "Pas de date d'échéance"
}
},
"sort": {
- "label": "Trier",
- "by": "Trier par",
"direction": "Direction",
"ascending": "Croissant",
"descending": "Décroissant",
@@ -3010,12 +2990,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtrer par",
- "allStatuses": "Tous les statuts",
- "allPriorities": "Toutes les priorités",
- "allAssignees": "Tous les assignés",
- "allDueDates": "Toutes les dates d'échéance",
- "allLabels": "Tous les labels",
"selectedCount": "{{count}} sélectionné",
"subjects": {
"status": "Statut",
@@ -3026,9 +3000,13 @@
},
"operators": {
"isAnyOf": "est l'un des",
- "includeAnyOf": "inclut l'un des"
+ "includeAnyOf": "inclut l'un des",
+ "is": "est",
+ "isNot": "n'est pas",
+ "isNoneOf": "n'est aucun de",
+ "include": "inclut",
+ "exclude": "exclut"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3036,13 +3014,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Chronologie de Gantt",
- "searchPlaceholder": "Rechercher des tâches planifiées...",
"hideTasks": "Masquer les tâches",
"showTasks": "Afficher les tâches",
"noTasks": "Aucune tâche planifiée",
"noTasksSubtitle": "Ajoutez une date de début, une date d'échéance ou les deux pour placer les tâches dans la chronologie du projet.",
"noTasksFound": "Aucune tâche trouvée",
- "noTasksMatch": "Aucune tâche planifiée ne correspond à \"{{query}}\"",
"taskHeader": "Tâche",
"updateDatesError": "Échec de la mise à jour des dates de la tâche",
"resizeStart": "Redimensionner la date de début",
@@ -3067,7 +3043,11 @@
"error": "Échec de la duplication de la tâche"
},
"archive": {
- "success": "{{count}} tâches archivées"
+ "success": "{{count}} tâches archivées",
+ "confirmTitle_one": "Archiver {{count}} tâche terminée ?",
+ "confirmTitle_many": "Archiver {{count}} tâches terminées ?",
+ "confirmTitle_other": "Archiver {{count}} tâches terminées ?",
+ "confirmDescription": "Elles quittent le tableau et passent dans la section « Archivé » du backlog."
},
"listView": {
"addTask": "Ajouter une tâche",
@@ -3094,17 +3074,13 @@
"dueDate": {
"label": "Date d'échéance",
"clear": "Effacer la date",
- "updateSuccess": "Date d'échéance de la tâche mise à jour avec succès",
"updateError": "Échec de la mise à jour de la date d'échéance de la tâche",
- "clearSuccess": "Date d'échéance de la tâche effacée",
"clearError": "Échec de l'effacement de la date d'échéance"
},
"labels": {
- "label": "Labels",
"empty": "Aucun label disponible"
},
"update": {
- "success": "Tâche mise à jour avec succès",
"error": "Échec de la mise à jour de la tâche"
},
"contextMenu": {
@@ -3126,7 +3102,10 @@
"moveToBoardSuccess": "{{count}} tâches déplacées vers le tableau",
"moveToBoardError": "Échec du déplacement des tâches vers le tableau",
"delete": "Supprimer les tâches",
- "deleteConfirm": "Supprimer {{count}} tâches ? Cette action ne peut pas être annulée.",
+ "deleteConfirmTitle_one": "Supprimer {{count}} tâche ?",
+ "deleteConfirmTitle_many": "Supprimer {{count}} tâches ?",
+ "deleteConfirmTitle_other": "Supprimer {{count}} tâches ?",
+ "deleteConfirmDescription": "Cela supprimera définitivement les tâches sélectionnées et toutes leurs données. Vous ne pouvez pas annuler cette action.",
"deleteSuccess": "{{count}} tâches supprimées",
"deleteError": "Échec de la suppression des tâches",
"archive": "Archiver les tâches",
@@ -3181,10 +3160,54 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} éléments de la liste terminés sur {{total}}",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Champs",
+ "empty": "Vide",
+ "required": "Requis",
+ "enterKey": "Entrée",
+ "toSave": "pour enregistrer",
+ "today": "Aujourd’hui",
+ "clear": "Effacer",
+ "setValue": "Définir {{field}}…",
+ "noMatches": "Aucune option correspondante",
+ "missingRequired_one": "{{count}} champ obligatoire est vide",
+ "missingRequired_many": "{{count}} champs obligatoires sont vides",
+ "missingRequired_other": "{{count}} champs obligatoires sont vides",
+ "saveError": "Impossible d'enregistrer {{field}}",
+ "moreFields_one": "{{count}} champ de plus",
+ "moreFields_many": "{{count}} champs de plus",
+ "moreFields_other": "{{count}} champs de plus"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Rechercher des tâches",
+ "clearSearch": "Effacer la recherche",
+ "taskCount_one": "{{count}} tâche",
+ "taskCount_many": "{{count}} tâches",
+ "taskCount_other": "{{count}} tâches",
+ "shownCount_one": "{{shown}} sur {{count}} tâche",
+ "shownCount_many": "{{shown}} sur {{count}} tâches",
+ "shownCount_other": "{{shown}} sur {{count}} tâches"
+ },
+ "display": {
+ "title": "Affichage",
+ "sortBy": "Trier par",
+ "showOnCards": "Afficher sur les cartes",
+ "showOnRows": "Afficher sur les lignes",
+ "checklistProgress": "Progression de la liste",
+ "projectBackground": "Arrière-plan du projet",
+ "layout": "Disposition"
+ },
+ "filterBar": {
+ "label": "Filtres actifs",
+ "removeFilter": "Retirer le filtre {{name}}",
+ "noMatches": "Aucune tâche ne correspond à votre recherche ou à vos filtres."
+ },
+ "filterMenu": {
+ "addFilter": "Ajouter un filtre…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Aucun résultat"
}
},
"invitations": {
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index 3e1f4989d..3ef5d0d63 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -10,8 +10,7 @@
"markAllRead": "सभी पढ़ा हुआ करें",
"remove": "निकालें",
"reset": "रीसेट करें",
- "filter": "फ़िल्टर",
- "clearAllFilters": "सभी फ़िल्टर साफ़ करें"
+ "filter": "फ़िल्टर"
},
"a11y": {
"toggleSidebar": "साइडबार टॉगल करें"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "चेकबॉक्स",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "ड्रॉपडाउन, कई चुनें"
},
- "availableOptions": "Available options",
"clearDefault": "डिफ़ॉल्ट हटाएँ",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "सदस्यता लेने के लिए धन्यवाद",
+ "description": "भुगतान प्राप्त हुआ। पुष्टि होते ही नीचे दी गई योजना अपडेट हो जाएगी।"
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"prevTask": "पिछला कार्य",
"openTask": "चयनित कार्य खोलें",
"quickSelectNumber": "संख्या द्वारा विकल्प चुनें",
- "calendarView": "कैलेंडर दृश्य पर जाएँ"
+ "calendarView": "कैलेंडर दृश्य पर जाएँ",
+ "ganttView": "Gantt दृश्य पर जाएँ"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "उच्च",
"urgent": "अत्यावश्यक"
},
- "boardSearchPlaceholder": "टिकट खोजें...",
"view": {
"board": "बोर्ड",
"list": "सूची",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "कार्य"
@@ -2889,12 +2881,10 @@
"updateError": "कार्य की प्राथमिकता अपडेट करने में विफल"
},
"dueDate": {
- "updateSuccess": "कार्य की नियत तारीख सफलतापूर्वक अपडेट की गई",
"updateError": "कार्य की नियत तारीख अपडेट करने में विफल",
"clear": "तारीख साफ़ करें"
},
"startDate": {
- "updateSuccess": "कार्य की शुरू तारीख सफलतापूर्वक अपडेट की गई",
"updateError": "कार्य की शुरू तारीख अपडेट करने में विफल",
"clear": "शुरू तारीख साफ़ करें"
},
@@ -2903,8 +2893,6 @@
"empty": "कोई लेबल नहीं मिला",
"create": "\"{{name}}\" बनाएँ",
"chooseColor": "रंग चुनें",
- "addSuccess": "लेबल जोड़ा गया",
- "removeSuccess": "लेबल हटाया गया",
"updateError": "लेबल अपडेट करने में विफल",
"createSuccess": "लेबल बनाया और जोड़ा गया",
"createError": "लेबल बनाने में विफल",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "सभी नियोजित को To Do में ले जाएँ",
"moveAll": "सभी ले जाएँ",
"addTask": "कार्य जोड़ें",
- "filter": "फ़िल्टर",
- "addFilter": "फ़िल्टर जोड़ें...",
"sections": {
"planned": "नियोजित",
"archived": "संग्रहित"
},
"noTasksInSection": "कोई {{section}} कार्य नहीं",
"filters": {
- "priority": "प्राथमिकता: {{name}}",
- "assignee": "सौंपा गया: {{name}}",
- "due": "देय: {{date}}",
- "label": "लेबल: {{name}}",
"dueThisWeek": "इस सप्ताह देय",
"dueNextWeek": "अगले सप्ताह देय",
"noDueDate": "कोई नियत तारीख नहीं"
}
},
"sort": {
- "label": "क्रमबद्ध करें",
- "by": "इसके अनुसार",
"direction": "दिशा",
"ascending": "आरोही",
"descending": "अवरोही",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "इसके अनुसार फ़िल्टर करें",
- "allStatuses": "सभी स्थितियाँ",
- "allPriorities": "सभी प्राथमिकताएँ",
- "allAssignees": "सभी सौंपे गए",
- "allDueDates": "सभी नियत तारीखें",
- "allLabels": "सभी लेबल",
"selectedCount": "{{count}} चयनित",
"subjects": {
"status": "स्थिति",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "में से कोई है",
- "includeAnyOf": "में से कोई शामिल है"
+ "includeAnyOf": "में से कोई शामिल है",
+ "is": "है",
+ "isNot": "नहीं है",
+ "isNoneOf": "में से कोई नहीं है",
+ "include": "शामिल है",
+ "exclude": "शामिल नहीं है"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2990,13 +2968,11 @@
"gantt": {
"pageTitle": "{{name}} – गैंट",
"title": "गैंट टाइमलाइन",
- "searchPlaceholder": "शेड्यूल किए गए टिकट खोजें...",
"hideTasks": "कार्य छिपाएँ",
"showTasks": "कार्य दिखाएँ",
"noTasks": "कोई शेड्यूल किए गए कार्य नहीं",
"noTasksSubtitle": "प्रोजेक्ट टाइमलाइन पर रखने के लिए कार्यों में शुरू तारीख, नियत तारीख, या दोनों जोड़ें।",
"noTasksFound": "कोई कार्य नहीं मिला",
- "noTasksMatch": "\"{{query}}\" से मेल खाने वाले कोई शेड्यूल किए गए कार्य नहीं",
"taskHeader": "कार्य",
"updateDatesError": "कार्य की तारीखें अपडेट करने में विफल",
"resizeStart": "शुरू तारीख बदलें",
@@ -3021,7 +2997,10 @@
"error": "कार्य डुप्लिकेट करने में विफल"
},
"archive": {
- "success": "{{count}} कार्य संग्रहित किए गए"
+ "success": "{{count}} कार्य संग्रहित किए गए",
+ "confirmTitle_one": "{{count}} पूर्ण कार्य संग्रहित करें?",
+ "confirmTitle_other": "{{count}} पूर्ण कार्य संग्रहित करें?",
+ "confirmDescription": "ये बोर्ड से हट जाएँगे और बैकलॉग के \"संग्रहित\" अनुभाग में चले जाएँगे।"
},
"listView": {
"addTask": "कार्य जोड़ें",
@@ -3047,17 +3026,13 @@
"dueDate": {
"label": "नियत तारीख",
"clear": "तारीख साफ़ करें",
- "updateSuccess": "कार्य की नियत तारीख सफलतापूर्वक अपडेट की गई",
"updateError": "कार्य की नियत तारीख अपडेट करने में विफल",
- "clearSuccess": "कार्य की नियत तारीख साफ़ की गई",
"clearError": "नियत तारीख साफ़ करने में विफल"
},
"labels": {
- "label": "लेबल",
"empty": "कोई लेबल उपलब्ध नहीं"
},
"update": {
- "success": "कार्य सफलतापूर्वक अपडेट किया गया",
"error": "कार्य अपडेट करने में विफल"
},
"contextMenu": {
@@ -3079,7 +3054,9 @@
"moveToBoardSuccess": "{{count}} कार्य बोर्ड पर ले जाए गए",
"moveToBoardError": "कार्य बोर्ड पर ले जाने में विफल",
"delete": "कार्य हटाएँ",
- "deleteConfirm": "{{count}} कार्य हटाएँ? यह कार्रवाई पूर्ववत नहीं की जा सकती।",
+ "deleteConfirmTitle_one": "{{count}} कार्य हटाएँ?",
+ "deleteConfirmTitle_other": "{{count}} कार्य हटाएँ?",
+ "deleteConfirmDescription": "यह चयनित कार्यों और उनके सभी डेटा को स्थायी रूप से हटा देगा। यह कार्रवाई पूर्ववत नहीं की जा सकती।",
"deleteSuccess": "{{count}} कार्य हटाए गए",
"deleteError": "कार्य हटाने में विफल",
"archive": "कार्य संग्रहित करें",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "चेकलिस्ट के {{total}} में से {{completed}} आइटम पूरे हुए",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "फ़ील्ड",
+ "empty": "खाली",
+ "required": "आवश्यक",
+ "enterKey": "Enter",
+ "toSave": "सहेजने के लिए",
+ "today": "आज",
+ "clear": "साफ़ करें",
+ "setValue": "{{field}} सेट करें…",
+ "noMatches": "कोई मिलता-जुलता विकल्प नहीं",
+ "missingRequired_one": "{{count}} आवश्यक फ़ील्ड खाली है",
+ "missingRequired_other": "{{count}} आवश्यक फ़ील्ड खाली हैं",
+ "saveError": "{{field}} सहेजा नहीं जा सका",
+ "moreFields_one": "{{count}} और फ़ील्ड",
+ "moreFields_other": "{{count}} और फ़ील्ड"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "कार्य खोजें",
+ "clearSearch": "खोज साफ़ करें",
+ "taskCount_one": "{{count}} कार्य",
+ "taskCount_other": "{{count}} कार्य",
+ "shownCount_one": "{{count}} में से {{shown}} कार्य",
+ "shownCount_other": "{{count}} में से {{shown}} कार्य"
+ },
+ "display": {
+ "title": "प्रदर्शन",
+ "sortBy": "इसके अनुसार क्रमबद्ध करें",
+ "showOnCards": "कार्ड पर दिखाएँ",
+ "showOnRows": "पंक्तियों में दिखाएँ",
+ "checklistProgress": "चेकलिस्ट प्रगति",
+ "projectBackground": "प्रोजेक्ट पृष्ठभूमि",
+ "layout": "लेआउट"
+ },
+ "filterBar": {
+ "label": "सक्रिय फ़िल्टर",
+ "removeFilter": "{{name}} फ़िल्टर हटाएँ",
+ "noMatches": "आपकी खोज या फ़िल्टर से कोई कार्य मेल नहीं खाता।"
+ },
+ "filterMenu": {
+ "addFilter": "फ़िल्टर जोड़ें…",
+ "searchSubject": "{{name}}…",
+ "noResults": "कोई परिणाम नहीं"
}
},
"invitations": {
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index da5b3e69c..5bb985d42 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -10,8 +10,7 @@
"markAllRead": "Tandai semua telah dibaca",
"remove": "Hapus",
"reset": "Atur ulang",
- "filter": "Filter",
- "clearAllFilters": "Hapus semua filter"
+ "filter": "Filter"
},
"a11y": {
"toggleSidebar": "Tampilkan/sembunyikan panel samping"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1508,12 +1501,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Kotak centang",
@@ -1523,7 +1514,6 @@
"text": "Text",
"multiselect": "Dropdown, pilih beberapa"
},
- "availableOptions": "Available options",
"clearDefault": "Hapus default",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1852,7 +1842,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Terima kasih telah berlangganan",
+ "description": "Pembayaran diterima. Paket di bawah akan diperbarui setelah dikonfirmasi."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2426,7 +2420,8 @@
"prevTask": "Tugas sebelumnya",
"openTask": "Buka tugas terpilih",
"quickSelectNumber": "Pilih opsi berdasarkan nomor",
- "calendarView": "Beralih ke tampilan kalender"
+ "calendarView": "Beralih ke tampilan kalender",
+ "ganttView": "Beralih ke tampilan Gantt"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "Tinggi",
"urgent": "Mendesak"
},
- "boardSearchPlaceholder": "Cari tiket...",
"view": {
"board": "Papan",
"list": "Daftar",
@@ -2769,9 +2763,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Tugas"
@@ -2843,12 +2835,10 @@
"updateError": "Gagal memperbarui prioritas tugas"
},
"dueDate": {
- "updateSuccess": "Tenggat tugas berhasil diperbarui",
"updateError": "Gagal memperbarui tenggat tugas",
"clear": "Hapus tanggal"
},
"startDate": {
- "updateSuccess": "Tanggal mulai tugas berhasil diperbarui",
"updateError": "Gagal memperbarui tanggal mulai tugas",
"clear": "Hapus tanggal mulai"
},
@@ -2857,8 +2847,6 @@
"empty": "Label tidak ditemukan",
"create": "Buat \"{{name}}\"",
"chooseColor": "Pilih warna",
- "addSuccess": "Label ditambahkan",
- "removeSuccess": "Label dihapus",
"updateError": "Gagal memperbarui label",
"createSuccess": "Label dibuat dan ditambahkan",
"createError": "Gagal membuat label",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "Pindahkan Semua yang Direncanakan ke Perlu Dikerjakan",
"moveAll": "Pindahkan Semua",
"addTask": "Tambah tugas",
- "filter": "Filter",
- "addFilter": "Tambah filter...",
"sections": {
"planned": "Direncanakan",
"archived": "Diarsipkan"
},
"noTasksInSection": "Tidak ada tugas {{section}}",
"filters": {
- "priority": "Prioritas: {{name}}",
- "assignee": "Penanggung jawab: {{name}}",
- "due": "Tenggat: {{date}}",
- "label": "Label: {{name}}",
"dueThisWeek": "Tenggat minggu ini",
"dueNextWeek": "Tenggat minggu depan",
"noDueDate": "Tanpa tenggat"
}
},
"sort": {
- "label": "Urutkan",
- "by": "Urutkan Berdasarkan",
"direction": "Arah",
"ascending": "Naik",
"descending": "Turun",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "Filter Berdasarkan",
- "allStatuses": "Semua status",
- "allPriorities": "Semua prioritas",
- "allAssignees": "Semua penanggung jawab",
- "allDueDates": "Semua tenggat",
- "allLabels": "Semua label",
"selectedCount": "{{count}} dipilih",
"subjects": {
"status": "Status",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "adalah salah satu dari",
- "includeAnyOf": "menyertakan salah satu dari"
+ "includeAnyOf": "menyertakan salah satu dari",
+ "is": "adalah",
+ "isNot": "bukan",
+ "isNoneOf": "bukan salah satu dari",
+ "include": "menyertakan",
+ "exclude": "mengecualikan"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2944,13 +2922,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Linimasa Gantt",
- "searchPlaceholder": "Cari tiket terjadwal...",
"hideTasks": "Sembunyikan tugas",
"showTasks": "Tampilkan tugas",
"noTasks": "Tidak ada tugas terjadwal",
"noTasksSubtitle": "Tambahkan tanggal mulai, tenggat, atau keduanya ke tugas untuk menempatkannya di linimasa proyek.",
"noTasksFound": "Tugas tidak ditemukan",
- "noTasksMatch": "Tidak ada tugas terjadwal yang cocok dengan \"{{query}}\"",
"taskHeader": "Tugas",
"updateDatesError": "Gagal memperbarui tanggal tugas",
"resizeStart": "Ubah ukuran tanggal mulai",
@@ -2975,7 +2951,9 @@
"error": "Gagal menduplikasi tugas"
},
"archive": {
- "success": "{{count}} tugas diarsipkan"
+ "success": "{{count}} tugas diarsipkan",
+ "confirmTitle_other": "Arsipkan {{count}} tugas yang selesai?",
+ "confirmDescription": "Tugas akan keluar dari papan dan pindah ke bagian \"Diarsipkan\" di backlog."
},
"listView": {
"addTask": "Tambah tugas",
@@ -3000,17 +2978,13 @@
"dueDate": {
"label": "Tenggat",
"clear": "Hapus tanggal",
- "updateSuccess": "Tenggat tugas berhasil diperbarui",
"updateError": "Gagal memperbarui tenggat tugas",
- "clearSuccess": "Tenggat tugas dihapus",
"clearError": "Gagal menghapus tenggat"
},
"labels": {
- "label": "Label",
"empty": "Tidak ada label tersedia"
},
"update": {
- "success": "Tugas berhasil diperbarui",
"error": "Gagal memperbarui tugas"
},
"contextMenu": {
@@ -3032,7 +3006,8 @@
"moveToBoardSuccess": "{{count}} tugas dipindahkan ke papan",
"moveToBoardError": "Gagal memindahkan tugas ke papan",
"delete": "Hapus tugas",
- "deleteConfirm": "Hapus {{count}} tugas? Tindakan ini tidak dapat dibatalkan.",
+ "deleteConfirmTitle_other": "Hapus {{count}} tugas?",
+ "deleteConfirmDescription": "Ini akan menghapus tugas yang dipilih beserta semua datanya secara permanen. Anda tidak dapat membatalkan tindakan ini.",
"deleteSuccess": "{{count}} tugas dihapus",
"deleteError": "Gagal menghapus tugas",
"archive": "Arsipkan tugas",
@@ -3087,10 +3062,46 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} dari {{total}} item daftar periksa selesai",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Bidang",
+ "empty": "Kosong",
+ "required": "Wajib",
+ "enterKey": "Enter",
+ "toSave": "untuk menyimpan",
+ "today": "Hari ini",
+ "clear": "Hapus",
+ "setValue": "Atur {{field}}…",
+ "noMatches": "Tidak ada opsi yang cocok",
+ "missingRequired_other": "{{count}} kolom wajib masih kosong",
+ "saveError": "Gagal menyimpan {{field}}",
+ "moreFields_other": "{{count}} kolom lainnya"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Cari tugas",
+ "clearSearch": "Hapus pencarian",
+ "taskCount_other": "{{count}} tugas",
+ "shownCount_other": "{{shown}} dari {{count}} tugas"
+ },
+ "display": {
+ "title": "Tampilan",
+ "sortBy": "Urutkan berdasarkan",
+ "showOnCards": "Tampilkan di kartu",
+ "showOnRows": "Tampilkan di baris",
+ "checklistProgress": "Progres daftar periksa",
+ "projectBackground": "Latar belakang proyek",
+ "layout": "Tata letak"
+ },
+ "filterBar": {
+ "label": "Filter aktif",
+ "removeFilter": "Hapus filter {{name}}",
+ "noMatches": "Tidak ada tugas yang cocok dengan pencarian atau filter Anda."
+ },
+ "filterMenu": {
+ "addFilter": "Tambah filter…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Tidak ada hasil"
}
},
"invitations": {
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index 93475a861..6be219017 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -10,8 +10,7 @@
"markAllRead": "Segna tutti come letti",
"remove": "Rimuovi",
"reset": "Reimposta",
- "filter": "Filtra",
- "clearAllFilters": "Cancella tutti i filtri"
+ "filter": "Filtra"
},
"a11y": {
"toggleSidebar": "Attiva/disattiva barra laterale"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1526,12 +1519,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Casella di controllo",
@@ -1541,7 +1532,6 @@
"text": "Text",
"multiselect": "Menu a tendina, scelta multipla"
},
- "availableOptions": "Available options",
"clearDefault": "Rimuovi valore predefinito",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1878,7 +1868,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Grazie per l'abbonamento",
+ "description": "Pagamento ricevuto. Il piano qui sotto si aggiornerà appena sarà confermato."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2510,7 +2504,8 @@
"prevTask": "Attività precedente",
"openTask": "Apri attività selezionata",
"quickSelectNumber": "Seleziona opzione per numero",
- "calendarView": "Passa alla vista calendario"
+ "calendarView": "Passa alla vista calendario",
+ "ganttView": "Passa alla vista Gantt"
}
}
},
@@ -2728,7 +2723,6 @@
"high": "Alta",
"urgent": "Urgente"
},
- "boardSearchPlaceholder": "Cerca ticket...",
"view": {
"board": "Board",
"list": "Elenco",
@@ -2861,9 +2855,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Attività"
@@ -2935,12 +2927,10 @@
"updateError": "Aggiornamento priorità attività fallito"
},
"dueDate": {
- "updateSuccess": "Data scadenza attività aggiornata con successo",
"updateError": "Aggiornamento data scadenza attività fallito",
"clear": "Cancella data"
},
"startDate": {
- "updateSuccess": "Data inizio attività aggiornata con successo",
"updateError": "Aggiornamento data inizio attività fallito",
"clear": "Cancella data inizio"
},
@@ -2949,8 +2939,6 @@
"empty": "Nessuna etichetta trovata",
"create": "Crea \"{{name}}\"",
"chooseColor": "Scegli colore",
- "addSuccess": "Etichetta aggiunta",
- "removeSuccess": "Etichetta rimossa",
"updateError": "Aggiornamento etichetta fallito",
"createSuccess": "Etichetta creata e aggiunta",
"createError": "Creazione etichetta fallita",
@@ -2977,26 +2965,18 @@
"moveAllTooltip": "Sposta Tutte le Pianificate in Da Fare",
"moveAll": "Sposta Tutte",
"addTask": "Aggiungi attività",
- "filter": "Filtra",
- "addFilter": "Aggiungi filtro...",
"sections": {
"planned": "Pianificate",
"archived": "Archiviate"
},
"noTasksInSection": "Nessuna attività {{section}}",
"filters": {
- "priority": "Priorità: {{name}}",
- "assignee": "Assegnatario: {{name}}",
- "due": "Scadenza: {{date}}",
- "label": "Etichetta: {{name}}",
"dueThisWeek": "Scade questa settimana",
"dueNextWeek": "Scade la prossima settimana",
"noDueDate": "Nessuna scadenza"
}
},
"sort": {
- "label": "Ordina",
- "by": "Ordina Per",
"direction": "Direzione",
"ascending": "Crescente",
"descending": "Decrescente",
@@ -3010,12 +2990,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtra Per",
- "allStatuses": "Tutti gli stati",
- "allPriorities": "Tutte le priorità",
- "allAssignees": "Tutti gli assegnatari",
- "allDueDates": "Tutte le scadenze",
- "allLabels": "Tutte le etichette",
"selectedCount": "{{count}} selezionati",
"subjects": {
"status": "Stato",
@@ -3026,9 +3000,13 @@
},
"operators": {
"isAnyOf": "è uno di",
- "includeAnyOf": "include uno di"
+ "includeAnyOf": "include uno di",
+ "is": "è",
+ "isNot": "non è",
+ "isNoneOf": "non è nessuno di",
+ "include": "include",
+ "exclude": "esclude"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3036,13 +3014,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Cronologia Gantt",
- "searchPlaceholder": "Cerca ticket programmati...",
"hideTasks": "Nascondi attività",
"showTasks": "Mostra attività",
"noTasks": "Nessuna attività programmata",
"noTasksSubtitle": "Aggiungi una data di inizio, scadenza, o entrambe alle attività per posizionarle sulla cronologia del progetto.",
"noTasksFound": "Nessuna attività trovata",
- "noTasksMatch": "Nessuna attività programmata corrisponde a \"{{query}}\"",
"taskHeader": "Attività",
"updateDatesError": "Aggiornamento date attività fallito",
"resizeStart": "Ridimensiona data inizio",
@@ -3067,7 +3043,11 @@
"error": "Duplicazione attività fallita"
},
"archive": {
- "success": "{{count}} attività archiviate"
+ "success": "{{count}} attività archiviate",
+ "confirmTitle_one": "Archiviare {{count}} attività completata?",
+ "confirmTitle_many": "Archiviare {{count}} attività completate?",
+ "confirmTitle_other": "Archiviare {{count}} attività completate?",
+ "confirmDescription": "Lasceranno la board e passeranno alla sezione \"Archiviate\" del backlog."
},
"listView": {
"addTask": "Aggiungi attività",
@@ -3094,17 +3074,13 @@
"dueDate": {
"label": "Data scadenza",
"clear": "Cancella data",
- "updateSuccess": "Data scadenza attività aggiornata con successo",
"updateError": "Aggiornamento data scadenza attività fallito",
- "clearSuccess": "Data scadenza attività cancellata",
"clearError": "Cancellazione data scadenza fallita"
},
"labels": {
- "label": "Etichette",
"empty": "Nessuna etichetta disponibile"
},
"update": {
- "success": "Attività aggiornata con successo",
"error": "Aggiornamento attività fallito"
},
"contextMenu": {
@@ -3126,7 +3102,10 @@
"moveToBoardSuccess": "{{count}} attività spostate nella board",
"moveToBoardError": "Spostamento attività nella board fallito",
"delete": "Elimina attività",
- "deleteConfirm": "Eliminare {{count}} attività? Questa azione non può essere annullata.",
+ "deleteConfirmTitle_one": "Eliminare {{count}} attività?",
+ "deleteConfirmTitle_many": "Eliminare {{count}} attività?",
+ "deleteConfirmTitle_other": "Eliminare {{count}} attività?",
+ "deleteConfirmDescription": "Questo rimuoverà permanentemente le attività selezionate e tutti i loro dati. Non puoi annullare questa azione.",
"deleteSuccess": "{{count}} attività eliminate",
"deleteError": "Eliminazione attività fallita",
"archive": "Archivia attività",
@@ -3181,10 +3160,54 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} di {{total}} elementi della checklist completati",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Campi",
+ "empty": "Vuoto",
+ "required": "Obbligatorio",
+ "enterKey": "Invio",
+ "toSave": "per salvare",
+ "today": "Oggi",
+ "clear": "Cancella",
+ "setValue": "Imposta {{field}}…",
+ "noMatches": "Nessuna opzione corrispondente",
+ "missingRequired_one": "{{count}} campo obbligatorio è vuoto",
+ "missingRequired_many": "{{count}} campi obbligatori sono vuoti",
+ "missingRequired_other": "{{count}} campi obbligatori sono vuoti",
+ "saveError": "Impossibile salvare {{field}}",
+ "moreFields_one": "Altro {{count}} campo",
+ "moreFields_many": "Altri {{count}} campi",
+ "moreFields_other": "Altri {{count}} campi"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Cerca attività",
+ "clearSearch": "Cancella ricerca",
+ "taskCount_one": "{{count}} attività",
+ "taskCount_many": "{{count}} attività",
+ "taskCount_other": "{{count}} attività",
+ "shownCount_one": "{{shown}} di {{count}} attività",
+ "shownCount_many": "{{shown}} di {{count}} attività",
+ "shownCount_other": "{{shown}} di {{count}} attività"
+ },
+ "display": {
+ "title": "Visualizzazione",
+ "sortBy": "Ordina per",
+ "showOnCards": "Mostra sulle schede",
+ "showOnRows": "Mostra nelle righe",
+ "checklistProgress": "Avanzamento checklist",
+ "projectBackground": "Sfondo del progetto",
+ "layout": "Layout"
+ },
+ "filterBar": {
+ "label": "Filtri attivi",
+ "removeFilter": "Rimuovi filtro {{name}}",
+ "noMatches": "Nessuna attività corrisponde alla tua ricerca o ai tuoi filtri."
+ },
+ "filterMenu": {
+ "addFilter": "Aggiungi filtro…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Nessun risultato"
}
},
"invitations": {
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index b3938441e..6d78cb2cb 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -10,8 +10,7 @@
"markAllRead": "すべて既読にする",
"remove": "削除",
"reset": "リセット",
- "filter": "フィルター",
- "clearAllFilters": "すべてのフィルターをクリア"
+ "filter": "フィルター"
},
"a11y": {
"toggleSidebar": "サイドバーを切り替え"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1508,12 +1501,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "チェックボックス",
@@ -1523,7 +1514,6 @@
"text": "Text",
"multiselect": "ドロップダウン(複数選択)"
},
- "availableOptions": "Available options",
"clearDefault": "デフォルトをクリア",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1852,7 +1842,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "ご登録ありがとうございます",
+ "description": "お支払いを受け付けました。確認され次第、下のプランが更新されます。"
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2426,7 +2420,8 @@
"nextTask": "次のタスク",
"prevTask": "前のタスク",
"openTask": "選択したタスクを開く",
- "quickSelectNumber": "番号で項目を選択"
+ "quickSelectNumber": "番号で項目を選択",
+ "ganttView": "ガントビューに切り替え"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "高",
"urgent": "緊急"
},
- "boardSearchPlaceholder": "チケットを検索...",
"view": {
"board": "ボード",
"list": "リスト",
@@ -2769,9 +2763,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "タスク"
@@ -2843,12 +2835,10 @@
"updateError": "優先度の更新に失敗しました"
},
"dueDate": {
- "updateSuccess": "期限を更新しました",
"updateError": "期限の更新に失敗しました",
"clear": "日付をクリア"
},
"startDate": {
- "updateSuccess": "開始日を更新しました",
"updateError": "開始日の更新に失敗しました",
"clear": "開始日をクリア"
},
@@ -2857,8 +2847,6 @@
"empty": "ラベルが見つかりません",
"create": "「{{name}}」を作成",
"chooseColor": "色を選択",
- "addSuccess": "ラベルを追加しました",
- "removeSuccess": "ラベルを削除しました",
"updateError": "ラベルの更新に失敗しました",
"createSuccess": "ラベルを作成して追加しました",
"createError": "ラベルの作成に失敗しました",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "計画中のタスクをすべて To Do に移動",
"moveAll": "すべて移動",
"addTask": "タスクを追加",
- "filter": "フィルター",
- "addFilter": "フィルターを追加...",
"sections": {
"planned": "計画中",
"archived": "アーカイブ済み"
},
"noTasksInSection": "{{section}} のタスクはありません",
"filters": {
- "priority": "優先度: {{name}}",
- "assignee": "担当者: {{name}}",
- "due": "期限: {{date}}",
- "label": "ラベル: {{name}}",
"dueThisWeek": "今週が期限",
"dueNextWeek": "来週が期限",
"noDueDate": "期限なし"
}
},
"sort": {
- "label": "並び替え",
- "by": "並び替え基準",
"direction": "順序",
"ascending": "昇順",
"descending": "降順",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "フィルター条件",
- "allStatuses": "すべてのステータス",
- "allPriorities": "すべての優先度",
- "allAssignees": "すべての担当者",
- "allDueDates": "すべての期限",
- "allLabels": "すべてのラベル",
"selectedCount": "{{count}} 件選択中",
"subjects": {
"status": "ステータス",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "次のいずれか",
- "includeAnyOf": "次のいずれかを含む"
+ "includeAnyOf": "次のいずれかを含む",
+ "is": "が次と一致",
+ "isNot": "が次と一致しない",
+ "isNoneOf": "次のいずれでもない",
+ "include": "を含む",
+ "exclude": "を含まない"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2958,13 +2936,11 @@
"gantt": {
"pageTitle": "{{name}} – ガントチャート",
"title": "ガントタイムライン",
- "searchPlaceholder": "スケジュール済みのチケットを検索...",
"hideTasks": "タスクを非表示",
"showTasks": "タスクを表示",
"noTasks": "スケジュール済みのタスクはありません",
"noTasksSubtitle": "タスクに開始日や期限を設定して、プロジェクトのタイムラインに配置します。",
"noTasksFound": "タスクが見つかりません",
- "noTasksMatch": "「{{query}}」に一致するスケジュール済みタスクはありません",
"taskHeader": "タスク",
"updateDatesError": "タスクの日程の更新に失敗しました",
"resizeStart": "開始日を変更",
@@ -2984,7 +2960,9 @@
"error": "タスクの削除に失敗しました"
},
"archive": {
- "success": "{{count}} 件のタスクをアーカイブしました"
+ "success": "{{count}} 件のタスクをアーカイブしました",
+ "confirmTitle_other": "完了したタスク {{count}} 件をアーカイブしますか?",
+ "confirmDescription": "ボードから外れ、バックログの「アーカイブ済み」セクションに移動します。"
},
"listView": {
"addTask": "タスクを追加",
@@ -3009,17 +2987,13 @@
"dueDate": {
"label": "期限",
"clear": "日付をクリア",
- "updateSuccess": "期限を更新しました",
"updateError": "期限の更新に失敗しました",
- "clearSuccess": "期限をクリアしました",
"clearError": "期限のクリアに失敗しました"
},
"labels": {
- "label": "ラベル",
"empty": "利用可能なラベルがありません"
},
"update": {
- "success": "タスクを更新しました",
"error": "タスクの更新に失敗しました"
},
"contextMenu": {
@@ -3041,7 +3015,8 @@
"moveToBoardSuccess": "{{count}} 件のタスクをボードに移動しました",
"moveToBoardError": "ボードへの移動に失敗しました",
"delete": "タスクを削除",
- "deleteConfirm": "{{count}} 件のタスクを削除しますか?この操作は取り消せません。",
+ "deleteConfirmTitle_other": "{{count}} 件のタスクを削除しますか?",
+ "deleteConfirmDescription": "選択したタスクとそのすべてのデータが完全に削除されます。この操作は取り消せません。",
"deleteSuccess": "{{count}} 件のタスクを削除しました",
"deleteError": "タスクの削除に失敗しました",
"archive": "タスクをアーカイブ",
@@ -3087,10 +3062,46 @@
},
"checklistProgress": "チェックリスト {{total}} 項目中 {{completed}} 項目完了",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "フィールド",
+ "empty": "未設定",
+ "required": "必須",
+ "enterKey": "Enter",
+ "toSave": "で保存",
+ "today": "今日",
+ "clear": "クリア",
+ "setValue": "{{field}}を設定…",
+ "noMatches": "一致するオプションがありません",
+ "missingRequired_other": "必須フィールドが {{count}} 件未入力です",
+ "saveError": "{{field}}を保存できませんでした",
+ "moreFields_other": "ほか {{count}} 件のフィールド"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "タスクを検索",
+ "clearSearch": "検索をクリア",
+ "taskCount_other": "{{count}} 件のタスク",
+ "shownCount_other": "{{count}} 件中 {{shown}} 件"
+ },
+ "display": {
+ "title": "表示",
+ "sortBy": "並び替え",
+ "showOnCards": "カードに表示",
+ "showOnRows": "行に表示",
+ "checklistProgress": "チェックリストの進捗",
+ "projectBackground": "プロジェクトの背景",
+ "layout": "レイアウト"
+ },
+ "filterBar": {
+ "label": "適用中のフィルター",
+ "removeFilter": "{{name}} フィルターを削除",
+ "noMatches": "検索またはフィルターに一致するタスクはありません。"
+ },
+ "filterMenu": {
+ "addFilter": "フィルターを追加…",
+ "searchSubject": "{{name}}…",
+ "noResults": "結果がありません"
}
},
"invitations": {
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index fd7301cb2..2fa9ca693 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -10,8 +10,7 @@
"markAllRead": "모두 읽음으로 표시",
"remove": "제거",
"reset": "재설정",
- "filter": "필터",
- "clearAllFilters": "모든 필터 지우기"
+ "filter": "필터"
},
"a11y": {
"toggleSidebar": "사이드바 토글"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1508,12 +1501,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "체크박스",
@@ -1523,7 +1514,6 @@
"text": "Text",
"multiselect": "드롭다운(여러 개 선택)"
},
- "availableOptions": "Available options",
"clearDefault": "기본값 지우기",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1852,7 +1842,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "구독해 주셔서 감사합니다",
+ "description": "결제가 접수되었습니다. 확인되는 대로 아래 플랜이 업데이트됩니다."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2426,7 +2420,8 @@
"nextTask": "다음 작업",
"prevTask": "이전 작업",
"openTask": "선택한 작업 열기",
- "quickSelectNumber": "번호로 옵션 선택"
+ "quickSelectNumber": "번호로 옵션 선택",
+ "ganttView": "간트 보기로 전환"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "높음",
"urgent": "긴급"
},
- "boardSearchPlaceholder": "티켓 검색...",
"view": {
"board": "보드",
"list": "목록",
@@ -2769,9 +2763,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "작업"
@@ -2843,12 +2835,10 @@
"updateError": "작업 우선순위 업데이트에 실패했습니다"
},
"dueDate": {
- "updateSuccess": "작업 마감일이 업데이트되었습니다",
"updateError": "작업 마감일 업데이트에 실패했습니다",
"clear": "날짜 지우기"
},
"startDate": {
- "updateSuccess": "작업 시작일이 업데이트되었습니다",
"updateError": "작업 시작일 업데이트에 실패했습니다",
"clear": "시작일 지우기"
},
@@ -2857,8 +2847,6 @@
"empty": "라벨을 찾을 수 없음",
"create": "\"{{name}}\" 만들기",
"chooseColor": "색상 선택",
- "addSuccess": "라벨이 추가되었습니다",
- "removeSuccess": "라벨이 제거되었습니다",
"updateError": "라벨 업데이트에 실패했습니다",
"createSuccess": "라벨이 생성되어 추가되었습니다",
"createError": "라벨 생성에 실패했습니다",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "계획된 작업 모두 할 일로 이동",
"moveAll": "모두 이동",
"addTask": "작업 추가",
- "filter": "필터",
- "addFilter": "필터 추가...",
"sections": {
"planned": "계획됨",
"archived": "보관됨"
},
"noTasksInSection": "{{section}} 작업이 없습니다",
"filters": {
- "priority": "우선순위: {{name}}",
- "assignee": "담당자: {{name}}",
- "due": "마감일: {{date}}",
- "label": "라벨: {{name}}",
"dueThisWeek": "이번 주 마감",
"dueNextWeek": "다음 주 마감",
"noDueDate": "마감일 없음"
}
},
"sort": {
- "label": "정렬",
- "by": "정렬 기준",
"direction": "방향",
"ascending": "오름차순",
"descending": "내림차순",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "필터 기준",
- "allStatuses": "모든 상태",
- "allPriorities": "모든 우선순위",
- "allAssignees": "모든 담당자",
- "allDueDates": "모든 마감일",
- "allLabels": "모든 라벨",
"selectedCount": "{{count}}개 선택됨",
"subjects": {
"status": "상태",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "다음 중 하나",
- "includeAnyOf": "다음 중 하나 포함"
+ "includeAnyOf": "다음 중 하나 포함",
+ "is": "일치",
+ "isNot": "일치하지 않음",
+ "isNoneOf": "다음 중 해당 없음",
+ "include": "포함",
+ "exclude": "제외"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2958,13 +2936,11 @@
"gantt": {
"pageTitle": "{{name}} – 간트",
"title": "간트 타임라인",
- "searchPlaceholder": "예약된 티켓 검색...",
"hideTasks": "작업 숨기기",
"showTasks": "작업 표시",
"noTasks": "예약된 작업 없음",
"noTasksSubtitle": "프로젝트 타임라인에 작업을 배치하려면 시작일, 마감일 또는 둘 다 추가하세요.",
"noTasksFound": "작업을 찾을 수 없음",
- "noTasksMatch": "\"{{query}}\"와(과) 일치하는 예약된 작업이 없습니다",
"taskHeader": "작업",
"updateDatesError": "작업 날짜 업데이트에 실패했습니다",
"resizeStart": "시작일 크기 조정",
@@ -2989,7 +2965,9 @@
"error": "작업 복제에 실패했습니다"
},
"archive": {
- "success": "작업 {{count}}개를 보관했습니다"
+ "success": "작업 {{count}}개를 보관했습니다",
+ "confirmTitle_other": "완료된 작업 {{count}}개를 보관하시겠습니까?",
+ "confirmDescription": "보드에서 빠지고 백로그의 '보관됨' 섹션으로 이동합니다."
},
"listView": {
"addTask": "작업 추가",
@@ -3014,17 +2992,13 @@
"dueDate": {
"label": "마감일",
"clear": "날짜 지우기",
- "updateSuccess": "작업 마감일이 업데이트되었습니다",
"updateError": "작업 마감일 업데이트에 실패했습니다",
- "clearSuccess": "작업 마감일이 지워졌습니다",
"clearError": "마감일 지우기에 실패했습니다"
},
"labels": {
- "label": "라벨",
"empty": "사용 가능한 라벨이 없습니다"
},
"update": {
- "success": "작업이 업데이트되었습니다",
"error": "작업 업데이트에 실패했습니다"
},
"contextMenu": {
@@ -3046,7 +3020,8 @@
"moveToBoardSuccess": "작업 {{count}}개를 보드로 이동했습니다",
"moveToBoardError": "작업을 보드로 이동하지 못했습니다",
"delete": "작업 삭제",
- "deleteConfirm": "작업 {{count}}개를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
+ "deleteConfirmTitle_other": "작업 {{count}}개를 삭제하시겠습니까?",
+ "deleteConfirmDescription": "선택한 작업과 모든 데이터가 영구적으로 제거됩니다. 이 작업은 취소할 수 없습니다.",
"deleteSuccess": "작업 {{count}}개가 삭제되었습니다",
"deleteError": "작업 삭제에 실패했습니다",
"archive": "작업 보관",
@@ -3087,10 +3062,46 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "체크리스트 항목 {{total}}개 중 {{completed}}개 완료",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "필드",
+ "empty": "비어 있음",
+ "required": "필수",
+ "enterKey": "Enter",
+ "toSave": "키로 저장",
+ "today": "오늘",
+ "clear": "지우기",
+ "setValue": "{{field}} 설정…",
+ "noMatches": "일치하는 옵션이 없습니다",
+ "missingRequired_other": "필수 필드 {{count}}개가 비어 있습니다",
+ "saveError": "{{field}}을(를) 저장하지 못했습니다",
+ "moreFields_other": "필드 {{count}}개 더 보기"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "작업 검색",
+ "clearSearch": "검색 지우기",
+ "taskCount_other": "작업 {{count}}개",
+ "shownCount_other": "{{count}}개 중 {{shown}}개 작업"
+ },
+ "display": {
+ "title": "표시",
+ "sortBy": "정렬 기준",
+ "showOnCards": "카드에 표시",
+ "showOnRows": "행에 표시",
+ "checklistProgress": "체크리스트 진행률",
+ "projectBackground": "프로젝트 배경",
+ "layout": "레이아웃"
+ },
+ "filterBar": {
+ "label": "적용된 필터",
+ "removeFilter": "{{name}} 필터 제거",
+ "noMatches": "검색 또는 필터와 일치하는 작업이 없습니다."
+ },
+ "filterMenu": {
+ "addFilter": "필터 추가…",
+ "searchSubject": "{{name}}…",
+ "noResults": "결과 없음"
}
},
"invitations": {
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index 11c9d8910..89febb4c0 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -10,8 +10,7 @@
"markAllRead": "Означи ги сите како прочитани",
"remove": "Отстрани",
"reset": "Ресетирај",
- "filter": "Филтрирај",
- "clearAllFilters": "Исчисти ги сите филтри"
+ "filter": "Филтрирај"
},
"a11y": {
"toggleSidebar": "Вклучи/исклучи странична лента"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Поле за штиклирање",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "Паѓачко мени, повеќе избори"
},
- "availableOptions": "Available options",
"clearDefault": "Исчисти ја стандардната вредност",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Ви благодариме за претплатата",
+ "description": "Плаќањето е примено. Планот подолу ќе се ажурира штом биде потврдено."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"prevTask": "Претходна задача",
"openTask": "Отвори избрана задача",
"quickSelectNumber": "Избери опција по број",
- "calendarView": "Префрли на календарски приказ"
+ "calendarView": "Префрли на календарски приказ",
+ "ganttView": "Префрли на Гантов приказ"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Висок",
"urgent": "Итен"
},
- "boardSearchPlaceholder": "Пребарај тикети...",
"view": {
"board": "Табла",
"list": "Листа",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Задача"
@@ -2889,12 +2881,10 @@
"updateError": "Неуспешно ажурирање на приоритет на задача"
},
"dueDate": {
- "updateSuccess": "Краениот рок на задачата е успешно ажуриран",
"updateError": "Неуспешно ажурирање на краен рок на задача",
"clear": "Исчисти датум"
},
"startDate": {
- "updateSuccess": "Почетниот датум на задачата е успешно ажуриран",
"updateError": "Неуспешно ажурирање на почетен датум на задача",
"clear": "Исчисти почетен датум"
},
@@ -2903,8 +2893,6 @@
"empty": "Не се пронајдени етикети",
"create": "Креирај \"{{name}}\"",
"chooseColor": "Избери боја",
- "addSuccess": "Етикетата е додадена",
- "removeSuccess": "Етикетата е отстранета",
"updateError": "Неуспешно ажурирање на етикета",
"createSuccess": "Етикетата е креирана и додадена",
"createError": "Неуспешно креирање на етикета",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "Премести ги сите планирани во За правење",
"moveAll": "Премести ги сите",
"addTask": "Додади задача",
- "filter": "Филтрирај",
- "addFilter": "Додади филтер...",
"sections": {
"planned": "Планирано",
"archived": "Архивирано"
},
"noTasksInSection": "Нема {{section}} задачи",
"filters": {
- "priority": "Приоритет: {{name}}",
- "assignee": "Доделен: {{name}}",
- "due": "Рок: {{date}}",
- "label": "Етикета: {{name}}",
"dueThisWeek": "Рок оваа недела",
"dueNextWeek": "Рок следна недела",
"noDueDate": "Без краен рок"
}
},
"sort": {
- "label": "Подреди",
- "by": "Подреди по",
"direction": "Насока",
"ascending": "Растечки",
"descending": "Опаѓачки",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "Филтрирај по",
- "allStatuses": "Сите статуси",
- "allPriorities": "Сите приоритети",
- "allAssignees": "Сите доделени",
- "allDueDates": "Сите крајни рокови",
- "allLabels": "Сите етикети",
"selectedCount": "{{count}} избрани",
"subjects": {
"status": "Статус",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "е било кој од",
- "includeAnyOf": "вклучува било кој од"
+ "includeAnyOf": "вклучува било кој од",
+ "is": "е",
+ "isNot": "не е",
+ "isNoneOf": "не е ниту еден од",
+ "include": "вклучува",
+ "exclude": "исклучува"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2990,13 +2968,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Gantt временска линија",
- "searchPlaceholder": "Пребарај закажани тикети...",
"hideTasks": "Сокриј задачи",
"showTasks": "Прикажи задачи",
"noTasks": "Нема закажани задачи",
"noTasksSubtitle": "Додади почетен датум, краен рок, или двете на задачите за да ги поставиш на временската линија на проектот.",
"noTasksFound": "Не се пронајдени задачи",
- "noTasksMatch": "Нема закажани задачи што одговараат на \"{{query}}\"",
"taskHeader": "Задача",
"updateDatesError": "Неуспешно ажурирање на датуми на задача",
"resizeStart": "Промени почетен датум",
@@ -3021,7 +2997,10 @@
"error": "Неуспешно дуплирање на задача"
},
"archive": {
- "success": "Архивирани {{count}} задачи"
+ "success": "Архивирани {{count}} задачи",
+ "confirmTitle_one": "Архивирај {{count}} завршена задача?",
+ "confirmTitle_other": "Архивирај {{count}} завршени задачи?",
+ "confirmDescription": "Ќе ја напуштат таблата и ќе преминат во делот „Архивирано“ во заостанатите."
},
"listView": {
"addTask": "Додади задача",
@@ -3047,17 +3026,13 @@
"dueDate": {
"label": "Краен рок",
"clear": "Исчисти датум",
- "updateSuccess": "Краениот рок на задачата е успешно ажуриран",
"updateError": "Неуспешно ажурирање на краен рок на задача",
- "clearSuccess": "Краениот рок на задачата е исчистен",
"clearError": "Неуспешно чистење на краен рок"
},
"labels": {
- "label": "Етикети",
"empty": "Нема достапни етикети"
},
"update": {
- "success": "Задачата е успешно ажурирана",
"error": "Неуспешно ажурирање на задача"
},
"contextMenu": {
@@ -3079,7 +3054,9 @@
"moveToBoardSuccess": "{{count}} задачи се преместени на табла",
"moveToBoardError": "Неуспешно преместување на задачи на табла",
"delete": "Избриши задачи",
- "deleteConfirm": "Избриши {{count}} задачи? Оваа акција не може да се врати.",
+ "deleteConfirmTitle_one": "Избриши {{count}} задача?",
+ "deleteConfirmTitle_other": "Избриши {{count}} задачи?",
+ "deleteConfirmDescription": "Ова трајно ќе ги отстрани избраните задачи и сите нивни податоци. Не можеш да ја вратиш оваа акција.",
"deleteSuccess": "{{count}} задачи се избришани",
"deleteError": "Неуспешно бришење на задачи",
"archive": "Архивирај задачи",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "Завршени се {{completed}} од {{total}} ставки од списокот",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Полиња",
+ "empty": "Празно",
+ "required": "Задолжително",
+ "enterKey": "Enter",
+ "toSave": "за зачувување",
+ "today": "Денес",
+ "clear": "Исчисти",
+ "setValue": "Постави {{field}}…",
+ "noMatches": "Нема соодветни опции",
+ "missingRequired_one": "{{count}} задолжително поле е празно",
+ "missingRequired_other": "{{count}} задолжителни полиња се празни",
+ "saveError": "{{field}} не може да се зачува",
+ "moreFields_one": "Уште {{count}} поле",
+ "moreFields_other": "Уште {{count}} полиња"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Пребарај задачи",
+ "clearSearch": "Исчисти пребарување",
+ "taskCount_one": "{{count}} задача",
+ "taskCount_other": "{{count}} задачи",
+ "shownCount_one": "{{shown}} од {{count}} задача",
+ "shownCount_other": "{{shown}} од {{count}} задачи"
+ },
+ "display": {
+ "title": "Приказ",
+ "sortBy": "Подреди по",
+ "showOnCards": "Прикажи на картичките",
+ "showOnRows": "Прикажи во редовите",
+ "checklistProgress": "Напредок на списокот",
+ "projectBackground": "Позадина на проектот",
+ "layout": "Распоред"
+ },
+ "filterBar": {
+ "label": "Активни филтри",
+ "removeFilter": "Отстрани го филтерот {{name}}",
+ "noMatches": "Ниту една задача не одговара на пребарувањето или филтрите."
+ },
+ "filterMenu": {
+ "addFilter": "Додај филтер…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Нема резултати"
}
},
"invitations": {
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index 9731289c2..7f188eaca 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -10,8 +10,7 @@
"markAllRead": "Alles als gelezen markeren",
"remove": "Verwijderen",
"reset": "Herstellen",
- "filter": "Filteren",
- "clearAllFilters": "Alle filters wissen"
+ "filter": "Filteren"
},
"a11y": {
"toggleSidebar": "Zijbalk in-/uitschakelen"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Selectievakje",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "Dropdown, meerdere keuzes"
},
- "availableOptions": "Available options",
"clearDefault": "Standaardwaarde wissen",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Bedankt voor je abonnement",
+ "description": "Betaling ontvangen. Het abonnement hieronder wordt bijgewerkt zodra die is bevestigd."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"prevTask": "Vorige taak",
"openTask": "Geselecteerde taak openen",
"quickSelectNumber": "Selecteer optie via nummer",
- "calendarView": "Naar kalenderweergave schakelen"
+ "calendarView": "Naar kalenderweergave schakelen",
+ "ganttView": "Naar Gantt-weergave schakelen"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Hoog",
"urgent": "Urgent"
},
- "boardSearchPlaceholder": "Tickets zoeken...",
"view": {
"board": "Bord",
"list": "Lijst",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Taak"
@@ -2878,12 +2870,10 @@
"updateError": "Bijwerken taakprioriteit mislukt"
},
"dueDate": {
- "updateSuccess": "Taak-einddatum succesvol bijgewerkt",
"updateError": "Bijwerken einddatum mislukt",
"clear": "Datum wissen"
},
"startDate": {
- "updateSuccess": "Taak-startdatum succesvol bijgewerkt",
"updateError": "Bijwerken startdatum mislukt",
"clear": "Startdatum wissen"
},
@@ -2892,8 +2882,6 @@
"empty": "Geen labels gevonden",
"create": "Maak \"{{name}}\"",
"chooseColor": "Kleur kiezen",
- "addSuccess": "Label toegevoegd",
- "removeSuccess": "Label verwijderd",
"updateError": "Bijwerken label mislukt",
"createSuccess": "Label aangemaakt en toegevoegd",
"createError": "Aanmaken label mislukt",
@@ -2920,26 +2908,18 @@
"moveAllTooltip": "Alles gepland naar Te Doen verplaatsen",
"moveAll": "Alles verplaatsen",
"addTask": "Taak toevoegen",
- "filter": "Filteren",
- "addFilter": "Filter toevoegen...",
"sections": {
"planned": "Gepland",
"archived": "Gearchiveerd"
},
"noTasksInSection": "Geen {{section}} taken",
"filters": {
- "priority": "Prioriteit: {{name}}",
- "assignee": "Toegewezen aan: {{name}}",
- "due": "Einddatum: {{date}}",
- "label": "Label: {{name}}",
"dueThisWeek": "Deze week vervallen",
"dueNextWeek": "Volgende week vervallen",
"noDueDate": "Geen einddatum"
}
},
"sort": {
- "label": "Sorteren",
- "by": "Sorteren op",
"direction": "Richting",
"ascending": "Oplopend",
"descending": "Aflopend",
@@ -2953,12 +2933,6 @@
}
},
"boardFilters": {
- "filterBy": "Filteren op",
- "allStatuses": "Alle statussen",
- "allPriorities": "Alle prioriteiten",
- "allAssignees": "Alle personen",
- "allDueDates": "Alle einddatums",
- "allLabels": "Alle labels",
"selectedCount": "{{count}} geselecteerd",
"subjects": {
"status": "Status",
@@ -2969,9 +2943,13 @@
},
"operators": {
"isAnyOf": "is een van",
- "includeAnyOf": "bevat een van"
+ "includeAnyOf": "bevat een van",
+ "is": "is",
+ "isNot": "is niet",
+ "isNoneOf": "is geen van",
+ "include": "bevat",
+ "exclude": "bevat niet"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2979,13 +2957,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Gantt-tijdlijn",
- "searchPlaceholder": "Zoek geplande tickets...",
"hideTasks": "Taken verbergen",
"showTasks": "Taken tonen",
"noTasks": "Geen geplande taken",
"noTasksSubtitle": "Voeg een startdatum en/of einddatum toe aan taken om ze op de tijdlijn te plaatsen.",
"noTasksFound": "Geen taken gevonden",
- "noTasksMatch": "Geen geplande taken die overeenkomen met \"{{query}}\"",
"taskHeader": "Taak",
"updateDatesError": "Bijwerken taakdatums mislukt",
"resizeStart": "Startdatum wijzigen",
@@ -3010,7 +2986,10 @@
"error": "Dupliceren taak mislukt"
},
"archive": {
- "success": "{{count}} taken gearchiveerd"
+ "success": "{{count}} taken gearchiveerd",
+ "confirmTitle_one": "{{count}} voltooide taak archiveren?",
+ "confirmTitle_other": "{{count}} voltooide taken archiveren?",
+ "confirmDescription": "Ze verdwijnen van het bord en gaan naar de sectie 'Gearchiveerd' van de backlog."
},
"listView": {
"addTask": "Taak toevoegen",
@@ -3036,17 +3015,13 @@
"dueDate": {
"label": "Einddatum",
"clear": "Datum wissen",
- "updateSuccess": "Einddatum taak succesvol bijgewerkt",
"updateError": "Bijwerken einddatum mislukt",
- "clearSuccess": "Einddatum taak verwijderd",
"clearError": "Verwijderen einddatum mislukt"
},
"labels": {
- "label": "Labels",
"empty": "Geen labels beschikbaar"
},
"update": {
- "success": "Taak succesvol bijgewerkt",
"error": "Bijwerken taak mislukt"
},
"contextMenu": {
@@ -3068,7 +3043,9 @@
"moveToBoardSuccess": "{{count}} taken naar bord verplaatst",
"moveToBoardError": "Verplaatsen naar bord mislukt",
"delete": "Taken verwijderen",
- "deleteConfirm": "Verwijder {{count}} taken? Dit kan niet ongedaan worden gemaakt.",
+ "deleteConfirmTitle_one": "{{count}} taak verwijderen?",
+ "deleteConfirmTitle_other": "{{count}} taken verwijderen?",
+ "deleteConfirmDescription": "Dit verwijdert de geselecteerde taken en al hun data permanent. Dit kan niet ongedaan worden gemaakt.",
"deleteSuccess": "{{count}} taken verwijderd",
"deleteError": "Verwijderen taken mislukt",
"archive": "Taken archiveren",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} van {{total}} checklistitems voltooid",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Velden",
+ "empty": "Leeg",
+ "required": "Verplicht",
+ "enterKey": "Enter",
+ "toSave": "om op te slaan",
+ "today": "Vandaag",
+ "clear": "Wissen",
+ "setValue": "{{field}} instellen…",
+ "noMatches": "Geen overeenkomende opties",
+ "missingRequired_one": "{{count}} verplicht veld is leeg",
+ "missingRequired_other": "{{count}} verplichte velden zijn leeg",
+ "saveError": "{{field}} kon niet worden opgeslagen",
+ "moreFields_one": "Nog {{count}} veld",
+ "moreFields_other": "Nog {{count}} velden"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Taken zoeken",
+ "clearSearch": "Zoekopdracht wissen",
+ "taskCount_one": "{{count}} taak",
+ "taskCount_other": "{{count}} taken",
+ "shownCount_one": "{{shown}} van {{count}} taak",
+ "shownCount_other": "{{shown}} van {{count}} taken"
+ },
+ "display": {
+ "title": "Weergave",
+ "sortBy": "Sorteren op",
+ "showOnCards": "Tonen op kaarten",
+ "showOnRows": "Tonen in rijen",
+ "checklistProgress": "Voortgang checklist",
+ "projectBackground": "Projectachtergrond",
+ "layout": "Indeling"
+ },
+ "filterBar": {
+ "label": "Actieve filters",
+ "removeFilter": "Filter {{name}} verwijderen",
+ "noMatches": "Geen taken komen overeen met je zoekopdracht of filters."
+ },
+ "filterMenu": {
+ "addFilter": "Filter toevoegen…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Geen resultaten"
}
},
"invitations": {
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index caeb8eb9a..3bb6976b9 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -10,8 +10,7 @@
"markAllRead": "Oznacz wszystko jako przeczytane",
"remove": "Usuń",
"reset": "Resetuj",
- "filter": "Filtruj",
- "clearAllFilters": "Wyczyść wszystkie filtry"
+ "filter": "Filtruj"
},
"a11y": {
"toggleSidebar": "Przełącz pasek boczny"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -681,7 +674,8 @@
"nextTask": "Następne zadanie",
"prevTask": "Poprzednie zadanie",
"openTask": "Otwórz zaznaczone zadanie",
- "quickSelectNumber": "Wybierz opcję numerem"
+ "quickSelectNumber": "Wybierz opcję numerem",
+ "ganttView": "Przełącz na widok Gantta"
}
}
},
@@ -2132,12 +2126,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Pole wyboru",
@@ -2147,7 +2139,6 @@
"text": "Text",
"multiselect": "Lista rozwijana, wiele opcji"
},
- "availableOptions": "Available options",
"clearDefault": "Wyczyść wartość domyślną",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -2488,7 +2479,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Dziękujemy za subskrypcję",
+ "description": "Płatność otrzymana. Plan poniżej zaktualizuje się po jej potwierdzeniu."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -3046,24 +3041,23 @@
"duplicate": "Duplicate"
},
"archive": {
- "success": "Zarchiwizowano zadań: {{count}}"
+ "success": "Zarchiwizowano zadań: {{count}}",
+ "confirmTitle_one": "Zarchiwizować {{count}} ukończone zadanie?",
+ "confirmTitle_few": "Zarchiwizować {{count}} ukończone zadania?",
+ "confirmTitle_many": "Zarchiwizować {{count}} ukończonych zadań?",
+ "confirmTitle_other": "Zarchiwizować {{count}} ukończonego zadania?",
+ "confirmDescription": "Znikną z tablicy i trafią do sekcji „Zarchiwizowane” w backlogu."
},
"assignee": {
"label": "Osoba przypisana",
"unassigned": "Nieprzypisane"
},
"backlog": {
- "addFilter": "Dodaj filtr...",
"addTask": "Dodaj zadanie",
- "filter": "Filtruj",
"filters": {
- "assignee": "Osoba przypisana: {{name}}",
- "due": "Termin: {{date}}",
"dueNextWeek": "Termin w przyszłym tygodniu",
"dueThisWeek": "Termin w tym tygodniu",
- "label": "Etykieta: {{name}}",
- "noDueDate": "Brak terminu",
- "priority": "Priorytet: {{name}}"
+ "noDueDate": "Brak terminu"
},
"moveAll": "Przenieś wszystko",
"moveAllConfirm": "Przenieść wszystkie zaplanowane zadania ({{count}}) do „Do zrobienia”?",
@@ -3079,15 +3073,14 @@
}
},
"boardFilters": {
- "allAssignees": "Wszystkie przypisane osoby",
- "allDueDates": "Wszystkie terminy",
- "allLabels": "Wszystkie etykiety",
- "allPriorities": "Wszystkie priorytety",
- "allStatuses": "Wszystkie statusy",
- "filterBy": "Filtruj według",
"operators": {
"includeAnyOf": "zawiera dowolny z",
- "isAnyOf": "jest jednym z"
+ "isAnyOf": "jest jednym z",
+ "is": "jest",
+ "isNot": "nie jest",
+ "isNoneOf": "nie jest żadnym z",
+ "include": "zawiera",
+ "exclude": "nie zawiera"
},
"selectedCount": "Wybrano: {{count}}",
"subjects": {
@@ -3097,12 +3090,10 @@
"priority": "Priorytet",
"status": "Status"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
},
- "boardSearchPlaceholder": "Szukaj zadań...",
"bulk": {
"actions": "Akcje",
"addLabel": "Dodaj etykietę",
@@ -3116,7 +3107,11 @@
"assignTo": "Przypisz do",
"changeStatus": "Zmień status",
"delete": "Usuń zadania",
- "deleteConfirm": "Usunąć {{count}} zadań? Tej operacji nie można cofnąć.",
+ "deleteConfirmTitle_one": "Usunąć {{count}} zadanie?",
+ "deleteConfirmTitle_few": "Usunąć {{count}} zadania?",
+ "deleteConfirmTitle_many": "Usunąć {{count}} zadań?",
+ "deleteConfirmTitle_other": "Usunąć {{count}} zadania?",
+ "deleteConfirmDescription": "Wybrane zadania i wszystkie ich dane zostaną trwale usunięte. Tej operacji nie można cofnąć.",
"deleteError": "Nie udało się usunąć zadań",
"deleteSuccess": "Usunięto zadań: {{count}}",
"moveToBacklog": "Przenieś do backlogu",
@@ -3271,17 +3266,13 @@
"noActivity": "Nie znaleziono aktywności",
"openInFullPage": "Otwórz na pełnej stronie",
"subtaskOf": "Podzadanie zadania",
- "titlePlaceholder": "Kliknij, aby dodać tytuł",
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ "titlePlaceholder": "Kliknij, aby dodać tytuł"
},
"dueDate": {
"clear": "Wyczyść datę",
"clearError": "Nie udało się wyczyścić terminu",
- "clearSuccess": "Wyczyszczono termin zadania",
"label": "Termin",
- "updateError": "Nie udało się zaktualizować terminu zadania",
- "updateSuccess": "Termin zadania zaktualizowano pomyślnie"
+ "updateError": "Nie udało się zaktualizować terminu zadania"
},
"editor": {
"table": {
@@ -3316,12 +3307,10 @@
"jumpToToday": "Przejdź do dzisiaj",
"noTasks": "Brak zaplanowanych zadań",
"noTasksFound": "Nie znaleziono zadań",
- "noTasksMatch": "Brak zaplanowanych zadań pasujących do „{{query}}”",
"noTasksSubtitle": "Dodaj datę rozpoczęcia, termin lub obie daty, aby umieścić zadania na osi czasu projektu.",
"pageTitle": "{{name}} – wykres Gantta",
"resizeDue": "Zmień rozmiar terminu",
"resizeStart": "Zmień rozmiar daty rozpoczęcia",
- "searchPlaceholder": "Szukaj zaplanowanych zadań...",
"showTasks": "Pokaż zadania",
"taskAriaLabel": "{{title}}: otwórz lub przeciągnij, aby przenieść",
"taskHeader": "Zadanie",
@@ -3337,8 +3326,7 @@
"automaticallySortedHint": "Automatyczne sortowanie: {{sort}}"
},
"labels": {
- "empty": "Brak dostępnych etykiet",
- "label": "Etykiety"
+ "empty": "Brak dostępnych etykiet"
},
"listView": {
"addTask": "Dodaj zadanie",
@@ -3363,11 +3351,9 @@
},
"dueDate": {
"clear": "Wyczyść datę",
- "updateError": "Nie udało się zaktualizować terminu zadania",
- "updateSuccess": "Termin zadania zaktualizowano pomyślnie"
+ "updateError": "Nie udało się zaktualizować terminu zadania"
},
"labels": {
- "addSuccess": "Dodano etykietę",
"chooseColor": "Wybierz kolor",
"colors": {
"amber": "Bursztyn",
@@ -3384,7 +3370,6 @@
"createError": "Nie udało się utworzyć etykiety",
"createSuccess": "Utworzono i dodano etykietę",
"empty": "Nie znaleziono etykiet",
- "removeSuccess": "Usunięto etykietę",
"searchPlaceholder": "Szukaj etykiet...",
"updateError": "Nie udało się zaktualizować etykiety",
"editLabels": "Edytuj etykiety"
@@ -3394,8 +3379,7 @@
},
"startDate": {
"clear": "Wyczyść datę rozpoczęcia",
- "updateError": "Nie udało się zaktualizować daty rozpoczęcia zadania",
- "updateSuccess": "Datę rozpoczęcia zadania zaktualizowano pomyślnie"
+ "updateError": "Nie udało się zaktualizować daty rozpoczęcia zadania"
},
"status": {
"updateError": "Nie udało się zaktualizować statusu zadania"
@@ -3450,7 +3434,6 @@
},
"sort": {
"ascending": "Rosnąco",
- "by": "Sortuj według",
"descending": "Malejąco",
"direction": "Kierunek",
"fields": {
@@ -3460,8 +3443,7 @@
"position": "Ręcznie (pozycja)",
"priority": "Priorytet",
"title": "Tytuł"
- },
- "label": "Sortuj"
+ }
},
"status": {
"archived": "Zarchiwizowane",
@@ -3488,8 +3470,7 @@
"noCompletionColumn": "This project has no matching column for completing or reopening this subtask."
},
"update": {
- "error": "Nie udało się zaktualizować zadania",
- "success": "Zadanie zaktualizowano pomyślnie"
+ "error": "Nie udało się zaktualizować zadania"
},
"view": {
"board": "Tablica",
@@ -3510,10 +3491,58 @@
},
"checklistProgress": "Ukończone elementy listy kontrolnej: {{completed}} z {{total}}",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Pola",
+ "empty": "Puste",
+ "required": "Wymagane",
+ "enterKey": "Enter",
+ "toSave": "aby zapisać",
+ "today": "Dzisiaj",
+ "clear": "Wyczyść",
+ "setValue": "Ustaw {{field}}…",
+ "noMatches": "Brak pasujących opcji",
+ "missingRequired_one": "{{count}} wymagane pole jest puste",
+ "missingRequired_few": "{{count}} wymagane pola są puste",
+ "missingRequired_many": "{{count}} wymaganych pól jest pustych",
+ "missingRequired_other": "{{count}} wymaganego pola jest puste",
+ "saveError": "Nie udało się zapisać pola {{field}}",
+ "moreFields_one": "Jeszcze {{count}} pole",
+ "moreFields_few": "Jeszcze {{count}} pola",
+ "moreFields_many": "Jeszcze {{count}} pól",
+ "moreFields_other": "Jeszcze {{count}} pola"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Szukaj zadań",
+ "clearSearch": "Wyczyść wyszukiwanie",
+ "taskCount_one": "{{count}} zadanie",
+ "taskCount_few": "{{count}} zadania",
+ "taskCount_many": "{{count}} zadań",
+ "taskCount_other": "{{count}} zadania",
+ "shownCount_one": "{{shown}} z {{count}} zadania",
+ "shownCount_few": "{{shown}} z {{count}} zadań",
+ "shownCount_many": "{{shown}} z {{count}} zadań",
+ "shownCount_other": "{{shown}} z {{count}} zadania"
+ },
+ "display": {
+ "title": "Wyświetlanie",
+ "sortBy": "Sortuj według",
+ "showOnCards": "Pokaż na kartach",
+ "showOnRows": "Pokaż w wierszach",
+ "checklistProgress": "Postęp listy kontrolnej",
+ "projectBackground": "Tło projektu",
+ "layout": "Układ"
+ },
+ "filterBar": {
+ "label": "Aktywne filtry",
+ "removeFilter": "Usuń filtr {{name}}",
+ "noMatches": "Żadne zadanie nie pasuje do wyszukiwania ani filtrów."
+ },
+ "filterMenu": {
+ "addFilter": "Dodaj filtr…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Brak wyników"
}
},
"press": {
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 0f9d6dd10..be448c604 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -10,8 +10,7 @@
"markAllRead": "Marcar tudo como lido",
"remove": "Remover",
"reset": "Redefinir",
- "filter": "Filtrar",
- "clearAllFilters": "Limpar todos os filtros"
+ "filter": "Filtrar"
},
"a11y": {
"toggleSidebar": "Alternar barra lateral"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1526,12 +1519,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Caixa de seleção",
@@ -1541,7 +1532,6 @@
"text": "Text",
"multiselect": "Lista suspensa, várias opções"
},
- "availableOptions": "Available options",
"clearDefault": "Limpar padrão",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1878,7 +1868,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Obrigado pela assinatura",
+ "description": "Pagamento recebido. O plano abaixo será atualizado assim que for confirmado."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2510,7 +2504,8 @@
"prevTask": "Tarefa anterior",
"openTask": "Abrir tarefa selecionada",
"quickSelectNumber": "Selecionar opção por número",
- "calendarView": "Mudar para visualização de calendário"
+ "calendarView": "Mudar para visualização de calendário",
+ "ganttView": "Mudar para visualização Gantt"
}
}
},
@@ -2728,7 +2723,6 @@
"high": "Alta",
"urgent": "Urgente"
},
- "boardSearchPlaceholder": "Buscar tickets...",
"view": {
"board": "Quadro",
"list": "Lista",
@@ -2861,9 +2855,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Tarefa"
@@ -2935,12 +2927,10 @@
"updateError": "Falha ao atualizar a prioridade da tarefa"
},
"dueDate": {
- "updateSuccess": "Data de vencimento da tarefa atualizada com sucesso",
"updateError": "Falha ao atualizar a data de vencimento da tarefa",
"clear": "Limpar data"
},
"startDate": {
- "updateSuccess": "Data de início da tarefa atualizada com sucesso",
"updateError": "Falha ao atualizar a data de início da tarefa",
"clear": "Limpar data de início"
},
@@ -2949,8 +2939,6 @@
"empty": "Nenhuma etiqueta encontrada",
"create": "Criar \"{{name}}\"",
"chooseColor": "Escolher cor",
- "addSuccess": "Etiqueta adicionada",
- "removeSuccess": "Etiqueta removida",
"updateError": "Falha ao atualizar etiqueta",
"createSuccess": "Etiqueta criada e adicionada",
"createError": "Falha ao criar etiqueta",
@@ -2977,26 +2965,18 @@
"moveAllTooltip": "Mover todas as planejadas para A Fazer",
"moveAll": "Mover todas",
"addTask": "Adicionar tarefa",
- "filter": "Filtrar",
- "addFilter": "Adicionar filtro...",
"sections": {
"planned": "Planejado",
"archived": "Arquivado"
},
"noTasksInSection": "Nenhuma tarefa em {{section}}",
"filters": {
- "priority": "Prioridade: {{name}}",
- "assignee": "Responsável: {{name}}",
- "due": "Vencimento: {{date}}",
- "label": "Etiqueta: {{name}}",
"dueThisWeek": "Vence esta semana",
"dueNextWeek": "Vence na próxima semana",
"noDueDate": "Sem data de vencimento"
}
},
"sort": {
- "label": "Ordenar",
- "by": "Ordenar por",
"direction": "Direção",
"ascending": "Crescente",
"descending": "Decrescente",
@@ -3010,12 +2990,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtrar por",
- "allStatuses": "Todos os status",
- "allPriorities": "Todas as prioridades",
- "allAssignees": "Todos os responsáveis",
- "allDueDates": "Todas as datas de vencimento",
- "allLabels": "Todas as etiquetas",
"selectedCount": "{{count}} selecionado(s)",
"subjects": {
"status": "Status",
@@ -3026,9 +3000,13 @@
},
"operators": {
"isAnyOf": "é qualquer um de",
- "includeAnyOf": "inclui qualquer um de"
+ "includeAnyOf": "inclui qualquer um de",
+ "is": "é",
+ "isNot": "não é",
+ "isNoneOf": "não é nenhum de",
+ "include": "inclui",
+ "exclude": "exclui"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3036,13 +3014,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Linha do tempo Gantt",
- "searchPlaceholder": "Buscar tickets agendados...",
"hideTasks": "Ocultar tarefas",
"showTasks": "Mostrar tarefas",
"noTasks": "Nenhuma tarefa agendada",
"noTasksSubtitle": "Adicione uma data de início, data de vencimento ou ambas às tarefas para posicioná-las na linha do tempo do projeto.",
"noTasksFound": "Nenhuma tarefa encontrada",
- "noTasksMatch": "Nenhuma tarefa agendada corresponde a \"{{query}}\"",
"taskHeader": "Tarefa",
"updateDatesError": "Falha ao atualizar as datas da tarefa",
"resizeStart": "Redimensionar data de início",
@@ -3067,7 +3043,11 @@
"error": "Falha ao duplicar tarefa"
},
"archive": {
- "success": "{{count}} tarefas arquivadas"
+ "success": "{{count}} tarefas arquivadas",
+ "confirmTitle_one": "Arquivar {{count}} tarefa concluída?",
+ "confirmTitle_many": "Arquivar {{count}} tarefas concluídas?",
+ "confirmTitle_other": "Arquivar {{count}} tarefas concluídas?",
+ "confirmDescription": "Elas saem do quadro e vão para a seção \"Arquivado\" do backlog."
},
"listView": {
"addTask": "Adicionar tarefa",
@@ -3094,17 +3074,13 @@
"dueDate": {
"label": "Data de vencimento",
"clear": "Limpar data",
- "updateSuccess": "Data de vencimento da tarefa atualizada com sucesso",
"updateError": "Falha ao atualizar a data de vencimento da tarefa",
- "clearSuccess": "Data de vencimento da tarefa removida",
"clearError": "Falha ao limpar a data de vencimento"
},
"labels": {
- "label": "Etiquetas",
"empty": "Nenhuma etiqueta disponível"
},
"update": {
- "success": "Tarefa atualizada com sucesso",
"error": "Falha ao atualizar tarefa"
},
"contextMenu": {
@@ -3126,7 +3102,10 @@
"moveToBoardSuccess": "{{count}} tarefas movidas para o quadro",
"moveToBoardError": "Falha ao mover tarefas para o quadro",
"delete": "Excluir tarefas",
- "deleteConfirm": "Excluir {{count}} tarefas? Esta ação não pode ser desfeita.",
+ "deleteConfirmTitle_one": "Excluir {{count}} tarefa?",
+ "deleteConfirmTitle_many": "Excluir {{count}} tarefas?",
+ "deleteConfirmTitle_other": "Excluir {{count}} tarefas?",
+ "deleteConfirmDescription": "Isso removerá permanentemente as tarefas selecionadas e todos os seus dados. Você não pode desfazer esta ação.",
"deleteSuccess": "{{count}} tarefas excluídas",
"deleteError": "Falha ao excluir tarefas",
"archive": "Arquivar tarefas",
@@ -3181,10 +3160,54 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{completed}} de {{total}} itens da lista concluídos",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Campos",
+ "empty": "Vazio",
+ "required": "Obrigatório",
+ "enterKey": "Enter",
+ "toSave": "para salvar",
+ "today": "Hoje",
+ "clear": "Limpar",
+ "setValue": "Definir {{field}}…",
+ "noMatches": "Nenhuma opção correspondente",
+ "missingRequired_one": "{{count}} campo obrigatório está vazio",
+ "missingRequired_many": "{{count}} campos obrigatórios estão vazios",
+ "missingRequired_other": "{{count}} campos obrigatórios estão vazios",
+ "saveError": "Não foi possível salvar {{field}}",
+ "moreFields_one": "Mais {{count}} campo",
+ "moreFields_many": "Mais {{count}} campos",
+ "moreFields_other": "Mais {{count}} campos"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Buscar tarefas",
+ "clearSearch": "Limpar busca",
+ "taskCount_one": "{{count}} tarefa",
+ "taskCount_many": "{{count}} tarefas",
+ "taskCount_other": "{{count}} tarefas",
+ "shownCount_one": "{{shown}} de {{count}} tarefa",
+ "shownCount_many": "{{shown}} de {{count}} tarefas",
+ "shownCount_other": "{{shown}} de {{count}} tarefas"
+ },
+ "display": {
+ "title": "Exibição",
+ "sortBy": "Ordenar por",
+ "showOnCards": "Mostrar nos cartões",
+ "showOnRows": "Mostrar nas linhas",
+ "checklistProgress": "Progresso da checklist",
+ "projectBackground": "Fundo do projeto",
+ "layout": "Layout"
+ },
+ "filterBar": {
+ "label": "Filtros ativos",
+ "removeFilter": "Remover filtro {{name}}",
+ "noMatches": "Nenhuma tarefa corresponde à sua busca ou aos seus filtros."
+ },
+ "filterMenu": {
+ "addFilter": "Adicionar filtro…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Nenhum resultado"
}
},
"invitations": {
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index 9eae4d1b4..26d5de0b9 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -10,8 +10,7 @@
"markAllRead": "Отметить все как прочитанные",
"remove": "Убрать",
"reset": "Сбросить",
- "filter": "Фильтр",
- "clearAllFilters": "Сбросить все фильтры"
+ "filter": "Фильтр"
},
"a11y": {
"toggleSidebar": "Переключить боковую панель"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1543,12 +1536,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Флажок",
@@ -1558,7 +1549,6 @@
"text": "Text",
"multiselect": "Выпадающий список, несколько значений"
},
- "availableOptions": "Available options",
"clearDefault": "Очистить значение по умолчанию",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1899,7 +1889,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Спасибо за подписку",
+ "description": "Платёж получен. План ниже обновится, как только он будет подтверждён."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2560,7 +2554,8 @@
"prevTask": "Предыдущая задача",
"openTask": "Открыть выбранную задачу",
"quickSelectNumber": "Выбрать вариант по номеру",
- "calendarView": "Переключиться на календарь"
+ "calendarView": "Переключиться на календарь",
+ "ganttView": "Переключиться на диаграмму Ганта"
}
}
},
@@ -2782,7 +2777,6 @@
"high": "Высокий",
"urgent": "Срочный"
},
- "boardSearchPlaceholder": "Поиск задач...",
"view": {
"board": "Доска",
"list": "Список",
@@ -2915,9 +2909,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Задача"
@@ -2989,12 +2981,10 @@
"updateError": "Не удалось обновить приоритет задачи"
},
"dueDate": {
- "updateSuccess": "Срок выполнения задачи успешно обновлён",
"updateError": "Не удалось обновить срок выполнения задачи",
"clear": "Очистить дату"
},
"startDate": {
- "updateSuccess": "Дата начала задачи успешно обновлена",
"updateError": "Не удалось обновить дату начала задачи",
"clear": "Очистить дату начала"
},
@@ -3003,8 +2993,6 @@
"empty": "Метки не найдены",
"create": "Создать «{{name}}»",
"chooseColor": "Выберите цвет",
- "addSuccess": "Метка добавлена",
- "removeSuccess": "Метка удалена",
"updateError": "Не удалось обновить метку",
"createSuccess": "Метка создана и добавлена",
"createError": "Не удалось создать метку",
@@ -3034,18 +3022,12 @@
"moveAllTooltip": "Переместить все запланированные в «К выполнению»",
"moveAll": "Переместить все",
"addTask": "Добавить задачу",
- "filter": "Фильтр",
- "addFilter": "Добавить фильтр...",
"sections": {
"planned": "Запланировано",
"archived": "В архиве"
},
"noTasksInSection": "Нет задач в разделе «{{section}}»",
"filters": {
- "priority": "Приоритет: {{name}}",
- "assignee": "Исполнитель: {{name}}",
- "due": "Срок: {{date}}",
- "label": "Метка: {{name}}",
"dueThisWeek": "Срок на этой неделе",
"dueNextWeek": "Срок на следующей неделе",
"noDueDate": "Без срока"
@@ -3053,8 +3035,6 @@
"moveAllSuccess": "{{count}} задач перемещено в «К выполнению»"
},
"sort": {
- "label": "Сортировка",
- "by": "Сортировать по",
"direction": "Направление",
"ascending": "По возрастанию",
"descending": "По убыванию",
@@ -3068,12 +3048,6 @@
}
},
"boardFilters": {
- "filterBy": "Фильтровать по",
- "allStatuses": "Все статусы",
- "allPriorities": "Все приоритеты",
- "allAssignees": "Все исполнители",
- "allDueDates": "Все сроки",
- "allLabels": "Все метки",
"selectedCount_one": "{{count}} выбран",
"selectedCount_few": "{{count}} выбрано",
"selectedCount_many": "{{count}} выбрано",
@@ -3087,10 +3061,14 @@
},
"operators": {
"isAnyOf": "любой из",
- "includeAnyOf": "включает любой из"
+ "includeAnyOf": "включает любой из",
+ "is": "равно",
+ "isNot": "не равно",
+ "isNoneOf": "ни один из",
+ "include": "включает",
+ "exclude": "исключает"
},
"selectedCount": "{{count}} выбрано",
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3098,13 +3076,11 @@
"gantt": {
"pageTitle": "{{name}} – Гант",
"title": "Временная шкала Ганта",
- "searchPlaceholder": "Поиск запланированных задач...",
"hideTasks": "Скрыть задачи",
"showTasks": "Показать задачи",
"noTasks": "Нет запланированных задач",
"noTasksSubtitle": "Добавьте дату начала, срок выполнения или оба значения к задачам, чтобы разместить их на временной шкале проекта.",
"noTasksFound": "Задачи не найдены",
- "noTasksMatch": "Нет запланированных задач, соответствующих «{{query}}»",
"taskHeader": "Задача",
"updateDatesError": "Не удалось обновить даты задачи",
"resizeStart": "Изменить дату начала",
@@ -3133,7 +3109,12 @@
"success_few": "{{count}} задачи архивированы",
"success_many": "{{count}} задач архивировано",
"success_other": "{{count}} задач архивировано",
- "success": "{{count}} задач архивировано"
+ "success": "{{count}} задач архивировано",
+ "confirmTitle_one": "Архивировать {{count}} завершённую задачу?",
+ "confirmTitle_few": "Архивировать {{count}} завершённые задачи?",
+ "confirmTitle_many": "Архивировать {{count}} завершённых задач?",
+ "confirmTitle_other": "Архивировать {{count}} завершённой задачи?",
+ "confirmDescription": "Они исчезнут с доски и перейдут в раздел «В архиве» бэклога."
},
"listView": {
"addTask": "Добавить задачу",
@@ -3161,17 +3142,13 @@
"dueDate": {
"label": "Срок выполнения",
"clear": "Очистить дату",
- "updateSuccess": "Срок выполнения задачи успешно обновлён",
"updateError": "Не удалось обновить срок выполнения задачи",
- "clearSuccess": "Срок выполнения задачи очищен",
"clearError": "Не удалось очистить срок выполнения"
},
"labels": {
- "label": "Метки",
"empty": "Нет доступных меток"
},
"update": {
- "success": "Задача успешно обновлена",
"error": "Не удалось обновить задачу"
},
"contextMenu": {
@@ -3202,10 +3179,6 @@
"moveToBoardSuccess_other": "{{count}} задач перемещено на доску",
"moveToBoardError": "Не удалось переместить задачи на доску",
"delete": "Удалить задачи",
- "deleteConfirm_one": "Удалить {{count}} задачу? Это действие нельзя отменить.",
- "deleteConfirm_few": "Удалить {{count}} задачи? Это действие нельзя отменить.",
- "deleteConfirm_many": "Удалить {{count}} задач? Это действие нельзя отменить.",
- "deleteConfirm_other": "Удалить {{count}} задач? Это действие нельзя отменить.",
"deleteSuccess_one": "{{count}} задача удалена",
"deleteSuccess_few": "{{count}} задачи удалены",
"deleteSuccess_many": "{{count}} задач удалено",
@@ -3245,7 +3218,11 @@
"selectedCount": "{{count}} выбрано",
"moveToBacklogSuccess": "{{count}} задач перемещено в бэклог",
"moveToBoardSuccess": "{{count}} задач перемещено на доску",
- "deleteConfirm": "Удалить {{count}} задач? Это действие нельзя отменить.",
+ "deleteConfirmTitle_one": "Удалить {{count}} задачу?",
+ "deleteConfirmTitle_few": "Удалить {{count}} задачи?",
+ "deleteConfirmTitle_many": "Удалить {{count}} задач?",
+ "deleteConfirmTitle_other": "Удалить {{count}} задачи?",
+ "deleteConfirmDescription": "Выбранные задачи и все их данные будут безвозвратно удалены. Это действие нельзя отменить.",
"deleteSuccess": "{{count}} задач удалено",
"archiveSuccess": "{{count}} задач архивировано",
"updateSuccess": "{{count}} задач обновлено",
@@ -3284,10 +3261,58 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "Выполнено пунктов списка: {{completed}} из {{total}}",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Поля",
+ "empty": "Пусто",
+ "required": "Обязательно",
+ "enterKey": "Enter",
+ "toSave": "чтобы сохранить",
+ "today": "Сегодня",
+ "clear": "Очистить",
+ "setValue": "Задать {{field}}…",
+ "noMatches": "Нет подходящих вариантов",
+ "missingRequired_one": "{{count}} обязательное поле не заполнено",
+ "missingRequired_few": "{{count}} обязательных поля не заполнены",
+ "missingRequired_many": "{{count}} обязательных полей не заполнено",
+ "missingRequired_other": "{{count}} обязательного поля не заполнено",
+ "saveError": "Не удалось сохранить поле «{{field}}»",
+ "moreFields_one": "Ещё {{count}} поле",
+ "moreFields_few": "Ещё {{count}} поля",
+ "moreFields_many": "Ещё {{count}} полей",
+ "moreFields_other": "Ещё {{count}} поля"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Поиск задач",
+ "clearSearch": "Очистить поиск",
+ "taskCount_one": "{{count}} задача",
+ "taskCount_few": "{{count}} задачи",
+ "taskCount_many": "{{count}} задач",
+ "taskCount_other": "{{count}} задачи",
+ "shownCount_one": "{{shown}} из {{count}} задачи",
+ "shownCount_few": "{{shown}} из {{count}} задач",
+ "shownCount_many": "{{shown}} из {{count}} задач",
+ "shownCount_other": "{{shown}} из {{count}} задачи"
+ },
+ "display": {
+ "title": "Отображение",
+ "sortBy": "Сортировать по",
+ "showOnCards": "Показывать на карточках",
+ "showOnRows": "Показывать в строках",
+ "checklistProgress": "Прогресс чек-листа",
+ "projectBackground": "Фон проекта",
+ "layout": "Макет"
+ },
+ "filterBar": {
+ "label": "Активные фильтры",
+ "removeFilter": "Убрать фильтр «{{name}}»",
+ "noMatches": "Нет задач, подходящих под поиск или фильтры."
+ },
+ "filterMenu": {
+ "addFilter": "Добавить фильтр…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Ничего не найдено"
}
},
"invitations": {
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index a74108711..d5d9ff098 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -10,8 +10,7 @@
"markAllRead": "Tümünü okundu işaretle",
"remove": "Kaldır",
"reset": "Sıfırla",
- "filter": "Filtrele",
- "clearAllFilters": "Tüm filtreleri temizle"
+ "filter": "Filtrele"
},
"a11y": {
"toggleSidebar": "Kenar çubuğunu aç/kapat"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1517,12 +1510,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Onay kutusu",
@@ -1532,7 +1523,6 @@
"text": "Text",
"multiselect": "Açılır liste, çoklu seçim"
},
- "availableOptions": "Available options",
"clearDefault": "Varsayılanı temizle",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1865,7 +1855,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Abone olduğunuz için teşekkürler",
+ "description": "Ödeme alındı. Aşağıdaki plan onaylandığında güncellenecek."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2468,7 +2462,8 @@
"prevTask": "Önceki talep",
"openTask": "Seçili talebi aç",
"quickSelectNumber": "Numarayla seçenek seç",
- "calendarView": "Takvim görünümüne geç"
+ "calendarView": "Takvim görünümüne geç",
+ "ganttView": "Gantt görünümüne geç"
}
}
},
@@ -2682,7 +2677,6 @@
"high": "Yüksek",
"urgent": "Acil"
},
- "boardSearchPlaceholder": "Talep ara...",
"view": {
"board": "Pano",
"list": "Liste",
@@ -2815,9 +2809,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Talep"
@@ -2889,12 +2881,10 @@
"updateError": "Talep önceliği güncellenemedi"
},
"dueDate": {
- "updateSuccess": "Talep bitiş tarihi başarıyla güncellendi",
"updateError": "Talep bitiş tarihi güncellenemedi",
"clear": "Tarihi temizle"
},
"startDate": {
- "updateSuccess": "Talep başlangıç tarihi başarıyla güncellendi",
"updateError": "Talep başlangıç tarihi güncellenemedi",
"clear": "Başlangıç tarihini temizle"
},
@@ -2903,8 +2893,6 @@
"empty": "Etiket bulunamadı",
"create": "\"{{name}}\" oluştur",
"chooseColor": "Renk seç",
- "addSuccess": "Etiket eklendi",
- "removeSuccess": "Etiket kaldırıldı",
"updateError": "Etiket güncellenemedi",
"createSuccess": "Etiket oluşturuldu ve eklendi",
"createError": "Etiket oluşturulamadı",
@@ -2931,26 +2919,18 @@
"moveAllTooltip": "Tüm Planlanmış Talepleri Yapılacak'a Taşı",
"moveAll": "Tümünü Taşı",
"addTask": "Talep ekle",
- "filter": "Filtrele",
- "addFilter": "Filtre ekle...",
"sections": {
"planned": "Planlandı",
"archived": "Arşivlendi"
},
"noTasksInSection": "{{section}} talebi yok",
"filters": {
- "priority": "Öncelik: {{name}}",
- "assignee": "Atanan: {{name}}",
- "due": "Bitiş: {{date}}",
- "label": "Etiket: {{name}}",
"dueThisWeek": "Bu hafta bitiyor",
"dueNextWeek": "Önümüzdeki hafta bitiyor",
"noDueDate": "Bitiş tarihi yok"
}
},
"sort": {
- "label": "Sırala",
- "by": "Sıralama Ölçütü",
"direction": "Yön",
"ascending": "Artan",
"descending": "Azalan",
@@ -2964,12 +2944,6 @@
}
},
"boardFilters": {
- "filterBy": "Filtrele",
- "allStatuses": "Tüm durumlar",
- "allPriorities": "Tüm öncelikler",
- "allAssignees": "Tüm atananlar",
- "allDueDates": "Tüm bitiş tarihleri",
- "allLabels": "Tüm etiketler",
"selectedCount": "{{count}} seçili",
"subjects": {
"status": "Durum",
@@ -2980,9 +2954,13 @@
},
"operators": {
"isAnyOf": "herhangi biri",
- "includeAnyOf": "herhangi birini içer"
+ "includeAnyOf": "herhangi birini içer",
+ "is": "eşittir",
+ "isNot": "eşit değil",
+ "isNoneOf": "hiçbiri değil",
+ "include": "içerir",
+ "exclude": "içermez"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2990,13 +2968,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Gantt Zaman Çizelgesi",
- "searchPlaceholder": "Zamanlanmış talep ara...",
"hideTasks": "Talepleri gizle",
"showTasks": "Talepleri göster",
"noTasks": "Zamanlanmış talep yok",
"noTasksSubtitle": "Talepleri proje zaman çizelgesine yerleştirmek için başlangıç tarihi, bitiş tarihi veya her ikisini ekleyin.",
"noTasksFound": "Talep bulunamadı",
- "noTasksMatch": "\"{{query}}\" ile eşleşen zamanlanmış talep yok",
"taskHeader": "Talep",
"updateDatesError": "Talep tarihleri güncellenemedi",
"resizeStart": "Başlangıç tarihini yeniden boyutlandır",
@@ -3021,7 +2997,10 @@
"error": "Talep çoğaltılamadı"
},
"archive": {
- "success": "{{count}} talep arşivlendi"
+ "success": "{{count}} talep arşivlendi",
+ "confirmTitle_one": "Tamamlanan {{count}} talep arşivlensin mi?",
+ "confirmTitle_other": "Tamamlanan {{count}} talep arşivlensin mi?",
+ "confirmDescription": "Panodan kalkıp backlog'un \"Arşivlendi\" bölümüne taşınacaklar."
},
"listView": {
"addTask": "Talep ekle",
@@ -3047,17 +3026,13 @@
"dueDate": {
"label": "Bitiş tarihi",
"clear": "Tarihi temizle",
- "updateSuccess": "Talep bitiş tarihi başarıyla güncellendi",
"updateError": "Talep bitiş tarihi güncellenemedi",
- "clearSuccess": "Talep bitiş tarihi temizlendi",
"clearError": "Bitiş tarihi temizlenemedi"
},
"labels": {
- "label": "Etiketler",
"empty": "Kullanılabilir etiket yok"
},
"update": {
- "success": "Talep başarıyla güncellendi",
"error": "Talep güncellenemedi"
},
"contextMenu": {
@@ -3079,7 +3054,9 @@
"moveToBoardSuccess": "{{count}} talep panoya taşındı",
"moveToBoardError": "Talepler panoya taşınamadı",
"delete": "Talepleri sil",
- "deleteConfirm": "{{count}} talep silinsin mi? Bu işlem geri alınamaz.",
+ "deleteConfirmTitle_one": "{{count}} talep silinsin mi?",
+ "deleteConfirmTitle_other": "{{count}} talep silinsin mi?",
+ "deleteConfirmDescription": "Bu, seçili talepleri ve tüm verilerini kalıcı olarak kaldıracak. Bu işlemi geri alamazsınız.",
"deleteSuccess": "{{count}} talep silindi",
"deleteError": "Talepler silinemedi",
"archive": "Talepleri arşivle",
@@ -3134,10 +3111,50 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "{{total}} kontrol listesi öğesinin {{completed}} tanesi tamamlandı",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Alanlar",
+ "empty": "Boş",
+ "required": "Zorunlu",
+ "enterKey": "Enter",
+ "toSave": "kaydetmek için",
+ "today": "Bugün",
+ "clear": "Temizle",
+ "setValue": "{{field}} ayarla…",
+ "noMatches": "Eşleşen seçenek yok",
+ "missingRequired_one": "{{count}} zorunlu alan boş",
+ "missingRequired_other": "{{count}} zorunlu alan boş",
+ "saveError": "{{field}} kaydedilemedi",
+ "moreFields_one": "{{count}} alan daha",
+ "moreFields_other": "{{count}} alan daha"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Görev ara",
+ "clearSearch": "Aramayı temizle",
+ "taskCount_one": "{{count}} görev",
+ "taskCount_other": "{{count}} görev",
+ "shownCount_one": "{{count}} görevden {{shown}} tanesi",
+ "shownCount_other": "{{count}} görevden {{shown}} tanesi"
+ },
+ "display": {
+ "title": "Görünüm",
+ "sortBy": "Sıralama ölçütü",
+ "showOnCards": "Kartlarda göster",
+ "showOnRows": "Satırlarda göster",
+ "checklistProgress": "Kontrol listesi ilerlemesi",
+ "projectBackground": "Proje arka planı",
+ "layout": "Düzen"
+ },
+ "filterBar": {
+ "label": "Etkin filtreler",
+ "removeFilter": "{{name}} filtresini kaldır",
+ "noMatches": "Aramanızla veya filtrelerinizle eşleşen görev yok."
+ },
+ "filterMenu": {
+ "addFilter": "Filtre ekle…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Sonuç yok"
}
},
"invitations": {
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 15ac98f3d..7ede986ba 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -10,8 +10,7 @@
"markAllRead": "Позначити все як прочитане",
"remove": "Прибрати",
"reset": "Скинути",
- "filter": "Фільтр",
- "clearAllFilters": "Очистити всі фільтри"
+ "filter": "Фільтр"
},
"a11y": {
"toggleSidebar": "Перемикач бічної панелі"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1535,12 +1528,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Прапорець",
@@ -1550,7 +1541,6 @@
"text": "Text",
"multiselect": "Випадний список, кілька значень"
},
- "availableOptions": "Available options",
"clearDefault": "Очистити значення за замовчуванням",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1891,7 +1881,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Дякуємо за підписку",
+ "description": "Платіж отримано. План нижче оновиться, щойно його буде підтверджено."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2552,7 +2546,8 @@
"prevTask": "Попереднє завдання",
"openTask": "Відкрити обране завдання",
"quickSelectNumber": "Обрати варіант за номером",
- "calendarView": "Перемкнути на вигляд календаря"
+ "calendarView": "Перемкнути на вигляд календаря",
+ "ganttView": "Перемкнути на діаграму Ганта"
}
}
},
@@ -2774,7 +2769,6 @@
"high": "Високий",
"urgent": "Терміновий"
},
- "boardSearchPlaceholder": "Пошук тікетів...",
"view": {
"board": "Дошка",
"list": "Список",
@@ -2907,9 +2901,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Завдання"
@@ -2981,12 +2973,10 @@
"updateError": "Не вдалося оновити пріоритет завдання"
},
"dueDate": {
- "updateSuccess": "Дату завершення завдання успішно оновлено",
"updateError": "Не вдалося оновити дату завершення завдання",
"clear": "Очистити дату"
},
"startDate": {
- "updateSuccess": "Дату початку завдання успішно оновлено",
"updateError": "Не вдалося оновити дату початку завдання",
"clear": "Очистити дату початку"
},
@@ -2995,8 +2985,6 @@
"empty": "Мітки не знайдено",
"create": "Створити «{{name}}»",
"chooseColor": "Оберіть колір",
- "addSuccess": "Мітку додано",
- "removeSuccess": "Мітку видалено",
"updateError": "Не вдалося оновити мітку",
"createSuccess": "Мітку створено та додано",
"createError": "Не вдалося створити мітку",
@@ -3023,26 +3011,18 @@
"moveAllTooltip": "Перемістити всі заплановані до «До виконання»",
"moveAll": "Перемістити всі",
"addTask": "Додати завдання",
- "filter": "Фільтр",
- "addFilter": "Додати фільтр...",
"sections": {
"planned": "Заплановані",
"archived": "Архівовані"
},
"noTasksInSection": "Немає завдань у розділі «{{section}}»",
"filters": {
- "priority": "Пріоритет: {{name}}",
- "assignee": "Виконавець: {{name}}",
- "due": "Термін: {{date}}",
- "label": "Мітка: {{name}}",
"dueThisWeek": "Термін цього тижня",
"dueNextWeek": "Термін наступного тижня",
"noDueDate": "Без дати завершення"
}
},
"sort": {
- "label": "Сортування",
- "by": "Сортувати за",
"direction": "Напрямок",
"ascending": "За зростанням",
"descending": "За спаданням",
@@ -3056,12 +3036,6 @@
}
},
"boardFilters": {
- "filterBy": "Фільтрувати за",
- "allStatuses": "Усі статуси",
- "allPriorities": "Усі пріоритети",
- "allAssignees": "Усі виконавці",
- "allDueDates": "Усі дати завершення",
- "allLabels": "Усі мітки",
"selectedCount": "{{count}} обрано",
"subjects": {
"status": "Статус",
@@ -3072,9 +3046,13 @@
},
"operators": {
"isAnyOf": "є будь-яким з",
- "includeAnyOf": "включає будь-який з"
+ "includeAnyOf": "включає будь-який з",
+ "is": "дорівнює",
+ "isNot": "не дорівнює",
+ "isNoneOf": "жоден з",
+ "include": "включає",
+ "exclude": "виключає"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -3082,13 +3060,11 @@
"gantt": {
"pageTitle": "{{name}} – Ґант",
"title": "Часова шкала Ґанта",
- "searchPlaceholder": "Пошук запланованих тікетів...",
"hideTasks": "Сховати завдання",
"showTasks": "Показати завдання",
"noTasks": "Немає запланованих завдань",
"noTasksSubtitle": "Додайте дату початку, дату завершення або обидві до завдань, щоб розмістити їх на часовій шкалі проєкту.",
"noTasksFound": "Завдання не знайдено",
- "noTasksMatch": "Жодне заплановане завдання не відповідає «{{query}}»",
"taskHeader": "Завдання",
"updateDatesError": "Не вдалося оновити дати завдання",
"resizeStart": "Змінити дату початку",
@@ -3113,7 +3089,12 @@
"error": "Не вдалося дублювати завдання"
},
"archive": {
- "success": "Архівовано {{count}} завдань"
+ "success": "Архівовано {{count}} завдань",
+ "confirmTitle_one": "Архівувати {{count}} завершене завдання?",
+ "confirmTitle_few": "Архівувати {{count}} завершені завдання?",
+ "confirmTitle_many": "Архівувати {{count}} завершених завдань?",
+ "confirmTitle_other": "Архівувати {{count}} завершеного завдання?",
+ "confirmDescription": "Вони зникнуть з дошки й перейдуть до розділу «Архівовані» беклогу."
},
"listView": {
"addTask": "Додати завдання",
@@ -3141,17 +3122,13 @@
"dueDate": {
"label": "Дата завершення",
"clear": "Очистити дату",
- "updateSuccess": "Дату завершення завдання успішно оновлено",
"updateError": "Не вдалося оновити дату завершення завдання",
- "clearSuccess": "Дату завершення завдання очищено",
"clearError": "Не вдалося очистити дату завершення"
},
"labels": {
- "label": "Мітки",
"empty": "Немає доступних міток"
},
"update": {
- "success": "Завдання успішно оновлено",
"error": "Не вдалося оновити завдання"
},
"contextMenu": {
@@ -3173,7 +3150,11 @@
"moveToBoardSuccess": "{{count}} завдань переміщено на дошку",
"moveToBoardError": "Не вдалося перемістити завдання на дошку",
"delete": "Видалити завдання",
- "deleteConfirm": "Видалити {{count}} завдань? Цю дію неможливо скасувати.",
+ "deleteConfirmTitle_one": "Видалити {{count}} завдання?",
+ "deleteConfirmTitle_few": "Видалити {{count}} завдання?",
+ "deleteConfirmTitle_many": "Видалити {{count}} завдань?",
+ "deleteConfirmTitle_other": "Видалити {{count}} завдання?",
+ "deleteConfirmDescription": "Вибрані завдання та всі їхні дані буде назавжди видалено. Цю дію неможливо скасувати.",
"deleteSuccess": "{{count}} завдань видалено",
"deleteError": "Не вдалося видалити завдання",
"archive": "Архівувати завдання",
@@ -3228,10 +3209,58 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "Виконано пунктів списку: {{completed}} із {{total}}",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Поля",
+ "empty": "Порожньо",
+ "required": "Обов'язково",
+ "enterKey": "Enter",
+ "toSave": "щоб зберегти",
+ "today": "Сьогодні",
+ "clear": "Очистити",
+ "setValue": "Задати {{field}}…",
+ "noMatches": "Немає відповідних варіантів",
+ "missingRequired_one": "{{count}} обов'язкове поле не заповнено",
+ "missingRequired_few": "{{count}} обов'язкові поля не заповнені",
+ "missingRequired_many": "{{count}} обов'язкових полів не заповнено",
+ "missingRequired_other": "{{count}} обов'язкового поля не заповнено",
+ "saveError": "Не вдалося зберегти поле «{{field}}»",
+ "moreFields_one": "Ще {{count}} поле",
+ "moreFields_few": "Ще {{count}} поля",
+ "moreFields_many": "Ще {{count}} полів",
+ "moreFields_other": "Ще {{count}} поля"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Пошук завдань",
+ "clearSearch": "Очистити пошук",
+ "taskCount_one": "{{count}} завдання",
+ "taskCount_few": "{{count}} завдання",
+ "taskCount_many": "{{count}} завдань",
+ "taskCount_other": "{{count}} завдання",
+ "shownCount_one": "{{shown}} з {{count}} завдання",
+ "shownCount_few": "{{shown}} з {{count}} завдань",
+ "shownCount_many": "{{shown}} з {{count}} завдань",
+ "shownCount_other": "{{shown}} з {{count}} завдання"
+ },
+ "display": {
+ "title": "Відображення",
+ "sortBy": "Сортувати за",
+ "showOnCards": "Показувати на картках",
+ "showOnRows": "Показувати в рядках",
+ "checklistProgress": "Прогрес чек-листа",
+ "projectBackground": "Фон проєкту",
+ "layout": "Макет"
+ },
+ "filterBar": {
+ "label": "Активні фільтри",
+ "removeFilter": "Прибрати фільтр «{{name}}»",
+ "noMatches": "Немає завдань, що відповідають пошуку чи фільтрам."
+ },
+ "filterMenu": {
+ "addFilter": "Додати фільтр…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Нічого не знайдено"
}
},
"invitations": {
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 4654364db..e471b4ce0 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -10,8 +10,7 @@
"markAllRead": "Đánh dấu đã đọc tất cả",
"remove": "Gỡ bỏ",
"reset": "Đặt lại",
- "filter": "Lọc",
- "clearAllFilters": "Xóa tất cả bộ lọc"
+ "filter": "Lọc"
},
"a11y": {
"toggleSidebar": "Bật/tắt thanh bên"
@@ -153,12 +152,6 @@
},
"statusLoadError": "Project statuses couldn’t be loaded."
}
- },
- "boolean": {
- "false": "False",
- "notSet": "Not Set",
- "true": "True",
- "undefined": "Undefined"
}
},
"auth": {
@@ -1508,12 +1501,10 @@
"createSuccess": "Custom field created.",
"creating": "Creating...",
"defaultLabel": "Default",
- "defaultValuePlaceholder": "Default value",
"deleteError": "Failed to delete custom field.",
"deleteSuccess": "Custom field deleted.",
"deleting": "Deleting...",
"namePlaceholder": "Field name",
- "noOptionsPlaceholder": "No options",
"required": "Required",
"types": {
"boolean": "Hộp kiểm",
@@ -1523,7 +1514,6 @@
"text": "Text",
"multiselect": "Danh sách thả xuống, chọn nhiều"
},
- "availableOptions": "Available options",
"clearDefault": "Xóa mặc định",
"moreOptions": "+{{hiddenCount}} more",
"reorderError": "Failed to reorder fields",
@@ -1852,7 +1842,11 @@
"expiredDescription": "Subscribe to keep creating and editing.",
"viewPlans": "View plans"
},
- "openFailed": "Couldn't open billing for this workspace"
+ "openFailed": "Couldn't open billing for this workspace",
+ "checkoutSuccess": {
+ "title": "Cảm ơn bạn đã đăng ký",
+ "description": "Đã nhận thanh toán. Gói bên dưới sẽ được cập nhật ngay khi thanh toán được xác nhận."
+ }
},
"syncRules": {
"addLabel": "Add label",
@@ -2426,7 +2420,8 @@
"prevTask": "Công việc trước đó",
"openTask": "Mở công việc đã chọn",
"quickSelectNumber": "Chọn tùy chọn theo số",
- "calendarView": "Chuyển sang chế độ xem lịch"
+ "calendarView": "Chuyển sang chế độ xem lịch",
+ "ganttView": "Chuyển sang chế độ xem Gantt"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "Cao",
"urgent": "Khẩn cấp"
},
- "boardSearchPlaceholder": "Tìm phiếu...",
"view": {
"board": "Bảng",
"list": "Danh sách",
@@ -2769,9 +2763,7 @@
"saving": "Saving…",
"saveFailed": "Changes could not be saved",
"retrySave": "Retry"
- },
- "customFieldUpdated": "Field updated",
- "selectOption": "Select option"
+ }
},
"entity": {
"task": "Công việc"
@@ -2843,12 +2835,10 @@
"updateError": "Không thể cập nhật mức ưu tiên công việc"
},
"dueDate": {
- "updateSuccess": "Cập nhật ngày đến hạn công việc thành công",
"updateError": "Không thể cập nhật ngày đến hạn công việc",
"clear": "Xóa ngày"
},
"startDate": {
- "updateSuccess": "Cập nhật ngày bắt đầu công việc thành công",
"updateError": "Không thể cập nhật ngày bắt đầu công việc",
"clear": "Xóa ngày bắt đầu"
},
@@ -2857,8 +2847,6 @@
"empty": "Không tìm thấy nhãn",
"create": "Tạo \"{{name}}\"",
"chooseColor": "Chọn màu",
- "addSuccess": "Đã thêm nhãn",
- "removeSuccess": "Đã gỡ nhãn",
"updateError": "Không thể cập nhật nhãn",
"createSuccess": "Đã tạo và thêm nhãn",
"createError": "Không thể tạo nhãn",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "Di chuyển tất cả công việc đã lên kế hoạch sang Cần làm",
"moveAll": "Di chuyển tất cả",
"addTask": "Thêm công việc",
- "filter": "Lọc",
- "addFilter": "Thêm bộ lọc...",
"sections": {
"planned": "Đã lên kế hoạch",
"archived": "Đã lưu trữ"
},
"noTasksInSection": "Không có công việc {{section}}",
"filters": {
- "priority": "Mức ưu tiên: {{name}}",
- "assignee": "Người được giao: {{name}}",
- "due": "Đến hạn: {{date}}",
- "label": "Nhãn: {{name}}",
"dueThisWeek": "Đến hạn tuần này",
"dueNextWeek": "Đến hạn tuần sau",
"noDueDate": "Không có ngày đến hạn"
}
},
"sort": {
- "label": "Sắp xếp",
- "by": "Sắp xếp theo",
"direction": "Chiều",
"ascending": "Tăng dần",
"descending": "Giảm dần",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "Lọc theo",
- "allStatuses": "Tất cả trạng thái",
- "allPriorities": "Tất cả mức ưu tiên",
- "allAssignees": "Tất cả người được giao",
- "allDueDates": "Tất cả ngày đến hạn",
- "allLabels": "Tất cả nhãn",
"selectedCount": "Đã chọn {{count}}",
"subjects": {
"status": "Trạng thái",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "là một trong",
- "includeAnyOf": "bao gồm một trong"
+ "includeAnyOf": "bao gồm một trong",
+ "is": "là",
+ "isNot": "không phải",
+ "isNoneOf": "không phải bất kỳ",
+ "include": "bao gồm",
+ "exclude": "loại trừ"
},
- "all": "All",
"allCustomFieldValues": "All values",
"noCustomFieldValues": "No custom field values",
"noValuesUsedYet": "No values used yet"
@@ -2944,13 +2922,11 @@
"gantt": {
"pageTitle": "{{name}} – Gantt",
"title": "Dòng thời gian Gantt",
- "searchPlaceholder": "Tìm phiếu đã lên lịch...",
"hideTasks": "Ẩn công việc",
"showTasks": "Hiện công việc",
"noTasks": "Không có công việc đã lên lịch",
"noTasksSubtitle": "Thêm ngày bắt đầu, ngày đến hạn, hoặc cả hai cho công việc để đặt chúng lên dòng thời gian dự án.",
"noTasksFound": "Không tìm thấy công việc nào",
- "noTasksMatch": "Không có công việc đã lên lịch khớp với \"{{query}}\"",
"taskHeader": "Công việc",
"updateDatesError": "Không thể cập nhật ngày của công việc",
"resizeStart": "Thay đổi kích thước ngày bắt đầu",
@@ -2975,7 +2951,9 @@
"error": "Không thể nhân bản công việc"
},
"archive": {
- "success": "Đã lưu trữ {{count}} công việc"
+ "success": "Đã lưu trữ {{count}} công việc",
+ "confirmTitle_other": "Lưu trữ {{count}} công việc đã hoàn thành?",
+ "confirmDescription": "Chúng sẽ rời khỏi bảng và chuyển sang mục \"Đã lưu trữ\" trong Backlog."
},
"listView": {
"addTask": "Thêm công việc",
@@ -3000,17 +2978,13 @@
"dueDate": {
"label": "Ngày đến hạn",
"clear": "Xóa ngày",
- "updateSuccess": "Cập nhật ngày đến hạn công việc thành công",
"updateError": "Không thể cập nhật ngày đến hạn công việc",
- "clearSuccess": "Đã xóa ngày đến hạn công việc",
"clearError": "Không thể xóa ngày đến hạn"
},
"labels": {
- "label": "Nhãn",
"empty": "Không có nhãn khả dụng"
},
"update": {
- "success": "Cập nhật công việc thành công",
"error": "Không thể cập nhật công việc"
},
"contextMenu": {
@@ -3032,7 +3006,8 @@
"moveToBoardSuccess": "Đã chuyển {{count}} công việc sang bảng",
"moveToBoardError": "Không thể chuyển công việc sang bảng",
"delete": "Xóa công việc",
- "deleteConfirm": "Xóa {{count}} công việc? Hành động này không thể hoàn tác.",
+ "deleteConfirmTitle_other": "Xóa {{count}} công việc?",
+ "deleteConfirmDescription": "Thao tác này sẽ xóa vĩnh viễn các công việc đã chọn và toàn bộ dữ liệu của chúng. Bạn không thể hoàn tác hành động này.",
"deleteSuccess": "Đã xóa {{count}} công việc",
"deleteError": "Không thể xóa công việc",
"archive": "Lưu trữ công việc",
@@ -3087,10 +3062,46 @@
"descriptionLoadError": "The description could not be loaded. Retry to load the current version.",
"checklistProgress": "Đã hoàn thành {{completed}} trên {{total}} mục trong danh sách kiểm tra",
"customFields": {
- "ariaLabel": "Custom fields"
+ "fields": "Trường",
+ "empty": "Trống",
+ "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",
+ "missingRequired_other": "{{count}} trường bắt buộc còn trống",
+ "saveError": "Không thể lưu {{field}}",
+ "moreFields_other": "Thêm {{count}} trường"
},
"board": {
"reorderFailed": "Could not move task. Please try again."
+ },
+ "toolbar": {
+ "search": "Tìm công việc",
+ "clearSearch": "Xóa tìm kiếm",
+ "taskCount_other": "{{count}} công việc",
+ "shownCount_other": "{{shown}} trên {{count}} công việc"
+ },
+ "display": {
+ "title": "Hiển thị",
+ "sortBy": "Sắp xếp theo",
+ "showOnCards": "Hiện trên thẻ",
+ "showOnRows": "Hiện trên hàng",
+ "checklistProgress": "Tiến độ danh sách kiểm tra",
+ "projectBackground": "Hình nền dự án",
+ "layout": "Bố cục"
+ },
+ "filterBar": {
+ "label": "Bộ lọc đang áp dụng",
+ "removeFilter": "Xóa bộ lọc {{name}}",
+ "noMatches": "Không có công việc nào khớp với tìm kiếm hoặc bộ lọc của bạn."
+ },
+ "filterMenu": {
+ "addFilter": "Thêm bộ lọc…",
+ "searchSubject": "{{name}}…",
+ "noResults": "Không có kết quả"
}
},
"invitations": {
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index 0dece2a89..37be5f07b 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -10,8 +10,7 @@
"markAllRead": "全部标为已读",
"remove": "移除",
"reset": "重置",
- "filter": "筛选",
- "clearAllFilters": "清除全部筛选"
+ "filter": "筛选"
},
"a11y": {
"toggleSidebar": "切换侧边栏"
@@ -153,12 +152,6 @@
},
"statusLoadError": "项目状态加载失败。"
}
- },
- "boolean": {
- "false": "否",
- "notSet": "未设置",
- "true": "是",
- "undefined": "未定义"
}
},
"auth": {
@@ -1508,12 +1501,10 @@
"createSuccess": "自定义字段已创建。",
"creating": "正在创建…",
"defaultLabel": "默认",
- "defaultValuePlaceholder": "默认值",
"deleteError": "删除自定义字段失败。",
"deleteSuccess": "自定义字段已删除。",
"deleting": "正在删除…",
"namePlaceholder": "字段名称",
- "noOptionsPlaceholder": "暂无选项",
"required": "必填",
"types": {
"boolean": "复选框",
@@ -1523,7 +1514,6 @@
"text": "文本",
"multiselect": "下拉选择(多选)"
},
- "availableOptions": "可选项",
"clearDefault": "清除默认值",
"moreOptions": "还有 {{hiddenCount}} 项",
"reorderError": "字段排序失败",
@@ -1852,7 +1842,11 @@
"expiredDescription": "订阅后即可继续创建和编辑。",
"viewPlans": "查看套餐"
},
- "openFailed": "无法打开此工作区的账单页面"
+ "openFailed": "无法打开此工作区的账单页面",
+ "checkoutSuccess": {
+ "title": "感谢订阅",
+ "description": "已收到付款。确认后,下方的方案会随即更新。"
+ }
},
"syncRules": {
"addLabel": "添加标签",
@@ -2426,7 +2420,8 @@
"nextTask": "下一任务",
"prevTask": "上一任务",
"openTask": "打开所选任务",
- "quickSelectNumber": "按数字选择选项"
+ "quickSelectNumber": "按数字选择选项",
+ "ganttView": "切换到甘特图视图"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "高",
"urgent": "紧急"
},
- "boardSearchPlaceholder": "搜索工单…",
"view": {
"board": "看板",
"list": "列表",
@@ -2769,9 +2763,7 @@
"saving": "正在保存…",
"saveFailed": "更改保存失败",
"retrySave": "重试"
- },
- "customFieldUpdated": "字段已更新",
- "selectOption": "选择选项"
+ }
},
"entity": {
"task": "任务"
@@ -2843,12 +2835,10 @@
"updateError": "更新任务优先级失败"
},
"dueDate": {
- "updateSuccess": "任务截止日期更新成功",
"updateError": "更新任务截止日期失败",
"clear": "清除日期"
},
"startDate": {
- "updateSuccess": "任务开始日期更新成功",
"updateError": "更新任务开始日期失败",
"clear": "清除开始日期"
},
@@ -2857,8 +2847,6 @@
"empty": "未找到标签",
"create": "创建 \"{{name}}\"",
"chooseColor": "选择颜色",
- "addSuccess": "标签已添加",
- "removeSuccess": "标签已移除",
"updateError": "更新标签失败",
"createSuccess": "标签已创建并添加",
"createError": "创建标签失败",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "将所有已计划任务移至待办",
"moveAll": "全部移动",
"addTask": "添加任务",
- "filter": "筛选",
- "addFilter": "添加筛选…",
"sections": {
"planned": "已计划",
"archived": "已归档"
},
"noTasksInSection": "无 {{section}} 任务",
"filters": {
- "priority": "优先级:{{name}}",
- "assignee": "负责人:{{name}}",
- "due": "截止:{{date}}",
- "label": "标签:{{name}}",
"dueThisWeek": "本周到期",
"dueNextWeek": "下周到期",
"noDueDate": "无截止日期"
}
},
"sort": {
- "label": "排序",
- "by": "排序方式",
"direction": "方向",
"ascending": "升序",
"descending": "降序",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "筛选条件",
- "allStatuses": "所有状态",
- "allPriorities": "所有优先级",
- "allAssignees": "所有负责人",
- "allDueDates": "所有截止日期",
- "allLabels": "所有标签",
"selectedCount": "已选 {{count}} 个",
"subjects": {
"status": "状态",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "为以下任一",
- "includeAnyOf": "包含以下任一"
+ "includeAnyOf": "包含以下任一",
+ "is": "为",
+ "isNot": "不为",
+ "isNoneOf": "不为以下任一",
+ "include": "包含",
+ "exclude": "不包含"
},
- "all": "全部",
"allCustomFieldValues": "所有值",
"noCustomFieldValues": "没有自定义字段的值",
"noValuesUsedYet": "还没有使用过任何值"
@@ -2959,13 +2937,11 @@
"pageTitle": "{{name}} – 甘特图",
"title": "甘特图时间线",
"jumpToToday": "回到今天",
- "searchPlaceholder": "搜索已排期工单…",
"hideTasks": "隐藏任务",
"showTasks": "显示任务",
"noTasks": "无已排期任务",
"noTasksSubtitle": "为任务添加开始日期、截止日期或两者,以将其放入项目时间线。",
"noTasksFound": "未找到任务",
- "noTasksMatch": "没有匹配 \"{{query}}\" 的已排期任务",
"taskHeader": "任务",
"updateDatesError": "更新任务日期失败",
"resizeStart": "调整开始日期",
@@ -2989,7 +2965,9 @@
"error": "创建任务副本失败"
},
"archive": {
- "success": "已归档 {{count}} 个任务"
+ "success": "已归档 {{count}} 个任务",
+ "confirmTitle_other": "归档 {{count}} 个已完成的任务?",
+ "confirmDescription": "这些任务将离开看板,移至待办中的“已归档”分区。"
},
"listView": {
"addTask": "添加任务",
@@ -3014,17 +2992,13 @@
"dueDate": {
"label": "截止日期",
"clear": "清除日期",
- "updateSuccess": "任务截止日期更新成功",
"updateError": "更新任务截止日期失败",
- "clearSuccess": "任务截止日期已清除",
"clearError": "清除截止日期失败"
},
"labels": {
- "label": "标签",
"empty": "无可用标签"
},
"update": {
- "success": "任务更新成功",
"error": "更新任务失败"
},
"contextMenu": {
@@ -3046,7 +3020,8 @@
"moveToBoardSuccess": "{{count}} 个任务已移至看板",
"moveToBoardError": "将任务移至看板失败",
"delete": "删除任务",
- "deleteConfirm": "删除 {{count}} 个任务?此操作不可撤销。",
+ "deleteConfirmTitle_other": "删除 {{count}} 个任务?",
+ "deleteConfirmDescription": "这将永久删除所选任务及其所有数据,此操作不可撤销。",
"deleteSuccess": "已删除 {{count}} 个任务",
"deleteError": "删除任务失败",
"archive": "归档任务",
@@ -3087,10 +3062,46 @@
"descriptionLoadError": "描述加载失败,请重试载入当前版本。",
"checklistProgress": "已完成 {{completed}}/{{total}} 个清单项",
"customFields": {
- "ariaLabel": "自定义字段"
+ "fields": "字段",
+ "empty": "空",
+ "required": "必填",
+ "enterKey": "Enter",
+ "toSave": "保存",
+ "today": "今天",
+ "clear": "清除",
+ "setValue": "设置{{field}}…",
+ "noMatches": "没有匹配的选项",
+ "missingRequired_other": "有 {{count}} 个必填字段为空",
+ "saveError": "无法保存{{field}}",
+ "moreFields_other": "另外 {{count}} 个字段"
},
"board": {
"reorderFailed": "无法移动任务,请重试。"
+ },
+ "toolbar": {
+ "search": "搜索任务",
+ "clearSearch": "清除搜索",
+ "taskCount_other": "{{count}} 个任务",
+ "shownCount_other": "{{shown}} / {{count}} 个任务"
+ },
+ "display": {
+ "title": "显示",
+ "sortBy": "排序方式",
+ "showOnCards": "在卡片上显示",
+ "showOnRows": "在行中显示",
+ "checklistProgress": "清单进度",
+ "projectBackground": "项目背景",
+ "layout": "布局"
+ },
+ "filterBar": {
+ "label": "已应用的筛选",
+ "removeFilter": "移除“{{name}}”筛选",
+ "noMatches": "没有任务符合你的搜索或筛选条件。"
+ },
+ "filterMenu": {
+ "addFilter": "添加筛选…",
+ "searchSubject": "{{name}}…",
+ "noResults": "无结果"
}
},
"invitations": {
diff --git a/i18n/zh-TW.json b/i18n/zh-TW.json
index 7d61b0f66..218a89be9 100644
--- a/i18n/zh-TW.json
+++ b/i18n/zh-TW.json
@@ -10,8 +10,7 @@
"markAllRead": "全部標為已讀",
"remove": "移除",
"reset": "重設",
- "filter": "篩選",
- "clearAllFilters": "清除所有篩選"
+ "filter": "篩選"
},
"a11y": {
"toggleSidebar": "切換側邊欄"
@@ -153,12 +152,6 @@
},
"statusLoadError": "無法載入專案狀態。"
}
- },
- "boolean": {
- "false": "否",
- "notSet": "未設定",
- "true": "是",
- "undefined": "未定義"
}
},
"auth": {
@@ -1507,12 +1500,10 @@
"createSuccess": "已建立自訂欄位。",
"creating": "建立中...",
"defaultLabel": "預設",
- "defaultValuePlaceholder": "預設值",
"deleteError": "無法刪除自訂欄位。",
"deleteSuccess": "已刪除自訂欄位。",
"deleting": "刪除中...",
"namePlaceholder": "欄位名稱",
- "noOptionsPlaceholder": "無選項",
"required": "必填",
"types": {
"boolean": "核取方塊",
@@ -1522,7 +1513,6 @@
"text": "文字",
"multiselect": "下拉選單(可複選)"
},
- "availableOptions": "可用選項",
"clearDefault": "清除預設值",
"moreOptions": "+{{hiddenCount}} 個",
"reorderError": "無法重新排序欄位",
@@ -1851,7 +1841,11 @@
"expiredDescription": "訂閱後即可繼續建立與編輯。",
"viewPlans": "檢視方案"
},
- "openFailed": "無法開啟此工作區的帳單"
+ "openFailed": "無法開啟此工作區的帳單",
+ "checkoutSuccess": {
+ "title": "感謝訂閱",
+ "description": "已收到付款。確認後,下方的方案會隨即更新。"
+ }
},
"advancedSettings": "進階設定",
"advancedSettingsDescription": "顯示更多控制項,例如整合同步規則。僅套用於此瀏覽器。",
@@ -2426,7 +2420,8 @@
"nextTask": "下一個任務",
"prevTask": "上一個任務",
"openTask": "開啟選取的任務",
- "quickSelectNumber": "依數字選取選項"
+ "quickSelectNumber": "依數字選取選項",
+ "ganttView": "切換到甘特圖檢視"
}
}
},
@@ -2636,7 +2631,6 @@
"high": "高",
"urgent": "緊急"
},
- "boardSearchPlaceholder": "搜尋任務…",
"view": {
"board": "看板",
"list": "清單",
@@ -2769,9 +2763,7 @@
"saving": "儲存中…",
"saveFailed": "無法儲存變更",
"retrySave": "重試"
- },
- "customFieldUpdated": "欄位已更新",
- "selectOption": "選取選項"
+ }
},
"entity": {
"task": "任務"
@@ -2843,12 +2835,10 @@
"updateError": "更新任務優先順序失敗"
},
"dueDate": {
- "updateSuccess": "任務截止日期已更新",
"updateError": "更新任務截止日期失敗",
"clear": "清除日期"
},
"startDate": {
- "updateSuccess": "任務開始日期已更新",
"updateError": "更新任務開始日期失敗",
"clear": "清除開始日期"
},
@@ -2857,8 +2847,6 @@
"empty": "找不到標籤",
"create": "建立「{{name}}」",
"chooseColor": "選擇顏色",
- "addSuccess": "標籤已新增",
- "removeSuccess": "標籤已移除",
"updateError": "更新標籤失敗",
"createSuccess": "標籤已建立並新增",
"createError": "建立標籤失敗",
@@ -2885,26 +2873,18 @@
"moveAllTooltip": "將所有已規劃任務移至待辦",
"moveAll": "全部移動",
"addTask": "新增任務",
- "filter": "篩選",
- "addFilter": "新增篩選…",
"sections": {
"planned": "已規劃",
"archived": "已封存"
},
"noTasksInSection": "沒有{{section}}任務",
"filters": {
- "priority": "優先順序:{{name}}",
- "assignee": "負責人:{{name}}",
- "due": "截止:{{date}}",
- "label": "標籤:{{name}}",
"dueThisWeek": "本週到期",
"dueNextWeek": "下週到期",
"noDueDate": "無截止日期"
}
},
"sort": {
- "label": "排序",
- "by": "排序方式",
"direction": "方向",
"ascending": "遞增",
"descending": "遞減",
@@ -2918,12 +2898,6 @@
}
},
"boardFilters": {
- "filterBy": "篩選條件",
- "allStatuses": "所有狀態",
- "allPriorities": "所有優先順序",
- "allAssignees": "所有負責人",
- "allDueDates": "所有截止日期",
- "allLabels": "所有標籤",
"selectedCount": "已選 {{count}} 個",
"subjects": {
"status": "狀態",
@@ -2934,9 +2908,13 @@
},
"operators": {
"isAnyOf": "為以下任一",
- "includeAnyOf": "包含以下任一"
+ "includeAnyOf": "包含以下任一",
+ "is": "為",
+ "isNot": "不為",
+ "isNoneOf": "不為以下任一",
+ "include": "包含",
+ "exclude": "不包含"
},
- "all": "全部",
"allCustomFieldValues": "所有值",
"noCustomFieldValues": "沒有自訂欄位值",
"noValuesUsedYet": "尚未使用任何值"
@@ -2959,13 +2937,11 @@
"pageTitle": "{{name}} - 甘特圖",
"title": "甘特圖時間軸",
"jumpToToday": "回到今天",
- "searchPlaceholder": "搜尋已排程的任務…",
"hideTasks": "隱藏任務",
"showTasks": "顯示任務",
"noTasks": "沒有已排程的任務",
"noTasksSubtitle": "為任務加上開始日期、截止日期或兩者,任務就會顯示在專案時間軸上。",
"noTasksFound": "找不到任務",
- "noTasksMatch": "沒有符合「{{query}}」的已排程任務",
"taskHeader": "任務",
"updateDatesError": "更新任務日期失敗",
"resizeStart": "調整開始日期",
@@ -2989,7 +2965,9 @@
"error": "複製任務失敗"
},
"archive": {
- "success": "已封存 {{count}} 個任務"
+ "success": "已封存 {{count}} 個任務",
+ "confirmTitle_other": "要封存 {{count}} 個已完成的任務嗎?",
+ "confirmDescription": "這些任務會離開看板,移至待辦的「已封存」區段。"
},
"listView": {
"addTask": "新增任務",
@@ -3014,17 +2992,13 @@
"dueDate": {
"label": "截止日期",
"clear": "清除日期",
- "updateSuccess": "任務截止日期已更新",
"updateError": "更新任務截止日期失敗",
- "clearSuccess": "任務截止日期已清除",
"clearError": "清除截止日期失敗"
},
"labels": {
- "label": "標籤",
"empty": "沒有可用的標籤"
},
"update": {
- "success": "任務已更新",
"error": "更新任務失敗"
},
"contextMenu": {
@@ -3046,7 +3020,8 @@
"moveToBoardSuccess": "已將 {{count}} 個任務移至看板",
"moveToBoardError": "將任務移至看板失敗",
"delete": "刪除任務",
- "deleteConfirm": "要刪除 {{count}} 個任務嗎?此操作無法復原。",
+ "deleteConfirmTitle_other": "要刪除 {{count}} 個任務嗎?",
+ "deleteConfirmDescription": "這會永久移除所選任務及其所有資料,且無法復原。",
"deleteSuccess": "已刪除 {{count}} 個任務",
"deleteError": "刪除任務失敗",
"archive": "封存任務",
@@ -3087,10 +3062,46 @@
"descriptionLoadError": "無法載入描述,請重試以載入最新版本。",
"checklistProgress": "已完成 {{completed}}/{{total}} 個檢查項目",
"customFields": {
- "ariaLabel": "自訂欄位"
+ "fields": "欄位",
+ "empty": "空白",
+ "required": "必填",
+ "enterKey": "Enter",
+ "toSave": "儲存",
+ "today": "今天",
+ "clear": "清除",
+ "setValue": "設定{{field}}…",
+ "noMatches": "沒有符合的選項",
+ "missingRequired_other": "有 {{count}} 個必填欄位是空的",
+ "saveError": "無法儲存{{field}}",
+ "moreFields_other": "另外 {{count}} 個欄位"
},
"board": {
"reorderFailed": "無法移動任務,請再試一次。"
+ },
+ "toolbar": {
+ "search": "搜尋任務",
+ "clearSearch": "清除搜尋",
+ "taskCount_other": "{{count}} 個任務",
+ "shownCount_other": "{{shown}} / {{count}} 個任務"
+ },
+ "display": {
+ "title": "顯示",
+ "sortBy": "排序方式",
+ "showOnCards": "在卡片上顯示",
+ "showOnRows": "在列中顯示",
+ "checklistProgress": "檢查清單進度",
+ "projectBackground": "專案背景",
+ "layout": "版面配置"
+ },
+ "filterBar": {
+ "label": "已套用的篩選",
+ "removeFilter": "移除「{{name}}」篩選",
+ "noMatches": "沒有符合搜尋或篩選條件的任務。"
+ },
+ "filterMenu": {
+ "addFilter": "新增篩選…",
+ "searchSubject": "{{name}}…",
+ "noResults": "沒有結果"
}
},
"invitations": {