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): surface subtask load failures and keep the list hierarchy current

Juanf9bf82b4314b
diff --git a/apps/web/src/components/list-view/index.test.tsx b/apps/web/src/components/list-view/index.test.tsx
index 2149200d7..3d5508c4a 100644
--- a/apps/web/src/components/list-view/index.test.tsx
+++ b/apps/web/src/components/list-view/index.test.tsx
@@ -4,10 +4,13 @@ import {
fireEvent,
render,
screen,
+ within,
} from "@testing-library/react";
import { afterEach, expect, it, vi } from "vite-plus/test";
import type { DragEndEvent } from "@dnd-kit/core";
import type { ProjectWithTasks } from "@/types/project";
+import { writeExpandedRows } from "@/lib/expanded-rows-storage";
+import useBulkSelectionStore from "@/store/bulk-selection";
import ListView from "./index";
const m = vi.hoisted(() => ({
props: {} as {
@@ -21,6 +24,8 @@ const m = vi.hoisted(() => ({
},
mutate: vi.fn(),
setProject: vi.fn(),
+ relations: { data: [] as unknown[], isLoading: false, isError: false },
+ refetchRelations: vi.fn(),
}));
vi.mock("@dnd-kit/core", async (original) => ({
...(await original<typeof import("@dnd-kit/core")>()),
@@ -42,7 +47,7 @@ vi.mock("@/store/project", () => ({
// This view groups subtasks under their parents, so it reads the project's
// relations. The suite mounts ListView without a QueryClientProvider.
vi.mock("@/hooks/queries/task-relation/use-get-project-task-relations", () => ({
- default: () => ({ data: [], isLoading: false }),
+ default: () => ({ ...m.relations, refetch: m.refetchRelations }),
}));
vi.mock("./task-row", () => ({ default: () => null }));
vi.mock("../bulk-selection/bulk-toolbar", () => ({ default: () => null }));
@@ -56,6 +61,7 @@ vi.mock("../shared/modals/archive-tasks-modal", () => ({
afterEach(() => {
cleanup();
vi.clearAllMocks();
+ m.relations = { data: [], isLoading: false, isError: false };
});
it("disables keyboard sensors and rejects drag completion on a partial board", () => {
const project = {
@@ -129,3 +135,80 @@ it("blocks archive-all during pagination or errors, including an already-open co
expect(m.mutate).toHaveBeenCalledTimes(2);
expect(m.setProject).toHaveBeenCalledOnce();
});
+
+// Without relations every task renders as a top-level row, which reads
+// exactly like a project with no subtasks. A failure has to say so, and let
+// the viewer try again.
+it("says when subtasks could not be loaded, and retries on request", () => {
+ m.relations = {
+ data: undefined as unknown as unknown[],
+ isLoading: false,
+ isError: true,
+ };
+ const project = {
+ id: "p",
+ workspaceId: "w",
+ columns: [{ id: "todo", slug: "todo", name: "To do", tasks: [] }],
+ plannedTasks: [],
+ archivedTasks: [],
+ } as unknown as ProjectWithTasks;
+
+ render(<ListView project={project} />);
+
+ const alert = screen.getByRole("alert");
+ fireEvent.click(within(alert).getByRole("button"));
+ expect(m.refetchRelations).toHaveBeenCalledOnce();
+});
+
+it("shows no notice when subtasks load", () => {
+ const project = {
+ id: "p",
+ workspaceId: "w",
+ columns: [{ id: "todo", slug: "todo", name: "To do", tasks: [] }],
+ plannedTasks: [],
+ archivedTasks: [],
+ } as unknown as ProjectWithTasks;
+
+ render(<ListView project={project} />);
+
+ expect(screen.queryByRole("alert")).toBeNull();
+});
+
+// j and k follow this order. Built from the top-level tasks alone, it jumped
+// past an expanded parent's subtasks to the next top-level row.
+it("orders keyboard navigation by the rows as shown, subtasks included", () => {
+ writeExpandedRows("p", { a: true });
+ m.relations = {
+ data: [{ sourceTaskId: "a", targetTaskId: "c", relationType: "subtask" }],
+ isLoading: false,
+ isError: false,
+ };
+ const project = {
+ id: "p",
+ workspaceId: "w",
+ columns: [
+ {
+ id: "todo",
+ slug: "todo",
+ name: "To do",
+ tasks: [
+ { id: "a", position: 0 },
+ { id: "b", position: 1 },
+ { id: "c", position: 2 },
+ ],
+ },
+ ],
+ plannedTasks: [],
+ archivedTasks: [],
+ } as unknown as ProjectWithTasks;
+
+ render(<ListView project={project} />);
+
+ // c follows its parent; its own top-level row is not listed a second time.
+ expect(useBulkSelectionStore.getState().availableTaskIds).toEqual([
+ "a",
+ "c",
+ "b",
+ ]);
+ localStorage.clear();
+});
diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsx
index 5d169cfad..92b16cb17 100644
--- a/apps/web/src/components/list-view/index.tsx
+++ b/apps/web/src/components/list-view/index.tsx
@@ -18,6 +18,7 @@ import { produce } from "immer";
import { Flag } from "lucide-react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
+import { Button } from "@/components/ui/button";
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";
@@ -27,7 +28,7 @@ import {
readExpandedRows,
writeExpandedRows,
} from "@/lib/expanded-rows-storage";
-import { buildSubtaskChildren } from "@/lib/subtask-tree";
+import { buildSubtaskChildren, flattenSubtaskRows } from "@/lib/subtask-tree";
import { toast } from "@/lib/toast";
import useBulkSelectionStore from "@/store/bulk-selection";
import useProjectStore from "@/store/project";
@@ -82,8 +83,12 @@ function ListView({
// isLoading rather than isPending: a disabled query is also pending, and an
// empty project should not look like it is still fetching.
- const { data: relations, isLoading: relationsLoading } =
- useGetProjectTaskRelations(project?.id ?? "");
+ const {
+ data: relations,
+ isLoading: relationsLoading,
+ isError: relationsFailed,
+ refetch: refetchRelations,
+ } = useGetProjectTaskRelations(project?.id ?? "");
const subtaskChildren = useMemo(
() => buildSubtaskChildren(relations ?? []),
@@ -124,21 +129,45 @@ function ListView({
writeExpandedRows(projectId, expandedTasks);
}, [projectId, expandedTasks]);
+ // Collapsing removes the row rather than recording false, so the stored map
+ // holds only expanded rows and does not grow with every row ever touched.
const toggleTaskExpanded = useCallback((rowId: string) => {
- setExpanded((previous) => ({
- ...previous,
- rows: { ...previous.rows, [rowId]: !previous.rows[rowId] },
- }));
+ setExpanded((previous) => {
+ const rows = { ...previous.rows };
+ if (rows[rowId]) delete rows[rowId];
+ else rows[rowId] = true;
+ return { ...previous, rows };
+ });
}, []);
+ // j/k, select-all and shift-click ranges follow this order, so it is the
+ // order rows are shown in, expanded subtasks included -- built the same
+ // way each section builds its rows. Selection and focus stay per task, so
+ // a task shown both under its parent and in its own place is listed once,
+ // where it first appears.
useEffect(() => {
if (project?.columns) {
const visibleTaskIds = project.columns
.filter((column) => expandedSections[column.id])
- .flatMap((column) => column.tasks.map((task) => task.id));
- setAvailableTasks(visibleTaskIds);
+ .flatMap((column) =>
+ flattenSubtaskRows({
+ tasks: column.tasks,
+ children: subtaskChildren,
+ tasksById,
+ isExpanded: (rowId) => !activeId && Boolean(expandedTasks[rowId]),
+ }).map((row) => row.task.id),
+ );
+ setAvailableTasks([...new Set(visibleTaskIds)]);
}
- }, [project, expandedSections, setAvailableTasks]);
+ }, [
+ project,
+ expandedSections,
+ setAvailableTasks,
+ subtaskChildren,
+ tasksById,
+ expandedTasks,
+ activeId,
+ ]);
useEffect(() => {
clearFocus();
@@ -369,6 +398,23 @@ function ListView({
modifiers={[snapCenterToCursor]}
>
<div className="w-full h-full overflow-auto bg-muted/20">
+ {relationsFailed && (
+ // Without relations every task renders as a top-level row, which
+ // reads exactly like a project with no subtasks; this says it isn't.
+ <div
+ role="alert"
+ className="flex items-center justify-between gap-3 border-b border-border/50 px-4 py-2 text-sm text-muted-foreground"
+ >
+ <span>{t("tasks:listView.subtasksLoadError")}</span>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => void refetchRelations()}
+ >
+ {t("common:error.tryAgain")}
+ </Button>
+ </div>
+ )}
<div aria-busy={relationsLoading} className="divide-y divide-border/50">
{project.columns.map((column) => (
<ColumnSection
diff --git a/apps/web/src/hooks/use-project-websocket-cache.test.tsx b/apps/web/src/hooks/use-project-websocket-cache.test.tsx
index 4eaaa9e6d..7a1afd9f7 100644
--- a/apps/web/src/hooks/use-project-websocket-cache.test.tsx
+++ b/apps/web/src/hooks/use-project-websocket-cache.test.tsx
@@ -168,9 +168,13 @@ it("reconciles the initial handshake after active pagination completes", async (
query: { queryKey: ["tasks", "p"], state: { fetchStatus: "idle" } },
});
await Promise.resolve();
- expect(mocks.client.invalidateQueries).toHaveBeenCalledExactlyOnceWith({
- queryKey: ["tasks", "p"],
- });
+ // The board once, plus the subtask hierarchy, which a missed relation
+ // change would otherwise leave stale.
+ const keys = mocks.client.invalidateQueries.mock.calls.map(
+ ([filters]) => (filters as { queryKey?: unknown[] })?.queryKey,
+ );
+ expect(keys.filter((key) => key?.[0] === "tasks")).toEqual([["tasks", "p"]]);
+ expect(keys).toContainEqual(["task-relations", "project", "p"]);
});
it("preserves distinct task effects across pagination and a disconnect before replay", async () => {
vi.useFakeTimers();
diff --git a/apps/web/src/hooks/use-project-websocket-relations.test.tsx b/apps/web/src/hooks/use-project-websocket-relations.test.tsx
index c6648e96a..b4e313f0d 100644
--- a/apps/web/src/hooks/use-project-websocket-relations.test.tsx
+++ b/apps/web/src/hooks/use-project-websocket-relations.test.tsx
@@ -105,6 +105,32 @@ describe("useProjectWebSocket relation invalidation", () => {
vi.unstubAllGlobals();
});
+ // A relation changed while the socket was down sends no message once it is
+ // back, so reconnecting refetches the hierarchy along with the board.
+ it("refreshes the project relations when the socket opens", async () => {
+ socket.onopen?.();
+ await Promise.resolve();
+
+ expect(invalidatedKeys()).toContain(projectRelationsKey);
+ });
+
+ it("refreshes the project relations while polling without a socket", () => {
+ vi.useFakeTimers();
+ try {
+ for (let attempt = 0; attempt <= 5; attempt++) {
+ socket.onclose?.();
+ vi.advanceTimersByTime(20_000);
+ }
+ invalidate.mockClear();
+
+ vi.advanceTimersByTime(30_000);
+
+ expect(invalidatedKeys()).toContain(projectRelationsKey);
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
// The project-scoped relations query is what the list view reads, and no
// per-task key reaches it.
it("refreshes the project relations on a real relation change", () => {
diff --git a/apps/web/src/hooks/use-project-websocket.ts b/apps/web/src/hooks/use-project-websocket.ts
index a80b3c7a4..4df4bde12 100644
--- a/apps/web/src/hooks/use-project-websocket.ts
+++ b/apps/web/src/hooks/use-project-websocket.ts
@@ -600,6 +600,10 @@ export function useProjectWebSocket(projectId: string) {
void queryClient.invalidateQueries({
queryKey: ["tasks", projectId],
});
+ // The hierarchy has no message to refresh it while polling.
+ void queryClient.invalidateQueries({
+ queryKey: ["task-relations", "project", projectId],
+ });
}, 30_000);
flushPending();
}
@@ -630,6 +634,11 @@ export function useProjectWebSocket(projectId: string) {
void queryClient.invalidateQueries({
queryKey: ["tasks", projectId],
});
+ // A relation change missed while the socket was down reaches the
+ // list's hierarchy through no message, so it is refetched too.
+ void queryClient.invalidateQueries({
+ queryKey: ["task-relations", "project", projectId],
+ });
}
const messages = Array.from(pendingMessages.values());
pendingMessages.clear();
diff --git a/apps/web/src/lib/expanded-rows-storage.test.ts b/apps/web/src/lib/expanded-rows-storage.test.ts
index 848462c52..5ba2053d5 100644
--- a/apps/web/src/lib/expanded-rows-storage.test.ts
+++ b/apps/web/src/lib/expanded-rows-storage.test.ts
@@ -21,6 +21,23 @@ describe("readExpandedRows", () => {
expect(readExpandedRows("p1")).toEqual({ a: true, "a/b": true });
});
+ // Collapsed rows used to be saved as false and never pruned, so the stored
+ // map grew with every row the viewer had ever touched.
+ it("stores only expanded rows", () => {
+ writeExpandedRows("p1", { a: true, b: false });
+
+ expect(
+ JSON.parse(localStorage.getItem(expandedRowsStorageKey("p1")) ?? "{}"),
+ ).toEqual({ a: true });
+ });
+
+ it("removes the key once nothing is expanded", () => {
+ writeExpandedRows("p1", { a: true });
+ writeExpandedRows("p1", { a: false });
+
+ expect(localStorage.getItem(expandedRowsStorageKey("p1"))).toBeNull();
+ });
+
it("keeps projects apart", () => {
writeExpandedRows("p1", { a: true });
diff --git a/apps/web/src/lib/expanded-rows-storage.ts b/apps/web/src/lib/expanded-rows-storage.ts
index a251db25d..fdf9985a4 100644
--- a/apps/web/src/lib/expanded-rows-storage.ts
+++ b/apps/web/src/lib/expanded-rows-storage.ts
@@ -39,10 +39,19 @@ export function writeExpandedRows(
rows: Record<string, boolean>,
) {
try {
- localStorage.setItem(
- expandedRowsStorageKey(projectId),
- JSON.stringify(rows),
+ // Only expanded rows are kept, and an empty map removes the key, so a
+ // project the viewer has collapsed everything in leaves nothing behind.
+ const expanded = Object.fromEntries(
+ Object.entries(rows).filter(([, value]) => value === true),
);
+ if (Object.keys(expanded).length === 0) {
+ localStorage.removeItem(expandedRowsStorageKey(projectId));
+ } else {
+ localStorage.setItem(
+ expandedRowsStorageKey(projectId),
+ JSON.stringify(expanded),
+ );
+ }
} catch {
// A private window or blocked site data only costs the restore.
}
diff --git a/i18n/az-AZ.json b/i18n/az-AZ.json
index 9c965193b..2ef3ff284 100644
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@ -2610,7 +2610,8 @@
"noTasks": "Tapşırıq yoxdur",
"collapseSubtasks": "{{title}} alt tapşırıqlarını gizlət",
"expandSubtasks": "{{title}} alt tapşırıqlarını göstər",
- "subtaskLevel": "Alt tapşırıq, səviyyə {{level}}"
+ "subtaskLevel": "Alt tapşırıq, səviyyə {{level}}",
+ "subtasksLoadError": "Alt tapşırıqlar yüklənə bilmədi, ona görə tapşırıqlar iyerarxiyasız göstərilir."
},
"kanban": {
"addTask": "Tapşırıq əlavə et",
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index b0dfb3500..1c36afada 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -2602,7 +2602,8 @@
"noTasks": "Keine Aufgaben",
"collapseSubtasks": "Teilaufgaben von {{title}} ausblenden",
"expandSubtasks": "Teilaufgaben von {{title}} anzeigen",
- "subtaskLevel": "Teilaufgabe, Ebene {{level}}"
+ "subtaskLevel": "Teilaufgabe, Ebene {{level}}",
+ "subtasksLoadError": "Teilaufgaben konnten nicht geladen werden, daher werden Aufgaben ohne Hierarchie angezeigt."
},
"kanban": {
"addTask": "Aufgabe hinzufügen",
diff --git a/i18n/el-GR.json b/i18n/el-GR.json
index 6f45f2d30..1de1b3ffd 100644
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@ -2602,7 +2602,8 @@
"noTasks": "Δεν υπάρχουν εργασίες",
"collapseSubtasks": "Απόκρυψη υποεργασιών του {{title}}",
"expandSubtasks": "Εμφάνιση υποεργασιών του {{title}}",
- "subtaskLevel": "Υποεργασία, επίπεδο {{level}}"
+ "subtaskLevel": "Υποεργασία, επίπεδο {{level}}",
+ "subtasksLoadError": "Δεν ήταν δυνατή η φόρτωση των υποεργασιών, οπότε οι εργασίες εμφανίζονται χωρίς ιεραρχία."
},
"kanban": {
"addTask": "Προσθήκη εργασίας",
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 581fa5615..c9fae694d 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -2616,7 +2616,8 @@
"noTasks": "No tasks",
"expandSubtasks": "Show subtasks of {{title}}",
"collapseSubtasks": "Hide subtasks of {{title}}",
- "subtaskLevel": "Subtask, level {{level}}"
+ "subtaskLevel": "Subtask, level {{level}}",
+ "subtasksLoadError": "Subtasks couldn't be loaded, so tasks are shown without their hierarchy."
},
"kanban": {
"addTask": "Add task",
diff --git a/i18n/es-ES.json b/i18n/es-ES.json
index 99cc32c5f..fd50cb179 100644
--- a/i18n/es-ES.json
+++ b/i18n/es-ES.json
@@ -2603,7 +2603,8 @@
"noTasks": "No hay tareas",
"collapseSubtasks": "Ocultar sub-tareas de {{title}}",
"expandSubtasks": "Mostrar sub-tareas de {{title}}",
- "subtaskLevel": "Sub-tarea, nivel {{level}}"
+ "subtaskLevel": "Sub-tarea, nivel {{level}}",
+ "subtasksLoadError": "No se pudieron cargar las sub-tareas, así que las tareas se muestran sin su jerarquía."
},
"kanban": {
"addTask": "Añadir tarea",
diff --git a/i18n/fr-FR.json b/i18n/fr-FR.json
index 98092ca27..322253274 100644
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@ -2614,7 +2614,8 @@
"noTasks": "Aucune tâche",
"collapseSubtasks": "Masquer les sous-tâches de {{title}}",
"expandSubtasks": "Afficher les sous-tâches de {{title}}",
- "subtaskLevel": "Sous-tâche, niveau {{level}}"
+ "subtaskLevel": "Sous-tâche, niveau {{level}}",
+ "subtasksLoadError": "Impossible de charger les sous-tâches : les tâches s'affichent sans leur hiérarchie."
},
"kanban": {
"addTask": "Ajouter une tâche",
diff --git a/i18n/hi-IN.json b/i18n/hi-IN.json
index d5be722b7..1fdcf55bb 100644
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@ -2602,7 +2602,8 @@
"noTasks": "कोई कार्य नहीं",
"collapseSubtasks": "{{title}} के उप-कार्य छिपाएँ",
"expandSubtasks": "{{title}} के उप-कार्य दिखाएँ",
- "subtaskLevel": "उप-कार्य, स्तर {{level}}"
+ "subtaskLevel": "उप-कार्य, स्तर {{level}}",
+ "subtasksLoadError": "उप-कार्य लोड नहीं हो सके, इसलिए कार्य बिना पदानुक्रम के दिखाए जा रहे हैं।"
},
"kanban": {
"addTask": "कार्य जोड़ें",
diff --git a/i18n/id-ID.json b/i18n/id-ID.json
index 0bb7b426b..3f154e054 100644
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@ -2590,7 +2590,8 @@
"noTasks": "Tidak ada tugas",
"collapseSubtasks": "Sembunyikan subtugas {{title}}",
"expandSubtasks": "Tampilkan subtugas {{title}}",
- "subtaskLevel": "Subtugas, tingkat {{level}}"
+ "subtaskLevel": "Subtugas, tingkat {{level}}",
+ "subtasksLoadError": "Subtugas tidak dapat dimuat, jadi tugas ditampilkan tanpa hierarkinya."
},
"kanban": {
"addTask": "Tambah tugas",
diff --git a/i18n/it-IT.json b/i18n/it-IT.json
index 00b4dd743..e869f476a 100644
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@ -2614,7 +2614,8 @@
"noTasks": "Nessuna attività",
"collapseSubtasks": "Nascondi sotto-attività di {{title}}",
"expandSubtasks": "Mostra sotto-attività di {{title}}",
- "subtaskLevel": "Sotto-attività, livello {{level}}"
+ "subtaskLevel": "Sotto-attività, livello {{level}}",
+ "subtasksLoadError": "Impossibile caricare le sotto-attività, quindi le attività sono mostrate senza gerarchia."
},
"kanban": {
"addTask": "Aggiungi attività",
diff --git a/i18n/ja-JP.json b/i18n/ja-JP.json
index 7ac2c2719..687e1c758 100644
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@ -2598,7 +2598,8 @@
"noTasks": "タスクはありません",
"collapseSubtasks": "{{title}} のサブタスクを非表示",
"expandSubtasks": "{{title}} のサブタスクを表示",
- "subtaskLevel": "サブタスク、レベル {{level}}"
+ "subtaskLevel": "サブタスク、レベル {{level}}",
+ "subtasksLoadError": "サブタスクを読み込めなかったため、タスクを階層なしで表示しています。"
},
"kanban": {
"addTask": "タスクを追加",
diff --git a/i18n/ko-KR.json b/i18n/ko-KR.json
index 2d70beb3d..f3f6350d0 100644
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@ -2603,7 +2603,8 @@
"noTasks": "작업 없음",
"collapseSubtasks": "{{title}}의 하위 작업 숨기기",
"expandSubtasks": "{{title}}의 하위 작업 표시",
- "subtaskLevel": "하위 작업, {{level}}단계"
+ "subtaskLevel": "하위 작업, {{level}}단계",
+ "subtasksLoadError": "하위 작업을 불러오지 못해 작업을 계층 없이 표시합니다."
},
"kanban": {
"addTask": "작업 추가",
diff --git a/i18n/mk-MK.json b/i18n/mk-MK.json
index 5fbdff9a5..86b766640 100644
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@ -2602,7 +2602,8 @@
"noTasks": "Нема задачи",
"collapseSubtasks": "Сокриј подзадачи на {{title}}",
"expandSubtasks": "Прикажи подзадачи на {{title}}",
- "subtaskLevel": "Подзадача, ниво {{level}}"
+ "subtaskLevel": "Подзадача, ниво {{level}}",
+ "subtasksLoadError": "Подзадачите не можеа да се вчитаат, па задачите се прикажани без хиерархија."
},
"kanban": {
"addTask": "Додади задача",
diff --git a/i18n/nl-NL.json b/i18n/nl-NL.json
index 609b2c75d..d0e22d1b5 100644
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@ -2591,7 +2591,8 @@
"noTasks": "Geen taken",
"collapseSubtasks": "Subtaken van {{title}} verbergen",
"expandSubtasks": "Subtaken van {{title}} tonen",
- "subtaskLevel": "Subtaak, niveau {{level}}"
+ "subtaskLevel": "Subtaak, niveau {{level}}",
+ "subtasksLoadError": "Subtaken konden niet worden geladen, daarom worden taken zonder hiërarchie getoond."
},
"kanban": {
"addTask": "Taak toevoegen",
diff --git a/i18n/pl-PL.json b/i18n/pl-PL.json
index a4cc3eca5..a5eef19a3 100644
--- a/i18n/pl-PL.json
+++ b/i18n/pl-PL.json
@@ -2847,7 +2847,8 @@
"noTasks": "Brak zadań",
"collapseSubtasks": "Ukryj podzadania {{title}}",
"expandSubtasks": "Pokaż podzadania {{title}}",
- "subtaskLevel": "Podzadanie, poziom {{level}}"
+ "subtaskLevel": "Podzadanie, poziom {{level}}",
+ "subtasksLoadError": "Nie udało się wczytać podzadań, więc zadania są wyświetlane bez hierarchii."
},
"move": {
"action": "Przenieś zadanie",
diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json
index 69cda6044..f3d8a8fdb 100644
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@ -2614,7 +2614,8 @@
"noTasks": "Nenhuma tarefa",
"collapseSubtasks": "Ocultar subtarefas de {{title}}",
"expandSubtasks": "Mostrar subtarefas de {{title}}",
- "subtaskLevel": "Subtarefa, nível {{level}}"
+ "subtaskLevel": "Subtarefa, nível {{level}}",
+ "subtasksLoadError": "Não foi possível carregar as subtarefas, então as tarefas são exibidas sem a hierarquia."
},
"kanban": {
"addTask": "Adicionar tarefa",
diff --git a/i18n/ru-RU.json b/i18n/ru-RU.json
index ef752a53b..eacd1598f 100644
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@ -2646,7 +2646,8 @@
"noTasks": "Нет задач",
"collapseSubtasks": "Скрыть подзадачи «{{title}}»",
"expandSubtasks": "Показать подзадачи «{{title}}»",
- "subtaskLevel": "Подзадача, уровень {{level}}"
+ "subtaskLevel": "Подзадача, уровень {{level}}",
+ "subtasksLoadError": "Не удалось загрузить подзадачи, поэтому задачи показаны без иерархии."
},
"kanban": {
"addTask": "Добавить задачу",
diff --git a/i18n/schema.json b/i18n/schema.json
index 221deaba8..eceacd8e1 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -8644,6 +8644,9 @@
"moved": {
"type": "string"
},
+ "movedFromOtherProject": {
+ "type": "string"
+ },
"created": {
"type": "string"
},
@@ -9064,6 +9067,7 @@
"changedDueDate",
"changedTitle",
"moved",
+ "movedFromOtherProject",
"created",
"githubUser",
"comment"
@@ -10617,6 +10621,9 @@
},
"subtaskLevel": {
"type": "string"
+ },
+ "subtasksLoadError": {
+ "type": "string"
}
},
"required": [
@@ -10625,7 +10632,8 @@
"noTasks",
"expandSubtasks",
"collapseSubtasks",
- "subtaskLevel"
+ "subtaskLevel",
+ "subtasksLoadError"
]
},
"kanban": {
@@ -12027,6 +12035,9 @@
"allProjectsDescription": {
"type": "string"
},
+ "allProjectsUnavailable": {
+ "type": "string"
+ },
"selectedProjects": {
"type": "string"
},
@@ -12039,6 +12050,9 @@
"noProjects": {
"type": "string"
},
+ "archived": {
+ "type": "string"
+ },
"selectAtLeastOne": {
"type": "string"
},
@@ -12084,10 +12098,12 @@
"description",
"allProjects",
"allProjectsDescription",
+ "allProjectsUnavailable",
"selectedProjects",
"selectedProjectsDescription",
"projectsLabel",
"noProjects",
+ "archived",
"selectAtLeastOne",
"editAria",
"dialogTitle",
diff --git a/i18n/tr-TR.json b/i18n/tr-TR.json
index c0d660275..14be53c86 100644
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@ -2602,7 +2602,8 @@
"noTasks": "Talep yok",
"collapseSubtasks": "{{title}} alt taleplerini gizle",
"expandSubtasks": "{{title}} alt taleplerini göster",
- "subtaskLevel": "Alt talep, seviye {{level}}"
+ "subtaskLevel": "Alt talep, seviye {{level}}",
+ "subtasksLoadError": "Alt talepler yüklenemedi, bu yüzden görevler hiyerarşi olmadan gösteriliyor."
},
"kanban": {
"addTask": "Talep ekle",
diff --git a/i18n/uk-UA.json b/i18n/uk-UA.json
index 86a2f87a4..f8dc1d697 100644
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@ -2626,7 +2626,8 @@
"noTasks": "Немає завдань",
"collapseSubtasks": "Приховати підзавдання «{{title}}»",
"expandSubtasks": "Показати підзавдання «{{title}}»",
- "subtaskLevel": "Підзавдання, рівень {{level}}"
+ "subtaskLevel": "Підзавдання, рівень {{level}}",
+ "subtasksLoadError": "Не вдалося завантажити підзавдання, тому завдання показано без ієрархії."
},
"kanban": {
"addTask": "Додати завдання",
diff --git a/i18n/vi-VN.json b/i18n/vi-VN.json
index 95a396a6f..9c6e5eba4 100644
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@ -2590,7 +2590,8 @@
"noTasks": "Không có công việc",
"collapseSubtasks": "Ẩn công việc con của {{title}}",
"expandSubtasks": "Hiện công việc con của {{title}}",
- "subtaskLevel": "Công việc con, cấp {{level}}"
+ "subtaskLevel": "Công việc con, cấp {{level}}",
+ "subtasksLoadError": "Không thể tải công việc con, nên công việc được hiển thị không có phân cấp."
},
"kanban": {
"addTask": "Thêm công việc",
diff --git a/i18n/zh-CN.json b/i18n/zh-CN.json
index f9a00b657..b8c3d3a08 100644
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@ -2603,7 +2603,8 @@
"noTasks": "无任务",
"collapseSubtasks": "隐藏 {{title}} 的子任务",
"expandSubtasks": "显示 {{title}} 的子任务",
- "subtaskLevel": "子任务,第 {{level}} 层"
+ "subtaskLevel": "子任务,第 {{level}} 层",
+ "subtasksLoadError": "无法加载子任务,因此任务以无层级的方式显示。"
},
"kanban": {
"addTask": "添加任务",
diff --git a/i18n/zh-TW.json b/i18n/zh-TW.json
index edceb24ff..b6d68c0ac 100644
--- a/i18n/zh-TW.json
+++ b/i18n/zh-TW.json
@@ -2603,7 +2603,8 @@
"noTasks": "沒有任務",
"expandSubtasks": "顯示 {{title}} 的子任務",
"collapseSubtasks": "隱藏 {{title}} 的子任務",
- "subtaskLevel": "子任務,第 {{level}} 層"
+ "subtaskLevel": "子任務,第 {{level}} 層",
+ "subtasksLoadError": "無法載入子任務,因此任務以無階層的方式顯示。"
},
"kanban": {
"addTask": "新增任務",