sigrank 0.15.5 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tui.mjs CHANGED
@@ -856,7 +856,7 @@ function renderSubmissions(boardData, window = '30d', filterCodename = null, hig
856
856
  const emit = (s = '') => { if (used < budget) { writeln(s); used++ } }
857
857
 
858
858
  // Defensive field readers (server shape is new / not yet pinned).
859
- const gName = (e) => e.codename ?? e.operator_codename ?? '—'
859
+ const gName = (e) => e.display_name || e.codename || e.operator_codename || '—'
860
860
  const gPlat = (e) => e.platform ?? e.platform_primary ?? '—'
861
861
  const gWin = (e) => e.window ?? e.window_type ?? '—'
862
862
  const gYield = (e) => e.yield_ ?? e.yield ?? e.y ?? null
@@ -992,7 +992,7 @@ function renderBoard(boardData, window = '30d', filterCodename = null, highlight
992
992
  // FIX I2: highlight the signed-in operator's row (global mode) with a cyan bg-tint.
993
993
  const isYou = highlightCodename && (e.codename ?? '').toLowerCase() === highlightCodename.toLowerCase()
994
994
  const rk = idx === 0 ? gold(`#${idx+1}`) : idx < 3 ? cyan(`#${idx+1}`) : `#${idx+1}`
995
- const nmRaw = trunc(e.codename ?? '—', 22)
995
+ const nmRaw = trunc(e.display_name || e.codename || '—', 22)
996
996
  // FIX I2: pad the visible content INSIDE the ANSI codes so the cyan bg fills
997
997
  // the full column width (padEnd after reset would leave uncolored trailing spaces).
998
998
  const nm = isYou