fix: Event propagation and data loading in Edit Crawler Configuration

- Add stopPropagation wrapper to prevent dialog clicks from bubbling to card
- Include crawl configuration fields at top level of knowledge item response
- Ensure max_depth, tags, and crawl_config are accessible for edit dialog
- Fix issue where clicking inside edit dialog would open document browser
This commit is contained in:
leex279
2025-09-22 20:24:28 +02:00
parent 4876cc977c
commit b76c7cf38b
2 changed files with 9 additions and 2 deletions

View File

@@ -375,6 +375,11 @@ class KnowledgeItemService:
"url": first_page_url,
"source_id": source_id,
"code_examples": code_examples,
# Include important fields at top level for easy access
"knowledge_type": source_metadata.get("knowledge_type", "technical"),
"max_depth": source_metadata.get("max_depth"),
"tags": source_metadata.get("tags", []),
"crawl_config": source_metadata.get("crawl_config"),
"metadata": {
# Spread source_metadata first, then override with computed values
**source_metadata,