STATUS list entries: suppress raw hex when empty, describe FCP data
- decode.py: _build_summary emits 'Data: N bytes — FCP of <file> (...)' for STATUS responses with data (FCP already decoded into decoded.response); _fcp_brief builds the 'FCP of MF (DF or ADF)' / 'FCP of EF_xxx (...)' fragment - index.html: cmd_description suppresses the raw-hex fallback for body-less STATUS rows (nothing to describe beyond type + SW) - tests: no-data STATUS summary None; DF/EF FCP summaries; pluralization - Bump 1.22.19, SW cache v50->v51
This commit is contained in:
1 parent
39ee173a7d
commit
ccbb3f231b
7 files changed
+87
-6
No files matched your search
+6
-2
@@ -1047,7 +1047,11 @@ function data_text(m) {
|
||||
|
||||
function cmd_description(m) {
|
||||
if (m.type === 'gap') return t('device disconnected — messages may be missing');
|
||||
if (m.decoded && m.decoded.summary) return m.decoded.summary;
|
||||
const d = m.decoded;
|
||||
// STATUS has no command body: without response data there is nothing
|
||||
// to describe beyond the type and SW (no raw-hex fallback).
|
||||
if (d && d.ins_hex === 'f2' && !d.body) return d.summary || '';
|
||||
if (d && d.summary) return d.summary;
|
||||
return data_text(m);
|
||||
}
|
||||
|
||||
@@ -2629,7 +2633,7 @@ function onFilterChange() {
|
||||
}
|
||||
|
||||
// ──────────────────── Versioning ────────────────────
|
||||
const PWA_VERSION = '1.22.18';
|
||||
const PWA_VERSION = '1.22.19';
|
||||
const MIN_SERVER_VERSION = '1.0.0';
|
||||
|
||||
function parseVersion(v) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
const CACHE = 'simtrace-analyser-v50';
|
||||
const CACHE = 'simtrace-analyser-v51';
|
||||
|
||||
const PRECACHE = [
|
||||
'index.html',
|
||||
|
||||
Reference in new issue
Block a user