diff --git a/app/views/includes/menu.html b/app/views/includes/menu.html
index c90b75fe..06d4be94 100644
--- a/app/views/includes/menu.html
+++ b/app/views/includes/menu.html
@@ -47,9 +47,9 @@
βοΈ Cloud Health
βοΈ Brain Config Editor
π Sidebar Admin
- π Deliverads Dashboard
+ π Deliverads Dashboard
π§ Brain Admin
- π± Seeds Manager
+ π± Seeds Manager
πΎ Harvest
π₯ Warmup
π€ Send Control
diff --git a/public/brain-unified-send.html b/public/brain-unified-send.html
index 435c0323..5d6bf577 100644
--- a/public/brain-unified-send.html
+++ b/public/brain-unified-send.html
@@ -182,8 +182,8 @@ async function loadConfigs() {
// Extract unique ISPs
const isps = [...new Set(allConfigs.map(c => c.isp_target).filter(Boolean))];
const filterEl = document.getElementById('ispFilters');
- filterEl.innerHTML = 'ALL
' +
- isps.map(i => '' + esc(i) + '
').join('');
+ filterEl.innerHTML = 'ALL
' +
+ isps.map(i => '' + esc(i) + '
').join('');
document.getElementById('configsBadge').textContent = allConfigs.length + ' configs';
document.getElementById('winnersBadge').textContent = allConfigs.filter(c => c.status === 'winner').length + ' winners';
@@ -196,8 +196,9 @@ async function loadConfigs() {
function filterISP(isp) {
filterIsp = isp;
- document.querySelectorAll('#ispFilters .fpill').forEach(p => p.classList.remove('active'));
- event.target.classList.add('active');
+ document.querySelectorAll('#ispFilters .fpill').forEach(p => {
+ p.classList.toggle('active', p.dataset.isp === isp);
+ });
renderWinners();
}
@@ -243,7 +244,8 @@ function renderWinners() {
function selectConfig(idx, jsonStr) {
selectedConfig = JSON.parse(jsonStr);
document.querySelectorAll('.winner').forEach(w => w.classList.remove('selected'));
- event.currentTarget.classList.add('selected');
+ const cards = document.querySelectorAll('.winner');
+ if (cards[idx]) cards[idx].classList.add('selected');
document.getElementById('btnSend').disabled = false;
if (selectedConfig.from_domain && !document.getElementById('fromEmail').value) {
@@ -309,7 +311,6 @@ function esc(s) { if (!s) return ''; const d = document.createElement('div'); d.
loadConfigs();
-