8 Commits

Author SHA1 Message Date
ranger 88f80a27c1 chore: v0.5.2 — bump version + CHANGELOG entry
Hotfix for v0.5.1's BAGeL/PopTron slug mistake. Same deferred-from-
Web-Store pattern as v0.5.1 — bundle ships only after v0.5.0 clears.
2026-06-10 00:51:01 +01:00
ranger 89c26a1ad5 Merge v0.5.2-prep — replace retired BAGeL with PopTron 2026-06-10 00:51:01 +01:00
ranger 2ed4bcffa9 fix(v0.5.2-prep): replace retired BAGeL Radio with PopTron in QUICK_IDS
BAGeL Radio has been retired from SomaFM (no longer in their public
channels.json). The render loop drops missing slugs silently, so the
chip just disappeared — David flagged 'stations look a bit off' and
the screenshot showed 13 chips instead of 14, wrapping awkwardly as
6+6+1 with ThistleRadio alone.

PopTron (alternative / alt-rock) fills the same indie/alt-rock genre
slot that BAGeL covered and is currently a live SomaFM channel.

One-line edit.
2026-06-10 00:51:01 +01:00
ranger 04dc3b70ec chore: v0.5.1 — bump version + CHANGELOG entry
manifest.json 0.5.0 → 0.5.1. CHANGELOG.md entry for the
Quick Stations 8 → 14 expansion (merged from v0.5.1-prep,
commit 609e0ed).

Tagged on Gitea but NOT uploaded to Chrome Web Store until
v0.5.0 clears re-review. Per David: 'we will ship to web store
after the last one gets accepted, that one is important so a
user knows what to do' — the v0.5.0 first-run hint + light
mode + theme toggle are higher-value features and should land
in users' browsers before this stations expansion piles on top.
2026-06-10 00:32:42 +01:00
ranger 6cddfccc3d Merge v0.5.1-prep — expanded Quick Stations 8 → 14 2026-06-10 00:31:52 +01:00
ranger 609e0edf60 feat(v0.5.1-prep): expand Quick Stations 8 → 14
Adds 6 more SomaFM channels to the NewTab Quick Stations chip row.
Was reading sparse with only 8; the row had space for more. Selections
broaden genre coverage and add two on-brand picks:

  +  defcon       DEF CON Radio       (electronic / hacker culture)
  +  beatblender  Beat Blender        (electronic / breakbeat)
  +  bootliquor   Boot Liquor         (americana / outlaw country)
  +  u80s         Underground 80s     (80s indie / synthwave)
  +  bagel        BAGeL Radio         (indie / alt-rock)
  +  thistle      ThistleRadio        (celtic / folk — Dublin nod)

Total chip count: 8 → 14. No code change other than the QUICK_IDS
array. The render loop already drops any ID that's missing from
SomaFM's channels.json catalogue, so if a slug changes upstream
it just disappears silently.

DEF CON Radio = David's personal favourite (used as the test
station throughout v0.3.0 development). ThistleRadio = Irish-built
extension nodding to Celtic folk. Both feel right for the demographic
this product serves.
2026-06-10 00:28:46 +01:00
ranger c3e3cc16fd chore: v0.5.0 — bump version + CHANGELOG entry
manifest.json 0.4.0 → 0.5.0. CHANGELOG.md entry documents three
bundled UX improvements:
  - Light mode (Phase 1 auto-follow + Phase 2 manual toggle)
  - Options → Tuner back-link
  - Theme sync across all three surfaces

Zero new permissions, zero new dependencies, zero behaviour change
for existing users (theme defaults to auto = matches v0.4.0 in
dark-OS browsers, which is most installs).

Bundled because v0.4.0 was still in re-review during the work + ship
discipline calls for fewer larger updates over rapid-fire micro-
updates. Same-account re-review window per Web Store rules.
2026-06-10 00:22:16 +01:00
ranger 7c476315f5 Merge v0.5.0-prep — light mode + back-link + theme toggle 2026-06-10 00:21:11 +01:00
3 changed files with 161 additions and 11 deletions
+141 -2
View File
@@ -7,12 +7,151 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi
## [Unreleased]
### Planned — Tier 2 polish (next)
- Light mode support (`prefers-color-scheme` + flipped palette across popup / NewTab / Options)
### Planned — Future polish
- `.m3u` parser alongside `.pls` to widen future-adapter compatibility
- Station artwork lazy-load + fallback to family helmet
- Better error UI for failed streams ("Stream unavailable, try another")
- `.crx` packaging instructions in README for sideload users
- Second source adapter stub to exercise the multi-source UI
---
## [0.5.2] — 2026-06-10 — Quick Stations fix: replace retired BAGeL with PopTron
Hotfix for v0.5.1's Quick Stations row. David flagged: *"the stations still look a bit off"* — turned out only 13 chips were rendering instead of the intended 14. Investigation showed **BAGeL Radio has been retired from SomaFM's current `channels.json` catalogue** — the render loop's "drop missing slugs silently" behaviour (working as designed) made the chip just disappear.
### Changed
- `src/newtab/newtab.js` `QUICK_IDS` array: `'bagel'``'poptron'`. PopTron (alternative / alt-rock) fills the same indie/alt-rock genre slot BAGeL covered, and is currently a live SomaFM channel.
### Result
14 chips visible again. Layout reads cleaner — 6+6+2 instead of 6+6+1 (ThistleRadio no longer alone on its own row).
### No other change
- No CSS, no permissions, no dependencies, no behaviour change
- Single one-line edit in `QUICK_IDS`
- Still held from Chrome Web Store upload until v0.5.0 clears re-review
### Lesson — SomaFM channel catalogue is mutable
Channels can be retired at any time. The render loop's "drop missing slugs silently" pattern protects against this, but the developer-side responsibility is to verify slugs against the live `channels.json` before adding to QUICK_IDS:
```bash
curl -s https://somafm.com/channels.json | python3 -c "import json,sys; print([c['id'] for c in json.load(sys.stdin)['channels']])"
```
---
## [0.5.1] — 2026-06-10 — Quick Stations expansion (8 → 14)
Third update of the day. **Tagged on Gitea but held from Chrome Web Store upload until v0.5.0 clears re-review** — we want the v0.5.0 features (light mode + theme toggle + back-link + first-run UX hint) landing in users' browsers before this stations expansion piles on top.
### Added — 6 more channels in the NewTab Quick Stations chip row
Was reading sparse with only 8 chips. The row had space for more. Added six channels for broader genre coverage + two on-brand picks:
| Slug | Channel | Why |
|---|---|---|
| `defcon` | DEF CON Radio | Electronic / hacker culture — David's personal favourite, on-brand for a cybersecurity-adjacent extension |
| `beatblender` | Beat Blender | Electronic / breakbeat — popular channel |
| `bootliquor` | Boot Liquor | Americana / outlaw country — adds country/twang coverage |
| `u80s` | Underground 80s | 80s indie / synthwave — adds decade coverage |
| `bagel` | BAGeL Radio | Indie / alt-rock — guitar-driven indie |
| `thistle` | ThistleRadio | Celtic / folk — 🇮🇪 Dublin-built nod |
Total chip count: 8 → 14. No new files, no new permissions, no new dependencies, no code change other than the `QUICK_IDS` array in `src/newtab/newtab.js`.
The render loop already drops any slug missing from SomaFM's `channels.json` catalogue, so if a channel is retired upstream the chip just disappears silently — no error, no broken state.
### Files touched
- `src/newtab/newtab.js``QUICK_IDS` array updated from 8 to 14 entries, with per-slug genre comments. +19 / -8 lines.
Total: 1 file, +19/-8 lines.
### Not changed
- No new permissions
- No new dependencies
- No CSS / HTML changes
- No data migration
### Shipping note
`v0.5.1` is tagged on Gitea on 2026-06-10 but **deliberately held from the Chrome Web Store** until `v0.5.0` clears re-review (currently pending). David's reasoning: *"we will ship to web store after the last one gets accepted, that one is important so a user knows what to do"* — the v0.5.0 first-run hint + light mode features are higher-value for new users; this stations expansion is a smaller polish that should land after.
---
## [0.5.0] — 2026-06-10 — Light mode + theme toggle + Options back-link
Second post-launch update, ~36 hours after v0.4.0 cleared the Chrome Web Store. Three bundled improvements, all UX polish:
### Added — Light mode support across all three surfaces
**Phase 1 — Auto-follow OS theme.** Each stylesheet (popup, NewTab, Options) gets a `@media (prefers-color-scheme: light)` block that flips the `:root` CSS variables to a light palette while preserving brand identity. Every existing rule using `var(--*)` tokens carries over unchanged.
Light palette:
- `--bg` `#f6f4ed` cream-leaning off-white
- `--bg-soft` `#ece5d2` slightly darker for header bars
- `--bg-row` `#ddd6c0` hover backgrounds
- `--bg-row-hi` `#c8c0a8` active rows
- `--fg` `#2a2f28` dark forest-green-leaning text
- `--accent` `#2a7d3e` darker brand green (preserves "RangerHQ green" identity)
- `--cream` `#b8861a` darker amber (readable on light)
- `--danger` `#b53a2b` darker red (readable on light)
NewTab helmet watermark opacity bumped 0.025 → 0.04 in light mode (helmet contrasts differently on light bg). Wired via a new `--watermark-opacity` CSS variable.
State pills, primary play button, toasts, and danger button hover all get text-colour overrides for both modes so they stay readable when their background becomes solid accent / cream / danger.
### Added — Manual Auto / Dark / Light theme toggle (Phase 2)
**Three-radio group in a new "Appearance" card on the Options page.** Stored in `chrome.storage.local` under `tuner.theme`. Defaults to "auto" (follow OS).
- **Auto** — follows OS via `@media (prefers-color-scheme: light)` (covers ~95% of users)
- **Dark** — forces dark palette regardless of OS
- **Light** — forces light palette regardless of OS
This exists because there are three independent theme layers (OS, browser-chrome, page CSS) that can disagree. `@media (prefers-color-scheme: ...)` reads the OS layer only, NOT the browser-chrome theme. So users with mismatched layers (e.g. macOS light + Chrome dark theme installed) can override the auto-follow.
Implementation: `data-theme` attribute on `<html>` ( "light" / "dark" / removed for auto). `html[data-theme="..."]` CSS selectors beat both the default `:root` and the `@media :root` on specificity.
New file: `src/lib/theme.js` — shared `getTheme/setTheme/applyTheme/initTheme` helpers used by all three entry-point scripts.
The choice syncs across surfaces via `chrome.storage.onChanged`: pick Light in Options → popup + NewTab flip instantly without reload. Theme applies BEFORE first paint (each init() calls `initTheme()` first) so there's no dark flash on light-mode-preferring browsers.
### Added — Options page → Tuner back-link
The Options page header (helmet + "RangerHQ Tuner — Options") is now a single clickable anchor pointing at `newtab.html`. Subtle `←` glyph to the left of the helmet; hover shifts the arrow left and tints it accent green. Same-tab navigation — user came IN via Options, goes OUT into the player UI in the same tab. No accumulating Tuner tabs.
Fixes UX gap David flagged on 2026-06-09 night: *"when i click the settings button i go to settings but we have no back link to radio."*
### Files touched
- `src/lib/theme.js` (NEW, ~55 lines)
- `src/popup/popup.css` (+50 lines — light + dark override blocks)
- `src/popup/popup.js` (+8 lines — initTheme call + storage.onChanged hook)
- `src/newtab/newtab.css` (+50 lines — light + dark override blocks)
- `src/newtab/newtab.js` (+8 lines — same wiring)
- `src/options/options.html` (+24 lines — Appearance card)
- `src/options/options.css` (+90 lines — light + dark blocks + radio styling)
- `src/options/options.js` (+32 lines — radio handlers + cross-surface sync)
Total: 8 files, ~340 lines added.
### Not changed
- No new permissions
- No new host_permissions
- No new external libraries
- No data migration required
- Existing user state (current station / volume / history / favourites) survives intact
### Reviewer expectations
Same-account update with no permission change. Same-day review expected (~hours to 24h), similar to v0.4.0's 24h-ish re-review window per [[reference_chrome_web_store_rules]].
---
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "RangerHQ Tuner",
"version": "0.4.0",
"version": "0.5.2",
"description": "Lightweight SomaFM radio player. Logs what plays. One-click search to Spotify, YouTube, Apple Music, Bandcamp. No telemetry.",
"author": "David Keane",
"homepage_url": "https://davidtkeane.com/rangerhq-tuner",
+19 -8
View File
@@ -57,15 +57,26 @@ const CATALOGUE_TTL_MS = 6 * 60 * 60 * 1000;
// Quick-pick stations. These are the SomaFM ids most people start with.
// If the catalogue is missing any (rare), they're just dropped silently.
//
// Layout: 14 stations across roughly chill / ambient / indie / lounge /
// space / electronic / americana / 80s / alt-rock / celtic — broader
// genre coverage than the v0.4.0 list, plus DEF CON Radio (the on-brand
// cybersecurity pick) and ThistleRadio (the Dublin-built Irish nod).
const QUICK_IDS = [
'groovesalad',
'dronezone',
'indiepop',
'secretagent',
'spacestation',
'lush',
'deepspaceone',
'fluid',
'groovesalad', // chill / electronic
'dronezone', // ambient
'indiepop', // indie pop rocks
'secretagent', // lounge / spy
'spacestation', // ambient / space
'lush', // vocal / chill
'deepspaceone', // ambient
'fluid', // electronic
'defcon', // electronic / hacker culture (DEF CON Radio)
'beatblender', // electronic / breakbeat
'bootliquor', // americana / outlaw country
'u80s', // 80s indie / synthwave (Underground 80s)
'poptron', // alternative / alt-rock (PopTron) — replaces BAGeL Radio (retired by SomaFM)
'thistle', // celtic / folk (ThistleRadio)
];
let stations = [];