()
| 14766 | |
| 14767 | tagSelect.innerHTML = '<option value="">All Tags</option>'; |
| 14768 | |
| 14769 | try { |
| 14770 | const tags = await window.electron.getAllTags(); |
| 14771 | tags.sort((a, b) => a.name.localeCompare(b.name)); // Sort tags alphabetically |
| 14772 | tags.forEach(tag => { |
| 14773 | const option = document.createElement('option'); |
| 14774 | option.value = tag.name; |
| 14775 | option.textContent = `${tag.name} (${tag.model_count})`; |
| 14776 | tagSelect.appendChild(option); |
| 14777 | }); |
| 14778 | } catch (error) { |
| 14779 | console.error('Error populating tag filter:', error); |
| 14780 | } |
| 14781 | } |
| 14782 | |
| 14783 | // Add bulk edit button to the main content area |
| 14784 | const bulkEditButton = document.createElement('button'); |
| 14785 | bulkEditButton.id = 'bulk-edit-button'; |
| 14786 | bulkEditButton.className = 'bulk-edit-button'; |
| 14787 | bulkEditButton.textContent = 'Edit Selected Models'; |
no test coverage detected