From f764760b0a2bec9cad1545d69df46d5fd807e786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Tue, 11 Aug 2026 23:26:05 +0300 Subject: [PATCH] Proactive log: decode PLI response data using PLI_CODECS; hide empty Response --- index.html | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 83de64c..18e77c0 100644 --- a/index.html +++ b/index.html @@ -4033,9 +4033,31 @@ async function pysimProactiveLogRender() { + '0x' + e.type_hex.toUpperCase() + '' + '' + esc(name) + '' + (qual ? '' + esc(qual) + '' : '') - + '' - + (e.tr_hex ? '
Response: ' + esc(e.tr_hex) + '
' : '') + ''; + if (e.tr_hex) { + html += '
Response: '; + if (e.type_hex === '26' && e.qualifier) { + const codec = PLI_CODECS[e.qualifier]; + if (codec && codec.decode) { + const vals = codec.decode(e.tr_hex); + if (vals) { + const parts = []; + codec.fields.forEach(f => { + if (vals[f.id] !== undefined) parts.push(f.label + ': ' + vals[f.id]); + }); + html += esc(parts.length ? parts.join(', ') : e.tr_hex); + } else { + html += esc(e.tr_hex); + } + } else { + html += esc(e.tr_hex); + } + } else { + html += esc(e.tr_hex); + } + html += '
'; + } + html += ''; }); el.innerHTML = html; } catch (err) {