This commit is contained in:
overcuriousity
2025-08-05 22:09:46 +02:00
parent 1c0025796a
commit b515a45e1e
6 changed files with 22 additions and 79 deletions

View File

@@ -265,20 +265,15 @@ const phases = data.phases;
return;
}
// AI Button click handler
if (aiQueryBtn) {
aiQueryBtn.addEventListener('click', () => {
// Visual feedback
aiQueryBtn.classList.add('activated');
setTimeout(() => aiQueryBtn.classList.remove('activated'), 400);
// Switch to AI view
switchToView('ai');
// Trigger existing view change system
window.dispatchEvent(new CustomEvent('viewChanged', { detail: 'ai' }));
// Scroll to AI interface
if (window.scrollToElementById) {
window.scrollToElementById('ai-interface');
} else {
@@ -294,14 +289,12 @@ const phases = data.phases;
const filtersSection = document.getElementById('filters-section');
const noResults = document.getElementById('no-results');
// Hide all views first
if (toolsGrid) toolsGrid.style.display = 'none';
if (matrixContainer) matrixContainer.style.display = 'none';
if (aiInterface) aiInterface.style.display = 'none';
if (filtersSection) filtersSection.style.display = 'none';
if (noResults) noResults.style.display = 'none';
// Show selected view
switch (view) {
case 'grid':
if (toolsGrid) toolsGrid.style.display = 'block';