Skip to content

Commit 413b16b

Browse files
committed
chore(collections): rename Board to Kanban Board
1 parent 59586c5 commit 413b16b

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

apps/server/src/assets/translations/en/server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
"end-time": "End Time",
418418
"geolocation": "Geolocation",
419419
"built-in-templates": "Built-in templates",
420-
"board": "Board",
420+
"board": "Kanban Board",
421421
"status": "Status",
422422
"board_note_first": "First note",
423423
"board_note_second": "Second note",

apps/server/src/services/hidden_subtree.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ describe("Hidden Subtree", () => {
8383
expect(updatedJumpToNote?.title).not.toBe("Renamed");
8484
});
8585

86+
it("enforces renames of templates", () => {
87+
const boardTemplate = becca.getNote("_template_board");
88+
expect(boardTemplate).toBeDefined();
89+
boardTemplate!.title = "My renamed board";
90+
91+
cls.init(() => {
92+
boardTemplate!.save();
93+
hiddenSubtreeService.checkHiddenSubtree(true);
94+
});
95+
96+
const updatedBoardTemplate = becca.getNote("_template_board");
97+
expect(updatedBoardTemplate).toBeDefined();
98+
expect(updatedBoardTemplate?.title).not.toBe("My renamed board");
99+
});
100+
86101
it("maintains launchers hidden, if they were shown by default but moved by the user", () => {
87102
const launcher = becca.getNote("_lbLlmChat");
88103
const branch = launcher?.getParentBranches()[0];

apps/server/src/services/hidden_subtree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
422422
}
423423
}
424424

425-
const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb");
425+
const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb") || item.id.startsWith("_template");
426426
if (shouldRestoreNames && note.title !== item.title) {
427427
note.title = item.title;
428428
note.save();

0 commit comments

Comments
 (0)