Commit 路
9d13c1a
1
Parent(s): 86ee96a
feat: version pill auto-reads from changelog.json
Browse files- Added id attribute to version-pill element
- JavaScript now reads first entry from changelog.json
- Version number updates automatically when changelog is updated
- index.html +10 -1
index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
<span class="brand-name">Reachy Mini for Home Assistant</span>
|
| 19 |
</div>
|
| 20 |
<div class="pill">Voice 路 Gestures 路 Smart Home</div>
|
| 21 |
-
<div class="version-pill">v0.8.3</div>
|
| 22 |
</div>
|
| 23 |
<div class="hero-grid">
|
| 24 |
<div class="hero-copy">
|
|
@@ -187,6 +187,15 @@
|
|
| 187 |
fetch('changelog.json')
|
| 188 |
.then(res => res.json())
|
| 189 |
.then(data => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
const mainGrid = document.getElementById('changelog-grid');
|
| 191 |
const olderGrid = document.getElementById('changelog-older');
|
| 192 |
data.forEach((item, index) => {
|
|
|
|
| 18 |
<span class="brand-name">Reachy Mini for Home Assistant</span>
|
| 19 |
</div>
|
| 20 |
<div class="pill">Voice 路 Gestures 路 Smart Home</div>
|
| 21 |
+
<div class="version-pill" id="version-pill">v0.8.3</div>
|
| 22 |
</div>
|
| 23 |
<div class="hero-grid">
|
| 24 |
<div class="hero-copy">
|
|
|
|
| 187 |
fetch('changelog.json')
|
| 188 |
.then(res => res.json())
|
| 189 |
.then(data => {
|
| 190 |
+
// Update version pill with latest version
|
| 191 |
+
if (data.length > 0) {
|
| 192 |
+
const versionPill = document.getElementById('version-pill');
|
| 193 |
+
if (versionPill) {
|
| 194 |
+
versionPill.textContent = `v${data[0].version}`;
|
| 195 |
+
}
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
// Populate changelog grid
|
| 199 |
const mainGrid = document.getElementById('changelog-grid');
|
| 200 |
const olderGrid = document.getElementById('changelog-older');
|
| 201 |
data.forEach((item, index) => {
|