cleanup
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user