El reproductor completo al tocar la barra, y el episodio siguiente al terminar
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
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
Tocar la barra abre el reproductor completo, como el de Spotify: portada en grande, título entero, programa, autor, número de episodio y fecha, una barra que se arrastra, el tiempo transcurrido y **lo que falta**, −15/+30, anterior y siguiente, y una línea que dice **"Después: …"** con el nombre del que sigue —o que es el último de la lista. Es una hoja, no una ruta, por lo mismo de siempre: una pantalla dentro del router se desmonta al navegar y esto no puede ser lo que corte el audio. Para una emisora el mismo reproductor no dibuja barra de progreso: una radio en vivo no tiene posición ni final, y decirlo es mejor que un slider muerto. Un episodio que termina **sigue con el siguiente** de la lista en la que lo pusiste a sonar, sin tocar el teléfono; al final de la lista se detiene y el reproductor lo avisa antes. El que termina queda marcado como escuchado. Los botones de siguiente y anterior de la **pantalla bloqueada** ahora llegan al elemento de audio, que es donde alguien con las manos en la barra los va a apretar. Y dos cosas que aparecieron revisando esto: - `setRadioNow` llamaba a `setMediaSession`, una función que ya no existe desde que el reproductor se unificó (hoy `setStreamSession`). El error quedaba **tragado** por el `.catch` del sondeo: la pantalla mostraba el tema —el estado se actualiza antes de la línea que falla— y la **pantalla bloqueada nunca se enteraba** del tema que sonaba. Ahora hay un test que lo mira y se comprobó por mutación. - `useUI` tenía **dos definiciones** de `setRadioVolume` y `setRadioNow`: al insertar el bloque de podcasts había quedado duplicado el final del bloque de radio, y en un objeto literal la última gana en silencio. Una copia era código muerto que se leía como vivo — y fue la que hizo que el primer intento de comprobar lo anterior "pasara". Tests nuevos: useUI.podcast.test.js (16, con el reproductor burlado emitiendo lo que emite un navegador: ended → siguiente, time → reloj, paused → posición guardada), NowPlaying.test.jsx (13) y el toque en la barra en PlayerBar.test.jsx.
This commit is contained in:
1 parent
d5cf0d8d64
commit
78b815ae8f
14 files changed
+754
-38
No files matched your search
@@ -95,7 +95,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a
|
||||
- 🌍 **14 languages** — full UI translation (EN, DE, ES, FR, IT, PT (Portugal), PT (Brazil), PL, TR, RU, ZH, KO, HI, TH, HU); exercise instructions localized in 12 of them and built-in exercise names shown bilingually in PT-BR and HU, all loaded on demand so the app stays fast
|
||||
- 📥 **Bring your history with you** — import from **FitNotes** (Android and iOS), **Strong** and **Hevy** (CSV or directly with a [Hevy Pro API key](https://hevy.com/settings?developer)), or body weight straight out of an **Apple Health** export. Exercise names are matched against the library and anything unrecognised becomes one of your own exercises, so nothing in the file is dropped
|
||||
- 📻 **Radio while you train** — a **Radio** section in Música: live stations by genre (workout/rave, techno, R&B, Latin, hip-hop, reggae, chill, jazz, rock, electronic), the ad-free ones first — SomaFM and Radio Paradise — then the public [radio-browser](https://www.radio-browser.info) directory. It keeps playing across screens, with the screen locked and the phone in your pocket, and the lock screen shows the station and the track. **The audio goes straight from the station to your phone** — your server hands out the list and never proxies or stores a byte of it, and nothing is downloaded. No new dependencies. See [docs/RADIO.md](docs/RADIO.md)
|
||||
- 🎙️ **Podcasts while you train** — a **Podcasts** section in Música: shows by category (health and fitness, sport, comedy, news, history, true crime, science, tech, society, business, fiction, education, music, leisure) from Apple's public directory, **in Spanish only** — and that is checked in each show's own feed, not assumed from the storefront it was found in. An episode is a file, so it resumes where you left off, marks itself heard, seeks back 15 s and forward 30 s, and plays the next one when it ends; the lock screen shows the episode and how far in you are. **Nothing is downloaded and no audio passes through your server** — the feed says where the file is and the phone goes and gets it. No new dependencies. See [docs/PODCASTS.md](docs/PODCASTS.md)
|
||||
- 🎙️ **Podcasts while you train** — a **Podcasts** section in Música: shows by category (health and fitness, sport, comedy, news, history, true crime, science, tech, society, business, fiction, education, music, leisure) from Apple's public directory, **in Spanish only** — and that is checked in each show's own feed, not assumed from the storefront it was found in. An episode is a file, so it resumes where you left off, marks itself heard, seeks back 15 s and forward 30 s, and **continues with the next one when it ends**; tapping the bar opens the **full player** (artwork at size, a draggable scrubber, what is left, and what plays next), and the lock screen shows the episode, its progress, and its next/previous buttons. **Nothing is downloaded and no audio passes through your server** — the feed says where the file is and the phone goes and gets it. No new dependencies. See [docs/PODCASTS.md](docs/PODCASTS.md)
|
||||
- ❤️ **Salud: your Apple Health, live** — a **Salud** screen (the heart button in Home's header) draws whatever your iPhone reports: steps, heart rate, sleep, weight, oxygen, workouts and every other metric Health Auto Export can send, as cards with trends over 7/30/90/365 days. Per profile and private by construction — each profile mints its own **write-only** ingest key, the phone's data lands in its own file, and re-sends are de-duplicated, so an automation firing every five minutes never counts a day twice. See [docs/HEALTH.md](docs/HEALTH.md)
|
||||
- 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry**; switching kg ↔ lb offers to convert every stored number
|
||||
- 🤖 **Ask an AI about your training** (optional) — an [MCP server](mcp/README.md) lets a client like Claude Desktop or Cursor read your history in your own words: *"what did I bench last week?"*. Read-only, spawned locally by the client, nothing leaves your box. Not in the Docker build — if you don't use an AI assistant, it isn't there
|
||||
|
||||
Reference in new issue
Block a user