Skip to content

Commit 133c94c

Browse files
committed
Update version refs; add live GitHub version fetch
Replace hardcoded stable release references with 0.0.7_STABLE in the dashboard changelog and headings. Add a Live Version Fetcher script that queries the GitHub Releases API and updates #version-display, #dl-version and .footer-version dynamically, with console-warn fallback on error. Improves correctness of displayed version and enables automatic updates when new releases are published.
1 parent aabc8cd commit 133c94c

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

dashboard/index.html

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ <h3>[0.1.1_RC4]</h3>
204204
<ul>
205205
<li>Render Images Sliding Toggle: Replaced standalone toggle button with sliding switch (`NO-IMG [Toggle] IMG`)</li>
206206
<li>Smart Diagnostic Dashboard Notice: `#changelog-status-badge` dynamically reports live GitHub fetch vs cache vs hardcoded fallback</li>
207-
<li>Download Reliability Statement: Explicitly clarified all links point strictly to verified stable release `0.1.1_STABLE5`</li>
207+
<li>Download Reliability Statement: Explicitly clarified all links point strictly to verified stable release `0.0.7_STABLE`</li>
208208
<li>Advanced Editing History: Added Undo (`Ctrl+Z`), Redo (`Ctrl+Y`), and Reset All action buttons with dedicated React history stacks</li>
209209
<li>Updated keyboard shortcuts in app sidebar and all READMEs</li>
210210
<li>Updated all version references to <code>0.1.1_RC4</code></li>
@@ -254,13 +254,13 @@ <h3>[0.0.8_BETA4]</h3>
254254
<li>Clarified Windows XP legacy engine limitations (Chromium/WebView2 minimum requirement is Windows 7)</li>
255255
<li>Updated all version references to <code>0.0.8_BETA4</code></li>
256256
</ul>
257-
<h3>[0.1.1_STABLE5]</h3>
257+
<h3>[0.0.7_STABLE]</h3>
258258
<ul>
259259
<li>Fixed file association opening: double-clicking an associated file in the OS now correctly opens and loads the file contents in the app</li>
260260
<li>Fixed native OS Drag & Drop functionality in the desktop app</li>
261261
<li>Configured native bundle file associations in <code>tauri.conf.json</code></li>
262262
<li>Added <code>%f</code> parameter to Linux desktop entry in <code>PKGBUILD</code></li>
263-
<li>Updated all version references to <code>0.1.1_STABLE5</code></li>
263+
<li>Updated all version references to <code>0.0.7_STABLE</code></li>
264264
<li>Created <code>arenaai.md</code> developer guide</li>
265265
</ul>
266266
<h3>[0.0.6_STABLE]</h3>
@@ -489,6 +489,28 @@ <h3>Tech Stack</h3>
489489
console.warn('Cache detection not supported:', err);
490490
}
491491
});
492+
493+
// Live Version Fetcher (Fetches latest stable release tag dynamically from GitHub API)
494+
async function fetchLatestVersion() {
495+
try {
496+
const res = await fetch('https://api.github.com/repos/PiBOH/multimdreader/releases/latest');
497+
if (!res.ok) return;
498+
const data = await res.json();
499+
let ver = data.tag_name || '';
500+
if (ver.startsWith('v')) ver = ver.substring(1);
501+
502+
const vDisp = document.getElementById('version-display');
503+
const dlDisp = document.getElementById('dl-version');
504+
const fDisp = document.querySelector('.footer-version');
505+
506+
if (vDisp && ver) vDisp.textContent = ver;
507+
if (dlDisp && ver) dlDisp.textContent = ver;
508+
if (fDisp && ver) fDisp.textContent = 'v' + ver;
509+
} catch (err) {
510+
console.warn('Could not fetch latest version, using built-in fallback:', err);
511+
}
512+
}
513+
fetchLatestVersion();
492514
</script>
493515

494516
<!-- ========== CACHE NOTICE TOAST ========== -->

0 commit comments

Comments
 (0)