@@ -11588,35 +11588,29 @@ class FastSearchCard extends HTMLElement {
1158811588 });
1158911589 }
1159011590
11591- // 🎯 NAVIGATE TO ACTION DETAIL
11591+ // 🎯 NAVIGATE TO ACTION DETAIL - Vereinfacht
1159211592 navigateToActionDetail(actionId, actionDomain) {
1159311593 console.log(`🎯 Navigating to detail view for ${actionDomain}: ${actionId}`);
1159411594
11595- // 1. Bestimme Ziel-Kategorie basierend auf Domain
11596- const targetCategory = this.getTargetCategoryForDomain(actionDomain);
11597-
11598- // 2. Finde das Action-Item in allItems
11595+ // 1. Finde das Action-Item in allItems
1159911596 const actionItem = this.allItems.find(item => item.id === actionId);
1160011597 if (!actionItem) {
1160111598 console.warn(`❌ Action item not found: ${actionId}`);
1160211599 return;
1160311600 }
11604-
11605- // 3. Schließe aktuelle Detail-View (falls offen)
11606- if (this.isDetailView) {
11607- this.isDetailView = false;
11608- this.currentDetailItem = null;
11609- this.render();
11610- }
1161111601
11612- // 4. Wechsle zur Ziel-Kategorie
11613- this.switchToCategory(targetCategory );
11602+ // 2. Bestimme Ziel-Kategorie
11603+ const targetCategory = this.getTargetCategoryForDomain(actionDomain );
1161411604
11615- // 5. Öffne Detail-View für die Action
11616- setTimeout(() => {
11617- console.log(`✅ Opening detail view for action: ${actionItem.name}`);
11618- this.showDetailView(actionItem);
11619- }, 100); // Kurze Verzögerung für smooth transition
11605+ // 3. Direkte Navigation ohne komplexe State-Changes
11606+ console.log(`🔄 Switching to category: ${targetCategory}`);
11607+
11608+ // Update activeCategory
11609+ this.activeCategory = targetCategory;
11610+
11611+ // 4. Zeige Detail-View direkt
11612+ console.log(`✅ Opening detail view for action: ${actionItem.name}`);
11613+ this.showDetailView(actionItem);
1162011614 }
1162111615
1162211616 // 🎯 GET TARGET CATEGORY FOR DOMAIN
@@ -11631,6 +11625,7 @@ class FastSearchCard extends HTMLElement {
1163111625 }
1163211626
1163311627 // 🎯 SWITCH TO CATEGORY
11628+ /*
1163411629 switchToCategory(targetCategory) {
1163511630 console.log(`🔄 Switching to category: ${targetCategory}`);
1163611631
@@ -11653,6 +11648,7 @@ class FastSearchCard extends HTMLElement {
1165311648 // Show items for new category
1165411649 this.showCurrentCategoryItems();
1165511650 }
11651+ */
1165611652
1165711653 // 🎯 TRIGGER ACTION
1165811654 triggerAction(actionId) {
0 commit comments