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
This commit is contained in:
catarrh committed 2026-09-06 21:44:02 +03:00
1 parent 52243f496c
commit 347ff5387b
5 files changed
+7 -5

No files matched your search

+3 -1
View File
@@ -2153,6 +2153,7 @@ async function startCapture() {
buildTraceMap(); buildTraceMap();
renderSidePanel(); renderSidePanel();
renderMessages(); renderMessages();
el('apdu-detail').innerHTML = `<div class="detail-empty" data-l10n="Click an APDU to see details">${t('Click an APDU to see details')}</div>`;
updateCaptureButton(); updateCaptureButton();
startPolling(); startPolling();
} catch (e) { } catch (e) {
@@ -2366,6 +2367,7 @@ async function loadSession(id) {
switchTab('trace'); switchTab('trace');
updateCaptureButton(); updateCaptureButton();
renderMessages(); renderMessages();
el('apdu-detail').innerHTML = `<div class="detail-empty" data-l10n="Click an APDU to see details">${t('Click an APDU to see details')}</div>`;
el('session-name-display').style.display = 'inline'; el('session-name-display').style.display = 'inline';
el('session-name-display').textContent = t('Session: ') + (data.session.name || '#' + id); el('session-name-display').textContent = t('Session: ') + (data.session.name || '#' + id);
history.replaceState(null, '', '#session=' + id); history.replaceState(null, '', '#session=' + id);
@@ -2617,7 +2619,7 @@ function onFilterChange() {
} }
// ──────────────────── Versioning ──────────────────── // ──────────────────── Versioning ────────────────────
const PWA_VERSION = '1.22.12'; const PWA_VERSION = '1.22.13';
const MIN_SERVER_VERSION = '1.0.0'; const MIN_SERVER_VERSION = '1.0.0';
function parseVersion(v) { function parseVersion(v) {
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'simtrace-analyser-v44'; const CACHE = 'simtrace-analyser-v45';
const PRECACHE = [ const PRECACHE = [
'index.html', 'index.html',
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend"
[project] [project]
name = "simtrace2-pysniff" name = "simtrace2-pysniff"
version = "1.22.12" version = "1.22.13"
description = "Python-based sniffing tool for SIMtrace2 hardware (SIM card communication sniffer)" description = "Python-based sniffing tool for SIMtrace2 hardware (SIM card communication sniffer)"
readme = {file = "README.md", content-type = "text/markdown"} readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "GPL-2.0-or-later"} license = {text = "GPL-2.0-or-later"}
+1 -1
View File
@@ -6,7 +6,7 @@ from .gsmtap import GsmtapSender, GsmtapReceiver
from .pcap import PcapWriter from .pcap import PcapWriter
from .dump import FileDumper, format_message from .dump import FileDumper, format_message
__version__ = '1.22.12' __version__ = '1.22.13'
__all__ = [ __all__ = [
'SniffSession', 'SniffSession',
'DeviceDisconnected', 'DeviceDisconnected',
+1 -1
View File
@@ -224,7 +224,7 @@ class TestImportEndpoint(unittest.TestCase):
class TestVersion(unittest.TestCase): class TestVersion(unittest.TestCase):
def test_package_version(self): def test_package_version(self):
from simtrace2_pysniff import __version__ from simtrace2_pysniff import __version__
self.assertEqual(__version__, '1.22.12') self.assertEqual(__version__, '1.22.13')
def test_status_includes_version(self): def test_status_includes_version(self):
import os import os