La radio no se dibuja para un invitado ni contra un servidor viejo
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s

Las emisoras las busca el servidor, así que dos situaciones que no son bugs se veían
como uno: sin sesión (el modo invitado nunca habla con la api) y una api más vieja
que la app —se despliegan por separado, y un deploy que reconstruyó `web` y no el
contenedor de la api es una pantalla cuyos pedidos fallan todos.

Ahora la sección lo dice y no pide nada en ninguno de los dos casos. Para poder
distinguirlos, `radio` entra en `features` (`GET /api/config`), que es exactamente
para lo que existe esa lista, y queda documentado en la especificación junto con
`features` entero —que hasta ahora no estaba.

De paso: la fila y la barra caen al marcador de posición cuando el logo o la portada
no cargan, que es el caso de una parte del directorio.
This commit is contained in:
dsantillan committed 2026-09-23 20:45:21 -04:00
1 parent 8f26b536fd
commit a3e13df279
7 files changed
+108 -25

No files matched your search

+14
View File
@@ -86,6 +86,20 @@ under a locked screen in a WebView needs `UIBackgroundModes: audio` (iOS) and a
(Android) in the shell's own config. Neither is set today — that is described in
[docs/MOBILE.md](docs/MOBILE.md), and it only affects the packaged builds, not the PWA.
## When the radio isn't there
Two situations look like a bug and are not, so the screen says which one it is instead of showing a
request that failed:
- **Nobody is signed in.** Guest mode is client-side only and never talks to the api, and the station
list is the server's job — so the section says the radio needs a profile. No request is made.
- **The api is older than the app.** They ship separately: `web` is rebuilt from source on every
deploy, while the api's code lives inside its container, so a deploy can leave a new screen on top
of an api that has never heard of `/api/radio`. `GET /api/config` lists what that api can do
(`features`, and this build answers `radio`), so "old server" is detectable — the section says so,
quietly, rather than offering chips that 404. The same list is what keeps the Salud screen from
blaming the data when it is really the container.
## Saving a station
The star on a row saves the station to your profile (`music.stations`), and saved ones are pinned