Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(board): ignore status attribute
Elian Doran40dbb818c55c
diff --git a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsxindex b9c04863fa..8a7f8d8219 100644--- a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx+++ b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx@@ -2,9 +2,10 @@ import FNote from "../../entities/fnote";interface PromotedAttributesDisplayProps {note: FNote;+ ignoredAttributes?: string[];}-export default function PromotedAttributesDisplay({ note }: PromotedAttributesDisplayProps) {+export default function PromotedAttributesDisplay({ note, ignoredAttributes }: PromotedAttributesDisplayProps) {const promotedDefinitionAttributes = note.getPromotedDefinitionAttributes();return (@@ -15,6 +16,7 @@ export default function PromotedAttributesDisplay({ note }: PromotedAttributesDiconst value = note.getLabelValue(name);const friendlyName = def?.promotedAlias ?? name;if (!value) return null;+ if (ignoredAttributes && ignoredAttributes.includes(name)) return null;return (<div key={attr.name} className="promoted-attribute">diff --git a/apps/client/src/widgets/collections/board/api.ts b/apps/client/src/widgets/collections/board/api.tsindex 90d41d7c49..14ad4d587a 100644--- a/apps/client/src/widgets/collections/board/api.ts+++ b/apps/client/src/widgets/collections/board/api.ts@@ -16,7 +16,7 @@ export default class BoardApi {private byColumn: ColumnMap | undefined,public columns: string[],private parentNote: FNote,- private statusAttribute: string,+ readonly statusAttribute: string,private viewConfig: BoardViewData,private saveConfig: (newConfig: BoardViewData) => void,private setBranchIdToEdit: (branchId: string | undefined) => voiddiff --git a/apps/client/src/widgets/collections/board/card.tsx b/apps/client/src/widgets/collections/board/card.tsxindex c71d69afe5..3fff79aab5 100644--- a/apps/client/src/widgets/collections/board/card.tsx+++ b/apps/client/src/widgets/collections/board/card.tsx@@ -109,7 +109,7 @@ export default function Card({title={t("board_view.edit-note-title")}onClick={handleEdit}/>- <PromotedAttributesDisplay note={note} />+ <PromotedAttributesDisplay note={note} ignoredAttributes={[api.statusAttribute]} /></>) : (<TitleEditor