Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): keep colons in promoted attribute names (#11945)

Elian Doran9f8da5a3c7b2
diff --cc apps/client/src/widgets/collections/board/group_by.tsx
index f7efa4e1b1,a3f1be7f45..f16e413e2e
--- a/apps/client/src/widgets/collections/board/group_by.tsx
+++ b/apps/client/src/widgets/collections/board/group_by.tsx
@@@ -1,7 -1,6 +1,7 @@@
- import { DEFAULT_BOARD_GROUP_BY, normalizeBoardGroupBy } from "@triliumnext/commons";
+ import { DEFAULT_BOARD_GROUP_BY, extractAttributeDefinitionTypeAndName, normalizeBoardGroupBy } from "@triliumnext/commons";
import { createPortal } from "preact";
+import { lazy, Suspense } from "preact/compat";
import { useCallback, useRef, useState } from "preact/hooks";
import type FNote from "../../../entities/fnote";
diff --cc apps/client/src/widgets/collections/table/col_editing.ts
index 86330b408b,371c6ec3ff..cfb5f8a662
--- a/apps/client/src/widgets/collections/table/col_editing.ts
+++ b/apps/client/src/widgets/collections/table/col_editing.ts
@@@ -1,23 -1,20 +1,25 @@@
- import { useLegacyImperativeHandlers } from "../../react/hooks";
- import { Attribute } from "../../../services/attribute_parser";
+ import { extractAttributeDefinitionTypeAndName } from "@triliumnext/commons";
+ import { t } from "i18next";
import { RefObject } from "preact";
- import { Tabulator } from "tabulator-tables";
import { useRef } from "preact/hooks";
+ import { Tabulator } from "tabulator-tables";
+
import { CommandListenerData, EventData } from "../../../components/app_context";
- import AttributeDetailWidget from "../../attribute_widgets/attribute_detail";
- import attributes from "../../../services/attributes";
import FNote from "../../../entities/fnote";
- import { getAttributeFromField } from "./utils";
- import dialog from "../../../services/dialog";
- import { t } from "i18next";
+ import { Attribute } from "../../../services/attribute_parser";
+ import attributes from "../../../services/attributes";
import { executeBulkActions } from "../../../services/bulk_action";
+ import dialog from "../../../services/dialog";
+ import AttributeDetailWidget from "../../attribute_widgets/attribute_detail";
+ import { useLegacyImperativeHandlers } from "../../react/hooks";
+ import { getAttributeFromField } from "./utils";
-export default function useColTableEditing(api: RefObject<Tabulator | null>, attributeDetailWidget: AttributeDetailWidget, parentNote: FNote) {
+export default function useColTableEditing(
+ api: RefObject<Tabulator | null>,
+ attributeDetailWidget: AttributeDetailWidget,
+ parentNote: FNote,
+ newAttributePosition: RefObject<number | undefined>
+) {
const existingAttributeToEdit = useRef<Attribute | undefined>(undefined);
const newAttribute = useRef<Attribute | undefined>(undefined);