diff --git a/home/doris-dashboard/bin/generate_dashboard.py b/home/doris-dashboard/bin/generate_dashboard.py
index 8110ddc..709aa4c 100755
--- a/home/doris-dashboard/bin/generate_dashboard.py
+++ b/home/doris-dashboard/bin/generate_dashboard.py
@@ -280,7 +280,7 @@ def card(i:dict[str,Any], compact:bool=False)->str:
feedback_html='' if not compact else (
f"
"
f""
- f""
+ f""
f"
"
)
return f"""
@@ -440,15 +440,12 @@ def feedback_bootstrap()->str:
cards.forEach(card=>{
const topic=card.dataset.topic||'other';
const hidden=(prefs.hidden||[]).includes(topic) || hiddenCards.includes(card.dataset.cardId||'');
- const downMuted=(prefs.hidden||[]).includes(topic);
card.style.display=hidden?'none':'';
card.classList.remove('topic-liked');
card.querySelectorAll('[data-feedback]').forEach(btn=>{
- const mode=btn.dataset.feedback;
- const pressed=(mode==='down' && downMuted);
- btn.setAttribute('aria-pressed', pressed ? 'true' : 'false');
+ btn.setAttribute('aria-pressed', 'false');
btn.classList.toggle('active-up', false);
- btn.classList.toggle('active-down', mode==='down' && downMuted);
+ btn.classList.toggle('active-down', false);
});
});
const badge=document.querySelector('[data-hidden-topics-count]');
@@ -473,10 +470,8 @@ def feedback_bootstrap()->str:
lastAction={prefs:JSON.parse(JSON.stringify(prefs)), hiddenCards:[...hiddenCards]};
hiddenCards=hiddenCards.filter(x=>x!==id);
hiddenCards.push(id);
- prefs.hidden=(prefs.hidden||[]).filter(x=>x!==topic);
- prefs.hidden.push(topic);
saveHiddenCards(hiddenCards);
- setToast(`Hid this story and muted ${topic} for later. `);
+ setToast(`Right β less ${topic} like this, and this storyβs off the board. `);
} else {
lastAction={prefs:JSON.parse(JSON.stringify(prefs)), hiddenCards:[...hiddenCards]};
hiddenCards=hiddenCards.filter(x=>x!==id);