Fix session name label language switch + add frontend screenshot

- Store raw session name in STATE.currentSessionRawName
- Re-render session-name-display in toggleLang() with current translation
- Add frontend.png screenshot to README
- Bump 1.22.15, SW cache v46->v47
This commit is contained in:
catarrh committed 2026-09-06 22:05:25 +03:00
1 parent af16eb1dd8
commit ede38c985e
7 files changed
+12 -5

No files matched your search

+6 -1
View File
@@ -421,6 +421,7 @@ const STATE = {
captureActive: false,
currentSessionId: null,
currentSessionName: null,
currentSessionRawName: null,
sessionViewId: null,
sessionStarted: null,
livePoller: null,
@@ -2364,6 +2365,7 @@ async function loadSession(id) {
STATE.sessionStarted = data.session.started;
STATE.captureActive = false;
STATE.currentSessionName = data.session.name || t('Session #') + id;
STATE.currentSessionRawName = data.session.name || null;
STATE.messages = data.messages;
STATE.mapExpanded.clear();
switchTab('trace');
@@ -2621,7 +2623,7 @@ function onFilterChange() {
}
// ──────────────────── Versioning ────────────────────
const PWA_VERSION = '1.22.14';
const PWA_VERSION = '1.22.15';
const MIN_SERVER_VERSION = '1.0.0';
function parseVersion(v) {
@@ -2773,6 +2775,9 @@ function toggleLang() {
localStorage.setItem('lang', currentLang);
applyLang();
translatePage();
if (STATE.sessionViewId) {
el('session-name-display').textContent = t('Session: ') + (STATE.currentSessionRawName || '#' + STATE.sessionViewId);
}
updateStatus();
updateCaptureButton();
renderMessages();
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'simtrace-analyser-v46';
const CACHE = 'simtrace-analyser-v47';
const PRECACHE = [
'index.html',