Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge main and narrow accessible input names to useful controls

Sameh Khamis3d526f208d12
diff --cc CHANGELOG.md
index 21544fa46,e2dc1ec2b..b84c249a1
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -7,6 -15,13 +15,15 @@@ of current runtime behavior, see [`docs
### Fixed
++- Scope, Bloom, Sharpen, location search and generated style sliders expose
++ explicit accessible names. The first-run checkbox retains its native label.
+ - FIRMS records a source as successful only after appending its rows, avoiding
+ contradictory success/failure status if aggregation throws.
+ - Radio country filtering and voice country requests now resolve common English
+ names and exonyms that `Intl.DisplayNames`' primary label omits, so requests
+ like "play radio in Turkey" no longer fail closed (Turkey → Türkiye, plus
+ Myanmar/Burma, UAE, Holland, Swaziland, East Timor, Cabo Verde, Vatican).
+ Ambiguous names such as a bare "Congo" or "Korea" still fail closed.
- Mapped-site outages show their scheduled retry countdown and distinguish
known Overpass rate limits, timeouts, and query failures. Search feedback no
longer claims a refresh succeeded while the layer is unavailable or loading.
diff --cc docs/CURRENT-STATE.md
index 1f4d861f4,b70fdf86a..0e3f20ad4
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -1,7 -1,22 +1,29 @@@
# God's Eye View Current State
+ ## September 8, 2026
+
+ Earthquake refreshes validate the complete feed and construct replacement entities before clearing the previous snapshot. Malformed rows and duplicate rendered IDs retain the last good entities, overlays, count and timestamp and report a malformed response; unknown magnitude is excluded from M2.5+ rendering.
+
+ Non-object or array-valued properties reject the response instead of being treated as an unknown magnitude.
+
+ Launch payloads with missing records now say PAYLOAD DATA UNAVAILABLE. Missing names use Unnamed payload; absent or invalid mass stays unknown instead of appearing as 0 KG.
+
Updated: August 24, 2026
++## Control names for assistive technology
++
++Scope, Bloom, Sharpen and location search have explicit accessible names.
++Generated style sliders use the same name as their visible parameter label.
++The first-run suppression checkbox keeps its native wrapping label, so its
++accessible name remains "Don't show this again". Control behavior is unchanged.
++
+ ## FIRMS source status
+
+ The FIRMS proxy records source success after appending its rows. If aggregation
+ throws, that source reports failure without a contradictory success entry.
+ The existing per-record append continues to support large feeds; sequential
+ fetching, trailing-24-hour filtering and partial-success caching are unchanged.
+
## Installations and map-source guidance
- On an uncached Overpass failure, mapped installations keep their existing
diff --cc src/hudA11y.test.mjs
index bd5a34e01,000000000..c2ef2e6dc
mode 100644,000000..100644
--- a/src/hudA11y.test.mjs
+++ b/src/hudA11y.test.mjs
@@@ -1,52 -1,0 +1,30 @@@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import { readFileSync } from 'node:fs';
- import path from 'node:path';
+
- test('index.html: all interactive input elements have accessible names (WCAG 4.1.2)', () => {
- const htmlPath = path.resolve(process.cwd(), 'index.html');
- const html = readFileSync(htmlPath, 'utf8');
-
- // Match all <input ... /> tags
- const inputMatches = [...html.matchAll(/<input\b([^>]*)\/?>/g)];
- assert.ok(inputMatches.length > 5, 'expected to find interactive input elements');
-
- for (const match of inputMatches) {
- const attrs = match[1];
- const hasAriaLabel = /aria-label=["'][^"']+["']/.test(attrs);
- const hasAriaLabelledby = /aria-labelledby=["'][^"']+["']/.test(attrs);
- const idMatch = attrs.match(/\bid=["']([^"']+)["']/);
- const id = idMatch ? idMatch[1] : null;
-
- let hasAssociatedLabel = false;
- if (id) {
- // Check if there is a <label for="id">
- const labelForRegex = new RegExp(`<label\\b[^>]*\\bfor=["']${id}["']`, 'i');
- hasAssociatedLabel = labelForRegex.test(html);
- }
-
- const hasAccessibleName = hasAriaLabel || hasAriaLabelledby || hasAssociatedLabel;
- assert.ok(
- hasAccessibleName,
- `input tag "${match[0]}" must have an accessible name (aria-label, aria-labelledby, or label for)`
- );
++const html = readFileSync(new URL('../index.html', import.meta.url), 'utf8');
++const ui = readFileSync(new URL('./ui.js', import.meta.url), 'utf8');
++
++// Focused markup guards; actual computed names are checked in Chromium.
++// Native labels and hidden inputs must not be treated as missing aria-labels.
++test('HUD sliders and location search have descriptive explicit names', () => {
++ for (const [id, name] of [
++ ['scope-feather-slider', 'Scope edge feather'],
++ ['bloom-intensity-slider', 'Bloom intensity'],
++ ['sharpen-intensity-slider', 'Sharpen intensity'],
++ ['location-search', 'Search location by name or coordinates'],
++ ]) {
++ const input = html.match(new RegExp(`<input\\b[^>]*\\bid="${id}"[^>]*>`))?.[0];
++ assert.ok(input, `${id} exists`);
++ assert.ok(input.includes(`aria-label="${name}"`), `${id} has its descriptive name`);
+ }
+});
+
- test('index.html: HUD sliders and controls have descriptive accessible labels', () => {
- const htmlPath = path.resolve(process.cwd(), 'index.html');
- const html = readFileSync(htmlPath, 'utf8');
-
- assert.match(html, /id="scope-feather-slider"[^>]*aria-label="Scope edge feather"/);
- assert.match(html, /id="bloom-intensity-slider"[^>]*aria-label="Bloom intensity"/);
- assert.match(html, /id="sharpen-intensity-slider"[^>]*aria-label="Sharpen intensity"/);
- assert.match(html, /id="location-search"[^>]*aria-label="Search location by name or coordinates"/);
- assert.match(html, /data-first-run-suppress[^>]*aria-label="Do not show this message again on startup"/);
++test('the first-run checkbox keeps its native visible label', () => {
++ assert.match(html, /<label\b[^>]*class="first-run-suppress"[^>]*>\s*<input type="checkbox" data-first-run-suppress \/>\s*<span>Don't show this again<\/span>\s*<\/label>/);
+});
+
- test('ui.js: dynamic style parameter sliders set aria-label', () => {
- const uiPath = path.resolve(process.cwd(), 'src/ui.js');
- const uiJs = readFileSync(uiPath, 'utf8');
-
- assert.match(uiJs, /slider\.setAttribute\(['"]aria-label['"],\s*uMeta\.label\)/);
++test('generated style sliders use the visible parameter label as their name', () => {
++ assert.match(ui, /label\.textContent\s*=\s*uMeta\.label;/);
++ assert.match(ui, /slider\.setAttribute\(['"]aria-label['"],\s*uMeta\.label\)/);
+});