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.

fix(web): announce subtask depth, bound wide parents, narrow events

Juane33ddadd09df
diff --git a/apps/web/src/components/list-view/task-row.test.tsx b/apps/web/src/components/list-view/task-row.test.tsx
index 991bae5fd..f4466cdcb 100644
--- a/apps/web/src/components/list-view/task-row.test.tsx
+++ b/apps/web/src/components/list-view/task-row.test.tsx
@@ -173,6 +173,24 @@ describe("TaskRow", () => {
expect(draggable?.className).toContain("pl-4");
});
+ it("announces the nesting level, which the indent cannot", () => {
+ render(
+ <TaskRow task={task} projectSlug="kan" rowId="a/b/task-1" depth={2} />,
+ );
+
+ // A nested repeat and its top-level row otherwise expose identical
+ // content, so the hierarchy would be inaudible.
+ expect(screen.getByText("tasks:listView.subtaskLevel")).toBeInTheDocument();
+ });
+
+ it("adds no level announcement to a top-level row", () => {
+ render(<TaskRow task={task} projectSlug="kan" />);
+
+ expect(
+ screen.queryByText("tasks:listView.subtaskLevel"),
+ ).not.toBeInTheDocument();
+ });
+
it("labels the toggle by its resulting state", () => {
render(
<TaskRow
diff --git a/apps/web/src/components/list-view/task-row.tsx b/apps/web/src/components/list-view/task-row.tsx
index 56b0a2007..7d11c6762 100644
--- a/apps/web/src/components/list-view/task-row.tsx
+++ b/apps/web/src/components/list-view/task-row.tsx
@@ -274,6 +274,16 @@ function TaskRow({
{...attributes}
{...listeners}
>
+ {depth > 0 && (
+ // The indent is decorative, so nesting is otherwise inaudible:
+ // a repeat and its top-level row expose identical content. This
+ // joins the row's accessible name, which the drag activator
+ // builds from its text.
+ <span className="sr-only">
+ {t("tasks:listView.subtaskLevel", { level: depth })}
+ </span>
+ )}
+
{showPriority && (
<div className="flex-shrink-0 first:[&_svg]:h-4 first:[&_svg]:w-4">
{getPriorityIcon(task.priority ?? "")}
diff --git a/apps/web/src/hooks/use-project-websocket.test.ts b/apps/web/src/hooks/use-project-websocket.test.ts
deleted file mode 100644
index 3f9c677c8..000000000
--- a/apps/web/src/hooks/use-project-websocket.test.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
-
-vi.mock("@kaneo/libs", () => ({
- windowId: "test-window-id",
-}));
-
-import { getWsUrl } from "./use-project-websocket";
-
-describe("getWsUrl", () => {
- beforeEach(() => {
- vi.stubEnv("VITE_API_URL", "http://localhost:1337");
- });
-
- afterEach(() => {
- vi.unstubAllEnvs();
- });
-
- it("builds a ws:// URL from an http API base", () => {
- expect(getWsUrl("project-123")).toBe(
- "ws://localhost:1337/api/ws/project-123?windowId=test-window-id",
- );
- });
-
- it("builds a wss:// URL from an https API base", () => {
- vi.stubEnv("VITE_API_URL", "https://example.com");
- expect(getWsUrl("project-123")).toBe(
- "wss://example.com/api/ws/project-123?windowId=test-window-id",
- );
- });
-
- it("does not append /api when the base already ends with /api", () => {
- vi.stubEnv("VITE_API_URL", "https://example.com/api");
- expect(getWsUrl("p1")).toBe(
- "wss://example.com/api/ws/p1?windowId=test-window-id",
- );
- });
-
- it("trims trailing slashes from the API base", () => {
- vi.stubEnv("VITE_API_URL", "http://localhost:1337///");
- expect(getWsUrl("p1")).toBe(
- "ws://localhost:1337/api/ws/p1?windowId=test-window-id",
- );
- });
-
- it("URL-encodes the projectId", () => {
- expect(getWsUrl("a b/c?d")).toBe(
- "ws://localhost:1337/api/ws/a%20b%2Fc%3Fd?windowId=test-window-id",
- );
- });
-});
diff --git a/apps/web/src/hooks/use-project-websocket.test.tsx b/apps/web/src/hooks/use-project-websocket.test.tsx
new file mode 100644
index 000000000..d11e574b4
--- /dev/null
+++ b/apps/web/src/hooks/use-project-websocket.test.tsx
@@ -0,0 +1,169 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+vi.mock("@kaneo/libs", () => ({
+ windowId: "test-window-id",
+}));
+
+vi.mock("@/lib/auth-client", () => ({
+ authClient: {
+ useSession: () => ({ data: { user: { id: "user-1" } } }),
+ },
+}));
+
+import {
+ QueryClient,
+ QueryClientProvider,
+ useQueryClient,
+} from "@tanstack/react-query";
+import { renderHook } from "@testing-library/react";
+import { createElement, type ReactNode } from "react";
+import { getWsUrl, useProjectWebSocket } from "./use-project-websocket";
+
+describe("getWsUrl", () => {
+ beforeEach(() => {
+ vi.stubEnv("VITE_API_URL", "http://localhost:1337");
+ });
+
+ afterEach(() => {
+ vi.unstubAllEnvs();
+ });
+
+ it("builds a ws:// URL from an http API base", () => {
+ expect(getWsUrl("project-123")).toBe(
+ "ws://localhost:1337/api/ws/project-123?windowId=test-window-id",
+ );
+ });
+
+ it("builds a wss:// URL from an https API base", () => {
+ vi.stubEnv("VITE_API_URL", "https://example.com");
+ expect(getWsUrl("project-123")).toBe(
+ "wss://example.com/api/ws/project-123?windowId=test-window-id",
+ );
+ });
+
+ it("does not append /api when the base already ends with /api", () => {
+ vi.stubEnv("VITE_API_URL", "https://example.com/api");
+ expect(getWsUrl("p1")).toBe(
+ "wss://example.com/api/ws/p1?windowId=test-window-id",
+ );
+ });
+
+ it("trims trailing slashes from the API base", () => {
+ vi.stubEnv("VITE_API_URL", "http://localhost:1337///");
+ expect(getWsUrl("p1")).toBe(
+ "ws://localhost:1337/api/ws/p1?windowId=test-window-id",
+ );
+ });
+
+ it("URL-encodes the projectId", () => {
+ expect(getWsUrl("a b/c?d")).toBe(
+ "ws://localhost:1337/api/ws/a%20b%2Fc%3Fd?windowId=test-window-id",
+ );
+ });
+});
+
+type Socket = {
+ onopen: (() => void) | null;
+ onmessage: ((event: { data: string }) => void) | null;
+ onclose: (() => void) | null;
+ onerror: (() => void) | null;
+ readyState: number;
+ send: ReturnType<typeof vi.fn>;
+ close: ReturnType<typeof vi.fn>;
+};
+
+describe("useProjectWebSocket message handling", () => {
+ let socket: Socket;
+ let invalidate: ReturnType<typeof vi.fn>;
+
+ function mount() {
+ const client = new QueryClient();
+ invalidate = vi.fn();
+ client.invalidateQueries = invalidate;
+
+ renderHook(
+ () => {
+ useQueryClient();
+ return useProjectWebSocket("project-1");
+ },
+ {
+ wrapper: ({ children }: { children: ReactNode }) =>
+ createElement(QueryClientProvider, { client }, children),
+ },
+ );
+ }
+
+ function receive(message: Record<string, unknown>) {
+ socket.onmessage?.({ data: JSON.stringify(message) });
+ }
+
+ function invalidatedKeys() {
+ return invalidate.mock.calls.map((call) =>
+ JSON.stringify(call[0]?.queryKey),
+ );
+ }
+
+ const projectRelationsKey = JSON.stringify([
+ "task-relations",
+ "project",
+ "project-1",
+ ]);
+
+ beforeEach(() => {
+ vi.stubEnv("VITE_API_URL", "http://localhost:1337");
+ socket = {
+ onopen: null,
+ onmessage: null,
+ onclose: null,
+ onerror: null,
+ readyState: 1,
+ send: vi.fn(),
+ close: vi.fn(),
+ };
+ // `new WebSocket(url)` needs a constructible mock, so this cannot be an
+ // arrow function.
+ vi.stubGlobal(
+ "WebSocket",
+ Object.assign(
+ vi.fn(function mockWebSocket() {
+ return socket;
+ }),
+ { OPEN: 1 },
+ ),
+ );
+ mount();
+ });
+
+ afterEach(() => {
+ vi.unstubAllEnvs();
+ vi.unstubAllGlobals();
+ });
+
+ // The project-scoped relations query is what the list view reads, and no
+ // per-task key reaches it.
+ it.each(["TASK_RELATION_UPDATED", "TASK_DELETED", "TASK_MOVED"])(
+ "refreshes the project relations on %s",
+ (type) => {
+ receive({ type, projectId: "project-1", taskId: "task-1" });
+
+ expect(invalidatedKeys()).toContain(projectRelationsKey);
+ },
+ );
+
+ // Creating a task inserts no relation: a subtask is a create followed by a
+ // separate relation mutation, which emits its own event.
+ it.each([
+ "TASK_CREATED",
+ "TASK_UPDATED",
+ "TASK_LABEL_UPDATED",
+ "COMMENT_UPDATED",
+ ])("leaves the project relations alone on %s", (type) => {
+ receive({ type, projectId: "project-1", taskId: "task-1" });
+
+ expect(invalidatedKeys()).not.toContain(projectRelationsKey);
+ });
+
+ it("ignores a malformed message", () => {
+ expect(() => socket.onmessage?.({ data: "{not json" })).not.toThrow();
+ });
+});
diff --git a/apps/web/src/hooks/use-project-websocket.ts b/apps/web/src/hooks/use-project-websocket.ts
index 2b0eabe73..abaa5a02a 100644
--- a/apps/web/src/hooks/use-project-websocket.ts
+++ b/apps/web/src/hooks/use-project-websocket.ts
@@ -74,9 +74,11 @@ export function useProjectWebSocket(projectId: string) {
// which edges belong to the project qualify: an edit, a label or a
// comment leaves the edge set alone and would cost every mounted
// list a refetch.
+ // Creating a task inserts no relation — a subtask is a create
+ // followed by a separate relation mutation, which emits its own
+ // event — so only these three can change the edge set.
if (
message.type === "TASK_RELATION_UPDATED" ||
- message.type === "TASK_CREATED" ||
message.type === "TASK_DELETED" ||
message.type === "TASK_MOVED"
) {
diff --git a/apps/web/src/lib/subtask-tree.test.ts b/apps/web/src/lib/subtask-tree.test.ts
index 7bb649e3f..a2eccfa9b 100644
--- a/apps/web/src/lib/subtask-tree.test.ts
+++ b/apps/web/src/lib/subtask-tree.test.ts
@@ -185,6 +185,28 @@ describe("flattenSubtaskRows", () => {
expect(rows.filter((row) => row.depth === 0)).toHaveLength(tasks.length);
});
+ it("caps a single parent with more children than the budget", () => {
+ const parent = task("parent");
+ const children = Array.from({ length: 50 }, (_, index) =>
+ task(`child-${index}`),
+ );
+ const relations = children.map((child) => subtask("parent", child.id));
+
+ const rows = flattenSubtaskRows({
+ tasks: [parent],
+ children: buildSubtaskChildren(relations),
+ tasksById: new Map(
+ [parent, ...children].map((entry) => [entry.id, entry]),
+ ),
+ isExpanded: () => true,
+ maxNestedRows: 10,
+ });
+
+ // The budget used to be checked once per parent, so a wide parent emitted
+ // every child regardless of it.
+ expect(rows.filter((row) => row.depth > 0)).toHaveLength(10);
+ });
+
it("leaves every task a top-level row even when nesting is capped", () => {
const tasks = [task("a"), task("b"), task("c")];
const rows = flattenSubtaskRows({
diff --git a/apps/web/src/lib/subtask-tree.ts b/apps/web/src/lib/subtask-tree.ts
index 62e71df50..ba24251b1 100644
--- a/apps/web/src/lib/subtask-tree.ts
+++ b/apps/web/src/lib/subtask-tree.ts
@@ -109,6 +109,9 @@ export function flattenSubtaskRows<T extends { id: string }>({
const nextAncestors = new Set(ancestors);
nextAncestors.add(task.id);
for (const child of childTasks) {
+ // Checked per child, not once per parent: a single parent with more
+ // children than the budget would otherwise emit all of them.
+ if (nested >= maxNestedRows) return;
walk(child, depth + 1, nextAncestors, rowId);
}
};
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index af3b8b72b..5ba05f604 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -1981,7 +1981,8 @@
"archiveAllTooltip": "Bütün tamamlanmış tapşırıqları arxivlə",
"noTasks": "Tapşırıq yoxdur",
"collapseSubtasks": "Alt tapşırıqları gizlət",
- "expandSubtasks": "Alt tapşırıqları göstər"
+ "expandSubtasks": "Alt tapşırıqları göstər",
+ "subtaskLevel": "Alt tapşırıq, səviyyə {{level}}"
},
"kanban": {
"addTask": "Tapşırıq əlavə et"
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index c7e89ee93..c31d7bb4d 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -1968,7 +1968,8 @@
"archiveAllTooltip": "Alle abgeschlossenen Aufgaben archivieren",
"noTasks": "Keine Aufgaben",
"collapseSubtasks": "Teilaufgaben ausblenden",
- "expandSubtasks": "Teilaufgaben anzeigen"
+ "expandSubtasks": "Teilaufgaben anzeigen",
+ "subtaskLevel": "Teilaufgabe, Ebene {{level}}"
},
"kanban": {
"addTask": "Aufgabe hinzufügen"
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index 36d513be1..04b9943a5 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -1968,7 +1968,8 @@
"archiveAllTooltip": "Αρχειοθέτηση όλων των ολοκληρωμένων εργασιών",
"noTasks": "Δεν υπάρχουν εργασίες",
"collapseSubtasks": "Απόκρυψη υποεργασιών",
- "expandSubtasks": "Εμφάνιση υποεργασιών"
+ "expandSubtasks": "Εμφάνιση υποεργασιών",
+ "subtaskLevel": "Υποεργασία, επίπεδο {{level}}"
},
"kanban": {
"addTask": "Προσθήκη εργασίας"
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 1f0092892..d88fbbb20 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -1981,7 +1981,8 @@
"archiveAllTooltip": "Archive all completed tasks",
"noTasks": "No tasks",
"expandSubtasks": "Show subtasks",
- "collapseSubtasks": "Hide subtasks"
+ "collapseSubtasks": "Hide subtasks",
+ "subtaskLevel": "Subtask, level {{level}}"
},
"kanban": {
"addTask": "Add task"
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index e6d6a5553..96453586a 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -1962,7 +1962,8 @@
"archiveAllTooltip": "Archivar todas las tareas completadas",
"noTasks": "No hay tareas",
"collapseSubtasks": "Ocultar sub-tareas",
- "expandSubtasks": "Mostrar sub-tareas"
+ "expandSubtasks": "Mostrar sub-tareas",
+ "subtaskLevel": "Sub-tarea, nivel {{level}}"
},
"kanban": {
"addTask": "Añadir tarea"
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 06790a5a1..551968b3f 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -1973,7 +1973,8 @@
"archiveAllTooltip": "Archiver toutes les tâches terminées",
"noTasks": "Aucune tâche",
"collapseSubtasks": "Masquer les sous-tâches",
- "expandSubtasks": "Afficher les sous-tâches"
+ "expandSubtasks": "Afficher les sous-tâches",
+ "subtaskLevel": "Sous-tâche, niveau {{level}}"
},
"kanban": {
"addTask": "Ajouter une tâche"
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index dc63ba85d..75cbba06b 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -1968,7 +1968,8 @@
"archiveAllTooltip": "सभी पूर्ण कार्य संग्रहित करें",
"noTasks": "कोई कार्य नहीं",
"collapseSubtasks": "उप-कार्य छिपाएँ",
- "expandSubtasks": "उप-कार्य दिखाएँ"
+ "expandSubtasks": "उप-कार्य दिखाएँ",
+ "subtaskLevel": "उप-कार्य, स्तर {{level}}"
},
"kanban": {
"addTask": "कार्य जोड़ें"
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index 1654bcf10..28876a582 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -1963,7 +1963,8 @@
"archiveAllTooltip": "Arsipkan semua tugas yang selesai",
"noTasks": "Tidak ada tugas",
"collapseSubtasks": "Sembunyikan subtugas",
- "expandSubtasks": "Tampilkan subtugas"
+ "expandSubtasks": "Tampilkan subtugas",
+ "subtaskLevel": "Subtugas, tingkat {{level}}"
},
"kanban": {
"addTask": "Tambah tugas"
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index 7a4df1560..dd8a97b8c 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -1973,7 +1973,8 @@
"archiveAllTooltip": "Archivia tutte le attività completate",
"noTasks": "Nessuna attività",
"collapseSubtasks": "Nascondi sotto-attività",
- "expandSubtasks": "Mostra sotto-attività"
+ "expandSubtasks": "Mostra sotto-attività",
+ "subtaskLevel": "Sotto-attività, livello {{level}}"
},
"kanban": {
"addTask": "Aggiungi attività"
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index 054e755b0..ce2c67f00 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -1976,7 +1976,8 @@
"archiveAllTooltip": "完了したタスクをすべてアーカイブ",
"noTasks": "タスクはありません",
"collapseSubtasks": "サブタスクを非表示",
- "expandSubtasks": "サブタスクを表示"
+ "expandSubtasks": "サブタスクを表示",
+ "subtaskLevel": "サブタスク、レベル {{level}}"
},
"kanban": {
"addTask": "タスクを追加"
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index 9993b2202..fe76cb0de 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -1976,7 +1976,8 @@
"archiveAllTooltip": "완료된 모든 작업 보관",
"noTasks": "작업 없음",
"collapseSubtasks": "하위 작업 숨기기",
- "expandSubtasks": "하위 작업 표시"
+ "expandSubtasks": "하위 작업 표시",
+ "subtaskLevel": "하위 작업, {{level}}단계"
},
"kanban": {
"addTask": "작업 추가"
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index a93d562c5..cf6789be5 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -1968,7 +1968,8 @@
"archiveAllTooltip": "Архивирај ги сите завршени задачи",
"noTasks": "Нема задачи",
"collapseSubtasks": "Сокриј подзадачи",
- "expandSubtasks": "Прикажи подзадачи"
+ "expandSubtasks": "Прикажи подзадачи",
+ "subtaskLevel": "Подзадача, ниво {{level}}"
},
"kanban": {
"addTask": "Додади задача"
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index 41d0e4601..376fcdab6 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -1957,7 +1957,8 @@
"archiveAllTooltip": "Alle voltooide taken archiveren",
"noTasks": "Geen taken",
"collapseSubtasks": "Subtaken verbergen",
- "expandSubtasks": "Subtaken tonen"
+ "expandSubtasks": "Subtaken tonen",
+ "subtaskLevel": "Subtaak, niveau {{level}}"
},
"kanban": {
"addTask": "Taak toevoegen"
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index 6a2425f8b..eb469ca84 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -2113,7 +2113,8 @@
"archiveAllTooltip": "Archiwizuj wszystkie ukończone zadania",
"noTasks": "Brak zadań",
"collapseSubtasks": "Ukryj podzadania",
- "expandSubtasks": "Pokaż podzadania"
+ "expandSubtasks": "Pokaż podzadania",
+ "subtaskLevel": "Podzadanie, poziom {{level}}"
},
"move": {
"action": "Przenieś zadanie",
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 03c02c8bf..04b6f1332 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -1973,7 +1973,8 @@
"archiveAllTooltip": "Arquivar todas as tarefas concluídas",
"noTasks": "Nenhuma tarefa",
"collapseSubtasks": "Ocultar subtarefas",
- "expandSubtasks": "Mostrar subtarefas"
+ "expandSubtasks": "Mostrar subtarefas",
+ "subtaskLevel": "Subtarefa, nível {{level}}"
},
"kanban": {
"addTask": "Adicionar tarefa"
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index 387877c9c..1f178226e 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -1998,7 +1998,8 @@
"archiveAllTooltip": "Архивировать все завершённые задачи",
"noTasks": "Нет задач",
"collapseSubtasks": "Скрыть подзадачи",
- "expandSubtasks": "Показать подзадачи"
+ "expandSubtasks": "Показать подзадачи",
+ "subtaskLevel": "Подзадача, уровень {{level}}"
},
"kanban": {
"addTask": "Добавить задачу"
diff --git a/i18n/schema.json b/i18n/schema.json
index 09780b6f6..accb0166d 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -8045,6 +8045,9 @@
},
"collapseSubtasks": {
"type": "string"
+ },
+ "subtaskLevel": {
+ "type": "string"
}
},
"required": [
@@ -8052,7 +8055,8 @@
"archiveAllTooltip",
"noTasks",
"expandSubtasks",
- "collapseSubtasks"
+ "collapseSubtasks",
+ "subtaskLevel"
]
},
"kanban": {
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index ed59fb53e..a5fc01560 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -1968,7 +1968,8 @@
"archiveAllTooltip": "Tüm tamamlanmış talepleri arşivle",
"noTasks": "Talep yok",
"collapseSubtasks": "Alt talepleri gizle",
- "expandSubtasks": "Alt talepleri göster"
+ "expandSubtasks": "Alt talepleri göster",
+ "subtaskLevel": "Alt talep, seviye {{level}}"
},
"kanban": {
"addTask": "Talep ekle"
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 2cc7461af..b9b35ac4c 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -1978,7 +1978,8 @@
"archiveAllTooltip": "Архівувати всі завершені завдання",
"noTasks": "Немає завдань",
"collapseSubtasks": "Приховати підзавдання",
- "expandSubtasks": "Показати підзавдання"
+ "expandSubtasks": "Показати підзавдання",
+ "subtaskLevel": "Підзавдання, рівень {{level}}"
},
"kanban": {
"addTask": "Додати завдання"
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 971536c3f..218d3cfbd 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -1963,7 +1963,8 @@
"archiveAllTooltip": "Lưu trữ tất cả công việc đã hoàn thành",
"noTasks": "Không có công việc",
"collapseSubtasks": "Ẩn công việc con",
- "expandSubtasks": "Hiện công việc con"
+ "expandSubtasks": "Hiện công việc con",
+ "subtaskLevel": "Công việc con, cấp {{level}}"
},
"kanban": {
"addTask": "Thêm công việc"
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index 46f3f2922..77b18d225 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -1976,7 +1976,8 @@
"archiveAllTooltip": "归档所有已完成任务",
"noTasks": "无任务",
"collapseSubtasks": "隐藏子任务",
- "expandSubtasks": "显示子任务"
+ "expandSubtasks": "显示子任务",
+ "subtaskLevel": "子任务,第 {{level}} 层"
},
"kanban": {
"addTask": "添加任务"