fix(UI-Overhaul-Phase1): 7 Bugs behoben
Check Cross-Plugin Imports / check (push) Has been cancelled

1.1 Contacts refresh: useUnifiedContacts mutations already invalidate (verified)
1.2 Contacts drag-drop: ContactList items already draggable + ContactFolderTree onDrop (verified)
1.3 Contacts move dialog: Added move-to-folder dropdown in ContactDetail
1.4 Wiki save refresh: Added refreshKey prop to WikiBrowser, triggers reload after save/delete
1.5 Calendar dialog close: Window.tsx now injects windowId into componentProps
1.6 Communication AI chat: Added metadata support to ConversationCreate schema + service,
    frontend passes conversation_type metadata for AI/system chats,
    categorization checks metadata first
1.7 Wiki duplicate menu: Removed hardcoded /wiki from Sidebar.tsx (plugin provides it dynamically)

Backend: kommunikation schema/routes/services updated for metadata support
Frontend: tsc clean, build successful
This commit is contained in:
Agent Zero
2026-08-21 13:17:35 +02:00
parent 5d708c0905
commit 94c7c8fff5
10 changed files with 445 additions and 10 deletions
@@ -253,6 +253,7 @@ async def create_conversation(
participant_ids: list[str] | None = None,
is_direct: bool = False,
initial_message: str | None = None,
metadata: dict[str, Any] | None = None,
) -> dict[str, Any]:
"""Create a new conversation."""
conv = CommConversation(
@@ -262,7 +263,7 @@ async def create_conversation(
is_direct=is_direct,
created_by=user_id,
created_by_type="user",
metadata_={},
metadata_=metadata or {},
)
from app.core.hooks import do_action
await do_action("comm.conversation.before_create", tenant_id=tenant_id, user_id=user_id)