chore(collections): rename Board to Kanban Board

This commit is contained in:
Elian Doran
2025-10-30 08:42:00 +02:00
parent 59586c53b2
commit 413b16b51c
3 changed files with 17 additions and 2 deletions

View File

@@ -417,7 +417,7 @@
"end-time": "End Time",
"geolocation": "Geolocation",
"built-in-templates": "Built-in templates",
"board": "Board",
"board": "Kanban Board",
"status": "Status",
"board_note_first": "First note",
"board_note_second": "Second note",

View File

@@ -83,6 +83,21 @@ describe("Hidden Subtree", () => {
expect(updatedJumpToNote?.title).not.toBe("Renamed");
});
it("enforces renames of templates", () => {
const boardTemplate = becca.getNote("_template_board");
expect(boardTemplate).toBeDefined();
boardTemplate!.title = "My renamed board";
cls.init(() => {
boardTemplate!.save();
hiddenSubtreeService.checkHiddenSubtree(true);
});
const updatedBoardTemplate = becca.getNote("_template_board");
expect(updatedBoardTemplate).toBeDefined();
expect(updatedBoardTemplate?.title).not.toBe("My renamed board");
});
it("maintains launchers hidden, if they were shown by default but moved by the user", () => {
const launcher = becca.getNote("_lbLlmChat");
const branch = launcher?.getParentBranches()[0];

View File

@@ -422,7 +422,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
}
}
const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb");
const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb") || item.id.startsWith("_template");
if (shouldRestoreNames && note.title !== item.title) {
note.title = item.title;
note.save();