Skip to content

Commit ccdfbc9

Browse files
committed
feat(v0.3.7): move version into the header with a clickable changelog
- The version number now sits in the sidebar header (pill badge) instead of the footer, and reads from the manifest. - Clicking it opens an accessible changelog dialog (role=dialog, aria-modal, labelled title, close button, Escape / backdrop to dismiss, focus moved to the close button and restored on close, Tab trapped). Entries are SemVer, newest first. Verified the header and dialog rendering with a headless screenshot. - Bump to 0.3.7, rebuild packages.
1 parent 609d6fb commit ccdfbc9

11 files changed

Lines changed: 256 additions & 14 deletions

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to Radio Stream are documented here.
44
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and the project adheres to [Semantic Versioning](https://semver.org/).
66

7+
## [0.3.7] — 2026-07-30
8+
9+
### Added
10+
- The version number moved into the sidebar header and is now a button that
11+
opens an accessible changelog dialog (SemVer entries, newest first; closes on
12+
Escape, backdrop click, or the close button).
13+
714
## [0.3.6] — 2026-07-30
815

916
### Fixed

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Browser extension to play popular French live radio streams from the browser sid
44
Chrome / Chromium and Firefox use the browser sidebar so playback remains integrated and
55
stoppable without focusing a hidden player tab.
66

7-
[![CI](https://github.com/jmicaux/radio-stream/actions/workflows/ci.yml/badge.svg)](https://github.com/jmicaux/radio-stream/actions/workflows/ci.yml) ![version](https://img.shields.io/badge/version-0.3.6-blue) ![vanilla](https://img.shields.io/badge/stack-vanilla_JS-f7df1e) ![no build](https://img.shields.io/badge/build-none-brightgreen) ![manifest](https://img.shields.io/badge/manifest-v3-8b5cf6) ![browsers](https://img.shields.io/badge/browsers-Chrome_+_Firefox-3b82f6)
7+
[![CI](https://github.com/jmicaux/radio-stream/actions/workflows/ci.yml/badge.svg)](https://github.com/jmicaux/radio-stream/actions/workflows/ci.yml) ![version](https://img.shields.io/badge/version-0.3.7-blue) ![vanilla](https://img.shields.io/badge/stack-vanilla_JS-f7df1e) ![no build](https://img.shields.io/badge/build-none-brightgreen) ![manifest](https://img.shields.io/badge/manifest-v3-8b5cf6) ![browsers](https://img.shields.io/badge/browsers-Chrome_+_Firefox-3b82f6)
88

99
**🔗 Live preview: [jmicaux.github.io/radio-stream](https://jmicaux.github.io/radio-stream/)**
1010

@@ -60,8 +60,8 @@ If you enjoy this extension, you can support it:
6060

6161
Grab the latest packaged build from the [releases page](https://github.com/jmicaux/radio-stream/releases/latest):
6262

63-
- **Chrome / Chromium:** [radio-stream-extension-chrome.zip](https://github.com/jmicaux/radio-stream/releases/download/v0.3.6/radio-stream-extension-chrome.zip)
64-
- **Firefox:** [radio-stream-firefox-v0.3.6.xpi](https://github.com/jmicaux/radio-stream/releases/download/v0.3.6/radio-stream-firefox-v0.3.6.xpi) — or the [.zip variant](https://github.com/jmicaux/radio-stream/releases/download/v0.3.6/radio-stream-firefox-v0.3.6.zip) if your browser tries to install the `.xpi` directly instead of downloading it.
63+
- **Chrome / Chromium:** [radio-stream-extension-chrome.zip](https://github.com/jmicaux/radio-stream/releases/download/v0.3.7/radio-stream-extension-chrome.zip)
64+
- **Firefox:** [radio-stream-firefox-v0.3.7.xpi](https://github.com/jmicaux/radio-stream/releases/download/v0.3.7/radio-stream-firefox-v0.3.7.xpi) — or the [.zip variant](https://github.com/jmicaux/radio-stream/releases/download/v0.3.7/radio-stream-firefox-v0.3.7.zip) if your browser tries to install the `.xpi` directly instead of downloading it.
6565

6666
## Install & usage
6767

@@ -70,7 +70,7 @@ Grab the latest packaged build from the [releases page](https://github.com/jmica
7070
1. Open `about:debugging#/runtime/this-firefox`.
7171
2. Click `Load Temporary Add-on...`.
7272
3. For source testing, select `manifest.firefox.json` from this project folder.
73-
4. For packaged testing, use `dist/v0.3.6/firefox/radio-stream-extension-firefox.zip`.
73+
4. For packaged testing, use `dist/v0.3.7/firefox/radio-stream-extension-firefox.zip`.
7474

7575
The Firefox add-on is distributed through [addons.mozilla.org](https://addons.mozilla.org/) (AMO), which handles updates.
7676

@@ -80,9 +80,9 @@ The Firefox add-on is distributed through [addons.mozilla.org](https://addons.mo
8080
2. Enable `Developer mode`.
8181
3. Click `Load unpacked`.
8282
4. Select this project folder.
83-
5. For packaged testing, use `dist/v0.3.6/chrome/radio-stream-extension-chrome.zip`.
83+
5. For packaged testing, use `dist/v0.3.7/chrome/radio-stream-extension-chrome.zip`.
8484

85-
Chrome release artifacts are mirrored in `releases/v0.3.6/chrome/` for symmetry with Firefox.
85+
Chrome release artifacts are mirrored in `releases/v0.3.7/chrome/` for symmetry with Firefox.
8686

8787
## Project structure
8888

24.8 KB
Binary file not shown.
24.8 KB
Binary file not shown.

‎manifest.firefox.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Radio Stream",
4-
"version": "0.3.6",
4+
"version": "0.3.7",
55
"description": "Play French radio live audio streams from the extension.",
66
"permissions": [
77
"storage"

‎manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Radio Stream",
4-
"version": "0.3.6",
4+
"version": "0.3.7",
55
"description": "Play French radio live audio streams from the extension.",
66
"permissions": [
77
"storage",

‎popup.css‎

Lines changed: 132 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,35 @@ body {
2626

2727
.toolbar {
2828
display: flex;
29-
justify-content: flex-end;
29+
align-items: center;
30+
justify-content: space-between;
3031
margin-bottom: 8px;
3132
}
3233

34+
.version-badge {
35+
padding: 3px 8px;
36+
border: 1px solid #e5e7eb;
37+
border-radius: 999px;
38+
background: #f9fafb;
39+
color: #6b7280;
40+
font-size: 11px;
41+
font-weight: 600;
42+
font-variant-numeric: tabular-nums;
43+
cursor: pointer;
44+
transition: color 0.2s, background-color 0.2s, border-color 0.2s;
45+
}
46+
47+
.version-badge:hover {
48+
color: #374151;
49+
border-color: #d1d5db;
50+
background: #f3f4f6;
51+
}
52+
53+
.version-badge:focus-visible {
54+
outline: 3px solid #2563eb;
55+
outline-offset: 2px;
56+
}
57+
3358
.refresh {
3459
display: flex;
3560
align-items: center;
@@ -212,12 +237,114 @@ body {
212237
outline-offset: 2px;
213238
}
214239

215-
.version {
216-
margin: 8px 0 0 0;
240+
.changelog-overlay {
241+
position: fixed;
242+
inset: 0;
243+
display: flex;
244+
align-items: flex-start;
245+
justify-content: center;
246+
padding: 16px;
247+
background: rgba(21, 25, 34, 0.45);
248+
z-index: 100;
249+
}
250+
251+
.changelog-overlay[hidden] {
252+
display: none;
253+
}
254+
255+
.changelog-dialog {
256+
display: flex;
257+
flex-direction: column;
258+
width: 100%;
259+
max-width: 340px;
260+
max-height: calc(100vh - 32px);
261+
border-radius: 10px;
262+
background: #ffffff;
263+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
264+
}
265+
266+
.changelog-head {
267+
display: flex;
268+
align-items: center;
269+
justify-content: space-between;
270+
padding: 12px 16px;
271+
border-bottom: 1px solid #e5e7eb;
272+
}
273+
274+
.changelog-title {
275+
margin: 0;
276+
font-size: 14px;
277+
font-weight: 600;
278+
color: #151922;
279+
}
280+
281+
.changelog-close {
282+
display: flex;
283+
align-items: center;
284+
justify-content: center;
285+
width: 28px;
286+
height: 28px;
217287
padding: 0;
218-
font-size: 11px;
288+
border: none;
289+
border-radius: 6px;
290+
background: transparent;
219291
color: #6b7280;
220-
text-align: center;
292+
cursor: pointer;
293+
}
294+
295+
.changelog-close:hover {
296+
color: #151922;
297+
background: #f3f4f6;
298+
}
299+
300+
.changelog-close:focus-visible {
301+
outline: 3px solid #2563eb;
302+
outline-offset: 2px;
303+
}
304+
305+
.changelog-body {
306+
padding: 8px 16px 16px;
307+
overflow-y: auto;
308+
}
309+
310+
.changelog-entry {
311+
padding: 12px 0;
312+
border-bottom: 1px solid #f0f1f3;
313+
}
314+
315+
.changelog-entry:last-child {
316+
border-bottom: none;
317+
}
318+
319+
.changelog-entry-head {
320+
display: flex;
321+
align-items: baseline;
322+
gap: 8px;
323+
margin-bottom: 6px;
324+
}
325+
326+
.changelog-version {
327+
font-size: 13px;
328+
font-weight: 700;
329+
color: #151922;
330+
font-variant-numeric: tabular-nums;
331+
}
332+
333+
.changelog-date {
334+
font-size: 11px;
335+
color: #9ca3af;
336+
}
337+
338+
.changelog-list {
339+
margin: 0;
340+
padding-left: 18px;
341+
}
342+
343+
.changelog-list li {
344+
font-size: 12px;
345+
line-height: 1.45;
346+
color: #374151;
347+
margin-bottom: 4px;
221348
}
222349

223350
.sr-only {
24.8 KB
Binary file not shown.
24.8 KB
Binary file not shown.

‎sidebar.html‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<main class="panel">
1111
<div class="toolbar">
1212
<h1 class="sr-only">Radio Stream</h1>
13+
<button class="version-badge" id="version" type="button" aria-haspopup="dialog" aria-expanded="false" title="Voir les nouveautés"></button>
1314
<button class="refresh" id="refresh" type="button" aria-label="Rafraîchir la liste des radios" title="Rafraîchir">
1415
<svg class="refresh-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1516
<path d="M21 12a9 9 0 1 1-2.64-6.36"></path>
@@ -20,8 +21,23 @@ <h1 class="sr-only">Radio Stream</h1>
2021
<button class="stop" id="stop" type="button" aria-disabled="true">Stop</button>
2122
<p class="status" id="status" aria-live="polite"></p>
2223
<div class="stations" id="stations" aria-label="Radios"></div>
23-
<p class="version" id="version"></p>
2424
</main>
25+
26+
<div class="changelog-overlay" id="changelog" hidden>
27+
<div class="changelog-dialog" role="dialog" aria-modal="true" aria-labelledby="changelog-title">
28+
<div class="changelog-head">
29+
<h2 class="changelog-title" id="changelog-title">Nouveautés</h2>
30+
<button class="changelog-close" id="changelog-close" type="button" aria-label="Fermer">
31+
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
32+
<line x1="18" y1="6" x2="6" y2="18"></line>
33+
<line x1="6" y1="6" x2="18" y2="18"></line>
34+
</svg>
35+
</button>
36+
</div>
37+
<div class="changelog-body" id="changelog-body"></div>
38+
</div>
39+
</div>
40+
2541
<script src="sidebar.js"></script>
2642
</body>
2743
</html>

0 commit comments

Comments
 (0)