Browse Source

fix(skills): Show shown-count feedback in summon picker widget

The age/text filters hid rows inside collapsed groups with no visible
feedback, reading as a dead control. The header counter now shows
'X/Y shown' whenever a filter is active. Verified headless: 24h window
narrows fixture rows, selection survives window changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0xDarkMatter 3 weeks ago
parent
commit
f28a65383f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      skills/summon/assets/picker-widget.html

+ 2 - 1
skills/summon/assets/picker-widget.html

@@ -91,7 +91,8 @@ const btns = ["recover","summon","clear"].map(id => document.getElementById(id))
 function sel(){ return chks.filter(c => c.checked).map(c => S[+c.dataset.i]); }
 function sel(){ return chks.filter(c => c.checked).map(c => S[+c.dataset.i]); }
 function refresh(){
 function refresh(){
   const n = sel().length;
   const n = sel().length;
-  cnt.textContent = n + " selected";
+  const shown = chks.filter(c => c.closest(".row").style.display !== "none").length;
+  cnt.textContent = (shown < S.length ? shown + "/" + S.length + " shown · " : "") + n + " selected";
   btns.forEach(b => b.disabled = !n);
   btns.forEach(b => b.disabled = !n);
   document.querySelectorAll(".gchk").forEach(g => {
   document.querySelectorAll(".gchk").forEach(g => {
     const mine = chks.filter(c => c.dataset.g === g.dataset.g);
     const mine = chks.filter(c => c.dataset.g === g.dataset.g);