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): indent subtasks in the project list view

Juan19afba787f06
diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsx
index 9246252a5..e78825f48 100644
--- a/apps/web/src/components/list-view/index.tsx
+++ b/apps/web/src/components/list-view/index.tsx
@@ -22,13 +22,15 @@ 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 { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { priorityColorsTaskCard } from "@/constants/priority-colors";
import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";
+import useGetProjectTaskRelations from "@/hooks/queries/task-relation/use-get-project-task-relations";
import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";
import { cn } from "@/lib/cn";
import { getColumnIcon } from "@/lib/column";
+import { buildSubtaskChildren, flattenSubtaskRows } from "@/lib/subtask-tree";
import { toast } from "@/lib/toast";
import useBulkSelectionStore from "@/store/bulk-selection";
import useProjectStore from "@/store/project";
@@ -75,6 +77,55 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {
ProjectWithTasks["columns"][number] | null
>(null);
+ const { data: relations } = useGetProjectTaskRelations(project?.id ?? "");
+
+ const subtaskChildren = useMemo(
+ () => buildSubtaskChildren(relations ?? []),
+ [relations],
+ );
+
+ const tasksById = useMemo(() => {
+ const index = new Map<
+ string,
+ ProjectWithTasks["columns"][number]["tasks"][number]
+ >();
+ for (const column of project?.columns ?? []) {
+ for (const task of column.tasks) {
+ index.set(task.id, task);
+ }
+ }
+ return index;
+ }, [project?.columns]);
+
+ // Per viewer and per project, and only a convenience: a row that cannot be
+ // restored simply starts collapsed.
+ const expandedStorageKey = `kaneo:list-view:expanded-subtasks:${project?.id ?? ""}`;
+ const [expandedTasks, setExpandedTasks] = useState<Record<string, boolean>>(
+ () => {
+ try {
+ const stored = localStorage.getItem(expandedStorageKey);
+ return stored ? (JSON.parse(stored) as Record<string, boolean>) : {};
+ } catch {
+ return {};
+ }
+ },
+ );
+
+ useEffect(() => {
+ try {
+ localStorage.setItem(expandedStorageKey, JSON.stringify(expandedTasks));
+ } catch {
+ // A private window or blocked site data only costs the restore.
+ }
+ }, [expandedStorageKey, expandedTasks]);
+
+ const toggleTaskExpanded = useCallback((rowId: string) => {
+ setExpandedTasks((previous) => ({
+ ...previous,
+ [rowId]: !previous[rowId],
+ }));
+ }, []);
+
useEffect(() => {
if (project?.columns) {
const visibleTaskIds = project.columns
@@ -294,6 +345,17 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {
const showDropIndicator = activeId && overColumnId === column.id;
+ // A dragged parent collapses for the duration: moving a row while its
+ // children are rendered beneath it has no single correct outcome, and
+ // hiding them keeps the drag to the one row the user grabbed.
+ const rows = flattenSubtaskRows({
+ tasks: column.tasks,
+ children: subtaskChildren,
+ tasksById,
+ isExpanded: (rowId) =>
+ Boolean(expandedTasks[rowId]) && activeId !== rowId,
+ });
+
return (
<div
className={cn(
@@ -355,20 +417,30 @@ function ListView({ project, disableDragDrop = false }: ListViewProps) {
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"
>
+ {/* Only the top-level rows are sortable; the nested repeats share
+ their task id with one of them. */}
<SortableContext
items={column.tasks}
strategy={verticalListSortingStrategy}
>
<AnimatePresence initial={false} mode="popLayout">
- {column.tasks.map((task) => (
+ {rows.map((row) => (
<motion.div
- key={task.id}
+ key={row.rowId}
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 ?? ""} />
+ <TaskRow
+ task={row.task}
+ projectSlug={project?.slug ?? ""}
+ depth={row.depth}
+ rowId={row.rowId}
+ childCount={row.childCount}
+ isExpanded={Boolean(expandedTasks[row.rowId])}
+ onToggleExpanded={() => toggleTaskExpanded(row.rowId)}
+ />
</motion.div>
))}
</AnimatePresence>
diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsx
index a6a04f3cc..37cb80069 100644
--- a/apps/web/src/components/list-view/task-row.tsx
+++ b/apps/web/src/components/list-view/task-row.tsx
@@ -6,6 +6,7 @@ import {
Calendar,
CalendarClock,
CalendarX,
+ ChevronRight,
GitMerge,
GitPullRequest,
} from "lucide-react";
@@ -50,11 +51,34 @@ import { ContextMenu, ContextMenuTrigger } from "../ui/context-menu";
type TaskRowProps = {
task: Task;
projectSlug: string;
+ /** Nesting level; 0 for a task shown in its own status group. */
+ depth?: number;
+ /**
+ * Identifies the row rather than the task. A subtask keeps its own top-level
+ * row and is repeated under each parent, so the task id is not unique here
+ * and cannot be used as a drag identity.
+ */
+ rowId?: string;
+ childCount?: number;
+ isExpanded?: boolean;
+ onToggleExpanded?: () => void;
};
-function TaskRow({ task, projectSlug }: TaskRowProps) {
+function TaskRow({
+ task,
+ projectSlug,
+ depth = 0,
+ rowId,
+ childCount = 0,
+ isExpanded = false,
+ onToggleExpanded,
+}: TaskRowProps) {
const { t } = useTranslation();
const navigate = useNavigate();
+ // Only the top-level row is a drag source. A nested repeat shares its task
+ // id with that row, so making it sortable would register the same id twice
+ // and move the wrong row.
+ const isNestedRepeat = depth > 0;
const {
attributes,
listeners,
@@ -62,7 +86,7 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
transform,
transition,
isDragging,
- } = useSortable({ id: task.id });
+ } = useSortable({ id: rowId ?? task.id, disabled: isNestedRepeat });
const { project } = useProjectStore();
const taskIsCompleted = isTaskCompleted(task.status, project?.columns);
@@ -197,6 +221,44 @@ function TaskRow({ task, projectSlug }: TaskRowProps) {
{...attributes}
{...listeners}
>
+ {depth > 0 && (
+ <div
+ aria-hidden="true"
+ className="flex-shrink-0"
+ // Indentation is capped so a deep chain cannot push the title
+ // off the row; the chevrons still convey the nesting.
+ style={{ width: `${Math.min(depth, 6) * 1.25}rem` }}
+ />
+ )}
+
+ {childCount > 0 ? (
+ <button
+ type="button"
+ onClick={(e) => {
+ e.stopPropagation();
+ onToggleExpanded?.();
+ }}
+ aria-expanded={isExpanded}
+ aria-label={
+ isExpanded
+ ? t("tasks:listView.collapseSubtasks")
+ : t("tasks:listView.expandSubtasks")
+ }
+ className="flex-shrink-0 -my-1 -mx-1 p-1 rounded text-muted-foreground hover:text-foreground hover:bg-accent transition-colors"
+ >
+ <ChevronRight
+ className={cn(
+ "w-3 h-3 transition-transform",
+ isExpanded && "rotate-90",
+ )}
+ />
+ </button>
+ ) : (
+ depth > 0 && (
+ <div aria-hidden="true" className="w-3 flex-shrink-0" />
+ )
+ )}
+
{showPriority && (
<div className="flex-shrink-0 first:[&_svg]:h-4 first:[&_svg]:w-4">
{getPriorityIcon(task.priority ?? "")}
diff --git a/apps/web/src/fetchers/task-relation/get-project-task-relations.ts b/apps/web/src/fetchers/task-relation/get-project-task-relations.ts
new file mode 100644
index 000000000..c54700b2e
--- /dev/null
+++ b/apps/web/src/fetchers/task-relation/get-project-task-relations.ts
@@ -0,0 +1,16 @@
+import { client } from "@kaneo/libs";
+
+async function getProjectTaskRelations(projectId: string) {
+ const response = await client["task-relation"].project[":projectId"].$get({
+ param: { projectId },
+ });
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ return response.json();
+}
+
+export default getProjectTaskRelations;
diff --git a/apps/web/src/hooks/mutations/task-relation/use-create-task-relation.ts b/apps/web/src/hooks/mutations/task-relation/use-create-task-relation.ts
index 703a2fd91..11abb5989 100644
--- a/apps/web/src/hooks/mutations/task-relation/use-create-task-relation.ts
+++ b/apps/web/src/hooks/mutations/task-relation/use-create-task-relation.ts
@@ -13,6 +13,11 @@ function useCreateTaskRelation() {
queryClient.invalidateQueries({
queryKey: ["task-relations", variables.targetTaskId],
});
+ // The list view reads relations per project rather than per task, and
+ // the mutation does not carry the project the tasks belong to.
+ queryClient.invalidateQueries({
+ queryKey: ["task-relations", "project"],
+ });
},
});
}
diff --git a/apps/web/src/hooks/mutations/task-relation/use-delete-task-relation.ts b/apps/web/src/hooks/mutations/task-relation/use-delete-task-relation.ts
index 8f59ac4f8..444ae0358 100644
--- a/apps/web/src/hooks/mutations/task-relation/use-delete-task-relation.ts
+++ b/apps/web/src/hooks/mutations/task-relation/use-delete-task-relation.ts
@@ -10,6 +10,11 @@ function useDeleteTaskRelation(taskId: string) {
queryClient.invalidateQueries({
queryKey: ["task-relations", taskId],
});
+ // The other end of the relation and the project-scoped list the list
+ // view reads are both stale now, and neither is keyed by this task.
+ queryClient.invalidateQueries({
+ queryKey: ["task-relations", "project"],
+ });
},
});
}
diff --git a/apps/web/src/hooks/queries/task-relation/use-get-project-task-relations.ts b/apps/web/src/hooks/queries/task-relation/use-get-project-task-relations.ts
new file mode 100644
index 000000000..035b85789
--- /dev/null
+++ b/apps/web/src/hooks/queries/task-relation/use-get-project-task-relations.ts
@@ -0,0 +1,12 @@
+import { useQuery } from "@tanstack/react-query";
+import getProjectTaskRelations from "@/fetchers/task-relation/get-project-task-relations";
+
+function useGetProjectTaskRelations(projectId: string) {
+ return useQuery({
+ queryKey: ["task-relations", "project", projectId],
+ queryFn: () => getProjectTaskRelations(projectId),
+ enabled: !!projectId,
+ });
+}
+
+export default useGetProjectTaskRelations;
diff --git a/apps/web/src/lib/subtask-tree.test.ts b/apps/web/src/lib/subtask-tree.test.ts
new file mode 100644
index 000000000..a98ac057e
--- /dev/null
+++ b/apps/web/src/lib/subtask-tree.test.ts
@@ -0,0 +1,176 @@
+import { describe, expect, it } from "vitest";
+import {
+ buildSubtaskChildren,
+ flattenSubtaskRows,
+ type TaskRelationEdge,
+} from "./subtask-tree";
+
+type T = { id: string };
+
+const task = (id: string): T => ({ id });
+
+const subtask = (source: string, target: string): TaskRelationEdge => ({
+ sourceTaskId: source,
+ targetTaskId: target,
+ relationType: "subtask",
+});
+
+function flatten(
+ tasks: T[],
+ relations: TaskRelationEdge[],
+ {
+ all = tasks,
+ expanded = true,
+ }: { all?: T[]; expanded?: boolean | ((rowId: string) => boolean) } = {},
+) {
+ return flattenSubtaskRows({
+ tasks,
+ children: buildSubtaskChildren(relations),
+ tasksById: new Map(all.map((entry) => [entry.id, entry])),
+ isExpanded: typeof expanded === "function" ? expanded : () => expanded,
+ });
+}
+
+describe("buildSubtaskChildren", () => {
+ it("keeps only subtask edges", () => {
+ const children = buildSubtaskChildren([
+ subtask("a", "b"),
+ { sourceTaskId: "a", targetTaskId: "c", relationType: "blocks" },
+ { sourceTaskId: "a", targetTaskId: "d", relationType: "related" },
+ ]);
+
+ expect(children.get("a")).toEqual(["b"]);
+ });
+
+ it("ignores a self-referencing edge", () => {
+ expect(buildSubtaskChildren([subtask("a", "a")]).size).toBe(0);
+ });
+
+ it("does not repeat a duplicated edge", () => {
+ const children = buildSubtaskChildren([
+ subtask("a", "b"),
+ subtask("a", "b"),
+ ]);
+
+ expect(children.get("a")).toEqual(["b"]);
+ });
+});
+
+describe("flattenSubtaskRows", () => {
+ it("leaves a flat column untouched", () => {
+ const rows = flatten([task("a"), task("b")], []);
+
+ expect(rows.map((row) => [row.rowId, row.depth, row.childCount])).toEqual([
+ ["a", 0, 0],
+ ["b", 0, 0],
+ ]);
+ });
+
+ it("repeats a child under its parent without moving it", () => {
+ const tasks = [task("parent"), task("child")];
+ const rows = flatten(tasks, [subtask("parent", "child")]);
+
+ // The child keeps its own top-level row and appears again, indented.
+ expect(rows.map((row) => [row.rowId, row.depth])).toEqual([
+ ["parent", 0],
+ ["parent/child", 1],
+ ["child", 0],
+ ]);
+ });
+
+ it("reports a child count but no nested row while collapsed", () => {
+ const rows = flatten(
+ [task("parent"), task("child")],
+ [subtask("parent", "child")],
+ {
+ expanded: false,
+ },
+ );
+
+ expect(rows.map((row) => row.rowId)).toEqual(["parent", "child"]);
+ expect(rows[0].childCount).toBe(1);
+ });
+
+ it("nests to arbitrary depth", () => {
+ const tasks = [task("a"), task("b"), task("c")];
+ const rows = flatten(tasks, [subtask("a", "b"), subtask("b", "c")]);
+
+ expect(rows.filter((row) => row.depth > 0).map((row) => row.rowId)).toEqual(
+ ["a/b", "a/b/c", "b/c"],
+ );
+ });
+
+ it("terminates on a cycle instead of recursing forever", () => {
+ const tasks = [task("a"), task("b")];
+ const rows = flatten(tasks, [subtask("a", "b"), subtask("b", "a")]);
+
+ // Without the ancestor check this never returns and takes the tab with it.
+ expect(rows.map((row) => row.rowId)).toEqual(["a", "a/b", "b", "b/a"]);
+ });
+
+ it("terminates on a longer cycle", () => {
+ const tasks = [task("a"), task("b"), task("c")];
+ const rows = flatten(tasks, [
+ subtask("a", "b"),
+ subtask("b", "c"),
+ subtask("c", "a"),
+ ]);
+
+ expect(rows.every((row) => row.rowId.split("/").length <= 3)).toBe(true);
+ expect(rows.map((row) => row.rowId)).toContain("a/b/c");
+ });
+
+ it("renders a task under each of its parents", () => {
+ const tasks = [task("p1"), task("p2"), task("shared")];
+ const rows = flatten(tasks, [
+ subtask("p1", "shared"),
+ subtask("p2", "shared"),
+ ]);
+
+ expect(rows.map((row) => row.rowId)).toEqual([
+ "p1",
+ "p1/shared",
+ "p2",
+ "p2/shared",
+ "shared",
+ ]);
+ });
+
+ it("gives every row a unique id so rows can be keyed and dragged", () => {
+ const tasks = [task("p1"), task("p2"), task("shared")];
+ const rows = flatten(tasks, [
+ subtask("p1", "shared"),
+ subtask("p2", "shared"),
+ ]);
+ const ids = rows.map((row) => row.rowId);
+
+ expect(new Set(ids).size).toBe(ids.length);
+ });
+
+ it("ignores a child the view is not rendering", () => {
+ // A subtask in another project is not returned by the endpoint, so a
+ // chevron would open onto nothing.
+ const rows = flatten([task("parent")], [subtask("parent", "elsewhere")], {
+ all: [task("parent")],
+ });
+
+ expect(rows).toHaveLength(1);
+ expect(rows[0].childCount).toBe(0);
+ });
+
+ it("expands only the row that is open", () => {
+ const tasks = [task("p1"), task("p2"), task("shared")];
+ const rows = flatten(
+ tasks,
+ [subtask("p1", "shared"), subtask("p2", "shared")],
+ { expanded: (rowId) => rowId === "p1" },
+ );
+
+ expect(rows.map((row) => row.rowId)).toEqual([
+ "p1",
+ "p1/shared",
+ "p2",
+ "shared",
+ ]);
+ });
+});
diff --git a/apps/web/src/lib/subtask-tree.ts b/apps/web/src/lib/subtask-tree.ts
new file mode 100644
index 000000000..21a67b6de
--- /dev/null
+++ b/apps/web/src/lib/subtask-tree.ts
@@ -0,0 +1,104 @@
+export type TaskRelationEdge = {
+ sourceTaskId: string;
+ targetTaskId: string;
+ relationType: string;
+};
+
+export type SubtaskRow<T> = {
+ task: T;
+ /** Nesting level; 0 for a task in its own status group. */
+ depth: number;
+ /**
+ * Unique per rendered row rather than per task. A child keeps its own
+ * top-level row and is repeated under each parent, so `task.id` appears more
+ * than once and cannot key a row or identify a drag target.
+ */
+ rowId: string;
+ childCount: number;
+};
+
+/**
+ * Maps each parent to its children, in the order the relations were returned.
+ *
+ * Hierarchy is a graph edge rather than a column on the task, so a task may
+ * have several parents and the edges may form a cycle. Neither the schema nor
+ * the create endpoint prevents it, so consumers must not assume a tree.
+ */
+export function buildSubtaskChildren(
+ relations: readonly TaskRelationEdge[],
+): Map<string, string[]> {
+ const children = new Map<string, string[]>();
+
+ for (const relation of relations) {
+ if (relation.relationType !== "subtask") continue;
+ if (relation.sourceTaskId === relation.targetTaskId) continue;
+
+ const existing = children.get(relation.sourceTaskId);
+ if (existing) {
+ if (!existing.includes(relation.targetTaskId)) {
+ existing.push(relation.targetTaskId);
+ }
+ } else {
+ children.set(relation.sourceTaskId, [relation.targetTaskId]);
+ }
+ }
+
+ return children;
+}
+
+/**
+ * Expands a column's tasks into rows, repeating each subtask beneath its
+ * parent when that parent is expanded.
+ *
+ * A child is not moved out of its own status group: it keeps its top-level row
+ * and also appears, indented, under the parent. That leaves grouping, the
+ * per-column counts and the existing drag targets untouched.
+ */
+export function flattenSubtaskRows<T extends { id: string }>({
+ tasks,
+ children,
+ tasksById,
+ isExpanded,
+}: {
+ tasks: readonly T[];
+ children: Map<string, string[]>;
+ tasksById: Map<string, T>;
+ isExpanded: (rowId: string) => boolean;
+}): SubtaskRow<T>[] {
+ const rows: SubtaskRow<T>[] = [];
+
+ const walk = (
+ task: T,
+ depth: number,
+ ancestors: Set<string>,
+ path: string,
+ ) => {
+ const rowId = path ? `${path}/${task.id}` : task.id;
+
+ // Only children the view can actually render count; a subtask in another
+ // project is not returned by the endpoint and must not show a chevron.
+ const childTasks: T[] = [];
+ for (const childId of children.get(task.id) ?? []) {
+ const child = tasksById.get(childId);
+ if (child && !ancestors.has(childId) && childId !== task.id) {
+ childTasks.push(child);
+ }
+ }
+
+ rows.push({ task, depth, rowId, childCount: childTasks.length });
+
+ if (childTasks.length === 0 || !isExpanded(rowId)) return;
+
+ const nextAncestors = new Set(ancestors);
+ nextAncestors.add(task.id);
+ for (const child of childTasks) {
+ walk(child, depth + 1, nextAncestors, rowId);
+ }
+ };
+
+ for (const task of tasks) {
+ walk(task, 0, new Set(), "");
+ }
+
+ return rows;
+}
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 954c28c48..af3b8b72b 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -1979,7 +1979,9 @@
"listView": {
"addTask": "Tapşırıq əlavə et",
"archiveAllTooltip": "Bütün tamamlanmış tapşırıqları arxivlə",
- "noTasks": "Tapşırıq yoxdur"
+ "noTasks": "Tapşırıq yoxdur",
+ "collapseSubtasks": "Alt tapşırıqları gizlət",
+ "expandSubtasks": "Alt tapşırıqları göstər"
},
"kanban": {
"addTask": "Tapşırıq əlavə et"
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index 6322afafe..c7e89ee93 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -1966,7 +1966,9 @@
"listView": {
"addTask": "Aufgabe hinzufügen",
"archiveAllTooltip": "Alle abgeschlossenen Aufgaben archivieren",
- "noTasks": "Keine Aufgaben"
+ "noTasks": "Keine Aufgaben",
+ "collapseSubtasks": "Teilaufgaben ausblenden",
+ "expandSubtasks": "Teilaufgaben anzeigen"
},
"kanban": {
"addTask": "Aufgabe hinzufügen"
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index 12a6d5c2f..36d513be1 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -1966,7 +1966,9 @@
"listView": {
"addTask": "Προσθήκη εργασίας",
"archiveAllTooltip": "Αρχειοθέτηση όλων των ολοκληρωμένων εργασιών",
- "noTasks": "Δεν υπάρχουν εργασίες"
+ "noTasks": "Δεν υπάρχουν εργασίες",
+ "collapseSubtasks": "Απόκρυψη υποεργασιών",
+ "expandSubtasks": "Εμφάνιση υποεργασιών"
},
"kanban": {
"addTask": "Προσθήκη εργασίας"
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 0f7545e58..1f0092892 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -1979,7 +1979,9 @@
"listView": {
"addTask": "Add task",
"archiveAllTooltip": "Archive all completed tasks",
- "noTasks": "No tasks"
+ "noTasks": "No tasks",
+ "expandSubtasks": "Show subtasks",
+ "collapseSubtasks": "Hide subtasks"
},
"kanban": {
"addTask": "Add task"
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index 285042f93..e6d6a5553 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -1960,7 +1960,9 @@
"listView": {
"addTask": "Añadir tarea",
"archiveAllTooltip": "Archivar todas las tareas completadas",
- "noTasks": "No hay tareas"
+ "noTasks": "No hay tareas",
+ "collapseSubtasks": "Ocultar sub-tareas",
+ "expandSubtasks": "Mostrar sub-tareas"
},
"kanban": {
"addTask": "Añadir tarea"
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 1b323a883..06790a5a1 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -1971,7 +1971,9 @@
"listView": {
"addTask": "Ajouter une tâche",
"archiveAllTooltip": "Archiver toutes les tâches terminées",
- "noTasks": "Aucune tâche"
+ "noTasks": "Aucune tâche",
+ "collapseSubtasks": "Masquer les sous-tâches",
+ "expandSubtasks": "Afficher les sous-tâches"
},
"kanban": {
"addTask": "Ajouter une tâche"
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index 5dc6ef274..dc63ba85d 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -1966,7 +1966,9 @@
"listView": {
"addTask": "कार्य जोड़ें",
"archiveAllTooltip": "सभी पूर्ण कार्य संग्रहित करें",
- "noTasks": "कोई कार्य नहीं"
+ "noTasks": "कोई कार्य नहीं",
+ "collapseSubtasks": "उप-कार्य छिपाएँ",
+ "expandSubtasks": "उप-कार्य दिखाएँ"
},
"kanban": {
"addTask": "कार्य जोड़ें"
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index 5fbd11418..1654bcf10 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -1961,7 +1961,9 @@
"listView": {
"addTask": "Tambah tugas",
"archiveAllTooltip": "Arsipkan semua tugas yang selesai",
- "noTasks": "Tidak ada tugas"
+ "noTasks": "Tidak ada tugas",
+ "collapseSubtasks": "Sembunyikan subtugas",
+ "expandSubtasks": "Tampilkan subtugas"
},
"kanban": {
"addTask": "Tambah tugas"
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index 8701ae041..7a4df1560 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -1971,7 +1971,9 @@
"listView": {
"addTask": "Aggiungi attività",
"archiveAllTooltip": "Archivia tutte le attività completate",
- "noTasks": "Nessuna attività"
+ "noTasks": "Nessuna attività",
+ "collapseSubtasks": "Nascondi sotto-attività",
+ "expandSubtasks": "Mostra sotto-attività"
},
"kanban": {
"addTask": "Aggiungi attività"
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index 4b6baa09d..054e755b0 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -1974,7 +1974,9 @@
"listView": {
"addTask": "タスクを追加",
"archiveAllTooltip": "完了したタスクをすべてアーカイブ",
- "noTasks": "タスクはありません"
+ "noTasks": "タスクはありません",
+ "collapseSubtasks": "サブタスクを非表示",
+ "expandSubtasks": "サブタスクを表示"
},
"kanban": {
"addTask": "タスクを追加"
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index 63c76b82a..9993b2202 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -1974,7 +1974,9 @@
"listView": {
"addTask": "작업 추가",
"archiveAllTooltip": "완료된 모든 작업 보관",
- "noTasks": "작업 없음"
+ "noTasks": "작업 없음",
+ "collapseSubtasks": "하위 작업 숨기기",
+ "expandSubtasks": "하위 작업 표시"
},
"kanban": {
"addTask": "작업 추가"
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index 303b29527..a93d562c5 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -1966,7 +1966,9 @@
"listView": {
"addTask": "Додади задача",
"archiveAllTooltip": "Архивирај ги сите завршени задачи",
- "noTasks": "Нема задачи"
+ "noTasks": "Нема задачи",
+ "collapseSubtasks": "Сокриј подзадачи",
+ "expandSubtasks": "Прикажи подзадачи"
},
"kanban": {
"addTask": "Додади задача"
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index 9f176638b..41d0e4601 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -1955,7 +1955,9 @@
"listView": {
"addTask": "Taak toevoegen",
"archiveAllTooltip": "Alle voltooide taken archiveren",
- "noTasks": "Geen taken"
+ "noTasks": "Geen taken",
+ "collapseSubtasks": "Subtaken verbergen",
+ "expandSubtasks": "Subtaken tonen"
},
"kanban": {
"addTask": "Taak toevoegen"
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index 9cd3533c3..6a2425f8b 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -2111,7 +2111,9 @@
"listView": {
"addTask": "Dodaj zadanie",
"archiveAllTooltip": "Archiwizuj wszystkie ukończone zadania",
- "noTasks": "Brak zadań"
+ "noTasks": "Brak zadań",
+ "collapseSubtasks": "Ukryj podzadania",
+ "expandSubtasks": "Pokaż podzadania"
},
"move": {
"action": "Przenieś zadanie",
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 6baab1d8b..03c02c8bf 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -1971,7 +1971,9 @@
"listView": {
"addTask": "Adicionar tarefa",
"archiveAllTooltip": "Arquivar todas as tarefas concluídas",
- "noTasks": "Nenhuma tarefa"
+ "noTasks": "Nenhuma tarefa",
+ "collapseSubtasks": "Ocultar subtarefas",
+ "expandSubtasks": "Mostrar subtarefas"
},
"kanban": {
"addTask": "Adicionar tarefa"
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index b27cfa609..387877c9c 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -1996,7 +1996,9 @@
"listView": {
"addTask": "Добавить задачу",
"archiveAllTooltip": "Архивировать все завершённые задачи",
- "noTasks": "Нет задач"
+ "noTasks": "Нет задач",
+ "collapseSubtasks": "Скрыть подзадачи",
+ "expandSubtasks": "Показать подзадачи"
},
"kanban": {
"addTask": "Добавить задачу"
diff --git a/i18n/schema.json b/i18n/schema.json
index b1fa38f49..09780b6f6 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -8039,9 +8039,21 @@
},
"noTasks": {
"type": "string"
+ },
+ "expandSubtasks": {
+ "type": "string"
+ },
+ "collapseSubtasks": {
+ "type": "string"
}
},
- "required": ["addTask", "archiveAllTooltip", "noTasks"]
+ "required": [
+ "addTask",
+ "archiveAllTooltip",
+ "noTasks",
+ "expandSubtasks",
+ "collapseSubtasks"
+ ]
},
"kanban": {
"type": "object",
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index ed1033c7c..ed59fb53e 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -1966,7 +1966,9 @@
"listView": {
"addTask": "Talep ekle",
"archiveAllTooltip": "Tüm tamamlanmış talepleri arşivle",
- "noTasks": "Talep yok"
+ "noTasks": "Talep yok",
+ "collapseSubtasks": "Alt talepleri gizle",
+ "expandSubtasks": "Alt talepleri göster"
},
"kanban": {
"addTask": "Talep ekle"
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 9eabd2326..2cc7461af 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -1976,7 +1976,9 @@
"listView": {
"addTask": "Додати завдання",
"archiveAllTooltip": "Архівувати всі завершені завдання",
- "noTasks": "Немає завдань"
+ "noTasks": "Немає завдань",
+ "collapseSubtasks": "Приховати підзавдання",
+ "expandSubtasks": "Показати підзавдання"
},
"kanban": {
"addTask": "Додати завдання"
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 4f7c8bac9..971536c3f 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -1961,7 +1961,9 @@
"listView": {
"addTask": "Thêm công việc",
"archiveAllTooltip": "Lưu trữ tất cả công việc đã hoàn thành",
- "noTasks": "Không có công việc"
+ "noTasks": "Không có công việc",
+ "collapseSubtasks": "Ẩn công việc con",
+ "expandSubtasks": "Hiện công việc con"
},
"kanban": {
"addTask": "Thêm công việc"
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index 11ac88111..46f3f2922 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -1974,7 +1974,9 @@
"listView": {
"addTask": "添加任务",
"archiveAllTooltip": "归档所有已完成任务",
- "noTasks": "无任务"
+ "noTasks": "无任务",
+ "collapseSubtasks": "隐藏子任务",
+ "expandSubtasks": "显示子任务"
},
"kanban": {
"addTask": "添加任务"