From f2debd8a5b0b55774694cc0f62539b09dc015bac Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 8 Apr 2026 13:32:15 -0400 Subject: [PATCH] feat(knowledge): show organization for person cards, category for place cards Exposes birthday, organization, address (person) and website, category (place) from entity_meta in the knowledge API response; updates KnowledgeView cards to display organization and category as visible meta chips/text. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/KnowledgeView.vue | 6 ++++++ src/fabledassistant/services/knowledge.py | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index 203faad..87bf85d 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -27,8 +27,12 @@ interface KnowledgeItem { relationship?: string; email?: string; phone?: string; + birthday?: string; + organization?: string; address?: string; hours?: string; + website?: string; + category?: string; item_count?: number; checked_count?: number; list_items?: { text: string; checked: boolean }[]; @@ -544,11 +548,13 @@ onUnmounted(() => {
{{ item.relationship }} + {{ item.organization }} {{ item.phone }}
+ {{ item.category }} {{ item.address }} {{ item.hours }}
diff --git a/src/fabledassistant/services/knowledge.py b/src/fabledassistant/services/knowledge.py index 800f722..741a919 100644 --- a/src/fabledassistant/services/knowledge.py +++ b/src/fabledassistant/services/knowledge.py @@ -29,10 +29,15 @@ def _note_to_item(note: Note) -> dict: item["relationship"] = meta.get("relationship", "") item["email"] = meta.get("email", "") item["phone"] = meta.get("phone", "") + item["birthday"] = meta.get("birthday", "") + item["organization"] = meta.get("organization", "") + item["address"] = meta.get("address", "") elif note.entity_type == "place": item["address"] = meta.get("address", "") item["phone"] = meta.get("phone", "") item["hours"] = meta.get("hours", "") + item["website"] = meta.get("website", "") + item["category"] = meta.get("category", "") elif note.entity_type == "list": # Parse markdown task list syntax into structured items body = note.body or ""