From 347ff5387b14a60f92dc7e740130d84f28b3e789 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: Sun, 6 Sep 2026 21:44:02 +0300 Subject: [PATCH] Clear detail view on capture start and session load - Reset apdu-detail to empty state in startCapture() and loadSession() - Bump 1.22.13, SW cache v44->v45 --- frontend/index.html | 4 +++- frontend/sw.js | 2 +- pyproject.toml | 2 +- simtrace2_pysniff/__init__.py | 2 +- tests/test_pcap_import.py | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index c256e51..e9a55f2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2153,6 +2153,7 @@ async function startCapture() { buildTraceMap(); renderSidePanel(); renderMessages(); + el('apdu-detail').innerHTML = `
${t('Click an APDU to see details')}
`; updateCaptureButton(); startPolling(); } catch (e) { @@ -2366,6 +2367,7 @@ async function loadSession(id) { switchTab('trace'); updateCaptureButton(); renderMessages(); + el('apdu-detail').innerHTML = `
${t('Click an APDU to see details')}
`; el('session-name-display').style.display = 'inline'; el('session-name-display').textContent = t('Session: ') + (data.session.name || '#' + id); history.replaceState(null, '', '#session=' + id); @@ -2617,7 +2619,7 @@ function onFilterChange() { } // ──────────────────── Versioning ──────────────────── -const PWA_VERSION = '1.22.12'; +const PWA_VERSION = '1.22.13'; const MIN_SERVER_VERSION = '1.0.0'; function parseVersion(v) { diff --git a/frontend/sw.js b/frontend/sw.js index f14fc83..15de14c 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'simtrace-analyser-v44'; +const CACHE = 'simtrace-analyser-v45'; const PRECACHE = [ 'index.html', diff --git a/pyproject.toml b/pyproject.toml index 54e91dc..af9d26b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend" [project] name = "simtrace2-pysniff" -version = "1.22.12" +version = "1.22.13" description = "Python-based sniffing tool for SIMtrace2 hardware (SIM card communication sniffer)" readme = {file = "README.md", content-type = "text/markdown"} license = {text = "GPL-2.0-or-later"} diff --git a/simtrace2_pysniff/__init__.py b/simtrace2_pysniff/__init__.py index 5206746..2d5d18e 100644 --- a/simtrace2_pysniff/__init__.py +++ b/simtrace2_pysniff/__init__.py @@ -6,7 +6,7 @@ from .gsmtap import GsmtapSender, GsmtapReceiver from .pcap import PcapWriter from .dump import FileDumper, format_message -__version__ = '1.22.12' +__version__ = '1.22.13' __all__ = [ 'SniffSession', 'DeviceDisconnected', diff --git a/tests/test_pcap_import.py b/tests/test_pcap_import.py index 34de92e..420c382 100644 --- a/tests/test_pcap_import.py +++ b/tests/test_pcap_import.py @@ -224,7 +224,7 @@ class TestImportEndpoint(unittest.TestCase): class TestVersion(unittest.TestCase): def test_package_version(self): from simtrace2_pysniff import __version__ - self.assertEqual(__version__, '1.22.12') + self.assertEqual(__version__, '1.22.13') def test_status_includes_version(self): import os